query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
2c0a7be7d5f3a221245feb830b1f0186
If the simulation is cancelled, the progress bar should be hidden. However, we check the fragment to see if another simulation has taken this task's place, and if it has we should choose not to hide the progress bar instead.
[ { "docid": "363184fd82d95a1f582c665fea72e8f8", "score": "0.7508692", "text": "@Override\n protected void onCancelled() {\n if (fragmentWeakReference.get().getView() == null) return;\n\n if (!fragmentWeakReference.get().graphGeneration.isCancelled()) return;\n\n changeProgressBarVisibility(View.GONE);\n }", "title": "" } ]
[ { "docid": "30dc17c808fd3432c5c33d6efc361b13", "score": "0.69740903", "text": "public void hideProgress();", "title": "" }, { "docid": "1106d992bd9233074824d7f88dc61f08", "score": "0.68057543", "text": "private void showWorkFinished() {\n mProgressBar.setVisibility(View.GONE);\n mCancelButton.setVisibility(View.GONE);\n mGoButton.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "a6aa95e21491cae099aa36bde9a1da7a", "score": "0.68035114", "text": "@Override\n public void hideProgress() {\n waitDialog(false);\n }", "title": "" }, { "docid": "d274a542acf62b7e3c48c7c9d9776a52", "score": "0.67530304", "text": "void hideProgress();", "title": "" }, { "docid": "f31fadade89621b460efd4c268f219b4", "score": "0.6686425", "text": "public void hideLoadingForwardProgress() {\n }", "title": "" }, { "docid": "317e00301041fdc8fce9718f028f96f8", "score": "0.6675043", "text": "@Override\r\n\t\t\t\t\tprotected void done() {\r\n\t\t\t\t\t\tprogFrame.getPb().setIndeterminate(false);\r\n\t\t\t\t\t\t// Hide progress bar JFrame\r\n\t\t\t\t\t\tprogFrame.setVisible(false);\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8f6de6ba8dab527c88424b7766d5ad06", "score": "0.6629204", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tprogress.dismiss();\n\t\t\t\t\ts.setVisibility(View.VISIBLE);\n\t\t\t\t}", "title": "" }, { "docid": "d2aac20694f9cc7988c721a49d2a7875", "score": "0.6619587", "text": "private void hideDialogProgress()\n\t{\n\t\t// Insert a runnable object into the activity's message queue.\n\t\t// The activity will run the code when the message is processed.\n\t\tthis.tourGuideActivity.handler.post(new Runnable()\n\t\t{\n\n\t\t\t/**\n\t\t\t * Method to run.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\t// ask the message handler for the activity to politely hide the dialog.\n\t\t\t\tTourGuideService.this.tourGuideActivity.dismissDialog(TourGuideStatics.DIALOG_PROGRESS);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "a434f28ce00222096f189961c9817a9b", "score": "0.6615312", "text": "void hideProgressBar();", "title": "" }, { "docid": "e4de8372effc6951a15abafa580a86dd", "score": "0.6612978", "text": "public void run() {\n progressBar.setVisibility(View.INVISIBLE);\n }", "title": "" }, { "docid": "df962a1ea506754c2b1c9e2eccd4ccd7", "score": "0.6612561", "text": "void hideProgress ();", "title": "" }, { "docid": "8c613a05150a029382139b32cec1628f", "score": "0.6583444", "text": "public void goneProgress() {\n View view = this.mLoadingView;\n if (view != null && view.getVisibility() == 0) {\n this.mLoadingView.setVisibility(8);\n }\n }", "title": "" }, { "docid": "1a10392f2e037baf5b8ecaf0841607cd", "score": "0.65516996", "text": "public void run()\n\t\t\t\t{\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t}", "title": "" }, { "docid": "242f92a8ec067ad45b0d584f0533f470", "score": "0.6539588", "text": "private void hideDialogProgressIndeterminate()\n\t{\n\t\t// Insert a runnable object into the activity's message queue.\n\t\t// The activity will run the code when the message is processed.\n\t\tthis.tourGuideActivity.handler.post(new Runnable()\n\t\t{\n\n\t\t\t/**\n\t\t\t * Method to run.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\t// ask the message handler for the activity to politely hide the dialog.\n\t\t\t\tTourGuideService.this.tourGuideActivity.dismissDialog(TourGuideStatics.DIALOG_PROGRESS_INDETERMINATE);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "c1b94b28971ba4c5f75f24f9bd683342", "score": "0.6533119", "text": "public void hideProgressBar() {\n setProgressBarIndeterminateVisibility(false); \n }", "title": "" }, { "docid": "9b2ee617b728a040f5c50594815640b8", "score": "0.6528071", "text": "public void hideLoadingBackProgress() {\n }", "title": "" }, { "docid": "dc16f6ffa7b6729ec7155f7adb30ebc1", "score": "0.65128994", "text": "@Override\n public void onComplete() {\n progressBar.hide();\n }", "title": "" }, { "docid": "12856f7ee579321fddf140fb504978d9", "score": "0.6482264", "text": "@SuppressWarnings(\"ConstantConditions\") //We know the views are not null as we check for this in the first line.\n private void changeProgressBarVisibility(int visibility) {\n if (fragmentWeakReference.get().getView() == null) return;\n\n ProgressBar progressBar = fragmentWeakReference.get().getView().findViewById(R.id.simulation_progress);\n if (progressBar.getVisibility() != visibility) { //Check we're not calling this from a cancelled async task.\n LineChart chart = fragmentWeakReference.get().getView().findViewById(R.id.desire_chart);\n LineChart.LayoutParams params = chart.getLayoutParams();\n params.height = (visibility == View.VISIBLE)\n ? params.height - progressBar.getLayoutParams().height //Make the chart smaller to make room for the progress bar. It makes the layout less jumpy and prettier.\n : params.height + progressBar.getLayoutParams().height; //make the chart larger to accomodate the missing progress bar. ^\n chart.setLayoutParams(params);\n }\n progressBar.setProgress(0);\n progressBar.setVisibility(visibility);\n }", "title": "" }, { "docid": "7dc3da3d2372fb5114874a4998db8938", "score": "0.6441259", "text": "@Override\n\tpublic void hideProgressLoader() {\n\t}", "title": "" }, { "docid": "6dca26ad4091801d90d53ef336751fb5", "score": "0.6440546", "text": "protected void hideProgress() {\n dismissDialog(0);\n }", "title": "" }, { "docid": "10ef362ec17107f3b364967ef70a109c", "score": "0.6400629", "text": "private void hideProgress() {\n\t\tprogressBar.setVisibility(View.INVISIBLE);\r\n\t}", "title": "" }, { "docid": "1a94db2916410a265b21bf246187f747", "score": "0.63993955", "text": "private void hideProgressDialog() {\n if (mprogressBar.isShowing())\n mprogressBar.dismiss();\n }", "title": "" }, { "docid": "8dc8fd31e85bdb2063cdf2522885bc44", "score": "0.63783073", "text": "public void onFinish() {\n progressBar.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "8c763288a62ae44fe242acbce73db390", "score": "0.6341605", "text": "public static void cancelProgressBar() {\n Message msg = new Message();\n msg.what = 1;\n if (mHandler != null) {\n mHandler.sendMessage(msg);\n } else {\n shouldShow = false;\n }\n }", "title": "" }, { "docid": "53b5eab57a4ddc738617b2deee4dac1d", "score": "0.6306368", "text": "@Override\n public void hideProgressBar() {\n mProgressBar.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "08cd81e9852a589551bb2edb9b65d697", "score": "0.6292592", "text": "@Override\n protected void onPreExecute() {\n if (fragmentWeakReference.get().getView() == null) return;\n\n changeProgressBarVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "8829155a2bf09826abb6fcd6f7657d02", "score": "0.6287088", "text": "private void noProgressBarVisibility() {\n listVisibility = false;\n taskListView.setVisibility(RecyclerView.INVISIBLE);\n progressBar.setVisibility(ProgressBar.VISIBLE);\n noTasks.setVisibility(TextView.INVISIBLE);\n }", "title": "" }, { "docid": "78a5ada7b1cae851b23499b858aaef3c", "score": "0.6238521", "text": "void hideProgressDialog();", "title": "" }, { "docid": "d9f8bb8c4217bc3d6ed7016a98972d41", "score": "0.61971533", "text": "private void hideProgressDialog() {\n if (progress != null && progress.isShowing()) {\n progress.hide();\n progress = null;\n }\n }", "title": "" }, { "docid": "dadab44b992d69c3ebb2ae149bf5d064", "score": "0.6174132", "text": "void hideLoading();", "title": "" }, { "docid": "dadab44b992d69c3ebb2ae149bf5d064", "score": "0.6174132", "text": "void hideLoading();", "title": "" }, { "docid": "dadab44b992d69c3ebb2ae149bf5d064", "score": "0.6174132", "text": "void hideLoading();", "title": "" }, { "docid": "cbfc47e4e61c0d18e079458cf60ffdf9", "score": "0.61716294", "text": "private void DismissProgressFrag()\n {\n FragmentManager fragmentManager = getFragmentManager();\n DialogFragment dialogFragment =\n (DialogFragment)fragmentManager.findFragmentByTag(\"progressFrag\");\n if (dialogFragment != null)\n dialogFragment.dismiss();\n }", "title": "" }, { "docid": "89b2d613ddbd399af6f5408499f680d5", "score": "0.6160298", "text": "private void noTaskVisibility() {\n listVisibility = false;\n taskListView.setVisibility(RecyclerView.INVISIBLE);\n progressBar.setVisibility(ProgressBar.INVISIBLE);\n noTasks.setVisibility(TextView.VISIBLE);\n }", "title": "" }, { "docid": "110ce26af10b6137ca0e0889b48a0c91", "score": "0.61538756", "text": "public void showOrHideProgress(){\n if(display.equals(\"WHAT TO DO NEXT?\")) {\n display = \">>>>> GOT IT ! <<<<<\";\n ProgressInformation.visible = true;\n }\n else {\n display = \"WHAT TO DO NEXT?\";\n ProgressInformation.visible = false;\n }\n }", "title": "" }, { "docid": "0fa1736aa1352b9af940cffac5ed7ba1", "score": "0.61183035", "text": "@Override\n public void setProgressBarInvisible() {\n view.setProgressBarInvisible();\n }", "title": "" }, { "docid": "28486b6e32859868035c67cb411c340e", "score": "0.60828745", "text": "public void hideLoading() {\n\n }", "title": "" }, { "docid": "518d163b438c1be4df600ffef4772d2c", "score": "0.6081604", "text": "public void hideProgress() {\n if (null != progress)\n progress.dismiss();\n\n progress = null;\n }", "title": "" }, { "docid": "ec0243d20b0be2ed1079a425f34c6a20", "score": "0.60395503", "text": "@Override\n\t\tprotected void onPostExecute(Long result) {\n\t\t\ttry {\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tpb.setVisibility(View.GONE);\n\t\t}", "title": "" }, { "docid": "f4e0272b9b69eca5d9c04f72befedf6b", "score": "0.59900343", "text": "public void hideActivityIndicator() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tprogress.dismiss();\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "e12a50abd53bae3dc7ecc8e0bd10fbb2", "score": "0.5980079", "text": "private void showWorkInProgress() {\n mProgressBar.setVisibility(View.VISIBLE);\n mCancelButton.setVisibility(View.VISIBLE);\n mGoButton.setVisibility(View.GONE);\n mOutputButton.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "0c9b9ae61f211f529a753fa3c1cf736d", "score": "0.5928364", "text": "public void done() {\r\n bsmf.MainFrame.show(getMessageTag(1064));\r\n MainProgressBar.setEnabled(false);\r\n MainProgressBar.setIndeterminate(false);\r\n }", "title": "" }, { "docid": "3995cf013f26315179fc76eb9ba33a16", "score": "0.58989626", "text": "private void hideProgressDialog() {\n if (myProgressDialog != null && myProgressDialog.isShowing()) {\n myProgressDialog.hide();\n }\n }", "title": "" }, { "docid": "0337610970aa4be235af006d820723db", "score": "0.58749527", "text": "@Override\n protected void onPostExecute(Void result)\n {\n\n myProgress.dismiss();\n\n /* myProgress = null; */\n\n display();\n\n }", "title": "" }, { "docid": "73ed39faed1b470df4bcc91419dc3c64", "score": "0.5872605", "text": "public static void hideLoading() {\n\t\t\r\n\t}", "title": "" }, { "docid": "41e437293ebf2d681175daa187ff6472", "score": "0.5856604", "text": "public void displayFailMessage(){\n progressBar.setVisibility(View.INVISIBLE);\n failed_block.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "f668bcbef88807a3e99093b0d7d37473", "score": "0.58492", "text": "private void hideProgressDialog() {\n // Avoiding IllegalArgumentException exceptions whenever progressDialog is being\n // shown and the device is rotated.\n try {\n mProgressDialog.dismiss();\n } catch (IllegalArgumentException e) {}\n }", "title": "" }, { "docid": "bdd13fb7de5e539301852762026bf060", "score": "0.58313197", "text": "@Override\r\n public void onStop() {\r\n // Suspend remaining UI updates, threads, or processing\r\n // that aren’t required when the Fragment isn’t visible.\r\n super.onStop();\r\n }", "title": "" }, { "docid": "7d965e3999d55a1b21fbd5eebae0f5bb", "score": "0.582301", "text": "private void showProgressGoal()\n {\n Platform.runLater(()->\n {\n theProgressView.rePopulateData();\n });\n theProgressView.setVisibility(true);\n }", "title": "" }, { "docid": "450bb04eda407e6e5908b8ee4044cd4b", "score": "0.5817744", "text": "public static void hideInProgressDialog() {\n if (mProgressDialog != null) {\n mProgressDialog.hide();\n }\n }", "title": "" }, { "docid": "34d90b7784b595a880089bfbb9359bd4", "score": "0.58047116", "text": "public void hideProgressingView() {\n View v = this.findViewById( android.R.id.content ).getRootView();\n ViewGroup viewGroup = (ViewGroup) v;\n viewGroup.removeView( progressView ); // removing progressbar from login layout\n isProgressShowing = false;\n }", "title": "" }, { "docid": "d010f9b64723e02b8ecff36bdc3418f0", "score": "0.57931286", "text": "@Override\n public void onLoadingFailed(String arg0, View arg1, FailReason failReason) {\n progressBar.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "252da15bda2fff035c83d5b414fb4027", "score": "0.57870466", "text": "public static void hideProgressAlert() {\n pDialog.hide();\n }", "title": "" }, { "docid": "0c6449942923c3939c554885d139f097", "score": "0.57717675", "text": "@Override\n public void run() {\n view.setVisibility(View.GONE);\n prev = pos;\n }", "title": "" }, { "docid": "cc75adc9af3bb6c7a894796feeed84ea", "score": "0.57424", "text": "@Override\n protected void onPreExecute() {\n progressBar.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "e659b2e2fd981be1017b9ce9cacbce63", "score": "0.57397217", "text": "public void testVisibilityAfterPenality(){\n try {\n runTestOnUiThread(new Runnable() {\n @Override\n public void run() {\n pena = new Penality(map);\n bar = (ProgressBar) map.getActivity().findViewById(R.id.progress_bar_circle_penalite);\n text = (TextView) map.getActivity().findViewById(R.id.textPenalite);\n textPena = (TextView) map.getActivity().findViewById(R.id.textPenalit);\n img = (ImageView) map.getActivity().findViewById(R.id.imgPenalite);\n pena.runThread();\n assertTrue(bar.getVisibility() == View.INVISIBLE);\n assertTrue(text.getVisibility() == View.INVISIBLE);\n assertTrue(textPena.getVisibility() == View.INVISIBLE);\n assertTrue(img.getVisibility() == View.INVISIBLE);\n }\n });\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n }", "title": "" }, { "docid": "d2cf86266c181ee1f0f8ed2a75a25730", "score": "0.5735666", "text": "public void hideSnackbar() {\n revertTaskDoneSnackbar.dismiss();\n }", "title": "" }, { "docid": "07d86e4ae6567b0dd10ed76787d2a347", "score": "0.5724001", "text": "public void willBeHidden() {\n\t\tif (fragmentContainer != null) {\n\t\t\tAnimation fadeOut = AnimationUtils.loadAnimation(getActivity(), R.anim.fade_out);\n\t\t\tfragmentContainer.startAnimation(fadeOut);\n\t\t}\n\t}", "title": "" }, { "docid": "7f36f5691566e7f4a8ce06be8ebf1fbb", "score": "0.5717221", "text": "@Override\n protected void onPreExecute() {\n pbbar.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "7f36f5691566e7f4a8ce06be8ebf1fbb", "score": "0.5717221", "text": "@Override\n protected void onPreExecute() {\n pbbar.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "43113ef9f59124d122c6ac0a151bbbb2", "score": "0.5715172", "text": "public void willBeHidden() {\n if (fragmentContainer != null) {\n Animation fadeOut = AnimationUtils.loadAnimation(getActivity(), R.anim.fade_out);\n fragmentContainer.startAnimation(fadeOut);\n }\n }", "title": "" }, { "docid": "38be3f5f42bfd9ad7b19a0f798a16a55", "score": "0.5708483", "text": "@Override\n public void shouldDismissLoadingDialog() {\n dismissWaitingDialog();\n }", "title": "" }, { "docid": "e171a69ddbb6cab8b6b36abe35c4cbbb", "score": "0.5684434", "text": "@Override\r\n public void onAnimationComplete( )\r\n {\r\n particle.setVisible( false );\r\n }", "title": "" }, { "docid": "870849049d904a508d3db7124c3af5bb", "score": "0.5682684", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tmProgress.setVisibility(View.VISIBLE);\n\t\t}", "title": "" }, { "docid": "8c8de787cf7db674dcd330cadc91b084", "score": "0.56809944", "text": "@Override\n public void showProgressEmpty() {\n }", "title": "" }, { "docid": "f6fb2ae57fb78ec27c96e7d9c64a9fef", "score": "0.5675887", "text": "@Override\n public void run() {\n loadingTV.setText(\"Error While Merging Videos\");\n progressBar.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "f356a5fc5ad192ef9688023a01fbbcc5", "score": "0.5664868", "text": "@Override\n public void onPreExecute() {\n progressBarForm.setVisibility(View.VISIBLE);\n\n }", "title": "" }, { "docid": "a7a0b0d054fd3f30073ecadacb460762", "score": "0.56383157", "text": "@Override\n public void execute(CancellationToken cancelToken) {\n if (isVisible()) {\n JOptionPane.showMessageDialog(LoadCombatDialog.this,\n errorText, caption, JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "742051764c75344144e319dc8a4ec5f5", "score": "0.5623045", "text": "@Override\n protected void onStepMarkedAsUncompleted(boolean animated) {\n }", "title": "" }, { "docid": "1b43bab885824aeac402281b092fd112", "score": "0.56213313", "text": "private void showDisconnectedProgressBar() {\n if (mScreenState == SCREEN_STATE_DISCONNECTED) {\n mProgressBar.setVisibility(View.GONE);\n mProgressBar.setIndeterminate(false);\n mTopDividerNoProgress.setVisibility(View.VISIBLE);\n } else {\n mProgressBar.setVisibility(View.VISIBLE);\n mProgressBar.setIndeterminate(false);\n mProgressBar.setProgress(0);\n mTopDividerNoProgress.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "50ebc707270beb090f9272a7a851c35c", "score": "0.55967855", "text": "public void hideLoader()\n {\n ((Activity)context).runOnUiThread(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n if(dialog != null && dialog.isShowing())\n dialog.dismiss();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "a29b611fcf8fff5204d481a5619e5d64", "score": "0.55712175", "text": "public abstract void onProgressCanceled();", "title": "" }, { "docid": "acd88aa440e7bb6b42bc1c38be093c7e", "score": "0.5564275", "text": "@Override\n public void onPreExecute() {\n progressBar.setVisibility(View.VISIBLE);\n\n }", "title": "" }, { "docid": "acd88aa440e7bb6b42bc1c38be093c7e", "score": "0.5564275", "text": "@Override\n public void onPreExecute() {\n progressBar.setVisibility(View.VISIBLE);\n\n }", "title": "" }, { "docid": "acd88aa440e7bb6b42bc1c38be093c7e", "score": "0.5564275", "text": "@Override\n public void onPreExecute() {\n progressBar.setVisibility(View.VISIBLE);\n\n }", "title": "" }, { "docid": "3f0c82ae6056b489ac2ac3e4e1caf926", "score": "0.5555081", "text": "private void showProgress() {\n mDataContainer.setVisibility(View.GONE);\n mRetryFrameContainer.setVisibility(View.GONE);\n mProgressBarContainer.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "8f57afff68fa2e2bf1c758eb3a072f9a", "score": "0.5544318", "text": "private void showProgressBarDeterminate(int visibility) {\n ProgressBar progressbar = findViewById(R.id.progressbar_determinate);\n progressbar.setVisibility(visibility);\n }", "title": "" }, { "docid": "3414aa98f3a407a71a4c71938f029585", "score": "0.55393773", "text": "@Override\n public void dismissProgressBar() {\n mProgress.dismiss();\n }", "title": "" }, { "docid": "d189c5daf1cb5218e9a18f3256b66c4b", "score": "0.5529821", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsetSupportProgressBarIndeterminateVisibility(true);\n\t\t}", "title": "" }, { "docid": "f537f0882f5467b2506a3ecb0390d023", "score": "0.5511069", "text": "private void showProgressDialog() {\n if (!mprogressBar.isShowing())\n mprogressBar.show();\n }", "title": "" }, { "docid": "2b8da2b7f7cede5657e047c66859d85f", "score": "0.55047286", "text": "public void doAddProgressView() {\n IXAdInstanceInfo adInstanceInfo = this.mAdContainerCxt.getAdInstanceInfo();\n int optInt = this.mAdContainerCxt.getAdProdInfo().getAttribute().optInt(\"splashTipStyle\", 4);\n if (adInstanceInfo.getOriginJsonObject().has(\"closetype\")) {\n optInt = adInstanceInfo.getOriginJsonObject().optInt(\"closetype\", 4);\n }\n mo19267d();\n if (adInstanceInfo.getCreativeType() != IXAdInstanceInfo.CreativeType.VIDEO) {\n this.mProgressView.mo18440a(5000L);\n this.mProgressView.mo18437a();\n }\n if (optInt == 5) {\n this.mProgressView.setVisibility(0);\n } else if (optInt == 1) {\n this.mProgressView.setVisibility(0);\n }\n }", "title": "" }, { "docid": "83aeb06a5598763dab33f971fc84a6b5", "score": "0.5482588", "text": "public void hideProgressDialog() {\r\n if (mProgressDialog != null) {\r\n mProgressDialog.dismiss();\r\n }\r\n mProgressDialog = null;\r\n }", "title": "" }, { "docid": "2bc2c5c7e7de4f56a05e2cb22750d4b3", "score": "0.54783094", "text": "public void hideGif () {\n remove(loading);\n repaint();\n revalidate();\n }", "title": "" }, { "docid": "ed709b5bd0ed8d1c34faf09364270e49", "score": "0.54524803", "text": "public void run() {\n progressDialog.dismiss();\n }", "title": "" }, { "docid": "21e80a69b8995a807b52d4f485099f22", "score": "0.5448334", "text": "@Override\n\tpublic void run() {\n\t mFloatView.setVisibility(View.GONE);\n\t}", "title": "" }, { "docid": "88807f20ab5189a3eb5e586ec23962da", "score": "0.5445651", "text": "void hideRetry();", "title": "" }, { "docid": "9868e2250276a6be12f2638721a93c6f", "score": "0.5438566", "text": "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\tisRun = false;\n\t\thindLoadingDialog();\n\t}", "title": "" }, { "docid": "8ba2826b3426f14c9409fcce5baf192e", "score": "0.5438378", "text": "public void hideProgressDialog() {\n if (mProgressDialog != null && mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n }", "title": "" }, { "docid": "3e6cc7e4d813481db47156f877c05055", "score": "0.54353446", "text": "public void handleInstructionDisplay() {\r\n if (!game.isEnd()) {\r\n replay.setVisible(false);\r\n save.setVisible(false);\r\n warning.setVisible(false);\r\n }\r\n }", "title": "" }, { "docid": "7abc9a0e15bed79fe6f153f0a278524e", "score": "0.5434935", "text": "@Override\r\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tif(result) {\r\n\t\t\t\tprogressDialog.dismiss();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "6021e4a803319d4dc3268c44dc70e178", "score": "0.54346716", "text": "void hideFragment();", "title": "" }, { "docid": "f362d9aee3fa8218b704553564b870f6", "score": "0.5431577", "text": "@Override\n public void showProgress(boolean visible) {\n\n }", "title": "" }, { "docid": "b4d1414347df9b7766ad418804a74512", "score": "0.54313004", "text": "public void doHide() {\n this.mVisibilityIsExplicit = true;\n SubtitleTrack subtitleTrack = this.mSelectedTrack;\n if (subtitleTrack != null) {\n subtitleTrack.hide();\n }\n this.mShowing = false;\n }", "title": "" }, { "docid": "d9751f4316582e1b3040bddc390e0c2c", "score": "0.542731", "text": "private void cancelProductsTask(){\n if(isTaskRunning()){\n this.getProductsTask.cancel(true);\n searchProgress.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "8e85be02d3e7d264853ad4d58489cd02", "score": "0.54239887", "text": "public void stopAllTasks(){\n //searchProgress.setVisibility (View.GONE);\n if (loader!=null) loader.cancel(true);\n if (regexRunner!=null) regexRunner.cancel(true);\n hideMessageWindow();\n return;\n }", "title": "" }, { "docid": "441b4849c638f5727118cdc90c09fdfa", "score": "0.5422035", "text": "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tpg.setVisibility(View.INVISIBLE);\n\t\t}", "title": "" }, { "docid": "527b49467a7175405d60aedefced74fa", "score": "0.54210806", "text": "public final void m63134a() {\n getProgressBar().setVisibility(0);\n }", "title": "" }, { "docid": "5bf6c90ba033ce9e20a85529e4d67505", "score": "0.5415638", "text": "public void hideInitLoading() {\n }", "title": "" }, { "docid": "9023dc172f4778404c1a008dddc60d7f", "score": "0.54154974", "text": "protected void showProgress() {\n showDialog(0);\n }", "title": "" }, { "docid": "a3a05f8bd2c6971dbccca863c48ac337", "score": "0.54154897", "text": "public void customProgressDialog(){\n APIUtil.getBooks(this);\n progressLayout.setVisibility(View.VISIBLE);\n }", "title": "" } ]
098874b2d56fd5593fe0b564037a4e35
Check if the specified appender is an alias. If so the appender name is converted to fully qualified class name.
[ { "docid": "867d41821505462eb3c676693b8365bc", "score": "0.75575787", "text": "private String checkForAliasAppender(String appenderName) {\n\t\treturn resolveAlias(appenderName, appenderAliases);\n\t}", "title": "" } ]
[ { "docid": "b2494ecabec2091b7a4a9dd4cc49d18e", "score": "0.5881493", "text": "private String checkForAliasFormatter(String formatterName) {\n\t\treturn resolveAlias(formatterName, formatterAliases);\n\t}", "title": "" }, { "docid": "3d715e115c6e408163e18e2886961ee6", "score": "0.5441888", "text": "public boolean hasAlias() {\n return (alias != null && !\"\".equals(alias));\n }", "title": "" }, { "docid": "cff8dbf2fdfbb16a621c32bf14648e9e", "score": "0.534376", "text": "@Override\n\t\tpublic String getClassName() {\n\t\t\treturn appender;\n\t\t}", "title": "" }, { "docid": "c948cb18ce23963e832cf38c69605a75", "score": "0.51062286", "text": "public boolean checkIfAlias(String alias) {\n return commandAliasesMap.get(alias) != null;\n }", "title": "" }, { "docid": "3ee5e2f9d5d34a967b75375ddff1b537", "score": "0.5004013", "text": "public abstract String getAliasName();", "title": "" }, { "docid": "7e2bc021cba0c5dce7fa4d292b5b157c", "score": "0.4998206", "text": "String getAlias();", "title": "" }, { "docid": "7e2bc021cba0c5dce7fa4d292b5b157c", "score": "0.4998206", "text": "String getAlias();", "title": "" }, { "docid": "7e2bc021cba0c5dce7fa4d292b5b157c", "score": "0.4998206", "text": "String getAlias();", "title": "" }, { "docid": "d6d43972a4c2bace26b4242cd082af12", "score": "0.49977398", "text": "public String alias(Class type);", "title": "" }, { "docid": "19341aab32af06ca9af78296840b92d0", "score": "0.49644747", "text": "private void addAppender(String string) {\n\n\t\tLogger rootLogger = loggerRepository.getRootLogger();\n\t\tString className = appenderAliases.get(string);\n\n\t\tif (className == null) {\n\t\t\tclassName = string;\n\t\t}\n\n\t\ttry {\n\t\t\tClass<?> appenderClass = Class.forName(className);\n\t\t\tAppender appender = (Appender) appenderClass.newInstance();\n\n\t\t\tif (appender != null) {\n\t\t\t\trootLogger.addAppender(appender);\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tLog.e(TAG, \"Failed to find appender class: \" + e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tLog.e(TAG, \"No access to appender class: \" + e);\n\t\t} catch (InstantiationException e) {\n\t\t\tLog.e(TAG, \"Failed to instantiate appender class: \" + e);\n\t\t} catch (ClassCastException e) {\n\t\t\tLog.e(TAG, \"Specified appender class does not implement the Appender interface: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "5f7f830e0e59acbd16bf8f7e03ec69b5", "score": "0.49120075", "text": "boolean hasAllowAlias();", "title": "" }, { "docid": "8fadb32084c8bd400a58905952526f48", "score": "0.48052904", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "8fadb32084c8bd400a58905952526f48", "score": "0.48052904", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "b61b3b986fdd8fa4e9649c53d54db4fe", "score": "0.47913638", "text": "public String getAlias() {\r\n return alias;\r\n }", "title": "" }, { "docid": "5c8a9de35a1ac04051c110015663db1c", "score": "0.47903895", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "5c8a9de35a1ac04051c110015663db1c", "score": "0.47903895", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "8246a5296d487f4f90bc5a316acb775a", "score": "0.47774538", "text": "public String getAlias() {\n return _alias;\n }", "title": "" }, { "docid": "9b6f285305131be66cdb68e66f56f4d0", "score": "0.47586712", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "9b6f285305131be66cdb68e66f56f4d0", "score": "0.47586712", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "ecd2936509b7ee3fff019b035d37ba0b", "score": "0.47358334", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "7cb78e4b4831e636b2d0d8eb41ea5c47", "score": "0.4732181", "text": "public boolean getAllowAlias() {\n return allowAlias_;\n }", "title": "" }, { "docid": "5d4ddb318b08f8f4583f4e47697147e0", "score": "0.47086865", "text": "public boolean getAllowAlias() {\n return allowAlias_;\n }", "title": "" }, { "docid": "cca5c0be28a74f916269ce90ba7762e1", "score": "0.46925983", "text": "public void setAlias(String tmp) {\n this.alias = tmp;\n }", "title": "" }, { "docid": "2e65269a8fa7ef3f2d50e6c6f67859f4", "score": "0.46637845", "text": "protected Appender createAppender(String appenderName, Properties properties) {\n\t\tAppender appender = null;\n\t\t\n\t\tString appenderClassNameProperty = PropertyConfigurator.APPENDER_PREFIX_KEY + PREFIX_SEPARATOR + appenderName;\n\t\tString appenderClassName = properties.getProperty(appenderClassNameProperty);\n\t\t\t\n\t\tif (appenderClassName != null) {\n\t\t\tappenderClassName = checkForAliasAppender(appenderClassName);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tClass<?> appenderClass = Class.forName(appenderClassName);\n\t\t\t\tappender = (Appender) appenderClass.newInstance();\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tLog.e(TAG, \"Could not find appender class \" + appenderName);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tLog.e(TAG, \"Could not instantiate appender class \" + appenderName);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tLog.e(TAG, \"Not allowed to create appender class \" + appenderName);\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn appender;\n\t}", "title": "" }, { "docid": "1a28473126b36ad19ae0ffe42813ac32", "score": "0.46601275", "text": "boolean getAllowAlias();", "title": "" }, { "docid": "a2536d0af5fdb3fbca30ba46c847a7bf", "score": "0.4632073", "text": "public String alias() {\n return this.alias;\n }", "title": "" }, { "docid": "a9db54bc9bc8cf6776af68e19dc3e85c", "score": "0.46207592", "text": "public interface TypeAliaser\n{\n // public delegate Type TypeAntiAliaser(string alias);\n public String alias(Class type);\n\n}", "title": "" }, { "docid": "24d1b9fbf0dd44936a6eaefe2ae692a4", "score": "0.46164238", "text": "public String getAlias()\n\t{\n\t\treturn this.alias;\n\n\t}", "title": "" }, { "docid": "f69fe16717242d84f553cc3204919066", "score": "0.45560035", "text": "@Override\n public String getAlias() {\n return this.alias;\n }", "title": "" }, { "docid": "9459bf375000d9095735b553d81a2ff2", "score": "0.4521805", "text": "public void setAlias(String value) {\n alias = value;\n }", "title": "" }, { "docid": "945ebcf55142401a0a7c94f818161c1a", "score": "0.44993767", "text": "public Boolean equals(AliasNameClassOLD alias) {\r\n\t\tBoolean result = false;\r\n\t\treturn (Config.getConfig().compareAliasNames(this.getAliasName(), alias.getAliasName()));\r\n\t}", "title": "" }, { "docid": "72d12290f8f92e562b43adacf36c35cf", "score": "0.4492737", "text": "@Override\n public String toString() {\n\t\treturn \"(alias)\" + super.toString();\n\t}", "title": "" }, { "docid": "8233c452c87470aae1c6eecec41e28b2", "score": "0.44767725", "text": "public boolean isAlias(final String email){\n try {\n if (ks.containsAlias(email)){\n return true;\n }\n } catch (KeyStoreException e) {\n e.printStackTrace();\n }\n return false;\n }", "title": "" }, { "docid": "5065926039bed5f1c5faaf28e9a5a55a", "score": "0.4473405", "text": "public static boolean isAlias(String string) {\n if (!MmsConfig.isAliasEnabled()) {\n return false;\n }\n\n int len = string == null ? 0 : string.length();\n\n if (len < MmsConfig.getAliasMinChars() || len > MmsConfig.getAliasMaxChars()) {\n return false;\n }\n\n if (!Character.isLetter(string.charAt(0))) { // Nickname begins with a letter\n return false;\n }\n for (int i = 1; i < len; i++) {\n char c = string.charAt(i);\n if (!(Character.isLetterOrDigit(c) || c == '.')) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "7ebd8ccb04d4fda598b29b63767d5c24", "score": "0.44421226", "text": "public void addAlias(String alias) {\n throw new AvroRuntimeException(\"Not a named type: \" + this);\n }", "title": "" }, { "docid": "d27fe413f1567220af8ac9f061571aef", "score": "0.4425081", "text": "private String resolveAlias(String name, Map<String, String> aliases) {\n\t\tString className;\n\t\tString aliasedClassName = aliases.get(name);\n\t\t\n\t\tif (aliasedClassName == null) {\n\t\t\tclassName = name;\n\t\t} else {\n\t\t\tclassName = aliasedClassName;\n\t\t}\n\t\t\n\t\treturn className;\n\t}", "title": "" }, { "docid": "78d0b9ebfbe6a9c81b63340d9c360723", "score": "0.44069186", "text": "public boolean modifyUserAlias(String alias);", "title": "" }, { "docid": "e55664fdc4793dda7c8768d10537f689", "score": "0.43895525", "text": "public void registerAlias(String alias);", "title": "" }, { "docid": "0555e7e0c2ff69bea8e10694c3abb450", "score": "0.43858525", "text": "public static String detectAlias(String query) {\r\n\r\n\t\tMatcher matcher = QueryUtils.ALIAS_MATCH.matcher(query);\r\n\t\treturn matcher.find() ? matcher.group(2) : null;\r\n\t}", "title": "" }, { "docid": "30b6ffcaab0ff7caf5ba8ed7857c4d77", "score": "0.4382038", "text": "public String getUserAlias() {\n return userAlias;\n }", "title": "" }, { "docid": "adbadfff66b76e74ee0d172e1e22da2e", "score": "0.43674988", "text": "public String getDevicetypealias() {\n return devicetypealias;\n }", "title": "" }, { "docid": "ac26195a6c673182080bbbca97b416f4", "score": "0.43435425", "text": "public void addAlias(String name, Class type) {\n xStream.alias(name, type);\n }", "title": "" }, { "docid": "c0270fa9d39efc60b1a4f68f7e1e87cf", "score": "0.43223354", "text": "public boolean hasAllowAlias() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "d806a51cb86676cd6335abc779457985", "score": "0.43205586", "text": "final public boolean isAnonymizeable() {\n\n if (dataSource == null) {\n return false;\n }\n for (Class c : ANONYMIZEABLE_CLASSES) {\n if (dataSource.getClass().isAssignableFrom(c)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "2f8a141f2d428033338e882548ead16b", "score": "0.4317106", "text": "String getImportAlias();", "title": "" }, { "docid": "c5ad468ed953be21d920b643b678e6ed", "score": "0.4295155", "text": "public boolean isInterfaceAlias(){\n\t\treturn isInterfaceAliasingInSpecification()\n\t\t||isInterfaceAliasInNescFunction()\n\t\t||isInterfaceAliasInNescFunctionCall();\n\t}", "title": "" }, { "docid": "ab5f8ee0bc1d262bdfed1982f18749a5", "score": "0.42916206", "text": "protected Appender getAppender(String appenderName, Properties properties) {\n\t\tAppender appender = null;\n\t\t\n\t\t// Check to see if we've already created this appender\n\t\tif (appenders != null)\n\t\t\tappender = appenders.get(appenderName);\n\n\t\tif (appender == null) {\n\t\t\tappender = doConfigureAppender(appenderName, properties); \n\n\t\t\tif (appender != null) {\n\t\t\t\t// Store the appender in our map, in case another logger in our configuration\n\t\t\t\t// makes a reference to it.\n\t\t\t\tif (appenders == null)\n\t\t\t\t\tappenders = new HashMap<String, Appender>();\n\t\t\t\t\n\t\t\t\tappenders.put(appenderName, appender);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn appender;\n\t}", "title": "" }, { "docid": "0c0f1a32bab2fb0e833fa9a96542fd4c", "score": "0.42792132", "text": "private static String getDstName(AggType atype)\n\t{\n\t\treturn Util.sprintf(\"%s\", DatabaseBridge.getAggTableName(DbTarget.internal, atype));\n\t}", "title": "" }, { "docid": "83a17f16a9dbb06a3f70666caa6c774e", "score": "0.42685166", "text": "public boolean hasAllowAlias() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "c88c6cd5ff669d3c730bd79150f77b0a", "score": "0.4236565", "text": "public String getAlias(String simpleName)\r\n {\r\n String className = map.getProperty(simpleName);\r\n if (className == null)\r\n className = simpleName;\r\n return className;\r\n }", "title": "" }, { "docid": "f8a8692f81dc20d6a97447365edd7e3a", "score": "0.42280957", "text": "public String getCommandFromAlias(String alias) {\n return commandAliasesMap.get(alias);\n }", "title": "" }, { "docid": "da7c751f765ec725a9fd41727b55509c", "score": "0.41999063", "text": "public String getDisplayAlias();", "title": "" }, { "docid": "90961611dc737b5e6aa3bb920e2d9074", "score": "0.41941723", "text": "public boolean containsAlias(String alias) throws AdaptrisSecurityException {\n try {\n return keystore.containsAlias(alias);\n }\n catch (Exception e) {\n throw KeystoreProxy.wrapException(e);\n }\n }", "title": "" }, { "docid": "ab7aa9314e372b5bf9ed5865777d6a93", "score": "0.41902363", "text": "public boolean changeAlias(String alias){\n \t\tif(ce.getNodeforAlias(alias)!=null){\n \t\t\tinfo(\"Username already in use\", null, 1);\n \t\t\treturn false;\n \t\t} else {\n \t\t\tce.setAlias(alias);\n \t\t\treturn true;\n \t\t}\n \t}", "title": "" }, { "docid": "9374e3786a93b54cbeeb0a208f218538", "score": "0.41835904", "text": "XMPAliasInfo resolveAlias(String aliasNS, String aliasProp);", "title": "" }, { "docid": "265cb4c4a2ebd87892c74861c8559b7d", "score": "0.4173374", "text": "public void setDevicetypealias(String devicetypealias) {\n this.devicetypealias = devicetypealias == null ? null : devicetypealias.trim();\n }", "title": "" }, { "docid": "7aff94a6cc0ee9d72d08db06605c2b8c", "score": "0.41721597", "text": "public abstract LogReader getLogReader(String appender);", "title": "" }, { "docid": "5638c9bb4c9f60d2c0cfbf75b1375aa5", "score": "0.41714516", "text": "public String getUserAlias() {\r\n return \"user\";\r\n }", "title": "" }, { "docid": "4771e956346ec270fdfc435e54c97579", "score": "0.41635394", "text": "public void setChannamealias(String channamealias) {\n this.channamealias = channamealias == null ? null : channamealias.trim();\n }", "title": "" }, { "docid": "fca4a573e36fcd82b8b8297ff18561f1", "score": "0.4152636", "text": "public static String getLocaleNameFromAlias(String alias) {\n return getLocaleNameFromAlias(alias, alias);\n }", "title": "" }, { "docid": "1ffc6ee5c1deb4039c11e5923433749e", "score": "0.41509226", "text": "public String getAlias(String name) {\n return name;\n }", "title": "" }, { "docid": "d342368f227fce42e67e7b9c0891219a", "score": "0.4149992", "text": "public void addAlias(String alias, String space) {\n throw new AvroRuntimeException(\"Not a named type: \" + this);\n }", "title": "" }, { "docid": "613d86b3960bea4a92e193cd33c4b4c4", "score": "0.41340023", "text": "public String getAlias() {\n\t\treturn this.key.substring(this.key.lastIndexOf(\".\") + 1);\n\t}", "title": "" }, { "docid": "cf34727712b6dfd57999eae0554a9d63", "score": "0.41265747", "text": "private String getAlias(Dependency dependency) {\r\n StringBuffer buf = new StringBuffer();\r\n //buf.append(artifact.getGroupId().replace(\".\", \"/\"));\r\n //buf.append(\"/\");\r\n buf.append(dependency.getArtifactId());\r\n buf.append(\"-\");\r\n buf.append(dependency.getClassifier());\r\n buf.append(\".\");\r\n buf.append(dependency.getType());\r\n return buf.toString();\r\n }", "title": "" }, { "docid": "a5101b7a6d150b8834c7557f3ab99ccc", "score": "0.412472", "text": "public final void mT__19() throws RecognitionException {\n try {\n int _type = T__19;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDom.g:13:7: ( 'alias' )\n // InternalDom.g:13:9: 'alias'\n {\n match(\"alias\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "88f049c563c1d5f4cae61ef06a1a0f30", "score": "0.40930337", "text": "public boolean isComponentStale(Appender<E> appender) {\n return !appender.isStarted();\n }", "title": "" }, { "docid": "29635bae4259f4befd4f7680bcf22a05", "score": "0.40839767", "text": "public boolean match(String alias) {\r\n\tfor (String a : aliases) {\r\n\t if (a.equalsIgnoreCase(alias)) {\r\n\t\treturn true;\r\n\t }\r\n\t}\r\n\treturn false;\r\n }", "title": "" }, { "docid": "91a91c5df34778919f7af3743bf8a27e", "score": "0.40710092", "text": "public boolean isInterfaceAliasInNescComponentWiring(ProjectUtil util, IProgressMonitor monitor){\n\t\treturn getDefinitionOfInterfaceAliasInNescComponentWiring(util, monitor)!=null;\n\t}", "title": "" }, { "docid": "9e43eabe82d04fc38a008fa445f49934", "score": "0.40646708", "text": "public void setAlias(ArrayList<String> alias) {\n\t\tthis.alias = alias;\n\t}", "title": "" }, { "docid": "33be9b42317eaf96786e76061f02104a", "score": "0.40603355", "text": "@Test\n void shouldBePossibleToDestroyMockAppender() {\n LoggingMockUtil.createMockedLogAppender(ClassWithLogger.class);\n\n LoggingMockUtil.destroyMockedAppender(ClassWithLogger.class);\n\n Appender destroyedAppender = LoggingMockUtil.getLogger(ClassWithLogger.class)\n .getAppenders().get(\"mockAppender\");\n assertThat(destroyedAppender)\n .isNull();\n }", "title": "" }, { "docid": "4d08a616b99902641d3804734caf7558", "score": "0.40508518", "text": "public String getAlias(String player) {\n try {\r\n String sql = String.format(\"SELECT MainPlayer FROM %s.%s WHERE Alias = '%s';\",\r\n database_name, table_name, player);\r\n ResultSet r = stmt.executeQuery(sql);\r\n if (r.next()) {\r\n // Found alias: return real name\r\n return r.getString(1);\r\n }\r\n else {\r\n // No alias: new name\r\n return \"\";\r\n }\r\n // Error catch\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n return \"\";\r\n }", "title": "" }, { "docid": "04919df850e9c6f805fbee386755f943", "score": "0.40502566", "text": "@Test\n public void shouldBePossibleToDestroyMockAppender() throws NoSuchFieldException, IllegalAccessException {\n Appender appender = LoggingMockUtil.createMockedLogAppender(ClassWithLogger.class);\n\n LoggingMockUtil.destroyMockedAppender(appender, ClassWithLogger.class);\n\n Appender destroyedAppender = LoggingMockUtil.getLogger(ClassWithLogger.class).getAppender(\"mockAppender\");\n assertThat(destroyedAppender).isNull();\n }", "title": "" }, { "docid": "2b1b0b3ba74ebba3129cf30e69ef2a78", "score": "0.40483353", "text": "private void setAlias(String aliasName) {\n dataName = aliasName;\n }", "title": "" }, { "docid": "611c8a4abafe48c30c20faeb610c1678", "score": "0.40324834", "text": "synchronized String getShortAdaptorClassName() {\n return adaptorClass.getSimpleName();\n }", "title": "" }, { "docid": "383b4e8628e6e6d3d350bdad406a0aeb", "score": "0.4021451", "text": "private Formatter createFormatter(String appenderName, Properties properties) {\n\t\tFormatter formatter = null;\n\t\t\n\t\tStringBuilder formatterKey = new StringBuilder(64);\n\t\tformatterKey.append(APPENDER_PREFIX_KEY);\n\t\tformatterKey.append(PREFIX_SEPARATOR);\n\t\tformatterKey.append(appenderName);\n\t\tformatterKey.append(PROPERTY_SEPARATOR);\n\t\tformatterKey.append(FORMATTER_PROPERTY);\n\t\tString formatterClassName = properties.getProperty(formatterKey.toString());\n\t\t\n\t\tif (formatterClassName == null) {\n\t\t\tLog.e(TAG, \"No formatter class defined\");\n\t\t} else {\n\t\t\tformatterClassName = checkForAliasFormatter(formatterClassName);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tClass<?> formatterClass = Class.forName(formatterClassName);\n\t\t\t\tformatter = (Formatter) formatterClass.newInstance();\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tLog.e(TAG, \"Could not find formatter class \" + appenderName);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tLog.e(TAG, \"Could not instantiate formatter class \" + appenderName);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tLog.e(TAG, \"Not allowed to create formatter class \" + appenderName);\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn formatter;\n\t}", "title": "" }, { "docid": "038591653767b22d0109b305616febdc", "score": "0.40089944", "text": "public boolean isAdapterForType(Object type) {\n\t\t\treturn type == ZDLPropertyMappingAdapter.class;\r\n\t\t}", "title": "" }, { "docid": "f71306adad5600158085786273ff3623", "score": "0.40037087", "text": "public String getEntityTypeName() { return \"org.docksidestage.postgresql.dbflute.exentity.customize.VendorUnsupportedAlias\"; }", "title": "" }, { "docid": "7b63906d6d06aae357efcca308634a27", "score": "0.400055", "text": "@Override\n public final boolean instanceOf(String joinpointClass) {\n boolean isInstance = get_class().equals(joinpointClass);\n if(isInstance) {\n \treturn true;\n }\n return this.aType.instanceOf(joinpointClass);\n }", "title": "" }, { "docid": "c6d6f3c64e8a7774b55ca4d34bc013b1", "score": "0.39869538", "text": "@Test\n\tpublic void testMongoAppender() {\n\t\t\n\t\tAppender appender = new MongoAppender();\n\t\tappender.write(\"teststt\");\n\t}", "title": "" }, { "docid": "b646ddd2185b0b8fe176c2e74373a3e9", "score": "0.39814833", "text": "@Override\r\n public String toString() {\r\n\treturn this.aliases[0];\r\n }", "title": "" }, { "docid": "2c898e89ce34c2be985c82130e9d6062", "score": "0.39776587", "text": "String getAdaptorName() {\n return adaptorClass.getName();\n }", "title": "" }, { "docid": "bb7aed86f245659eff7a2073d3b95b4e", "score": "0.39753315", "text": "public String getDiscriminatorAlias(String suffix) {\n \t\treturn entityMetamodel.hasSubclasses() ?\n \t\t\t\tnew Alias( suffix ).toAliasString( getDiscriminatorAlias() ) :\n \t\t\t\tnull;\n \t}", "title": "" }, { "docid": "ae6db274238d2d6218e8756f9986cbbb", "score": "0.39671192", "text": "public String getAliasBase() {\n return aliasBase;\n }", "title": "" }, { "docid": "9c64c0ed2c6620ee5c9d985ac42e0761", "score": "0.3955115", "text": "private String getFullyQualifiedTypeName(ASTClassOrInterfaceDeclaration node) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6746326b33f01cd9005724affcbfee7f", "score": "0.39538983", "text": "boolean hasCompatMappingToolName();", "title": "" }, { "docid": "6484064434b1a3d84ac4920880d10946", "score": "0.39442253", "text": "public static Schema applyAliases(Schema writer, Schema reader) {\n if (writer.equals(reader))\n return writer; // same schema\n\n // create indexes of names\n Map<Schema, Schema> seen = new IdentityHashMap<>(1);\n Map<Name, Name> aliases = new HashMap<>(1);\n Map<Name, Map<String, String>> fieldAliases = new HashMap<>(1);\n getAliases(reader, seen, aliases, fieldAliases);\n\n if (aliases.size() == 0 && fieldAliases.size() == 0)\n return writer; // no aliases\n\n seen.clear();\n try {\n return applyAliases(writer, seen, aliases, fieldAliases);\n } catch (JSONException ex) {\n throw new IllegalArgumentException(ex);\n }\n }", "title": "" }, { "docid": "ba0cb0bcf2139b05b116322f3a0ef7f5", "score": "0.39348823", "text": "private String getORMMappingName()\r\n {\r\n String mappingName = nucleusContext.getConfiguration().getStringProperty(PropertyNames.PROPERTY_MAPPING);\r\n return (StringUtils.isWhitespace(mappingName) ? null : mappingName);\r\n }", "title": "" }, { "docid": "0a9fb8fcd405d1a20da482aec6c92bf0", "score": "0.39312756", "text": "public void setAntiAlias(boolean aliasing) {\n antiAlias = aliasing;\n }", "title": "" }, { "docid": "d6b4dda93038ffff18261327f7197410", "score": "0.3915754", "text": "public final String getAliasOfProvidedService(\r\n final String _providedServiceName) {\r\n return this.getAliasTableProvidedServices().getAlias(_providedServiceName);\r\n }", "title": "" }, { "docid": "3d7b8409f296eaa79a48931274f94163", "score": "0.391538", "text": "private String getTableAlias(String tableName) {\n\t\tfor (TableItem tableItem : action.getTableItems()) {\n\t\t\tif (tableItem.getTable() != null && tableItem.getTable().getName().equalsIgnoreCase(tableName)) {\n\t\t\t\treturn tableItem.getAlias();\n\t\t\t}\n\t\t}\n\t\tfor (JoinItem joinItem : action.getJoinItems()) {\n\t\t\tTableItem joinTableItem = joinItem.getJoinItems().get(0).getRightColumn().getTableItem();\n\t\t\tif (joinTableItem.getTable() != null && joinTableItem.getTable().getName().equalsIgnoreCase(tableName)) {\n\t\t\t\treturn joinTableItem.getAlias();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "57b74e6fc2ba6f532936f26fb9619846", "score": "0.3914045", "text": "public final void mT__18() throws RecognitionException {\n try {\n int _type = T__18;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/jgf/Documents/Projects/joana/wala/joana.wala.flowless/src/edu/kit/joana/wala/flowless/spec/FlowLess.g:47:7: ( 'alias' )\n // /Users/jgf/Documents/Projects/joana/wala/joana.wala.flowless/src/edu/kit/joana/wala/flowless/spec/FlowLess.g:47:9: 'alias'\n {\n match(\"alias\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "25769b3c09e141294107861cb8f434f5", "score": "0.39101404", "text": "@Override\n\tpublic String getCheckCastType() {\n\t\t\n\t\tString ret = null!=classDef? classDef.javaClassName() : \"Ljava/lang/Object;\";\n\t\t\n\t\tif(this.hasArrayLevels())\n\t\t{\n\t\t\tif(this.getIsRef()){\n\t\t\t\tret= \"com/concurnas/bootstrap/runtime/ref/LocalArray\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tStringBuilder prePendArLevels = new StringBuilder();\n\t\t\t\tfor(int n =0; n < this.arrayLevels; n++){\n\t\t\t\t\tprePendArLevels.append(\"[\");\n\t\t\t\t}\n\t\t\t\tprePendArLevels.append(ret);\n\t\t\t\tret = prePendArLevels.toString();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tret = ret.substring(1, ret.length() -1);\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "4ef0f8b261618a1c209c9f8827a0b464", "score": "0.39018992", "text": "public void processPriorToRemoval(Appender<E> appender) {\n appender.stop();\n }", "title": "" }, { "docid": "415c89f7b1654981dabbcf9982dca66e", "score": "0.3901256", "text": "public String getFullAlias() {\n if ( this.alias != null ) {\n final int pos = this.resourceId.indexOf(':');\n return this.resourceId.substring(0, pos + 1) + this.alias;\n }\n return null;\n }", "title": "" }, { "docid": "7faeed0d82caedbe7f212bf2dfb30fa3", "score": "0.38914457", "text": "public T caseAlias(Alias object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5854ffaf828c39e4e8063d31d8d3afd9", "score": "0.38831303", "text": "public static <APPENDER extends AbstractAppender<APPENDER>> Logme<APPENDER> getLogger(Class<?> clazz, Class<APPENDER> appenderClass) {\n Log4jPatternLayout.setMdcPatternConverter(new MDCPatternConverter());\n\n Logger logger = LoggerFactory.getLogger(clazz);\n APPENDER appender = getAppender(appenderClass);\n LogWriter logWriter = new LogWriter(logger);\n\n return new Logme<>(appender, logWriter);\n }", "title": "" }, { "docid": "dcc1ab1dc20221de94744e39ca68f490", "score": "0.38763106", "text": "XMPAliasInfo findAlias(String qname);", "title": "" }, { "docid": "27d1484f10a36209a529dfbb35e25666", "score": "0.387586", "text": "public void setAlias(String alias)\n\t{\n\t\t this.alias=alias;\n\n\t\t this.keyModified.put(\"alias\", 1);\n\n\t}", "title": "" }, { "docid": "b694fdd759f6f2747d31df8c4fbd2bea", "score": "0.38675046", "text": "public void setAlias(final String nAlias) {\r\n this.alias = nAlias;\r\n }", "title": "" }, { "docid": "eb3868fb6b136bc6cefa521a0232353a", "score": "0.38646182", "text": "public void setAliasBase(String aliasBase) {\n this.aliasBase = aliasBase;\n }", "title": "" } ]
79c6dabbc7aeaa0a751d4c32a629b054
Computes the progress monitor label.
[ { "docid": "08e7b52602ec836b0dcd8ece0b22b76b", "score": "0.68913907", "text": "@objid (\"69d77935-0723-4f8a-9091-6204de73246a\")\n protected String getProgressMonitorLabel(int currentCount, int entriesNumber) {\n StringBuffer s = new StringBuffer();\n \n if (this.progressPrefix != null && !this.progressPrefix.isEmpty()) {\n if (this.progressPrefix.length() > 80) {\n // append first 80 chars to leave room\n s.append(this.progressPrefix.substring(0, 80));\n s.append(\"...\");\n } else {\n s.append(this.progressPrefix);\n }\n s.append(\" \");\n }\n \n progressFormat.format(new Object[]{currentCount, entriesNumber}, s, null);\n return s.toString();\n }", "title": "" } ]
[ { "docid": "e43c4d1624a2f01c3ed773b2162c213f", "score": "0.6250897", "text": "void updateIterationsLabel()\r\n {\r\n int numberOfIterations = this.parentUIElement.getGameInstance().getNumberOfIterations();\r\n this.numberOfIterationsLabel.setText(\"\" + numberOfIterations);\r\n }", "title": "" }, { "docid": "eeae71f152427841db9b661613f13def", "score": "0.6244184", "text": "public String getProgressTitle() {\n return MessageUtil.INF_CONVERT_RUNNING;\n }", "title": "" }, { "docid": "77abffad29dd7e996192a983f8759f86", "score": "0.6167815", "text": "void setLabel(String label, IProgressMonitor monitor) throws RodinDBException;", "title": "" }, { "docid": "1f6597711bf73c70b84b0ff12c795eb0", "score": "0.61288047", "text": "private void updateProgress(String progressLabel, int progress) {\n if (myHost != null) {\n myHost.updateProgress(progressLabel, progress);\n } else {\n System.out.println(progressLabel + \" \" + progress + \"%\");\n }\n }", "title": "" }, { "docid": "62993a85dca3af5197ba2357787629e1", "score": "0.6040238", "text": "private static String calculateTimeLabel() {\n\t\tlong elapsedMillis = System.currentTimeMillis() - _startTime ;\n\t\treturn String.format(\"%02d:%02d:%02d\",\n\t\t\t\t(elapsedMillis / 60000), \t\t\t// Minutes\n\t\t\t\t((elapsedMillis % 60000) / 1000),\t// Seconds\n\t\t\t\t((elapsedMillis % 1000) / 10));\t\t// Milliseconds\n\t}", "title": "" }, { "docid": "b884e62a32d74e0dd250ff480c175919", "score": "0.5995941", "text": "String label();", "title": "" }, { "docid": "b884e62a32d74e0dd250ff480c175919", "score": "0.5995941", "text": "String label();", "title": "" }, { "docid": "b87aeaa97c35f128e92d440388db2210", "score": "0.5973208", "text": "String getProgressInfo();", "title": "" }, { "docid": "f6fce53f97030b3f78e7bbbedf9089d6", "score": "0.5971523", "text": "@Override\n protected void onProgressUpdate(Integer... values) {\n dashedCircularProgress.setValue(values[0]);\n tvProcess.setText(Integer.toString(values[0] - 1) + \"%\");\n }", "title": "" }, { "docid": "a883a850bdcbdf660bfe1b803ca38a98", "score": "0.5959156", "text": "@Override\n protected void onProgressUpdate(Integer... values) {\n dashedCircularProgress.setValue(values[0]);\n tvProcess.setText(Integer.toString(values[0]-1) + \"%\");\n }", "title": "" }, { "docid": "13ab6c7c57b28de3e6c7f974689d55b5", "score": "0.5935209", "text": "public static synchronized void showProgress(ProgressMonitor pMonitor) {\n if (pMonitor.isConsoleMode()) {\n int currentValue = pMonitor.getCurValue();\n if (currentValue % 100 == 0) {\n System.err.print(\".\");\n }\n \n // TODO: this writes progress every 1000 records, which can be far too much output; how about every 1%, or, even better, every s sec\n // where s is configurable?\n // TODO: build the solution into ProgressMonitor\n if (currentValue % 1000 == 0) {\n NumberFormat format = DecimalFormat.getPercentInstance();\n double percent = pMonitor.getPercentComplete();\n msg = new String(\"Percentage Complete: \"\n + format.format(percent));\n System.err.println(\"\\n\" + msg);\n Runtime rt = Runtime.getRuntime();\n long used = rt.totalMemory() - rt.freeMemory();\n System.err.println(\"Mem Allocated: \" + getMegabytes(rt.totalMemory())\n + \", Mem used: \" + getMegabytes(used) + \", Mem free: \"\n + getMegabytes(rt.freeMemory()));\n }\n if (currentValue == pMonitor.getMaxValue()) {\n System.err.println();\n }\n }\n }", "title": "" }, { "docid": "9c2e2ec24268d1121a580682b523b71f", "score": "0.5900855", "text": "private void syncProgress() {\n\n\t\t\tdouble val = _percentProp.doubleValue();\n\n\t\t\tif (val < 0) {\n\t\t\t\ttext.setText(ApplicationFormatter.pourcentFormat.format(0));\n\t\t\t\tbar.setProgress(0);\n\t\t\t} else {\n\t\t\t\ttext.setText(ApplicationFormatter.pourcentFormat.format(val));\n\t\t\t\tbar.setProgress(val);\n\t\t\t}\n\n\t\t\tString style;\n\n\t\t\tif (val < 0.25) {\n\t\t\t\tstyle = \"-fx-accent: red;\";\n\t\t\t} else {\n\t\t\t\tif (val < 0.5) {\n\t\t\t\t\tstyle = \"-fx-accent: orange;\";\n\t\t\t\t} else {\n\t\t\t\t\tif (val < 0.75) {\n\t\t\t\t\t\tstyle = \"-fx-accent: yellow;\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstyle = \"-fx-accent: #3AF24B;\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbar.setStyle(style);\n\n\t\t\tbar.setMinHeight(text.getBoundsInLocal().getHeight() + DEFAULT_LABEL_PADDING * 2);\n\t\t\tbar.setMinWidth(text.getBoundsInLocal().getWidth() + DEFAULT_LABEL_PADDING * 2);\n\t\t}", "title": "" }, { "docid": "ec6690dd6330d64990357a0d826f373a", "score": "0.5807096", "text": "private void updateHorizontalProgressText(int currentSyncCount) {\n\t\tif (getHorizontalProgressBarTextView() != null) {\n\t\t\tgetHorizontalProgressBarTextView().setText(Integer.valueOf(currentSyncCount).toString() + \"\\\\\" + getUnsyncedRecords().toString());\n\t\t}\n\t}", "title": "" }, { "docid": "a443317522f5acf6d3c332ee703212dd", "score": "0.576714", "text": "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tlabel1.setText(\"남은시간 : \"+(5-j)+\"초\");\r\n\t\t\t\t\t}", "title": "" }, { "docid": "c302d0d75dbc7cdbd1e5e047d274f131", "score": "0.5759489", "text": "private void updateVolumeLabel() {\n\t\tfloat volume = (game.getPreferencesManager().getVolume() * 100);\n\t\tvolumeValue.setText(String.format(Locale.US, \"%1.0f%%\", volume));\n\t}", "title": "" }, { "docid": "bd2cd02f6cc2684a0cefb9abe99a685a", "score": "0.57526034", "text": "private void updateLabel(){ scoreLabel.setText(\"Score: \"+getCurrScore()); }", "title": "" }, { "docid": "627763104c42bc7cf372e8039594cdbb", "score": "0.57331", "text": "private void updateLabel(String lab) {\r\n String str = \"Room:\" + lab;\r\n room_label.setText(str);\r\n }", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.56995285", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.56995285", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "bf133c1b6e5ecd4abcff1d3ea2b4f884", "score": "0.5694583", "text": "private void update(){\n frame.setTitle(title);\n label.setText(currentValue + \" of \" + max + \" \" + loadType);\n percent.setText(getPercent() + \"%\");\n progressBar.setValue(currentValue);\n }", "title": "" }, { "docid": "53c00ab26b44535627382b4562a86b47", "score": "0.56861377", "text": "private void updateVolumeLabel()\n {\n final float volume = ( game.getPreferencesManager().getVolume() * 100 );\n volumeValue.setText( String.format( Locale.US, \"%1.0f%%\", volume ) );\n }", "title": "" }, { "docid": "02cf7b57085dced3136a95a6a9d88b98", "score": "0.5669345", "text": "private JLabel getStatusLabel() {\n\t\tif (statusLabel == null) {\n\t\t\tstatusLabel = new JLabel();\n\t\t\tstatusLabel.setText(\"Status\");\n\t\t}\n\t\treturn statusLabel;\n\t}", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.56538135", "text": "String getLabel();", "title": "" }, { "docid": "cb73fb69821f25d02736e7db5d8ac03f", "score": "0.5653807", "text": "@Override\n \t\tpublic void statusUpdate(double progress, String status) {\n \t\t}", "title": "" }, { "docid": "70aaccbf8ba2ddeab9fa0f2788f8ffbc", "score": "0.5650962", "text": "public void SetJLabelResult() {\r\n for (int i = 0; i < queueLength; i++) {\r\n if (s.data[i]==-1)\r\n label[i].setText(\"空\");\r\n else\r\n label[i].setText(Integer.toString(s.data[i]));\r\n }\r\n }", "title": "" }, { "docid": "0b79480503290bbac4aceb871efc4b9b", "score": "0.5650575", "text": "Label getLabel();", "title": "" }, { "docid": "fe7b5d8077aee8c22387699400676f46", "score": "0.5637259", "text": "private void updateReportLabel(String report, JLabel label)\n\t{\t\n\t\tint metric;\n/*\t\t\n\t\tif (report == \"Property\")\n\t\t\tmetric = gameState.getPropertyReport();\n\t\telse if (report == \"Sales\")\n\t\t\tmetric = gameState.getSalesReport();\n\t\telse if (report == \"Business\")\n\t\t\tmetric = gameState.getBusinessReport();\n\t\telse if (report == \"Income\")\n\t\t\tmetric = gameState.getIncomeReport();\n\t\telse\n\t\t\treturn;\n\t\t\n\t\tlabel.setText(metric + \"%\");\n*/\n\t}", "title": "" }, { "docid": "eb264c885a3830976321985da96fa26c", "score": "0.5628186", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n title = new javax.swing.JLabel();\n progress = new javax.swing.JProgressBar();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n title.setText(\"jLabel1\");\n\n progress.setStringPainted(true);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(title)\n .add(0, 0, Short.MAX_VALUE))\n .add(progress, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(title)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(progress, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "80b2aa9dd7a83375a883e7054f5a0b53", "score": "0.5606775", "text": "@Override\n public String toString() {\n return currentWait.getLabel();\n }", "title": "" }, { "docid": "dffbbf062f94bea86486105243528fa9", "score": "0.56054884", "text": "protected void paintText(SynthContext paramSynthContext, Graphics paramGraphics, String paramString) {\n/* 334 */ if (this.progressBar.isStringPainted()) {\n/* 335 */ SynthStyle synthStyle = paramSynthContext.getStyle();\n/* 336 */ Font font = synthStyle.getFont(paramSynthContext);\n/* 337 */ FontMetrics fontMetrics = SwingUtilities2.getFontMetrics(this.progressBar, paramGraphics, font);\n/* */ \n/* */ \n/* 340 */ int i = synthStyle.getGraphicsUtils(paramSynthContext).computeStringWidth(paramSynthContext, font, fontMetrics, paramString);\n/* 341 */ Rectangle rectangle = this.progressBar.getBounds();\n/* */ \n/* 343 */ if (this.rotateText && this.progressBar\n/* 344 */ .getOrientation() == 1) {\n/* 345 */ Point point; AffineTransform affineTransform; Graphics2D graphics2D = (Graphics2D)paramGraphics;\n/* */ \n/* */ \n/* */ \n/* 349 */ if (this.progressBar.getComponentOrientation().isLeftToRight()) {\n/* 350 */ affineTransform = AffineTransform.getRotateInstance(-1.5707963267948966D);\n/* */ \n/* 352 */ point = new Point((rectangle.width + fontMetrics.getAscent() - fontMetrics.getDescent()) / 2, (rectangle.height + i) / 2);\n/* */ } else {\n/* */ \n/* 355 */ affineTransform = AffineTransform.getRotateInstance(1.5707963267948966D);\n/* */ \n/* 357 */ point = new Point((rectangle.width - fontMetrics.getAscent() + fontMetrics.getDescent()) / 2, (rectangle.height - i) / 2);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 362 */ if (point.x < 0) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 367 */ font = font.deriveFont(affineTransform);\n/* 368 */ graphics2D.setFont(font);\n/* 369 */ graphics2D.setColor(synthStyle.getColor(paramSynthContext, ColorType.TEXT_FOREGROUND));\n/* 370 */ synthStyle.getGraphicsUtils(paramSynthContext).paintText(paramSynthContext, paramGraphics, paramString, point.x, point.y, -1);\n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* 377 */ Rectangle rectangle1 = new Rectangle(rectangle.width / 2 - i / 2, (rectangle.height - fontMetrics.getAscent() + fontMetrics.getDescent()) / 2, 0, 0);\n/* */ \n/* */ \n/* */ \n/* 381 */ if (rectangle1.y < 0) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 386 */ paramGraphics.setColor(synthStyle.getColor(paramSynthContext, ColorType.TEXT_FOREGROUND));\n/* 387 */ paramGraphics.setFont(font);\n/* 388 */ synthStyle.getGraphicsUtils(paramSynthContext).paintText(paramSynthContext, paramGraphics, paramString, rectangle1.x, rectangle1.y, -1);\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "b7bfe0e064564e9b56c8fe6e8c056a99", "score": "0.55842406", "text": "int getProgress();", "title": "" }, { "docid": "b7bfe0e064564e9b56c8fe6e8c056a99", "score": "0.55842406", "text": "int getProgress();", "title": "" }, { "docid": "0554b130dc1a58dcac7f13d39d7c2ad5", "score": "0.5577543", "text": "public abstract void updateLabel();", "title": "" }, { "docid": "5cc63a7b950277f963d33891742e1bf4", "score": "0.55749965", "text": "public String getLabel()\r\n/* 26: */ {\r\n/* 27:80 */ return this.label;\r\n/* 28: */ }", "title": "" }, { "docid": "ccd0c0308055e87b05096921553c8ee5", "score": "0.5571099", "text": "private void initComponents() {\n\n jLCaption = new javax.swing.JLabel();\n jLVersion = new javax.swing.JLabel();\n jpg_Progress = new javax.swing.JProgressBar();\n jLStep = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Platypus Platform update\");\n setLocationByPlatform(true);\n setName(\"fr_Progress\"); // NOI18N\n\n jLCaption.setFont(new java.awt.Font(\"Tahoma\", 1, 16)); // NOI18N\n jLCaption.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLCaption.setName(\"jl_Caption\"); // NOI18N\n\n jLVersion.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLVersion.setName(\"jl_Ver\"); // NOI18N\n\n jpg_Progress.setStringPainted(true);\n\n jLStep.setDoubleBuffered(true);\n jLStep.setFocusable(false);\n jLStep.setInheritsPopupMenu(false);\n jLStep.setName(\"jl_Step\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpg_Progress, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLCaption, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)\n .addComponent(jLVersion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLStep, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 354, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLCaption, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLVersion, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jpg_Progress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLStep, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29))\n );\n\n setSize(new java.awt.Dimension(419, 130));\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "63b7f42a6b00d3f2cfd2659922dff454", "score": "0.5565794", "text": "int getLabel();", "title": "" }, { "docid": "f2c57977d01ebec1214bb1d369ed79d0", "score": "0.55528975", "text": "public void progress() {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"*\");\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "2388bb7d560e9ddf7fc401bfdd675685", "score": "0.5549255", "text": "public void updateProgressIndication( Status status);", "title": "" }, { "docid": "e386d24ee95fea8b1990f53a542c2a6f", "score": "0.55490094", "text": "label createlabel();", "title": "" }, { "docid": "a4f7c25b3ec244365afece5d06cc5545", "score": "0.55353725", "text": "float getProgress();", "title": "" }, { "docid": "53e4cb4400d9661c34ba16538dda6cf3", "score": "0.55263686", "text": "ILabel getLabel();", "title": "" }, { "docid": "6e6f6a343d23426b14eb4952390435e5", "score": "0.55242896", "text": "public String getLabel() {\n/* 72 */ return this.label;\n/* */ }", "title": "" }, { "docid": "8735c948399b534926505bfb2b4ef7b4", "score": "0.55216545", "text": "public String getLabel() {\r\n \t\tdelayedResolve();\r\n \t\tif (localizedLabel != null)\r\n \t\t\treturn localizedLabel;\r\n \t\telse\r\n \t\t\treturn label;\r\n \t}", "title": "" }, { "docid": "d27d80ebc8fecdbab8e7f3c6d912bf7e", "score": "0.5496482", "text": "void updateCalculationProgress(int percent);", "title": "" }, { "docid": "5ae519a7cb1fc3ff22cfc15138910d57", "score": "0.54939437", "text": "@Override\n\tprotected void updateLabel(){\n\t\t\n\t}", "title": "" }, { "docid": "30f7ea47c1f0458e375045a469d4c0c7", "score": "0.5493256", "text": "protected void paint(SynthContext paramSynthContext, Graphics paramGraphics) {\n/* 247 */ JProgressBar jProgressBar = (JProgressBar)paramSynthContext.getComponent();\n/* 248 */ int i = 0, j = 0, k = 0, m = 0;\n/* 249 */ if (!jProgressBar.isIndeterminate()) {\n/* 250 */ Insets insets = jProgressBar.getInsets();\n/* 251 */ double d = jProgressBar.getPercentComplete();\n/* 252 */ if (d != 0.0D) {\n/* 253 */ if (jProgressBar.getOrientation() == 0) {\n/* 254 */ i = insets.left + this.progressPadding;\n/* 255 */ j = insets.top + this.progressPadding;\n/* 256 */ k = (int)(d * (jProgressBar.getWidth() - insets.left + this.progressPadding + insets.right + this.progressPadding));\n/* */ \n/* */ \n/* 259 */ m = jProgressBar.getHeight() - insets.top + this.progressPadding + insets.bottom + this.progressPadding;\n/* */ \n/* */ \n/* */ \n/* 263 */ if (!SynthLookAndFeel.isLeftToRight(jProgressBar)) {\n/* 264 */ i = jProgressBar.getWidth() - insets.right - k - this.progressPadding - this.glowWidth;\n/* */ }\n/* */ } else {\n/* */ \n/* 268 */ i = insets.left + this.progressPadding;\n/* 269 */ k = jProgressBar.getWidth() - insets.left + this.progressPadding + insets.right + this.progressPadding;\n/* */ \n/* */ \n/* 272 */ m = (int)(d * (jProgressBar.getHeight() - insets.top + this.progressPadding + insets.bottom + this.progressPadding));\n/* */ \n/* */ \n/* 275 */ j = jProgressBar.getHeight() - insets.bottom - m - this.progressPadding;\n/* */ \n/* */ \n/* 278 */ if (SynthLookAndFeel.isLeftToRight(jProgressBar)) {\n/* 279 */ j -= this.glowWidth;\n/* */ }\n/* */ } \n/* */ }\n/* */ } else {\n/* 284 */ this.boxRect = getBox(this.boxRect);\n/* 285 */ i = this.boxRect.x + this.progressPadding;\n/* 286 */ j = this.boxRect.y + this.progressPadding;\n/* 287 */ k = this.boxRect.width - this.progressPadding - this.progressPadding;\n/* 288 */ m = this.boxRect.height - this.progressPadding - this.progressPadding;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 294 */ if (this.tileWhenIndeterminate && jProgressBar.isIndeterminate()) {\n/* 295 */ double d = getAnimationIndex() / getFrameCount();\n/* 296 */ int n = (int)(d * this.tileWidth);\n/* 297 */ Shape shape = paramGraphics.getClip();\n/* 298 */ paramGraphics.clipRect(i, j, k, m);\n/* 299 */ if (jProgressBar.getOrientation() == 0) {\n/* */ int i1;\n/* 301 */ for (i1 = i - this.tileWidth + n; i1 <= k; i1 += this.tileWidth) {\n/* 302 */ paramSynthContext.getPainter().paintProgressBarForeground(paramSynthContext, paramGraphics, i1, j, this.tileWidth, m, jProgressBar\n/* 303 */ .getOrientation());\n/* */ }\n/* */ } else {\n/* */ int i1;\n/* 307 */ for (i1 = j - n; i1 < m + this.tileWidth; i1 += this.tileWidth) {\n/* 308 */ paramSynthContext.getPainter().paintProgressBarForeground(paramSynthContext, paramGraphics, i, i1, k, this.tileWidth, jProgressBar\n/* 309 */ .getOrientation());\n/* */ }\n/* */ } \n/* 312 */ paramGraphics.setClip(shape);\n/* */ }\n/* 314 */ else if (this.minBarSize == null || (k >= this.minBarSize.width && m >= this.minBarSize.height)) {\n/* */ \n/* 316 */ paramSynthContext.getPainter().paintProgressBarForeground(paramSynthContext, paramGraphics, i, j, k, m, jProgressBar\n/* 317 */ .getOrientation());\n/* */ } \n/* */ \n/* */ \n/* 321 */ if (jProgressBar.isStringPainted()) {\n/* 322 */ paintText(paramSynthContext, paramGraphics, jProgressBar.getString());\n/* */ }\n/* */ }", "title": "" }, { "docid": "9b46218043f845887a87099b341796f4", "score": "0.5491024", "text": "void showProgress(int processCode);", "title": "" }, { "docid": "9b7eb58a3ae1804dd11456923257de3b", "score": "0.54751164", "text": "public double getLabel() {\r\n return myLabel;\r\n }", "title": "" }, { "docid": "85b6a2a7202e2a19f3f037bba5f2ca7d", "score": "0.54700506", "text": "public void processProgress() {\n\tThread t = new Thread(this);\n\tt.start();\n\t//System.out.println(\" I am firing an event here\");\n\t//firePropertyChange(\"percentCompleted\",new Integer(101),new Integer(percentCompleted));\n\t\n\t}", "title": "" }, { "docid": "a27a0fb68eca00ca6023c78d5bf56e7f", "score": "0.5468188", "text": "private void bindPlayerToLabel()\n {\n labelcount.textProperty().bind(\n new StringBinding()\n {\n {\n super.bind(player.currentTimeProperty());\n }\n @Override\n protected String computeValue()\n {\n String form = String.format(\"%d:%d\",\n TimeUnit.MILLISECONDS.toMinutes((long) player.getCurrentTime().toMillis()),\n TimeUnit.MILLISECONDS.toSeconds((long) player.getCurrentTime().toMillis()) - \n TimeUnit.MINUTES.toSeconds(\n TimeUnit.MILLISECONDS.toMinutes(\n (long)player.getCurrentTime().toMillis()\n )\n )\n );\n return form;\n }\n }\n );\n \n }", "title": "" }, { "docid": "b004a865e002b2c8242120543f9566a9", "score": "0.54660314", "text": "public void incrementProgress (){}", "title": "" }, { "docid": "44522510e8680eecfd3b48600d4ce2d3", "score": "0.54497695", "text": "@Override\n public void timeLabelRefresh() {\n if (timeLbl != null || !timeLbl.isDisposed()) {\n if (secCount < 120) {\n timeLbl.setText(secCount + \" sec.\");\n } else {\n timeLbl.setText((int) (secCount / 60) + 1 + \" min.\");\n }\n timeLbl.pack();\n }\n }", "title": "" }, { "docid": "eea455ac0d6679abcd2367fed7dfca29", "score": "0.5434164", "text": "public void updateStatus() {\n piecesLabel.setText(\"Red pieces left: \" + redCheckersLeft + \" Black pieces left: \" + blackCheckersLeft);\n }", "title": "" }, { "docid": "529e37c0a5856280180af68142ca3c18", "score": "0.5430725", "text": "private void updateStatus (\n) {\n\tfinal Point p = ph.getPoint();\n\tif (p == null) {\n\t\tIJ.showStatus(\"\");\n\t\treturn;\n\t}\n\tfinal int x = p.x;\n\tfinal int y = p.y;\n\tIJ.showStatus(display.getLocationAsString(x, y) + getValueAsString(x, y));\n}", "title": "" }, { "docid": "1974236091d8c48a9e461d2e6b1998f2", "score": "0.5427703", "text": "public float runtimeProgress();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.5425186", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.5425186", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.5425186", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.5425186", "text": "public String getLabel();", "title": "" }, { "docid": "339549e60942ad7700566998b6801bc4", "score": "0.5420695", "text": "public JLabel getTextLabel();", "title": "" }, { "docid": "e8ed2b3bfc8db980bbb832a6bba962f5", "score": "0.54203546", "text": "public Dimension getPreferredSize(JComponent paramJComponent) {\n/* 420 */ Dimension dimension = null;\n/* 421 */ Insets insets = this.progressBar.getInsets();\n/* 422 */ FontMetrics fontMetrics = this.progressBar.getFontMetrics(this.progressBar.getFont());\n/* 423 */ String str1 = this.progressBar.getString();\n/* 424 */ int i = fontMetrics.getHeight() + fontMetrics.getDescent();\n/* */ \n/* 426 */ if (this.progressBar.getOrientation() == 0) {\n/* 427 */ dimension = new Dimension(getPreferredInnerHorizontal());\n/* 428 */ if (this.progressBar.isStringPainted()) {\n/* */ \n/* 430 */ if (i > dimension.height) {\n/* 431 */ dimension.height = i;\n/* */ }\n/* */ \n/* */ \n/* 435 */ int j = SwingUtilities2.stringWidth(this.progressBar, fontMetrics, str1);\n/* */ \n/* 437 */ if (j > dimension.width) {\n/* 438 */ dimension.width = j;\n/* */ }\n/* */ } \n/* */ } else {\n/* 442 */ dimension = new Dimension(getPreferredInnerVertical());\n/* 443 */ if (this.progressBar.isStringPainted()) {\n/* */ \n/* 445 */ if (i > dimension.width) {\n/* 446 */ dimension.width = i;\n/* */ }\n/* */ \n/* */ \n/* 450 */ int j = SwingUtilities2.stringWidth(this.progressBar, fontMetrics, str1);\n/* */ \n/* 452 */ if (j > dimension.height) {\n/* 453 */ dimension.height = j;\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 461 */ String str2 = (String)this.progressBar.getClientProperty(\"JComponent.sizeVariant\");\n/* */ \n/* 463 */ if (str2 != null) {\n/* 464 */ if (\"large\".equals(str2)) {\n/* 465 */ dimension.width = (int)(dimension.width * 1.15F);\n/* 466 */ dimension.height = (int)(dimension.height * 1.15F);\n/* 467 */ } else if (\"small\".equals(str2)) {\n/* 468 */ dimension.width = (int)(dimension.width * 0.9F);\n/* 469 */ dimension.height = (int)(dimension.height * 0.9F);\n/* 470 */ } else if (\"mini\".equals(str2)) {\n/* 471 */ dimension.width = (int)(dimension.width * 0.784F);\n/* 472 */ dimension.height = (int)(dimension.height * 0.784F);\n/* */ } \n/* */ }\n/* */ \n/* 476 */ dimension.width += insets.left + insets.right;\n/* 477 */ dimension.height += insets.top + insets.bottom;\n/* */ \n/* 479 */ return dimension;\n/* */ }", "title": "" }, { "docid": "efbda654a05067717da29c470135edbd", "score": "0.53825116", "text": "private void updateProgressBar() {\n int workProgress = 0;\n if (mission != null) {\n ConstructionStage stage = mission.getConstructionStage();\n if (stage != null) {\n double completedWork = stage.getCompletedWorkTime();\n double requiredWork = stage.getRequiredWorkTime();\n if (requiredWork > 0D) {\n workProgress = (int) (100D * completedWork / requiredWork);\n }\n }\n }\n progressBarModel.setValue(workProgress);\n }", "title": "" }, { "docid": "8cfd1364ffc0877df66d93d0074e76e0", "score": "0.5382089", "text": "@Override\r\n\tpublic void updateLabel(int inte) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tgui.setBufferValue(inte);\r\n\t}", "title": "" }, { "docid": "70087dde7267b8459b90997b15ca361a", "score": "0.538164", "text": "public void setSpeedLabel(){\n\n this.currentSliderSpeedLabel.setText(Integer.toString(this.speedSlider.getValue()));\n }", "title": "" }, { "docid": "9a87ddc4d0c3ad41676f032950592107", "score": "0.5380411", "text": "public void updateProgress(){\r\n numRolls++;\r\n primos += 160;\r\n }", "title": "" }, { "docid": "b3897ff738092dd65caad5f05486fe90", "score": "0.53776735", "text": "public JLabel getLabel(){\r\n\t\treturn label;\r\n\t}", "title": "" }, { "docid": "0929259b4cf918a28b0318b6854b5aed", "score": "0.5354859", "text": "protected JLabel getStatusLbl() {\n\t\tif (null == fStatusLbl)\n\t\t\tfStatusLbl = new JLabel();\n\n\t\treturn fStatusLbl;\n\t}", "title": "" }, { "docid": "b9904c856eec148acb7a316c04d80da8", "score": "0.5353399", "text": "public String getLabel(Value res);", "title": "" }, { "docid": "04f3972140ec0e8ec30a96c1f3a35b11", "score": "0.5353118", "text": "public void run() {\n\t\t\t\t\t\tprog.incrementProgressBy(10);\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8798ed558b860e07087f3e6380dd012a", "score": "0.5349471", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n progressBar = new javax.swing.JProgressBar();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 0)));\n jPanel1.setForeground(new java.awt.Color(255, 0, 0));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 153, 153));\n jLabel1.setText(\"Vă rugăm aşteptaţi...\");\n\n progressBar.setStringPainted(true);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 153, 153));\n jLabel2.setText(\"#Raport EDXRF 1.2 \");\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/loading.gif\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(66, 66, 66)\n .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(117, 117, 117))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(84, 84, 84))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(58, 58, 58)\n .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(31, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "7797131cc294db471e204e3aa32b7388", "score": "0.53444225", "text": "private String getTextFromProgress(int progress) {\n\t\t// Get the calculated value and convert it to string\n\t\tString text = String.valueOf(getValueFromProgress(progress));\n\n\t\t// If a postfix symbol has been provided, then append to the string\n\t\tif (_postfixSymbol != null)\n\t\t\ttext = text.concat(_postfixSymbol);\n\n\t\t// Return the string value\n\t\treturn text;\n\t}", "title": "" }, { "docid": "b12b57219cede42981ace07db3eac2a3", "score": "0.533691", "text": "private void setProgress(final int percent, final String message) {\n if (!SwingUtilities.isEventDispatchThread()) {\n try {\n SwingUtilities.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n setProgress(percent, message);\n }\n });\n }\n catch (InterruptedException | InvocationTargetException exc) {\n LOG.warn(\"Unexpected exception\", exc);\n }\n return;\n }\n labelMessage.setText(message);\n progressBar.setValue(percent);\n update(getGraphics());\n toFront();\n }", "title": "" }, { "docid": "ddf091d2f9d1e22acc56a1944f70bf8f", "score": "0.53360826", "text": "void refreshLabel() {\n this.imageLabel.setBounds(10, 11, frame.getWidth() - 37,\n frame.getHeight() - 80);\n drawlines(); // added 3/13/2013\n drawArc(this.radius);\n ImageUtil.fitImage(this.imageLabel, this.image);\n }", "title": "" }, { "docid": "31fa1f05dd04f1cba1bf6b75ca386f3c", "score": "0.53340787", "text": "private void setTotalClaimedPercentageLabel() {\r\n double percentage = 0;\r\n for (Double i : claimedPercentages) {\r\n percentage += i;\r\n }\r\n totalClaimedPercentageLabel.setText(\"Claimed: \" + Math.round(percentage)\r\n + \"% of \" + GameController.getInstance()\r\n .getLevelHandler().getLevel().getPercentage() + \"%\"\r\n );\r\n }", "title": "" }, { "docid": "96818babae835c66bc95cc28ef492224", "score": "0.533024", "text": "private void stepCounterText() {\n stepCounterText.setText(\"Step counter: \" + Integer.toString(textUI.getGame().getPlayer().getStepCount()));\n }", "title": "" }, { "docid": "1af2a86544fb8bed7da8805cfa043e8f", "score": "0.53222483", "text": "protected void showProgress(String word) {\n }", "title": "" }, { "docid": "8c8a1218b58c5b508331011ef8ca3a20", "score": "0.5321418", "text": "public Progress(){\n progressBar = new JProgressBar(currentValue, max);\n label = new JLabel(\"\");\n percent = new JLabel(\"\");\n JPanel panel = new JPanel(new GridLayout(3, 1));\n \n panel.add(progressBar);\n panel.add(label);\n panel.add(percent);\n \n frame = new JFrame();\n frame.getContentPane().add(panel, SwingConstants.CENTER);\n frame.pack();\n \n update();\n }", "title": "" }, { "docid": "9c75a2c8ae236cef1bfd54e6dc4a821a", "score": "0.53139925", "text": "@Override\n protected void onProgressUpdate(String... values) {\n super.onProgressUpdate(values);\n t.setText(\"sleeping\" +values[0] );\n }", "title": "" }, { "docid": "7a12bc96b2389807585605887569eb43", "score": "0.5312372", "text": "public String getLabel() {\r\n return label.getText().toString();\r\n }", "title": "" }, { "docid": "dafc71fbe90cbc61fd419495c2649fae", "score": "0.5302931", "text": "public void updateProgressBar(int newValue) {\n\n\t\tprogressBar.setStringPainted(true);\n\t\tprogressBar.setValue(newValue);\n\t\tprogressBar.setString(\"Loading Calculator. Please wait... \" + newValue + \"%\");\n\t}", "title": "" }, { "docid": "1894c3cfdc25c6a21f717ba035d19397", "score": "0.5302493", "text": "private void updateProgress(String strMessage) {\n if (StringUtils.hasValue(strMessage)) {\n if (progressMonitor != null) {\n progressMonitor.setCurrent(strMessage,\n progressMonitor.getCurrent());\n }\n }\n }", "title": "" }, { "docid": "dcf47541469c2d879ddb64882d42ec9e", "score": "0.53006786", "text": "public void updateMatcherProgress(Double percentComplete, String status);", "title": "" }, { "docid": "832a5d1575161a76e7b0e3de5e86b83b", "score": "0.52982473", "text": "public String getLabel() {\r\n \t\treturn label;\r\n \t}", "title": "" }, { "docid": "3fec5f14ab542d3fbfd7206bae1b1c5d", "score": "0.52914023", "text": "public void run() {\n \t\t\t\t\t\t\t\tIJ.showProgress(progressValues[numFinished]);\n \t\t\t\t\t\t\t}", "title": "" }, { "docid": "a91e61bf6c9c49af26e696818c4b8a85", "score": "0.52878094", "text": "public void currentProgress(long cur, long whole) throws InterruptedException;", "title": "" }, { "docid": "783ac29cad3abab3bb658eabb93f2895", "score": "0.52863944", "text": "@Override\n\tpublic String getLabel()\n\t{\n\t\treturn label;\n\t}", "title": "" }, { "docid": "5b2e2e40e30495685ddb8fb882a372a5", "score": "0.5284944", "text": "@Override\n\tpublic String getLabel() {\n\t\treturn label;\n\t}", "title": "" }, { "docid": "7412f4d04a59e3e7fcd17750fc941ae9", "score": "0.52782196", "text": "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t t.setText(\"\" + progress + \"%\");\n\t\t\t}", "title": "" }, { "docid": "30d3189f89fe735baa097bffe2b63f2a", "score": "0.52768123", "text": "public abstract double getProgress();", "title": "" }, { "docid": "30d3189f89fe735baa097bffe2b63f2a", "score": "0.52768123", "text": "public abstract double getProgress();", "title": "" }, { "docid": "976a1b57aa7cb27e7ac462ac593bc06a", "score": "0.52766824", "text": "public static void setLabelFinish() {\n\t\tif(_timerLabel != null) {\n\t\t\t_timerLabel.setTextFill(Paint.valueOf(\"#00e500\"));\n\t\t} else {\n\t\t\t_fillGreen = true;\n\t\t}\n\t}", "title": "" }, { "docid": "4ed9fb0a323020626a82dec2eb4fce6c", "score": "0.5276339", "text": "private String getDisplayString(float percentComplete, float positionValue) {\n if (mLabel.contains(\"%%\")) {\n // We found a percentage symbol so we insert a percentage\n return String.format(mLabel, percentComplete * 100f);\n } else if (mLabel.contains(\"%\")) {\n return String.format(mLabel, positionValue);\n }\n // Static label\n return mLabel;\n }", "title": "" } ]
98cce4eb844afaef6eafcd1c6589c7c4
Generates a key for key based encoding and decoding.
[ { "docid": "9ef7579ed2f88178b79e29a3fe1c6577", "score": "0.0", "text": "public StringBuilder generateNewKey(int length) {\n\t\tStringBuilder k = new StringBuilder();\n\t\tif (length < 64) {\n\t\t\tlength = 64;\n\t\t}\n\t\tint pv = -1;\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint v = pv;\n\t\t\twhile (v == pv) {\n\t\t\t\tv = ZRandomize.getRandomInt(0,99999999);\n\t\t\t}\n\t\t\tk.append(v);\n\t\t\tif (k.length()>=length) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k.length()>length) {\n\t\t\tk.delete(length,k.length());\n\t\t}\n\t\treturn k;\n\t}", "title": "" } ]
[ { "docid": "e2ce54d52e7f017347739bc1b5c89da4", "score": "0.74067855", "text": "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "title": "" }, { "docid": "d695189d9f859558214b1db79c9e7148", "score": "0.7069487", "text": "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "title": "" }, { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.681614", "text": "String key();", "title": "" }, { "docid": "77be166ae7c14b34ef97f06a1101c6bd", "score": "0.6796349", "text": "byte[] getKey();", "title": "" }, { "docid": "b6ae5824d85b8aaec1a3c99799c653e7", "score": "0.67302406", "text": "public String generateKey(long duration) throws Exception;", "title": "" }, { "docid": "8509ffef7a185eb77ebf35d472066017", "score": "0.6706327", "text": "private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }", "title": "" }, { "docid": "afd8aabc382b82688289a75d8156144d", "score": "0.6696186", "text": "String newKey();", "title": "" }, { "docid": "279b192bdf652378594220e3b6021273", "score": "0.6590796", "text": "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "title": "" }, { "docid": "bf1e48fbe1d6937d60f024a783199d30", "score": "0.6565512", "text": "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "title": "" }, { "docid": "0886c5462ff749bb2fee083ec9c53089", "score": "0.6555918", "text": "public void generateKeys(){\n\t\t//Apply permutation P10\n\t\tString keyP10 = permutation(key,TablesPermutation.P10);\n\t\tresults.put(\"P10\", keyP10);\n\t\t//Apply LS-1\n\t\tString ls1L = leftShift(keyP10.substring(0,5),1);\n\t\tString ls1R = leftShift(keyP10.substring(5,10),1);\n\t\tresults.put(\"LS1L\", ls1L);\n\t\tresults.put(\"LS1R\", ls1R);\n\t\t//Apply P8 (K1)\n\t\tk1 = permutation(ls1L+ls1R, TablesPermutation.P8);\n\t\tresults.put(\"K1\", k1);\n\t\t//Apply LS-2\n\t\tString ls2L = leftShift(ls1L,2);\n\t\tString ls2R = leftShift(ls1R,2);\n\t\tresults.put(\"LS2L\", ls2L);\n\t\tresults.put(\"LS2R\", ls2R);\n\t\t//Apply P8 (K2)\n\t\tk2 = permutation(ls2L+ls2R, TablesPermutation.P8);\n\t\tresults.put(\"K2\", k2);\n\t}", "title": "" }, { "docid": "aab9ff0a57830d9280d68948fcde2e01", "score": "0.6481994", "text": "@Override\n public String generateKey(int round) {\n return this.key.substring(4 * round, 4 * round + 16);\n }", "title": "" }, { "docid": "b9e2dfca5c679d345bf28a36b9610798", "score": "0.6440473", "text": "private static Key generateKey() throws NoSuchAlgorithmException {\r\n\t\tif (key == null) {\r\n\t\t\tgenerator = KeyGenerator.getInstance(\"DES\");\r\n\t\t\tgenerator.init(new SecureRandom());\r\n\t\t\tkey = generator.generateKey();\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "title": "" }, { "docid": "433e35270e24a07537eaaa41b25b37d8", "score": "0.6399815", "text": "public NodeKey createNodeKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.63788456", "text": "String getKey();", "title": "" }, { "docid": "37a41dca24eb4796502003a8876933f2", "score": "0.63707453", "text": "@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "72ebb58efab5e0d6b84046ba728b3832", "score": "0.636973", "text": "@Override\n public byte[] generateKey() throws ProtocolException, IOException {\n BigInteger p, q, n, e, d;\n Polynomial pol;\n do {\n // we want e such that GCD(e, phi(p*q))=1. as e is actually fixed\n // below, then we need to search for suitable p and q\n p = generateCofactor();\n q = generateCofactor();\n n = computeModulus(p, q);\n e = generatePublicExponent(p, q);\n } while (!verifyCofactors(p, q, e));\n d = computePrivateExponent(p, q, e);\n pol = generatePolynomial(p, q, d);\n BigInteger[] shares = ProtocolUtil.generateShares(pol, tparams.getParties());\n RSAPrivateCrtKey[] packedShares = packShares(e, shares, n);\n try {\n storeShares(packedShares);\n } catch (SmartCardException ex) {\n throw new ProtocolException(\n \"Error while communicating with smart card: \" + ex.toString());\n }\n\n RSAPublicKey pk = SignatureUtil.RSA.paramsToRSAPublicKey(e, n);\n return pk.getEncoded();\n }", "title": "" }, { "docid": "3a9c819ddef06362b13cd979d69c1b4d", "score": "0.63648254", "text": "public Base64StringKeyGenerator() {\n this(DEFAULT_KEY_LENGTH);\n }", "title": "" }, { "docid": "2f9bbef30b253ad2f0aa4f28858d98f9", "score": "0.636061", "text": "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "title": "" }, { "docid": "1939e6c32cee2562293fda184d1dbea8", "score": "0.63210315", "text": "abstract public String getKey();", "title": "" }, { "docid": "1f6b353b85ffa4baa16d613cfb763bb2", "score": "0.62930495", "text": "com.google.protobuf.ByteString getKeyBytes();", "title": "" }, { "docid": "1f6b353b85ffa4baa16d613cfb763bb2", "score": "0.62930495", "text": "com.google.protobuf.ByteString getKeyBytes();", "title": "" }, { "docid": "8b8bbb1c46d85a31d2b46f1446200a5f", "score": "0.62886596", "text": "static String makeKey(String id,\n String for_,\n String attrname,\n String attrtype) {\n return format(KEY_FMT, id, for_, attrname, attrtype);\n }", "title": "" }, { "docid": "6fa893c9ee87dadccc9d4a81e6e55815", "score": "0.62847185", "text": "private static byte[] genKey(String algorithm, int keySize) throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm);\n\n keyGenerator.init(keySize);\n\n SecretKey secretKey = keyGenerator.generateKey();\n\n return secretKey.getEncoded();\n }", "title": "" }, { "docid": "74e1c830d4f28483aa8ed8e885e0340f", "score": "0.6280918", "text": "private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}", "title": "" }, { "docid": "52a03d3319fd8612ac164fe89627c326", "score": "0.6238873", "text": "public Base64StringKeyGenerator(int keyLength) {\n this(Base64.getEncoder(), keyLength);\n }", "title": "" }, { "docid": "6bfcd012f82b85bd7fe125e8043de71e", "score": "0.61881727", "text": "KeyIdPair createKeyIdPair();", "title": "" }, { "docid": "a928c40c9cae7223358cd7a3e45003d7", "score": "0.6144607", "text": "public static HydraKey generateKey() throws NoSuchAlgorithmException {\n // Sets the keygenerator to use blowfish key\n KeyGenerator keygen = KeyGenerator.getInstance(ALGORITHM_DEFAULT);\n keygen.init(128); // set a keylength of 128 bits\n SecretKey secret_key = keygen.generateKey();\n HydraKey hk = new HydraKey(secret_key.getEncoded(), ALGORITHM_DEFAULT);\n return hk;\n }", "title": "" }, { "docid": "003174fe337ac87a486140b81794d5e6", "score": "0.61376053", "text": "public int generateKey() {\n SecureRandom secureRandom = new SecureRandom();\n try {\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return secureRandom.nextInt(26);\n }", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6134428", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6134428", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6134428", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6134428", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6134428", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6134428", "text": "java.lang.String getKey();", "title": "" }, { "docid": "773be777aa3be3b25b783fcc7dbb7256", "score": "0.61232", "text": "public static Key generarKey() throws Exception{\n Key key = new SecretKeySpec(keyvalue, instancia); \n return key;\n }", "title": "" }, { "docid": "d697d078a953da44f3b31a35c926def9", "score": "0.6115604", "text": "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "title": "" }, { "docid": "7d1011294976277431095d1c777450f9", "score": "0.60903025", "text": "com.google.protobuf.ByteString\n getKeyBytes();", "title": "" }, { "docid": "7d1011294976277431095d1c777450f9", "score": "0.60903025", "text": "com.google.protobuf.ByteString\n getKeyBytes();", "title": "" }, { "docid": "7d1011294976277431095d1c777450f9", "score": "0.60903025", "text": "com.google.protobuf.ByteString\n getKeyBytes();", "title": "" }, { "docid": "120399feab67d15046ab02380007b58d", "score": "0.60835916", "text": "@Override\n default String getKey(){\n return key();\n }", "title": "" }, { "docid": "4d65c0c1c78e6c1a30543e0f9b89a909", "score": "0.606477", "text": "public static String generateKey(String key, PageContext pc)\n {\n HttpServletRequest req = (HttpServletRequest)pc.getRequest();\n\n // use the key as the suffix by default\n String suffix = key;\n if (suffix == null) {\n String saved = (String)req.getAttribute(Constants.JSPTAG_COUNTER_KEY);\n\n if (saved == null)\n suffix = \"1\";\n else\n suffix = Integer.toString(Integer.parseInt(saved) + 1);\n\n req.setAttribute(Constants.JSPTAG_COUNTER_KEY, suffix);\n }\n \n // concatenate the servlet path and the suffix to generate key\n return req.getServletPath() + '_' + suffix;\n }", "title": "" }, { "docid": "958f9d3506bd21b05bdf77cce3fab785", "score": "0.6032598", "text": "com.google.protobuf.ByteString\n getKeyBytes();", "title": "" }, { "docid": "958f9d3506bd21b05bdf77cce3fab785", "score": "0.6032598", "text": "com.google.protobuf.ByteString\n getKeyBytes();", "title": "" }, { "docid": "c47f21f3e1ae7134566290d40266d814", "score": "0.60313463", "text": "public GenerateKey() {\n\t\tsuper(\"generate_key\", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(LICENSE_DATE);\n\t\taddInParameter(EMAIL);\n\t}", "title": "" }, { "docid": "9c94275cc7ac35ea14d2f4e5a32a2258", "score": "0.60292643", "text": "public short key();", "title": "" }, { "docid": "08face30081efc9e3daadf70066646e7", "score": "0.6015885", "text": "OpenSSLKey mo134201a();", "title": "" }, { "docid": "e75e58d1439833eeb44e0dcdfadceaf5", "score": "0.60150796", "text": "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "title": "" }, { "docid": "9c4538b03c8abfddaf522e29420aad50", "score": "0.599365", "text": "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "title": "" }, { "docid": "af3993f740113dbb9b59a2d7dce1e633", "score": "0.59919363", "text": "public Key generateKey2(int l) throws IOException{\n int b = l/32;\r\n int [] unos = new int[b];\r\n for(int i=0;i<b;i++){\r\n unos[i] = 1;\r\n }\r\n byte [] aB = int2byte(unos);\r\n\r\n return new SecretKeySpec(aB, \"AES\");\r\n }", "title": "" }, { "docid": "9b58bab05c9a913d4245f67683488fe4", "score": "0.59818715", "text": "public Base64StringKeyGenerator(Base64.Encoder encoder, int keyLength) {\n if(encoder == null) {\n throw new IllegalArgumentException(\"encode cannot be null\");\n }\n if(keyLength < DEFAULT_KEY_LENGTH) {\n throw new IllegalArgumentException(\"keyLength must be greater than or equal to\" + DEFAULT_KEY_LENGTH);\n }\n this.encoder = encoder;\n this.keyGenerator = KeyGenerators.secureRandom(keyLength);\n }", "title": "" }, { "docid": "94338809e571b6faec80dfa6f386258f", "score": "0.5971206", "text": "public String generateId() {\n return Utils.generateKey();\n }", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.5965691", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.5965691", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.5965691", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.5965691", "text": "public String getKey();", "title": "" }, { "docid": "9f89532af3f128d75a17262ccf85f505", "score": "0.5934", "text": "java.lang.String getClientKey();", "title": "" }, { "docid": "d24db3037e093f59f45f999be662e818", "score": "0.59267277", "text": "public String generateApiKey() {\r\n\t\t\r\n\t\tString key = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < API_LENGTH; i++) {\r\n\t\t\tchar letter = (char) (Math.random() * (90 - 65 + 1) + 65);\r\n\t\t\tkey += letter;\r\n\t\t}\r\n\t\t\r\n\t\treturn key;\r\n\t}", "title": "" }, { "docid": "58369cb6b2ff7f6e0160f514cd35bd7b", "score": "0.59115475", "text": "private BestLabelKey generateKey(ITopic topic, ITopic theme, boolean strict) {\r\n\t\tif (bestLabelCacheKeys == null) {\r\n\t\t\tbestLabelCacheKeys = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tSet<BestLabelKey> set = bestLabelCacheKeys.get(topic);\r\n\t\tif (set == null) {\r\n\t\t\tset = HashUtil.getHashSet();\r\n\t\t\tbestLabelCacheKeys.put(topic, set);\r\n\t\t}\r\n\t\tBestLabelKey key = new BestLabelKey(topic, theme, strict);\r\n\t\tset.add(key);\r\n\t\treturn key;\r\n\t}", "title": "" }, { "docid": "379f43224feb444dfe1c0a450e5367ee", "score": "0.5903676", "text": "public NodeKey createNodeKeyWithIdentifier( String identifier );", "title": "" }, { "docid": "5ba52c278ab87c6297d06fc5b94b4ce0", "score": "0.5887915", "text": "public byte[] generateKey()\n\t{\n\t\tImageKeyGenerate ikg = ImageKeyGenerate.getMD5SHA256();\n\t\tthis.rowKey = MyBytes.toBytes(CommonUtils.byteArrayToHexString(ikg.generate(imageData)));\n\t\treturn this.rowKey;\n\t}", "title": "" }, { "docid": "1ab3f2146b6df7358e781744d7378737", "score": "0.58608216", "text": "public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger prime1 = BigInteger.probablePrime(256, random);\n BigInteger prime2 = BigInteger.probablePrime(256, random);\n primesMultiplied = prime1.multiply(prime2);\n BigInteger phi = prime1.subtract(BigInteger.ONE).multiply(prime2.subtract(BigInteger.ONE));\n encryptingBigInt = BigInteger.probablePrime(256, random);\n\n while (phi.gcd(encryptingBigInt).compareTo(BigInteger.ONE) > 0 && encryptingBigInt.compareTo(phi) < 0) {\n encryptingBigInt = encryptingBigInt.add(BigInteger.ONE);\n }\n\n decryptingBigInt = encryptingBigInt.modInverse(phi);\n }", "title": "" }, { "docid": "a6dfadcf3906eafda1e4f46b1d60a318", "score": "0.5842435", "text": "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "title": "" }, { "docid": "35c420dd8718914341700582f3ebdb59", "score": "0.5842084", "text": "private void generateBack() {\n\t\tCharacter[] encodeChar = (Character[]) map.values().toArray(new Character[map.size()]);\n\t\tCharacter[] trueChar = (Character[]) map.keySet().toArray(new Character[map.size()]);\n\n\t\tString allencode = \"\";\n\t\tString allTrue = \"\";\n\n\t\tfor (int i = 0; i < encodeChar.length; i++) {\n\t\t\tallencode += encodeChar[i];\n\t\t\tallTrue += trueChar[i];\n\t\t}\n\n\t\tString code = \"import java.util.HashMap;\\n\" + \"import java.util.Map;\\n\" + \"import java.util.Scanner;\\n\"\n\t\t\t\t+ \"public class MyKey {\\n\"\n\t\t\t\t+ \"private static Map<Character, Character> map = new HashMap<Character, Character>();\\n\"\n\t\t\t\t+ \"private static char[] encodeChar = \\\"\" + allencode + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static char[] trueChar = \\\"\" + allTrue + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static void mapSetUp() {\\n\" + \"for (int i = 0; i < encodeChar.length; i++) {\\n\"\n\t\t\t\t+ \"map.put(encodeChar[i], trueChar[i]);\\n\" + \"}\\n\" + \"}\\n\"\n\t\t\t\t+ \"private static String decodeMessage(String message) {\\n\" + \"String decode = \\\"\\\";\\n\"\n\t\t\t\t+ \"for (int i = 0; i < message.length(); i++) {\\n\" + \"decode += map.get(message.charAt(i));\\n\" + \"}\\n\"\n\t\t\t\t+ \"return decode;\\n\" + \"}\\n\" + \"public static void main(String[] args){\\n\"\n\t\t\t\t+ \"Scanner sc = new Scanner(System.in);\\n\" + \"System.out.print(\\\"Input your encrypted message : \\\");\"\n\t\t\t\t+ \"String enMessage = sc.nextLine();\" + \"mapSetUp();\\n\"\n\t\t\t\t+ \"System.out.println(\\\"Decrypted message : \\\"+decodeMessage(enMessage));\\n\" + \"}}\";\n\t\tFile f = new File(\"MyKey.java\");\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(f);\n\t\t\tBufferedWriter bf = new BufferedWriter(fw);\n\t\t\tbf.write(code);\n\t\t\tbf.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error about IO.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "793ebee7faf7e6454117291ff8784031", "score": "0.58414733", "text": "public NodeKey createNodeKey( String sourceName,\n String identifier );", "title": "" }, { "docid": "df4112598b08b6fe23988821b1a9011d", "score": "0.58309704", "text": "public Base64StringKeyGenerator(Base64.Encoder encoder) {\n this(encoder, DEFAULT_KEY_LENGTH);\n }", "title": "" }, { "docid": "185850346a629b87ca7924734aa4dcb0", "score": "0.58295196", "text": "short generateKeyAndWrap(byte[] applicationParameter, short applicationParameterOffset, byte[] publicKey, short publicKeyOffset, byte[] keyHandle, short keyHandleOffset, byte info);", "title": "" }, { "docid": "c92ced23c34f732e7f67f9f27714e563", "score": "0.5815538", "text": "T key();", "title": "" }, { "docid": "447d0e0dba7825e524a9eb35c11f10eb", "score": "0.58117926", "text": "public String makeKey ()\n {\n String stop = \"*\"; // default\n\n if (stopFormat.length() > 0)\n stop = String.valueOf(stopFormat.charAt(0));\n\n key = \"<BR>\";\n\n if (code.equals(\"Standard\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><B><FONT COLOR=red>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M S</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n if (unknownStatus == 1)\n key += (\"<BR>Unknown codon: <TT><FONT COLOR=#ff6633><B>u</B></FONT><BR></TT>\");\n\n\n return (key + \"<HR>\");\n\n}", "title": "" }, { "docid": "be11b9997ef15e03342e7a7f33381d9f", "score": "0.5786855", "text": "private String generateKey(String subject, String courseNumber) {\r\n return getCourseHelper().joinStringsByDelimiter('=', subject, courseNumber);\r\n }", "title": "" }, { "docid": "6fd4f5166f3ad2432816a703477d693a", "score": "0.57853687", "text": "public static String createTimeDependentKey() {\r\n\t\tchar pad[];\r\n\t\tint padLen;\r\n\t\tStringBuilder retval = new StringBuilder(32);\r\n\t\tfinal long seed = System.currentTimeMillis();\r\n\t\tRandom rnd = new Random(seed);\r\n\t\t// 10 characters time dependent part\r\n\t\tString timePart = String.valueOf(Long.MAX_VALUE-seed);\r\n\t\tpadLen = timePart.length()-10;\r\n\t\tpad = new char[padLen];\r\n\t\tjava.util.Arrays.fill(pad, '0');\r\n\t\tretval.append(pad).append(timePart);\r\n\t\t// 6 characters sequential\r\n\t\tretval.append(Integer.toHexString(iSequence.incrementAndGet()));\r\n\t\tiSequence.compareAndSet(16777000, 1048576);\r\n\t\t// 8 characters IP dependent part\t\t\r\n\t\ttry {\r\n\t\t\tbyte[] localIPAddr = InetAddress.getLocalHost().getAddress();\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[0]) & 255]);\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[1]) & 255]);\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[2]) & 255]);\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[3]) & 255]);\r\n\t\t}\r\n\t\tcatch (UnknownHostException e) {\r\n\t\t\tretval.append(\"7f000000\");\r\n\t\t}\r\n\t\t// 8 characters random part\r\n\t\tString randomPart = String.valueOf(rnd.nextInt(Integer.MAX_VALUE));\r\n\t\tpadLen = timePart.length()-8;\r\n\t\tretval.append(randomPart).append(generateRandomId(padLen, \"0123456789abcdef\", Character.LOWERCASE_LETTER));\r\n\t\treturn retval.toString();\r\n\t}", "title": "" }, { "docid": "7330dc23408f5a866edbf64237ecbe6c", "score": "0.5764363", "text": "@Override\n public String createRecoveryKey() {\n nextRecoveryKey++;\n return Integer.toString(nextRecoveryKey);\n }", "title": "" }, { "docid": "72d6e56de533ad61f85394030efdd1dc", "score": "0.57633495", "text": "public static String generateKey(Uri uri, DownloadType downloadType) {\n return DownloadUtil.generateKey(uri, downloadType);\n }", "title": "" }, { "docid": "5814aa65f704514c2843a7506ea501d8", "score": "0.57631063", "text": "private static Key createInternalLobKey() {\n return Key.createKey(Arrays.asList(INTERNAL_KEY_SPACE,\n ILK_PREFIX_COMPONENT,\n UUID.randomUUID().toString()));\n }", "title": "" }, { "docid": "8d6512f89292991c5a6b19b1e12aecf6", "score": "0.5757416", "text": "com.google.protobuf.ByteString\n getClientKeyBytes();", "title": "" }, { "docid": "91ac010b504bbc93e87ff927fdb6e374", "score": "0.5755432", "text": "public String generateKey(String str, String key)\n{\n int x = str.length();\n \n for (int i = 0; ; i++)\n {\n if (x == i)\n i = 0;\n if (key.length() == str.length())\n break;\n key+=(key.charAt(i));\n }\n return key;\n}", "title": "" }, { "docid": "b88d377d1320083cd8db6192f895933c", "score": "0.57488936", "text": "protected SecretKey generateRandomAESKey() throws GeneralSecurityException {\n fixPrng();\n // Instantiante KeyGenerator\n KeyGenerator keyGenerator = KeyGenerator.getInstance(AES_INSTANCE);\n // Initialize generator with the desired keylength\n keyGenerator.init(AES_128);\n // Return new key\n return keyGenerator.generateKey();\n }", "title": "" }, { "docid": "7e963952996b075177d3476e18d19623", "score": "0.57487315", "text": "Object getKey();", "title": "" }, { "docid": "6554e4cce6f5d3a1d7e609f8883061fc", "score": "0.57421345", "text": "T getRandomKey();", "title": "" }, { "docid": "4a3b8133190622a75076f3a7cb1ae06a", "score": "0.57308507", "text": "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "title": "" }, { "docid": "f2fa0dfe288f16009c70267da16ebf18", "score": "0.57288", "text": "private static byte[] generateSymetricKey(int length) {\n\t\tSecureRandom random = new SecureRandom();\n\t\tbyte[] keyBytes = new byte[length];\n\t\trandom.nextBytes(keyBytes);\n\t\tSecretKeySpec key = new SecretKeySpec(keyBytes, \"AES\");\n\t\treturn key.getEncoded();\n\t}", "title": "" }, { "docid": "b8056d036fe6ae86f3881cffafc0209e", "score": "0.57278985", "text": "public static String generateApiKey(String name) throws EndlosException {\n\t\treturn hash(Utility.generateToken(6) + DateUtility.getCurrentEpoch() + name + Utility.generateToken(8));\n\t}", "title": "" }, { "docid": "de28064d65324badffe438d8b91186c1", "score": "0.57215226", "text": "private SecretKey generateSecretKey() throws NoSuchAlgorithmException {\n final KeyGenerator keygen = KeyGenerator.getInstance(KEYSPEC_ALGORITHM);\n keygen.init(KEY_SIZE, mRandom);\n return keygen.generateKey();\n }", "title": "" }, { "docid": "e8b3872ac931881d25902c5aae60341f", "score": "0.57208955", "text": "@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.57160956", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.57160956", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.57160956", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.57160956", "text": "K getKey();", "title": "" }, { "docid": "be66bc88809460074f2701111eec8507", "score": "0.5714111", "text": "Text getKey() throws IOException;", "title": "" }, { "docid": "12b988e9e9015d5d462f647bc618dda2", "score": "0.5712678", "text": "public static String generateHalfKey(){\n return randomChars(HALF_KEY_LENGTH);\n }", "title": "" } ]
7e84333804ca3d06006278dd8d3ec5ab
Returns the production of the given type of goods accoring to this plan.
[ { "docid": "1b5a4c6ecf6bce9e08b44febc2974bc5", "score": "0.59182775", "text": "public int getProductionOf(GoodsType goodsType) {\n int amount = 0;\n \n Iterator<WorkLocationPlan> wlpIterator = workLocationPlans.iterator();\n while (wlpIterator.hasNext()) {\n WorkLocationPlan wlp = wlpIterator.next();\n amount += wlp.getProductionOf(goodsType);\n }\n \n // Add values for the center tile:\n if (goodsType == Goods.FOOD) {\n amount += colony.getTile().getMaximumPotential(Goods.FOOD);\n } else if (goodsType == colony.getTile().secondaryGoods()) {\n amount += colony.getTile().getMaximumPotential(goodsType);\n }\n \n return amount;\n }", "title": "" } ]
[ { "docid": "9193b3b5b22f3dba3d30bcbd12f7a588", "score": "0.6337884", "text": "public int getPotentialProduction(GoodsType goodsType,\n UnitType unitType) {\n if (!canProduce(goodsType, unitType)) return 0;\n\n if (unitType != null) {\n switch (getNoWorkReason()) {\n case NONE: case ALREADY_PRESENT: case CLAIM_REQUIRED:\n break;\n case CAPACITY_EXCEEDED:\n if (getUnitCapacity() > 0) break; // Could work after reorg!\n // Fall through\n case WRONG_TYPE: case OWNED_BY_ENEMY: case ANOTHER_COLONY:\n case COLONY_CENTER: case MISSING_ABILITY: case MISSING_SKILL:\n case MINIMUM_SKILL: case MAXIMUM_SKILL:\n case OCCUPIED_BY_ENEMY: // Arguable!\n default:\n // Non-transient or inapplicable conditions. Production\n // is impossible.\n return 0;\n }\n }\n\n int amount = getBaseProduction(null, goodsType, unitType);\n amount = (int)applyModifiers(amount, getGame().getTurn(),\n getProductionModifiers(goodsType, unitType));\n return (amount < 0) ? 0 : amount;\n }", "title": "" }, { "docid": "15521fc4c3010d7febc2e60bca865189", "score": "0.61061794", "text": "public abstract int getBaseProduction(ProductionType productionType,\n GoodsType goodsType,\n UnitType unitType);", "title": "" }, { "docid": "2b4d3a6e16276746e4de43431b3c35a1", "score": "0.60802895", "text": "@Override\r\n\tProduct getProduct(ProductType type) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a8742e64e252c7da8d31ffeaea1138c2", "score": "0.59723294", "text": "public int costToBuy(GoodsType type) {\n MarketData data = marketData.get(type);\n if (data == null) {\n return 0;\n } else {\n return data.getCostToBuy();\n }\n }", "title": "" }, { "docid": "13a1dd0d88c3659bf6712008bb688813", "score": "0.58848244", "text": "public final ProductionType getProductionType() {\n return productionType;\n }", "title": "" }, { "docid": "7a977b9671e69490bbdb31b145ea4c73", "score": "0.5808282", "text": "private static Product getProduct(String prodType){\n Product prod = null;\n if(SalesProcessor.getProductMap().containsKey(prodType)){\n prod = SalesProcessor.getProductMap().get(prodType);\n }\n else{\n prod = new Product(prodType);\n SalesProcessor.getProductMap().put(prodType, prod);\n }\n return prod;\n }", "title": "" }, { "docid": "6e31902ee39edf0834d2e5f8a88b37ec", "score": "0.5719493", "text": "public List<AbstractGoods> getProduction() {\n ProductionInfo info = getProductionInfo();\n return (info == null) ? EMPTY_LIST : info.getProduction();\n }", "title": "" }, { "docid": "84b934175740f8e794ca601d9e154258", "score": "0.5709195", "text": "public static PartyType getPartyType(Type type, UnitClass unitClass) {\n\t\tPartyType pt = new PartyType();\n\t\tpt.unitClass = unitClass;\n\t\t\n\t\tswitch (type) {\n\t\tcase FARMERS:\n\t\t\tpt.name = \"Farmers\";\n\t\t\tpt.maxCount = 12;\n\t\t\tpt.minCount = 4;\n\t\t\tpt.tiers = new int[]{1};\n\t\t\tbreak;\n\t\tcase PATROL:\n\t\t\tpt.name = \"Patrol\";\n\t\t\tpt.maxCount = 20;\n\t\t\tpt.minCount = 10;\n\t\t\tpt.tiers = new int[]{1, 2, 3};\n\t\t\tbreak;\n\t\tcase MERCHANT:\n\t\t\tpt.name = \"Merchant\";\n\t\t\tpt.maxCount = 30;\n\t\t\tpt.minCount = 15;\n\t\t\tpt.tiers = new int[]{2, 3};\n\t\t\tbreak;\n\t\tcase CITY_GARRISON:\n\t\t\tpt.name = \"Garrison\";\n\t\t\tpt.maxCount = 90;\n\t\t\tpt.minCount = 50;\n\t\t\tpt.tiers = new int[]{2, 3, 4};\n\t\t\tbreak;\n\t\tcase CASTLE_GARRISON:\n\t\t\tpt.name = \"Garrison\";\n\t\t\tpt.maxCount = 150;\n\t\t\tpt.minCount = 100;\n\t\t\tpt.tiers = new int[]{2, 3, 4, 5};\n\t\tcase VILLAGE_GARRISON:\n\t\t\tpt.name = \"Village Garrison\";\n\t\t\tpt.maxCount = 5;\n\t\t\tpt.minCount = 2;\n\t\t\tpt.tiers = new int[]{1};\n\t\t\tbreak;\n\t\tcase SCOUT:\n\t\t\tpt.name = \"Scout\";\n\t\t\tpt.maxCount = 25;\n\t\t\tpt.minCount = 10;\n\t\t\tpt.tiers = new int[]{2, 3};\n\t\t\tbreak;\n\t\tcase MILITIA:\n\t\t\tpt.name = \"Militia\";\n\t\t\tpt.maxCount = 50;\n\t\t\tpt.minCount = 30;\n\t\t\tpt.tiers = new int[]{1, 2};\n\t\t\tbreak;\n\t\tcase NOBLE:\n\t\t\tpt.name = \"Noble\";\n\t\t\tpt.maxCount = 100;\n\t\t\tpt.minCount = 50;\n\t\t\tpt.tiers = new int[]{2, 3, 4};\n\t\t\tbreak;\n\t\tcase RAIDING_PARTY:\n\t\t\tpt.name = \"Raiding Party\";\n\t\t\tpt.maxCount = 30;\n\t\t\tpt.minCount = 20;\n\t\t\tpt.tiers = new int[]{2, 3};\n\t\t\tbreak;\n\t\tcase ELITE:\n\t\t\tpt.name = \"Elite\";\n\t\t\tpt.maxCount = 40;\n\t\t\tpt.minCount = 40;\n\t\t\tpt.tiers = new int[]{1, 2, 3, 4, 5};\n\t\t\tbreak;\n\t\tcase VILLAGE_HIRE:\n\t\t\tpt.name = \"For Hire\";\n\t\t\tpt.maxCount = 5;\n\t\t\tpt.minCount = 1;\n\t\t\tpt.tiers = new int[]{1, 2};\n\t\t\tbreak;\n\t\tcase CASTLE_HIRE:\n\t\t\tpt.name = \"For Hire\";\n\t\t\tpt.maxCount = 3;\n\t\t\tpt.minCount = 1;\n\t\t\tpt.tiers = new int[]{2, 3, 4};\n\t\t\tbreak;\n\t\tcase CITY_HIRE:\n\t\t\tpt.name = \"For Hire\";\n\t\t\tpt.maxCount = 8;\n\t\t\tpt.minCount = 1;\n\t\t\tpt.tiers = new int[]{1, 2, 3};\n\t\t\tbreak;\n\t\tcase TEST:\n\t\t\tpt.name = \"Test\";\n\t\t\tpt.maxCount = 100;\n\t\t\tpt.minCount = 100;\n\t\t\tpt.tiers = new int[]{1, 2, 3, 4, 5};\n\t\t\tbreak;\n\t\t}\n//\t\tpt.name = \"Default\";\n//\t\tpt.tiers = new int[]{1, 2, 3};\n\t\n\t\t\n\t\treturn pt;\n\t}", "title": "" }, { "docid": "940fc0898aaa19cd22aebe6c04c57440", "score": "0.56135136", "text": "public Combination findCombination(CombinationType type) {\n Combination scoredCombination = null;\n for (Combination c : combinations) {\n if (c.getCombinationType().equals(type)) {\n scoredCombination = c;\n }\n }\n return scoredCombination;\n }", "title": "" }, { "docid": "4647240b63e035b95d9654c697e64f40", "score": "0.5569137", "text": "public int paidForSale(GoodsType type) {\n MarketData data = marketData.get(type);\n if (data == null) {\n return 0;\n } else {\n return data.getPaidForSale();\n }\n }", "title": "" }, { "docid": "307d7da0249d7b56e90575c738ae2f2e", "score": "0.55233276", "text": "public ColonyProductionStats getGoodsStats() {\n final ColonyProductionStats out = new ColonyProductionStats();\n // set initial warehouse stack\n GoodsType.GOOD_TYPES.forEach(goodsType -> {\n GoodsProductionStats goodsStats = out.getStatsByType(goodsType);\n goodsStats.setInWarehouseBefore(warehouse.getGoods(goodsType).getAmount());\n });\n\n // get production from all fields\n colonyFields.forEach(field -> {\n if (field.getProduction().isPresent()) {\n final Goods production = field.getProduction().get();\n final GoodsProductionStats goodsStats = out.getStatsByType(production.getType());\n goodsStats.addRowProduction(production.getAmount());\n }\n });\n\n out.getStatsByType(GoodsType.CORN).addConsumed(getRequiredFoodPerTurn());\n\n // get production from town factories that doesn't consume any sources\n ConstructionType.SOURCE_1.forEach(goodsType -> {\n getConstructionProducing(goodsType).ifPresent(con -> {\n GoodsProductionStats goodsStats = out.getStatsByType(goodsType);\n ConstructionTurnProduction turnProd = con.getProduction();\n goodsStats.setRowProduction(turnProd.getProducedGoods().get().getAmount());\n });\n });\n\n // get production from town factories that consume some primary sources\n ConstructionType.SOURCE_2.forEach(goodsType -> {\n computeSecondaryProduction(out, goodsType);\n });\n\n // get production from town factories that consume secondary sources\n ConstructionType.SOURCE_3.forEach(goodsType -> {\n computeSecondaryProduction(out, goodsType);\n });\n\n return out;\n }", "title": "" }, { "docid": "ee558bcd3ccad76ecf0b26e0d4fa28eb", "score": "0.5512922", "text": "public ReportType getReportType() {\r\n return ReportType.COST;\r\n }", "title": "" }, { "docid": "3defed2b3249b8f1f341b775f50a47d7", "score": "0.55078864", "text": "public int getProductionOf(Unit unit, GoodsType goodsType) {\n if (unit == null) throw new IllegalArgumentException(\"Null unit.\");\n return (!produces(goodsType)) ? 0\n : Math.max(0, getPotentialProduction(goodsType, unit.getType()));\n }", "title": "" }, { "docid": "30acec1799e5d4621b5c0bc7b8bc1291", "score": "0.5495066", "text": "public String getProductType() {\n\t\treturn type;\n\t}", "title": "" }, { "docid": "a6c805ff4fbeaac733ebdfc5890af6b9", "score": "0.54350144", "text": "public InventoryItem getItemByType(String type) {\n return this.inventoryItems.stream().filter(x -> x.getTemplateId().equals(type)).findFirst().orElse(null);\n }", "title": "" }, { "docid": "8b9724f75f311a09eb81d400a831a23b", "score": "0.5368106", "text": "ProductsType getProducts();", "title": "" }, { "docid": "783e12a9b2428d68647437323b953d85", "score": "0.5319058", "text": "public Product createProduct(Object type, Object det) {\n Pastry pastry;\n\n TypeSizeStruct details = (TypeSizeStruct)det;\n\n switch(details.pType){\n case croissant: return new Croissant(details.pType,details.special,details.heated);\n case cookie: return new Cookie(details.pType,details.special,details.qty);\n case macaroon: return new Macaroon(details.pType, details.special,details.qty);\n }\n return null;\n }", "title": "" }, { "docid": "3b9e40d387ccde59255fd6a9dfd54480", "score": "0.53051156", "text": "public ComposedType getProductType(final SessionContext ctx)\n\t{\n\t\treturn (ComposedType)getProperty( ctx, PRODUCTTYPE);\n\t}", "title": "" }, { "docid": "4f40580637138cb53543d9692e58a305", "score": "0.5293823", "text": "public Product finalProduct(String name, String manufacturer, ItemType type) {\n Product product = null;\n if (type == ItemType.AUDIO || type == ItemType.AUDIO_MOBILE) {\n product = new AudioPlayer(name, manufacturer,\n \"DSD/FLAC/ALAC/WAV/AIFF/MQA/Ogg-Vorbis/MP3/AAC\",\n \"M3U/PLS/WPL\");\n } else if (type == ItemType.VISUAL || type == ItemType.VISUAL_MOBILE) {\n int refreshRate = 40;\n int responseTime = 22;\n product = new MoviePlayer(name, manufacturer,\n new Screen(\"720x400\", refreshRate, responseTime), MonitorType.LCD);\n }\n return product;\n }", "title": "" }, { "docid": "737c435a46c785ae025c51de53756444", "score": "0.52931684", "text": "public String getPurchaseType() {\n return purchaseType;\n }", "title": "" }, { "docid": "c349c20bdf459a69c435da18881107d2", "score": "0.52897394", "text": "public ComposedType getProductType()\n\t{\n\t\treturn getProductType( getSession().getSessionContext() );\n\t}", "title": "" }, { "docid": "783c82bf2cf2683c9c4470749a7a90f2", "score": "0.5283675", "text": "@Override\n\tpublic List<Product> getProductForType(String productType) {\n\t\tLOGGER_OBJ.debug(\"execution of getProductForType() started\");\n\t\tList<Product> products = poductsList.stream()\n\t\t\t\t.filter(product -> product.getProductType().equalsIgnoreCase(productType)).collect(Collectors.toList());\n\t\tLOGGER_OBJ.debug(\"execution of getProductForType() completed\");\n\t\treturn products;\n\t}", "title": "" }, { "docid": "678dbf2bb7a57240b312ea4f5b6d096f", "score": "0.5247361", "text": "public int getUnitProduction(Unit unit, GoodsType goodsType) {\n if (unit == null || unit.getWorkType() != goodsType) return 0;\n final UnitType unitType = unit.getType();\n final Turn turn = getGame().getTurn();\n return max(getOutputs(),\n ag -> ag.getType() == goodsType,\n ag -> (int)applyModifiers(getBaseProduction(getProductionType(),\n goodsType, unitType),\n turn, getProductionModifiers(goodsType, unitType)));\n }", "title": "" }, { "docid": "7816ecac8cd318a8648279f841e0bf2f", "score": "0.5246002", "text": "public static EPennant getPennant(short type) {\n short typeNonSigne = (short) (type & 0xff);\n \n EPennant eTypes[] = EPennant.values();\n EPennant eType = null;\n\n for(EPennant typeCourant : eTypes) {\n if(typeCourant.getType() == typeNonSigne) {\n eType = typeCourant;\n }\n }\n\n return eType;\n }", "title": "" }, { "docid": "791cc14f29a2eac7290334d3546e5afa", "score": "0.52453476", "text": "public ProductionType getBestProductionType(boolean unattended,\n GoodsType workType) {\n ProductionType best = null;\n int amount = -1;\n for (ProductionType pt : getAvailableProductionTypes(unattended)) {\n for (AbstractGoods output : pt.getOutputs()) {\n if (workType != null && workType != output.getType()) continue;\n if (amount < output.getAmount()) {\n amount = output.getAmount();\n best = pt;\n }\n }\n }\n return best;\n }", "title": "" }, { "docid": "6983586b1696a7ca2e3b22c2711ecdce", "score": "0.5245287", "text": "public Piece getPiece(TypePiece typePiece) {\n\t\treturn this.pieces.get(typePiece);\n\t}", "title": "" }, { "docid": "63e8f71969e08d39cd0312c65197bf15", "score": "0.52375877", "text": "private Suggestion getSuggestion(Unit unit, ProductionType productionType,\n GoodsType goodsType) {\n // Check first if there is space.\n if (((unit == null || !contains(unit)) && isFull())\n || productionType == null\n || goodsType == null) return null;\n\n final Specification spec = getSpecification();\n final Player owner = getOwner();\n final UnitType expert = spec.getExpertForProducing(goodsType);\n \n // Require there be a better unit to do this work, and that it\n // would actually improve production.\n final UnitType better = (expert != null) ? expert\n : spec.getDefaultUnitType(owner);\n if (unit != null && better == unit.getType()) return null;\n int delta = getPotentialProduction(goodsType, better);\n if (unit != null) {\n delta -= getPotentialProduction(goodsType, unit.getType());\n }\n // Do we have a chance of satisfying the inputs?\n for (AbstractGoods in : productionType.getInputs()) {\n // TODO: should really consider in.getAmount\n delta = Math.min(delta, colony.getNetProductionOf(in.getType()));\n }\n if (delta <= 0) return null;\n\n // Is the production actually a good idea? Not if we are independent\n // and have maximized liberty, or for immigration.\n if (owner.getPlayerType() == Player.PlayerType.INDEPENDENT\n && ((goodsType.isLibertyType() && colony.getSoL() >= 100)\n || goodsType.isImmigrationType())) \n return null;\n \n // FIXME: OO\n boolean ok = false;\n if (this instanceof ColonyTile) {\n // Assume the work is worth doing for owned or trivially\n // claimable colony tiles.\n Tile tile = ((ColonyTile)this).getWorkTile();\n ok = owner.owns(tile) || owner.canClaimForSettlement(tile);\n } else if (this instanceof Building) {\n Building bu = (Building)this;\n // Make sure the type can be added.\n if (bu.canAddType(better)) {\n Colony colony = getColony();\n BuildableType bt;\n // Assume work is worth doing if a unit is already\n // there, or if the building has been upgraded, or if\n // the goods are required for the current building job.\n if (bu.getLevel() > 1 || unit != null) {\n ok = true;\n } else if (colony.getTotalProductionOf(goodsType) == 0\n && (bt = colony.getCurrentlyBuilding()) != null\n && AbstractGoods.containsType(goodsType, bt.getRequiredGoods())) {\n ok = true;\n }\n }\n }\n return (!ok) ? null\n : new Suggestion(this, (unit == null) ? null : unit.getType(),\n better, goodsType, delta);\n }", "title": "" }, { "docid": "9345c9b2ea7594ed1de07e4be1d110dc", "score": "0.52217275", "text": "private GoodsType getBestGoodsToProduce(Tile t) {\n if (t.hasResource()) {\n return t.getTileItemContainer().getResource().getBestGoodsType();\n }\n GoodsType[] top = Tile.getSortedGoodsTop(t.getType(), t.getTileItemContainer(), t.getFishBonus());\n return top[0];\n }", "title": "" }, { "docid": "06f5942bf08ca5e6eb24993a194add05", "score": "0.52088755", "text": "@Override\r\n\tpublic List<ClassifyGoods> getAnyType(int type) {\n\t\t\treturn fdi.getAnyType(type);\r\n\t}", "title": "" }, { "docid": "8d4acd13f40e3ba2a996dee0fc00cfcf", "score": "0.5192015", "text": "public String getGoodsType() {\n return goodsType;\n }", "title": "" }, { "docid": "8d4acd13f40e3ba2a996dee0fc00cfcf", "score": "0.5192015", "text": "public String getGoodsType() {\n return goodsType;\n }", "title": "" }, { "docid": "e8c6dd9f881afbcce113e8c4aefcb227", "score": "0.51859087", "text": "public final String getPizzaType(){\n\t\treturn this.type;\n\t}", "title": "" }, { "docid": "f3af1c0d1310e2659dbf824acfc0e4a2", "score": "0.5183342", "text": "public abstract List<Modifier> getProductionModifiers(GoodsType goodsType,\n UnitType unitType);", "title": "" }, { "docid": "5f0ce0fd628db81fae81f0abeb9e463b", "score": "0.5182008", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.CostType getCostType();", "title": "" }, { "docid": "25440fc7c11df55ea2660f12a9d0dae2", "score": "0.51791954", "text": "private BigDecimal getManufacturingProducedCost() {\n if (!transaction.getProductionLine().isCalculated()) {\n calculateWorkEffortCost(transaction.getProductionLine().getProductionPlan().getProduction());\n }\n OBDal.getInstance().refresh(transaction.getProductionLine());\n return transaction.getProductionLine().getEstimatedCost() != null ? transaction\n .getProductionLine().getEstimatedCost().multiply(transaction.getMovementQuantity().abs())\n : BigDecimal.ZERO;\n }", "title": "" }, { "docid": "8a25a0cb26bd93b61082618e07757806", "score": "0.5158757", "text": "public Occupation getOccupation(UnitType unitType) {\n final Specification spec = getSpecification();\n if (unitType == null) {\n unitType = spec.getDefaultUnitType(getOwner().getNationType());\n }\n \n LogBuilder lb = new LogBuilder((colony.getOccupationTrace()) ? 64 : 0);\n lb.add(colony.getName(), \"/\", this, \".getOccupation(\",\n unitType.getSuffix(), \")\");\n\n Collection<GoodsType> types = spec.getGoodsTypeList();\n Occupation best = new Occupation(null, null, null);\n lb.add(\"\\n \");\n logFreeColObjects(types, lb);\n int bestAmount = best.improve(unitType, this, 0, types, lb);\n if (best.workType != null) {\n lb.add(\"\\n => \", best);\n } else {\n lb.add(\"\\n FAILED\");\n }\n lb.log(logger, Level.WARNING);\n return (best.workType == null) ? null : best;\n }", "title": "" }, { "docid": "56a490b6e4611ebf03b93cc5e6d01aa1", "score": "0.51318306", "text": "List<ProductType> getMainProductType ();", "title": "" }, { "docid": "bcdcfc9c1b7e0258c9f59ed72e492df3", "score": "0.51140916", "text": "public Prod getProduct() throws IOException {\n\t\treturn reader.getProduct();\n\t}", "title": "" }, { "docid": "539e02369dac430f422c926828566dff", "score": "0.51060754", "text": "public PaymentType getType() {\n return Type;\n }", "title": "" }, { "docid": "10abb59f7edaddf8bc6a4b92e4910c83", "score": "0.5093321", "text": "PlanType getPlanType();", "title": "" }, { "docid": "46810b6ef0cf6ccbce84bbf4ac451313", "score": "0.5080385", "text": "public Effect getEffect(EffectType type){\n\t\tfor(Effect effect : effects) {\n\t\t\tif(effect.getType() == type) return effect;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b71187974d3e14a76cb8e80467895958", "score": "0.5078707", "text": "private ResourceProduction obtainResourceProductionOfWhatYouSelected(){\n ResourceProduction production = ResourceProduction.newEmptyResourceProduction();\n for(Production i : selectedProduction){\n production = production.sum(i.resourceProduction());\n }\n if (selectedDefaultProductionPower){\n production = production.sum(ResourceProduction.newDefaultProductionPowerResourceProduction());\n }\n return production;\n }", "title": "" }, { "docid": "7f111605e76cbf6689a10ff5f88cb3b3", "score": "0.5077107", "text": "public Planet getPlanet(String name, PlanetType type) {\n if (type != PlanetType.Aggregate) {\n throw new IllegalArgumentException(String.format(\"Class Aggregate does not support type [%s]\", type));\n }\n Planet planet = definePlanet(name, type);\n // Aggregate asteroids tend to be smaller.\n planet.setRadius(getRadius(planet) / 2);\n\n // Set default day length to be 2-3 hours.\n planet.setDayLength(18000 + Die.die(3600, 5));\n\n addSecondaryResource(planet, SilicateOre);\n if (planet.getTemperature() > 500) {\n addSecondaryResource(planet, FerricOre);\n addTertiaryResource(planet, CarbonicOre);\n addTraceResource(planet, Radioactives);\n } else if (planet.getTemperature() > 400) {\n addSecondaryResource(planet, CarbonicOre);\n addTertiaryResource(planet, FerricOre);\n } else if (planet.getTemperature() > 300) {\n addSecondaryResource(planet, CarbonicOre);\n addTertiaryResource(planet, FerricOre);\n addTraceResource(planet, Water);\n } else if (planet.getTemperature() > 200) {\n addSecondaryResource(planet, Water);\n addTertiaryResource(planet, CarbonicOre);\n addTraceResource(planet, FerricOre);\n } else if (planet.getTemperature() > 100) {\n addSecondaryResource(planet, Water);\n addTraceResource(planet, CarbonicOre);\n }\n\n return planet;\n }", "title": "" }, { "docid": "8ec35c74ceb93ae903c28a33c240e10d", "score": "0.50369155", "text": "public String getPayType() {\n return payType;\n }", "title": "" }, { "docid": "8ec35c74ceb93ae903c28a33c240e10d", "score": "0.50369155", "text": "public String getPayType() {\n return payType;\n }", "title": "" }, { "docid": "a29ffaabeaf6552400fdbf2b2e0be712", "score": "0.5032949", "text": "public AInterface obtain(int type){\n\t\tAInterface aObject;\n\t\tif(type == 1){\n\t\t\t//Step 6 - instantiate the right object\n\t\t\t//Step 7d - receiving the product as product interfaces.\n\t\t\taObject = new A1Class();\n\t\t} else {\n\t\t\taObject = new A2Class();\n\t\t}\n\t\t\n\t\t//Step 7f - return the product object\n\t\treturn aObject;\n\t}", "title": "" }, { "docid": "5439419dc92bb28aee44e542adb699cd", "score": "0.50245696", "text": "public int getMaximumProductionOf(GoodsType goodsType) {\n ProductionInfo info = getProductionInfo();\n if (info == null) return 0;\n List<AbstractGoods> production = info.getMaximumProduction();\n if (production != null) {\n AbstractGoods ag = AbstractGoods.findByType(goodsType, production);\n if (ag != null) return ag.getAmount();\n }\n return getTotalProductionOf(goodsType);\n }", "title": "" }, { "docid": "1faa95262a87d61677a26d76ad94db05", "score": "0.50192827", "text": "public ArrayList<Desk> calculateDeskPrice(String furnitureType, int quantity){\n\t\tArrayList<Desk> deskList = new ArrayList<Desk>();\n\t\tArrayList<Desk> orderList = new ArrayList<Desk>();\n\t\tResultSet deskInventory;\n\t\ttry{\n\t\t\tStatement myStatement = inventoryConnection.createStatement();\n\t\t\tdeskInventory = myStatement.executeQuery(\"SELECT * FROM desk\");\n\n\t\t\t//adds a new chair object to the chair combinations arraylist\n\t\t\twhile(deskInventory.next()){\n\t\t\t\tif(deskInventory.getString(\"Type\").compareToIgnoreCase(furnitureType) == 0){\n\t\t\t\t\tdeskList.add(new Desk(deskInventory.getString(\"ID\"), deskInventory.getString(\"Type\"), deskInventory.getString(\"Legs\"),\n\t\t\t\t\t\t\t\t\t\t deskInventory.getString(\"Top\"), deskInventory.getString(\"Drawer\"), deskInventory.getInt(\"Price\"), deskInventory.getString(\"ManuID\")));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deskList.size() == 0){\n\t\t\t\tSystem.out.println(\"The furniture type you want to order is not available\");\n\t\t\t\tmyStatement.close();\n\t\t\t\tdeskInventory.close();\n\t\t\t\torderList.clear();\n\t\t\t\t\n\t\t\t\treturn orderList;\n\t\t\t}\n\t\t\tmyStatement.close();\n\t\t\tdeskInventory.close();\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tArrayList<ArrayList<Desk>> totalCombo = new ArrayList<ArrayList<Desk>>();\n\t\tint n = deskList.size();\n\t\t//find every combination of items in the list of lamp items\n\t\t//i <= 2 since we only need 4 components\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\ttotalCombo.addAll(deskCombinations(deskList, n, i));\n\t\t}\n\n\t\tArrayList<ArrayList<Desk>> componentCombos = new ArrayList<ArrayList<Desk>>();\n\t\t//find all the combinations that satisfy all the components\n\t\tfor(ArrayList<Desk> deskCombo : totalCombo){\n\t\t\t//counters for components are used for checking to see if the combination\n\t\t\t//can satisfy the requested quantity\n\t\t\tboolean legsFound = false;\n\t\t\tint legsCount = 0;\n\t\t\tboolean topFound = false;\n\t\t\tint topCount = 0;\n\t\t\tboolean drawerFound = false;\n\t\t\tint drawerCount = 0;\n\t\t\t\n\t\t\t//search the current combination for legs\n\t\t\tfor(Desk dsk : deskCombo){\n\t\t\t\tif(dsk.getLegs().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tlegsFound = true;\n\t\t\t\t\tlegsCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for arms\n\t\t\tfor(Desk dsk : deskCombo){\n\t\t\t\tif(dsk.getTop().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\ttopFound = true;\n\t\t\t\t\ttopCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for drawer\n\t\t\tfor(Desk dsk : deskCombo){\n\t\t\t\tif(dsk.getDrawer().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tdrawerFound = true;\n\t\t\t\t\tdrawerCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if both components are found, add to componentCombos\n\t\t\tif(legsFound && topFound && drawerFound && legsCount >= quantity && topCount >= quantity && drawerCount >= quantity){\n\t\t\t\tcomponentCombos.add(deskCombo);\n\t\t\t}\n\t\t}\n\t\t//if combinations with all components were found, sort them to get the\n\t\t//lowest price\n\t\tif(componentCombos.size() > 0){\n\t\t\t//search for the combinations with the lowest price\n\t\t\t//sort the all the combonations and add the first elements to a list of size quantity\n\t\t\tfor(int i = 0; i < componentCombos.size(); i++){\n\t\t\t\tArrayList<Desk> deskComboI = componentCombos.get(i);\n\t\t\t\tint priceI = 0;\n\t\t\t\t//calculate the price for combination i\n\t\t\t\tfor(Desk dsk : deskComboI){\n\t\t\t\t\tpriceI += dsk.getPrice();\n\t\t\t\t}\n\t\t\t\t//sort the array by the smallest total price\n\t\t\t\tfor(int j = i + 1; j < componentCombos.size(); j++){\n\t\t\t\t\tArrayList<Desk> deskComboJ = componentCombos.get(j);\n\t\t\t\t\tint priceJ = 0;\n\t\t\t\t\t//calculate the price for combination j\n\t\t\t\t\tfor(Desk dsk : deskComboJ){\n\t\t\t\t\t\tpriceJ += dsk.getPrice();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(priceI > priceJ){\n\t\t\t\t\t\t//swap elements i and j\n\t\t\t\t\t\tCollections.swap(componentCombos, i, j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//add the items from the first combination to the orderList\n\t\t\tfor(Desk dsk : componentCombos.get(0)){\n\t\t\t\torderList.add(dsk);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Your order cannot be fulfilled based on our inventory\");\n\t\t\tSystem.out.println(\"The suggested manufacturers are: \");\n\n\t\t\tfor(Manufacturer manu : this.manufacturerList){\n\t\t\t\tSystem.out.println(manu.getName());\n\t\t\t}\n\t\t\t//return empty orderList\n\t\t\torderList.clear();\n\t\t}\n\t\treturn orderList;\n\t}", "title": "" }, { "docid": "712eef7d5547cdeb0e021bbb9884b40c", "score": "0.4995223", "text": "public PotionEffect getPotionEffect(PotionEffectType potionEffectType) {\r\n for (PotionEffect potionEffect : getBukkitPlayer().getActivePotionEffects()) {\r\n if (potionEffect.getType().equals(potionEffectType)) {\r\n return potionEffect;\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "fb2ae07ecd5c64e8daff40f8e4b3724f", "score": "0.49803323", "text": "ProductType getByID (Integer id);", "title": "" }, { "docid": "c89920c795d1001b1c6e2441631bbb04", "score": "0.49780634", "text": "public ProductInSale getProductInSale(String prdType) {\n\t\tProductInSale aux = new ProductInSale(new Product(null, 0), 0);\n\t\tfor (ProductInSale productInSale : this.lstProductsForSale) {\n\t\t\tif (productInSale.getPrdt().getProductType().equals(prdType))\n\t\t\t\taux = productInSale;\n\t\t}\n\t\tif (aux.getPrdt().getProductType() == null) {\n\t\t\t// TODO return exception\n\t\t}\n\t\treturn aux;\n\t}", "title": "" }, { "docid": "2924bee7f3feb6927f19fdc97b2ca765", "score": "0.49745724", "text": "String getProduct();", "title": "" }, { "docid": "b4a755a5048df8a5e3a36b417d664548", "score": "0.49711892", "text": "private List<? extends Person> getFilterProductionMember(Class<? extends Person> type){\n\t\tList<Person> filteredProductionMembers = new ArrayList<Person>();\n\t\tfor(Person productionMember : this.programMembers){\n\t\t\tif (productionMember.getClass().equals(type))\n\t\t\t\tfilteredProductionMembers.add(productionMember);\n\t\t}\n\t\treturn filteredProductionMembers;\n\t}", "title": "" }, { "docid": "39161e90376fad360535464b2ee2ad94", "score": "0.49559858", "text": "public FurnitureType getFurnitureType();", "title": "" }, { "docid": "607dde95240df506645b7f497fd45b65", "score": "0.49555078", "text": "public static Creep createCreep(String type)\n\t{\n\t\ttype = type.toLowerCase();\n\t\tCreep ret = null;\n\t\tif(type.equals(\"basic\"))\n\t\t{\n\t\t\tret = new Creep(30, 0, 3, 5, \"Basic\", new RecoveryNone());\n\t\t}\n\t\telse if(type.equals(\"medium\"))\n\t\t{\n\t\t\tret = new Creep(100, 5, 10, 10, \"Medium\", new RecoveryLinear(1));\n\t\t}\n\t\telse if(type.equals(\"hard\"))\n\t\t{\n\t\t\tret = new Creep(150, 10, 50, 30, \"Hard\", new RecoveryLinear(25));\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "79709f0b4c8d34bfc05a876040812037", "score": "0.4947123", "text": "public Pizza createPizza(String type) {\n\t\tItalianIngredientFactory factory = new ItalianIngredientFactory();\n\t\tPizza pizza = null;\n\t\tif (type.equals(\"Cheese\")) {\n\t\t\tpizza = new CheesePizza(factory);\n\t\t}\n\t\tif (type.contentEquals(\"Pepperoni\")) {\n\t\t\tpizza = new PepperoniPizza(factory);\n\t\t}\n\t\tif(type.equals(\"Veggie\")) {\n\t\t\tpizza = new VeggiePizza(factory);\n\t\t}\n\t\tif(type.equals(\"Ham\")){\n\t\t\tpizza = new HamPizza(factory);\n\t\t}\n\t\treturn pizza;\n\t}", "title": "" }, { "docid": "91b708c91cf1e2efdcdd1a6baddf0588", "score": "0.4939764", "text": "public TechnologyLevel getMinTechLevelToProduce(ResourceType type) {\n return resourceInfoMap.get(type).minToProduce;\n }", "title": "" }, { "docid": "1a2c093c0c3915649a75c5beddbfdc9b", "score": "0.4928552", "text": "public CriticalItem getCriticalItem(int itemType, Player p) {\n\t\tInteger key = Integer.valueOf(itemType);\r\n\t\tif (critItems.containsKey(key)) {\r\n\t\t\tArrayList<CriticalItem> items = critItems.get(key);\r\n\t\t\tfor (CriticalItem item:items) {\r\n\t\t\t\tif (item.getPermission() != null && !hasPermission(p, item.getPermission())) {\r\n\t\t\t\t\tcontinue; //player didn't have permission for this entry\r\n\t\t\t\t}\r\n\t\t\t\t//System.out.println(\"Using critItem entry for permission: \" + item.getPermission());\r\n\t\t\t\treturn item;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Check the global entry (if any)\r\n\t\tif (critItems.containsKey(-1)) {\r\n\t\t\tArrayList<CriticalItem> globalItems = critItems.get(-1);\r\n\t\t\tfor (CriticalItem item:globalItems) {\r\n\t\t\t\tif (item.getPermission() != null && !hasPermission(p, item.getPermission())) {\r\n\t\t\t\t\tcontinue; //player didn't have permission for this entry\r\n\t\t\t\t}\r\n\t\t\t\t//System.out.println(\"Using global critItem entry for permission: \" + item.getPermission());\r\n\t\t\t\treturn item;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "c04f9fa4415eb9c6e2079146fa9bdb4f", "score": "0.4924938", "text": "public abstract int produce(LandType type);", "title": "" }, { "docid": "2269b8bfc2ffa96fcc614b1078dd9f32", "score": "0.49152195", "text": "EquipmentType getEquipmentType();", "title": "" }, { "docid": "e1dbb090705f987d4a1ce8de8d96e829", "score": "0.49127182", "text": "public int getStock(Product product){\n if (product instanceof Chocolate){\n return Chocolates;\n }else if (product instanceof SoftDrink){\n return SoftDrinks;\n }else if (product instanceof SaltySnack){\n return SaltySnacks;\n }else if (product instanceof Muffin){\n return Muffins;\n }else {\n return Chocolates + SoftDrinks + SaltySnacks + Muffins;\n }\n\n\n }", "title": "" }, { "docid": "de3e99604cdd40f91af2cd16187f0840", "score": "0.49052942", "text": "public List<Product> findByType(String type) {\n return null;\n }", "title": "" }, { "docid": "08befb79848b33cb590d0f042e60d8b2", "score": "0.48890623", "text": "public UnitType getExpertUnitType() {\n final Specification spec = getSpecification();\n ProductionType pt = getBestProductionType(false, null);\n return (pt == null) ? null\n : find(map(pt.getOutputs(),\n ag -> spec.getExpertForProducing(ag.getType())),\n ut -> ut != null, null);\n }", "title": "" }, { "docid": "c06b8c0ee3a709d78e7983e76db434c4", "score": "0.4885252", "text": "@Override\r\n\tpublic Packaging produce() {\n\t\treturn new AdultsBoxProduct();\r\n\t}", "title": "" }, { "docid": "8490b51909bf15867c7162cd82d34401", "score": "0.48810345", "text": "public BigDecimal getGeneralProfit();", "title": "" }, { "docid": "806b17d134f27135f15898600743109c", "score": "0.48727685", "text": "@Override\n\tpublic Pizza orderPizza(String type) {\n\t\tif(\"PizzaTypeAA\".equals(type)){\n\t\t\treturn new PizzaTypeAA();\n\t\t}else if(\"PizzaTypeAB\".equals(type)){\n\t\t\treturn new PizzaTypeAB();\n\t\t}else{\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\t}", "title": "" }, { "docid": "38b02374a08dbcb3357356c71cd32a7b", "score": "0.48721358", "text": "public int getGenericPotential(GoodsType goodsType) {\n return getPotentialProduction(goodsType,\n getSpecification().getDefaultUnitType(getOwner()));\n }", "title": "" }, { "docid": "3e3421723f90e5cf0a1c0fc9c509cd7c", "score": "0.48710307", "text": "public PieceType getType() {\n return this.type;\n }", "title": "" }, { "docid": "a81d75a3362cd8fafbf6c68285c7cb5d", "score": "0.48662218", "text": "ProductPromo getProductPromo();", "title": "" }, { "docid": "8984755a596f4cf13b65f3e6845be8e7", "score": "0.4865734", "text": "ProductType createProductType();", "title": "" }, { "docid": "e0251b4ce6b8adfd2088920f23a00ec0", "score": "0.48608467", "text": "public ArrayList<Chair> calculateChairPrice(String furnitureType, int quantity){\n\t\tArrayList<Chair> orderList = new ArrayList<Chair>();\n\t\tArrayList<Chair> chairList = new ArrayList<Chair>();\n\t\tResultSet chairInventory;\n\t\ttry{\n\t\t\tStatement myStatement = inventoryConnection.createStatement();\n\t\t\tchairInventory = myStatement.executeQuery(\"SELECT * FROM chair\");\n\n\t\t\t//adds a new chair object to the chair combinations arraylist\n\t\t\twhile(chairInventory.next()){\n\t\t\t\tif(chairInventory.getString(\"Type\").compareToIgnoreCase(furnitureType) == 0){\n\t\t\t\t\tchairList.add(new Chair(chairInventory.getString(\"ID\"), chairInventory.getString(\"Type\"), chairInventory.getString(\"Legs\"),\n\t\t\t\t\t\t\t\t\t\t\tchairInventory.getString(\"Arms\"), chairInventory.getString(\"Seat\"), chairInventory.getString(\"Cushion\"),\n\t\t\t\t\t\t\t\t\t\t\tchairInventory.getInt(\"Price\"), chairInventory.getString(\"ManuID\")));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(chairList.size() == 0){\n\t\t\t\tSystem.out.println(\"The furniture type you want to order is not available\");\n\t\t\t\tmyStatement.close();\n\t\t\t\tchairInventory.close();\n\t\t\t\torderList.clear();\n\t\t\t\treturn orderList;\n\t\t\t}\n\t\t\tmyStatement.close();\n\t\t\tchairInventory.close();\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tArrayList<ArrayList<Chair>> totalCombo = new ArrayList<ArrayList<Chair>>();\n\t\tint n = chairList.size();\n\t\t//find every combination of items in the list of lamp items\n\t\t//i <= 2 since we only need 4 components\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\ttotalCombo.addAll(chairCombinations(chairList, n, i));\n\t\t}\n\n\t\tArrayList<ArrayList<Chair>> componentCombos = new ArrayList<ArrayList<Chair>>();\n\t\t//find all the combinations that satisfy all the components\n\t\tfor(ArrayList<Chair> chairCombo : totalCombo){\n\t\t\t//counters for components are used for checking to see if the combination\n\t\t\t//can satisfy the requested quantity\n\t\t\tboolean legsFound = false;\n\t\t\tint legsCount = 0;\n\t\t\tboolean armsFound = false;\n\t\t\tint armsCount = 0;\n\t\t\tboolean seatFound = false;\n\t\t\tint seatCount = 0;\n\t\t\tboolean cushionFound = false;\n\t\t\tint cushionCount = 0;\n\t\t\t\n\t\t\t//search the current combination for legs\n\t\t\tfor(Chair chr : chairCombo){\n\t\t\t\tif(chr.getLegs().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tlegsFound = true;\n\t\t\t\t\tlegsCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for arms\n\t\t\tfor(Chair chr : chairCombo){\n\t\t\t\tif(chr.getArms().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tarmsFound = true;\n\t\t\t\t\tarmsCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for seat\n\t\t\tfor(Chair chr : chairCombo){\n\t\t\t\tif(chr.getSeat().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tseatFound = true;\n\t\t\t\t\tseatCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for cushion\n\t\t\tfor(Chair chr : chairCombo){\n\t\t\t\tif(chr.getCushion().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tcushionFound = true;\n\t\t\t\t\tcushionCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if both components are found, add to componentCombos\n\t\t\tif(legsFound && armsFound && seatFound && cushionFound && \n\t\t\t legsCount >= quantity && armsCount >= quantity && seatCount >= quantity && cushionCount >= quantity){\n\t\t\t\tcomponentCombos.add(chairCombo);\n\t\t\t}\n\t\t}\n\t\t//if combinations with all components were found, sort them to get the\n\t\t//lowest price\n\t\tif(componentCombos.size() > 0){\n\t\t\t//search for the combinations with the lowest price\n\t\t\t//sort the all the combonations and add the first elements to a list of size quantity\n\t\t\tfor(int i = 0; i < componentCombos.size(); i++){\n\t\t\t\tArrayList<Chair> chairComboI = componentCombos.get(i);\n\t\t\t\tint priceI = 0;\n\t\t\t\t//calculate the price for combination i\n\t\t\t\tfor(Chair chr : chairComboI){\n\t\t\t\t\tpriceI += chr.getPrice();\n\t\t\t\t}\n\t\t\t\t//sort the array by the smallest total price\n\t\t\t\tfor(int j = i + 1; j < componentCombos.size(); j++){\n\t\t\t\t\tArrayList<Chair> chairComboJ = componentCombos.get(j);\n\t\t\t\t\tint priceJ = 0;\n\t\t\t\t\t//calculate the price for combination j\n\t\t\t\t\tfor(Chair chr : chairComboJ){\n\t\t\t\t\t\tpriceJ += chr.getPrice();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(priceI > priceJ){\n\t\t\t\t\t\t//swap elements i and j\n\t\t\t\t\t\tCollections.swap(componentCombos, i, j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//add the items from the first combination to the orderList\n\t\t\tfor(Chair chr : componentCombos.get(0)){\n\t\t\t\torderList.add(chr);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Your order cannot be fulfilled based on our inventory\");\n\t\t\tSystem.out.println(\"The suggested manufacturers are: \");\n\n\t\t\tfor(Manufacturer manu : this.manufacturerList){\n\t\t\t\tSystem.out.println(manu.getName());\n\t\t\t}\n\t\t\t//return empty orderList\n\t\t\torderList.clear();\n\t\t}\n\t\t\n\t\treturn orderList;\n\t}", "title": "" }, { "docid": "2ecbd060ca1ae43b7785358ca72260d9", "score": "0.48602343", "text": "public Good getGoodType() {\n return goodType;\n }", "title": "" }, { "docid": "e8a6eac9a1d02e8e89b7790840005a47", "score": "0.485934", "text": "public static Inventory createSellStep2(CustomPlayer player, Material itemtype, String type) {\n\t\tGUI step2 = new GUI(SELL_STEP2_NAME, SELL_STEP2_SIZE);\n\n\t\tItemStack item = new ItemStack(itemtype);\n\t\tItemMeta itemmeta = item.getItemMeta();\n\t\tassert itemmeta != null;\n\n\t\t// Get grounds\n\t\tMap<String, Map<String, Integer>> grounds = new HashMap<>();\n\t\tswitch (type){\n\t\t\tcase \"farm\": grounds = player.getFarms(); break;\n\t\t\tcase \"build\": grounds = player.getBuilds(); break;\n\t\t\tdefault:\n\t\t\t\tif(player.getJob() == 0) grounds = player.getFarms();\n\t\t\t\telse if(player.getJob() == 3) grounds = player.getBuilds();\n\t\t\t\tgrounds.put(\"Maison\", player.getHouse());\n\t\t\t\tgrounds.put(\"Magasin\", player.getShop());\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Show grounds\n\t\tSet<String> entries = grounds.keySet();\n\t\tfor (String key : entries) {\n\t\t\tMap<String, Integer> ground = grounds.get(key);\n\n\t\t\t// Get color\n\t\t\tString color;\n\t\t\tswitch (key){\n\t\t\t\tcase \"Maison\": color = \"§3\"; break;\n\t\t\t\tcase \"Magasin\": color = \"§6\"; break;\n\t\t\t\tdefault:\n\t\t\t\t\tif(type.equalsIgnoreCase(\"farm\")) color = \"§2\";\n\t\t\t\t\telse color = \"§5\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\titemmeta.setDisplayName(color + key);\n\t\t\titemmeta.setLore(Arrays.asList(ground.get(\"x1\") + \";\" + ground.get(\"z1\"), ground.get(\"x2\") + \";\" + ground.get(\"z2\")));\n\t\t\titem.setItemMeta(itemmeta);\n\t\t\tstep2.addItem(item);\n\t\t}\n\n\t\treturn step2.getInventory();\n\t}", "title": "" }, { "docid": "3a2a3a11ecebeb8ba1ebdd35194bd36a", "score": "0.4857088", "text": "public static String obtainTransactionData(String type, int quantity, double profit) {\n return \"\\nTransaction Date:\\n\" +\n LocalDate.now() + // Obtains the current date of the system\n \"\\nTicket Type:\\n\" +\n type +\n \"\\nTicket Quantity:\\n\" +\n quantity +\n \"\\nTotal Price (RM):\\n\" +\n (int) profit; // Convert double to integer to remove decimal places which are always zeroes (.0)\n }", "title": "" }, { "docid": "e2b8dbec44029a3a4dafb48b30a4f1a3", "score": "0.48513696", "text": "public abstract PaymentType getPaymentType();", "title": "" }, { "docid": "e2b8dbec44029a3a4dafb48b30a4f1a3", "score": "0.48513696", "text": "public abstract PaymentType getPaymentType();", "title": "" }, { "docid": "87c835c88082b05418f33e3598064719", "score": "0.48473498", "text": "Product getProduct();", "title": "" }, { "docid": "87c835c88082b05418f33e3598064719", "score": "0.48473498", "text": "Product getProduct();", "title": "" }, { "docid": "01998ab25fa6306de264ce69a80ab7d1", "score": "0.484725", "text": "public static Minable getMineral(String type)\n\t{\n\t\tif (oreTable.containsKey(type)) {\n\t\t\treturn new Ore(oreTable.get(type));\n\t\t} else if (gemTable.containsKey(type)) {\n\t\t\treturn new Gem(gemTable.get(type));\n\t\t} else {\n\t\t\tLogger.getLogger(LonelehMining.class.getName()).severe(\"Invalid MineralType type: \" + type);\n\t\t}\n\t\treturn new Ore(MineralType.values()[0]);\n\t}", "title": "" }, { "docid": "3765d452a0eedd117a880523afeee7f0", "score": "0.4846648", "text": "public DrugType getType() {\n\n return this.type;\n\n }", "title": "" }, { "docid": "f30225baa66df02bbcae4c82c3d761e7", "score": "0.48418653", "text": "@Override\n\tpublic double cost() {\n\t\tdouble cost = 0;\n\t\tswitch (getSize()){\n\t\tcase 1: cost = 1.99;break;\n\t\tcase 2: cost = 2.99;break;\n\t\tcase 3: cost = 3.99;break;\n\t\t}\n\t\treturn cost+beverage.cost();\t\n\t\n\t}", "title": "" }, { "docid": "da03e183d3254c6f2dffc317d8618bfa", "score": "0.48411202", "text": "public Developer getDeveloper(Class<?> type);", "title": "" }, { "docid": "b7a972a3f9e205d6b994247c63ee80d8", "score": "0.48284057", "text": "public CosmeticType getType() {\n\t\treturn type;\n\t}", "title": "" }, { "docid": "1e191908b0827a8a080dfce5fc428dd3", "score": "0.4825474", "text": "public ArrayList<Filing> calculateFilingPrice(String furnitureType, int quantity){\n\t\tArrayList<Filing> filingList = new ArrayList<Filing>();\n\t\tArrayList<Filing> orderList = new ArrayList<Filing>();\n\t\tResultSet filingInventory;\n\t\ttry{\n\t\t\tStatement myStatement = inventoryConnection.createStatement();\n\t\t\tfilingInventory = myStatement.executeQuery(\"SELECT * FROM filing\");\n\n\t\t\t//adds a new chair object to the chair combinations arraylist\n\t\t\twhile(filingInventory.next()){\n\t\t\t\tif(filingInventory.getString(\"Type\").compareToIgnoreCase(furnitureType) == 0){\n\t\t\t\t\tfilingList.add(new Filing(filingInventory.getString(\"ID\"), filingInventory.getString(\"Type\"), filingInventory.getString(\"Rails\"),\n\t\t\t\t\t\t\t\t\t\t\t\t\t filingInventory.getString(\"Drawers\"), filingInventory.getString(\"Cabinet\"), filingInventory.getInt(\"Price\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t filingInventory.getString(\"ManuID\")));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(filingList.size() == 0){\n\t\t\t\tSystem.out.println(\"The furniture type you want to order is not available\");\n\t\t\t\tmyStatement.close();\n\t\t\t\tfilingInventory.close();\n\t\t\t\torderList.clear();\n\n\t\t\t\treturn orderList;\n\t\t\t}\n\t\t\tmyStatement.close();\n\t\t\tfilingInventory.close();\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tArrayList<ArrayList<Filing>> totalCombo = new ArrayList<ArrayList<Filing>>();\n\t\tint n = filingList.size();\n\t\t//find every combination of items in the list of lamp items\n\t\t//i <= 2 since we only need 4 components\n\t\tfor(int i = 1; i <= 4; i++){\n\t\t\ttotalCombo.addAll(filingCombinations(filingList, n, i));\n\t\t}\n\n\t\tArrayList<ArrayList<Filing>> componentCombos = new ArrayList<ArrayList<Filing>>();\n\t\t//find all the combinations that satisfy all the components\n\t\tfor(ArrayList<Filing> filingCombo : totalCombo){\n\t\t\t//counters for components are used for checking to see if the combination\n\t\t\t//can satisfy the requested quantity\n\t\t\tboolean railsFound = false;\n\t\t\tint railsCount = 0;\n\t\t\tboolean drawersFound = false;\n\t\t\tint drawersCount = 0;\n\t\t\tboolean cabinetFound = false;\n\t\t\tint cabinetCount = 0;\n\t\t\t\n\t\t\t//search the current combination for rails\n\t\t\tfor(Filing flg : filingCombo){\n\t\t\t\tif(flg.getRails().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\trailsFound = true;\n\t\t\t\t\trailsCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for drawers\n\t\t\tfor(Filing flg : filingCombo){\n\t\t\t\tif(flg.getDrawers().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tdrawersFound = true;\n\t\t\t\t\tdrawersCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//search the current combination for cabinet\n\t\t\tfor(Filing flg : filingCombo){\n\t\t\t\tif(flg.getCabinet().compareToIgnoreCase(\"Y\") == 0){\n\t\t\t\t\tcabinetFound = true;\n\t\t\t\t\tcabinetCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if both components are found, add to componentCombos\n\t\t\tif(railsFound && drawersFound && cabinetFound && railsCount >= quantity && drawersCount >= quantity && cabinetCount >= quantity){\n\t\t\t\tcomponentCombos.add(filingCombo);\n\t\t\t}\n\t\t}\n\t\t//if combinations with all components were found, sort them to get the\n\t\t//lowest price\n\t\tif(componentCombos.size() > 0){\n\t\t\t//search for the combinations with the lowest price\n\t\t\t//sort the all the combonations and add the first elements to a list of size quantity\n\t\t\tfor(int i = 0; i < componentCombos.size(); i++){\n\t\t\t\tArrayList<Filing> filingComboI = componentCombos.get(i);\n\t\t\t\tint priceI = 0;\n\t\t\t\t//calculate the price for combination i\n\t\t\t\tfor(Filing flg : filingComboI){\n\t\t\t\t\tpriceI += flg.getPrice();\n\t\t\t\t}\n\t\t\t\t//sort the array by the smallest total price\n\t\t\t\tfor(int j = i + 1; j < componentCombos.size(); j++){\n\t\t\t\t\tArrayList<Filing> filingComboJ = componentCombos.get(j);\n\t\t\t\t\tint priceJ = 0;\n\t\t\t\t\t//calculate the price for combination j\n\t\t\t\t\tfor(Filing flg : filingComboJ){\n\t\t\t\t\t\tpriceJ += flg.getPrice();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(priceI > priceJ){\n\t\t\t\t\t\t//swap elements i and j\n\t\t\t\t\t\tCollections.swap(componentCombos, i, j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//add the items from the first combination to the orderList\n\t\t\tfor(Filing dsk : componentCombos.get(0)){\n\t\t\t\torderList.add(dsk);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Your order cannot be fulfilled based on our inventory\");\n\t\t\tSystem.out.println(\"The suggested manufacturers are: \");\n\n\t\t\tfor(Manufacturer manu : this.manufacturerList){\n\t\t\t\tSystem.out.println(manu.getName());\n\t\t\t}\n\t\t\t//return empty orderList\n\t\t\torderList.clear();\n\t\t}\n\n\t\treturn orderList;\n\t}", "title": "" }, { "docid": "21540b8c2ff61bf821faf6a0b28c44e4", "score": "0.48143825", "text": "public PurchasePlan plan() {\n return this.plan;\n }", "title": "" }, { "docid": "faad8e6348146f2d21dca7db8b8a6a84", "score": "0.48020703", "text": "public String getGoodsClass() {\r\n return goodsClass;\r\n }", "title": "" }, { "docid": "53d39118b2e60d91d177014a28aa5539", "score": "0.47991833", "text": "public ProductionInfo getProductionInfo() {\n return getColony().getProductionInfo(this);\n }", "title": "" }, { "docid": "5dc36646be05114f91fd3a59d6ba0d33", "score": "0.47822344", "text": "public PotionEffectType getType() {\r\n return PotionEffectType.getByName(this.type);\r\n }", "title": "" }, { "docid": "24da088a93481c7313b6faad3628d808", "score": "0.47804385", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.CostCategory getCostCategory();", "title": "" }, { "docid": "bf906bd26103f2b98b77eb28e5247029", "score": "0.47675407", "text": "public ShipType getType() {\n return type;\n }", "title": "" }, { "docid": "8b280a8396e86d851fb671ab827faaf7", "score": "0.4766545", "text": "private float computeProduceEnergy(Player p,int turn,Game g)\n {\n float energyUsed =0 ;\n /*\n * We compute the number of solarPlant,WaterTurbine, .... by using the class NumberBuilding\n */\n \n NumberBuildingPrevision myPlayerNumberOfBuilding= new NumberBuildingPrevision(p.getBuildings(),turn);\n \n int nbSolarPlant=myPlayerNumberOfBuilding.getNbSolarPlant();\n int nbWaterTurbine=myPlayerNumberOfBuilding.getNbWaterTurbine();\n int nbWindTurbine=myPlayerNumberOfBuilding.getNbWindTurbine();\n int nbCoalPlant=myPlayerNumberOfBuilding.getNbCoalPlant();\n int nbNuclear=myPlayerNumberOfBuilding.getNbNuclear();\n \n \n /*\n * We compute the quantity of energy producted by our building\n */\n \n CoalPlant coalPlant = new CoalPlant();\n Nuclear nuclear = new Nuclear();\n SolarPlant solarPlant = new SolarPlant();\n WaterTurbine waterTurbine = new WaterTurbine();\n WindTurbine windTurbine = new WindTurbine();\n \n /*\n * Update the production of each building\n */\n coalPlant.computeUnitNRJProduce();\n nuclear.computeUnitNRJProduce();\n solarPlant.computeUnitNRJProduce(g.getLight());\n waterTurbine.computeUnitNRJProduce(g.getWater());\n windTurbine.computeUnitNRJProduce(g.getWind());\n \n /*\n * Compute the energy produced\n */\n energyUsed = nbCoalPlant* coalPlant.getUnitNRJProduce();\n energyUsed += nbNuclear * nuclear.getUnitNRJProduce();\n energyUsed += nbSolarPlant * solarPlant.getUnitNRJProduce();\n energyUsed += nbWaterTurbine * waterTurbine.getUnitNRJProduce();\n energyUsed += nbWindTurbine * windTurbine.getUnitNRJProduce();\n \n return (energyUsed) ;\n }", "title": "" }, { "docid": "4df0faf73de10475cfb787df4421c0d3", "score": "0.47648445", "text": "Inventory.InventoryType getType();", "title": "" }, { "docid": "223ccac1e1b9d638511ab5169c2d24cc", "score": "0.47587985", "text": "public String getProduct() {\n return product;\n }", "title": "" }, { "docid": "968065f24019cb7597fd283524530d11", "score": "0.47430947", "text": "public void execute(int type, Time tme)\r\n\t{\r\n\t\t// show arrival\r\n\t\tif (Simulation.DEBUG_PRINT)\r\n\t\t\tSystem.out.println(\"Consumer Product finished at time = \" + tme);\r\n\t\t// Remove product from system\r\n\t\tproduct.stamp(tme,\"Production complete\",name);\r\n\t\tsink.giveProduct(product);\r\n\t\tproduct=null;\r\n\r\n\t\t// set machine status to idle\r\n\t\tstatus='i';\r\n\t\t// Ask the queue for products\r\n\t\tqueue.askProduct(this);\r\n\t}", "title": "" }, { "docid": "f3c4f8ec4baf8c98f04fbb45981d2342", "score": "0.47411928", "text": "public BigDecimal getAgencyProfit();", "title": "" }, { "docid": "bb34b0d03eaf03045a516f1bc0d82bab", "score": "0.4740889", "text": "public String dispenseDialog(String itemName, int itemPrice, String productType){\n Double price = Double.valueOf(itemPrice)/100.00;\n DecimalFormat df = new DecimalFormat(\"0.00\");\n\n String outDialog = \"Dispensing \" + itemName + \", it cost $\" + df.format(price) + \".\";\n System.out.println(outDialog);\n\n this.displayAmountInMachine();\n //Handles different messages for product types\n if(productType.equals(\"Chip\")){\n System.out.println(\"Crunch Crunch, Yum!\");\n } else if(productType.equals(\"Candy\")){\n System.out.println(\"Munch Munch, Yum!\");\n } else if(productType.equals(\"Drink\")){\n System.out.println(\"Glug Glug, Yum!\");\n } else if(productType.equals(\"Gum\")){\n System.out.println(\"Chew Chew, Yum!\");\n }else{\n System.out.println(\"Yum!\");\n }\n\n return outDialog;\n }", "title": "" }, { "docid": "8d9005293cdcb90556d2eedf37380b83", "score": "0.47380608", "text": "public PlanType getPlanType() {\n return planType;\n }", "title": "" }, { "docid": "c365381ef908c9985412589d494388a9", "score": "0.4737502", "text": "public Number getIdProd() {\r\n return (Number)getAttributeInternal(IDPROD);\r\n }", "title": "" }, { "docid": "1d437c5259bb60626f2ffb8a95fcf8ef", "score": "0.4736653", "text": "public Optional<WardType> getFromCode(final String type)\n {\n return Stream.of(WardType.values()).filter(t -> t.name().equalsIgnoreCase(type)).findFirst();\n }", "title": "" }, { "docid": "38bfd2618ada0be4aad67a7b72fdd963", "score": "0.47346258", "text": "public Product productReturner() {\n return product;\n }", "title": "" } ]
38fa0ae13ede7842d976c939bbec05d2
Invoked by game engine to signal that next level should be started.
[ { "docid": "21309d53fd87fc037e2fa4854350b06d", "score": "0.0", "text": "public final void prepareNextLevel( int score )\r\n {\r\n if( ++Settings.level < GameConfig.levels ){\r\n this.nextState = STATE_START_LEVEL_WITHOUT_RES_LOADING;\r\n Settings.score = score;\r\n }\r\n else{\r\n this.score = score;\r\n this.nextState = Settings.isHighScore( this.score ) ?\r\n STATE_SHOW_GAME_RESULTS_HIGH_SCORE :\r\n STATE_SHOW_GAME_RESULTS_ORDINARY_SCORE;\r\n // reset level to signal that game is complete\r\n Settings.level = 0;\r\n Settings.score = 0;\r\n }\r\n\r\n // store settings to persist current progress\r\n Settings.storeSettings();\r\n this.invalidate();\r\n // remove pause command\r\n game.canvas.removeCommand( game.pauseCommand );\r\n }", "title": "" } ]
[ { "docid": "50a271c6a6fc04a07f0cd58ee14a9f25", "score": "0.7701681", "text": "private void startNextLevel() {\n InGameHelper.turnAllSensorsOff(this);\n if (levelNumber < GlobalPreferences.TOTAL_NUMBER_OF_LEVELS) {\n InGameHelper.turnAllSensorsOff(this);\n CCScene scene = GameLayer.scene(levelNumber + 1);\n scene.setTag(GlobalPreferences.GAME_LAYER_TAG);\n CCFadeTransition fade = CCFadeTransition.transition(1f, scene);\n CCDirector.sharedDirector().replaceScene(fade);\n } else {\n startDifficultySelectionScene();\n }\n }", "title": "" }, { "docid": "be7751b22e37e44d9fe683ff867db4ec", "score": "0.7369753", "text": "public void startNextLevel();", "title": "" }, { "docid": "a90acc366191d41be09ae221f42ea80a", "score": "0.71886784", "text": "abstract public void levelStarted(int levelNumber);", "title": "" }, { "docid": "5f89831b1ed0802938c40a85f4c9fee4", "score": "0.70961577", "text": "private void newLevelStarting() {\n level += 1;\n Fruit.setFruitForLevel(level);\n maps.get(0).initializeMap();\n maps.get(0).setCollisionOverrideOnTile(104, 120);\n maps.get(0).setCollisionOverrideOnTile(112, 120);\n pelletsLeft = PELLETS_ON_BOARD;\n redGhost.setInGhostHouse(false);\n restartLevelInProgress();\n powerPelletsActive.add(new PowerPellet(204, 203));\n powerPelletsActive.add(new PowerPellet(4, 203));\n powerPelletsActive.add(new PowerPellet(4, 44));\n powerPelletsActive.add(new PowerPellet(204, 44));\n }", "title": "" }, { "docid": "9dc289d02db94a3420a115b8e60f1cd4", "score": "0.7072681", "text": "public void nextLevel() {\n main.getFlyByCamera().setDragToRotate(false);\n nifty.gotoScreen(\"hud\");\n asm.detach(asm.getState(EndScreen.class));\n g.setEnabled(true);\n g.endLevel();\n }", "title": "" }, { "docid": "62f117e9ee63d2bb55fa1b27f7557ba2", "score": "0.70336604", "text": "public static void nextLevel() {\n score++;\n gsm.set(new PlayState(gsm));\n }", "title": "" }, { "docid": "c13374e5c35dae5675c7da2294167da7", "score": "0.67894065", "text": "private void beginLevel() {\n gameLayout.setAlpha(1.0f);\n gameLayout.setVisibility(View.VISIBLE);\n levelInfoLayout.setVisibility(View.INVISIBLE);\n randomDrinkGen();\n displayDrinkOrder();\n\n if(level > 0) {\n levelTimeRemaining.setVisibility(View.VISIBLE);\n countDownTimer.start();\n }\n\n }", "title": "" }, { "docid": "f0047edb7fafb8ac1841e14d933fb175", "score": "0.6742668", "text": "private void updateLevelEnd() {\n\t\tif (Gdx.input.justTouched()) {\n\t\t\tGdx.app.log(\"LLK\", \"Enter next level!\");\n\t\t\ttotalTime-=10;\n\t\t\tstartPlay();\n\t\t}\n\t}", "title": "" }, { "docid": "a2bad88f26532d61cc99eaa2f16e6a5c", "score": "0.6678707", "text": "private void levelInProgress() {\n if (pressedKey[KeyEvent.VK_7]) System.setProperty(DEBUG_PROPERTY_NAME, \"true\");\n if (pressedKey[KeyEvent.VK_8]) System.setProperty(DEBUG_PROPERTY_NAME, \"false\");\n if (pressedKey[KeyEvent.VK_ESCAPE]) isRunning = false;\n\n switch (pelletsLeft) {\n case 0:\n currentLevelState = LevelState.LEVEL_FINISHED;\n break;\n case 70:\n if (!secondFruitSpawned) {\n spawnFruit();\n secondFruitSpawned = true;\n }\n break;\n case 170:\n if (!firstFruitSpawned) {\n spawnFruit();\n firstFruitSpawned = true;\n }\n break;\n default:\n break;\n }\n if (pelletsLeft != 0) {\n levelRunningCount += 1;\n checkForGhostModeChange();\n playerMovement();\n playerEntityCollisionCheck();\n playerObjectCheck();\n ghostMovement();\n }\n }", "title": "" }, { "docid": "7682e4de3e3bb12706344688e71b213a", "score": "0.6663108", "text": "public void restartLevel();", "title": "" }, { "docid": "850be9fe0ab58499bb4511a19ba1d8bb", "score": "0.6612892", "text": "public void nextLevel() {\n int lv = this.level.getLevelNumber()+1;\n this.level=new Level(height,length,lv,level.getHSK());\n// this.level.moreDifficultCharacters();\n resetHero();\n resetEnemies();\n }", "title": "" }, { "docid": "639b9d2c514bd9c20570e8c876e0d056", "score": "0.66086906", "text": "void restartLevel();", "title": "" }, { "docid": "33b496e87038441ef0f4f7044a952643", "score": "0.65864784", "text": "public void nextLevel() {\n \t\tif (!gameOver) {\n \t\t\tcurrentLevel = new Level(currentLevel);\n \t\t} else {\n \t\t\tgameOver = false;\n \t\t\tcurrentLevel = new Level();\n \t\t}\n \t}", "title": "" }, { "docid": "a98f2e20c0af81a57422d62ed1ef2078", "score": "0.65651935", "text": "public void nextLevel() throws NoMoreLevelsException {\n\n if (blindsLevel+1 >= distribution.getBlindsLevels().size()){\n throw new NoMoreLevelsException();\n }\n\n blindsLevel++;\n\t\tif(countDownTimer != null){\n countDownTimer.cancel();\n }\n state = State.STOPPED_START;\n\n //Borramos el reloj del anterior nivel, y establecemos el del siguiente\n clockCalendar.setTimeInMillis(0);\n clockCalendar.set(Calendar.MINUTE, getBlindsLevel().getMinutes());\n\n for (PokerCounterListener listener: listeners) {\n listener.levelChange();\n }\n\n for (PokerCounterListener listener: listeners) {\n listener.updateCounter();\n }\n }", "title": "" }, { "docid": "1f5c158088ce78bc748f973391338cdc", "score": "0.6533251", "text": "public void nextLevel() {\n assert levels.size() > 1;\n levels.removeFirst();\n moveCount = 0;\n getLevel().registerPlayer(player);\n }", "title": "" }, { "docid": "7dcc5596ba56a8a4614bf7606f211755", "score": "0.65129864", "text": "void goToNextLevel();", "title": "" }, { "docid": "7dcc5596ba56a8a4614bf7606f211755", "score": "0.65129864", "text": "void goToNextLevel();", "title": "" }, { "docid": "7dcc5596ba56a8a4614bf7606f211755", "score": "0.65129864", "text": "void goToNextLevel();", "title": "" }, { "docid": "99387b889ea5230cc350c38eead6aac7", "score": "0.6504651", "text": "public void loadNextLevel(){\r\n \t\r\n \tlevel = new level2(player);\r\n \tif(levelID == 2){ \r\n \t\tmsg=\"Congratulation you finished our demo. Preorder now our DLC pack for more content.\"; \r\n \t\tthis.gameWon = true;\r\n \t}\r\n \tlevelID = 2; \r\n }", "title": "" }, { "docid": "0d3b22d3344e30fcd70a2e6816f93362", "score": "0.6501969", "text": "public void increaseLevel()\n\t{\n\t\t// Set the current HP and MP of the L2Character, Launch/Stop a HP/MP/CP\n\t\t// Regeneration Task and send StatusUpdate packet to all other\n\t\t// L2PcInstance to inform (exclusive broadcast)\n\t\tif (!isDead())\n\t\t{\n\t\t\tsetCurrentHpMp(getMaxHp(), getMaxMp());\n\t\t\tsetCurrentCp(getMaxCp());\n\t\t}\n\t}", "title": "" }, { "docid": "3239395d75434b639b577ec904e70baf", "score": "0.64505774", "text": "public void onLevelFinished(){\n\t\tSystem.out.println(\"Level finished!\");\n\t\tif(LOOPWHENFINISHED){\n\t\t\tSystem.out.println(\"Resetting spawner!\");\n\t\t\treset();\n\t\t\ttimer = -LOOPDELAY;\n\t\t}\n }", "title": "" }, { "docid": "2e6104cd1e84009a48cfa9f5dcd76d27", "score": "0.64125884", "text": "@Override\n protected void newLevel()\n {\n level += 1;\n placeShip(1);\n placeShip(2);\n heartBeat.setDelay(INITIAL_BEAT);\n beat = 1;\n placeAsteroids();\n }", "title": "" }, { "docid": "681940c7a2043d952d2d53c2046698c1", "score": "0.6384277", "text": "public void start() {\r\n\t\tthis.model.loadLevel(1);\r\n\t\tthis.model.getObservable().addObserver(this.view.getObserver());\r\n\t\tthis.loop = new GameLoop(this);\r\n\t\tthis.loop.start();\r\n\t\tthis.view.openFrame();\r\n\r\n\t}", "title": "" }, { "docid": "b1dee13e5bcb6c5ea993ad6946b539d7", "score": "0.6377649", "text": "public void onGainLevel() { \n\t\tnew LevelUpController().autoLevelUp(creature);\n\t}", "title": "" }, { "docid": "d90cee1332870be403862d85728beb43", "score": "0.6313621", "text": "public void nextLevel() {\n\t\tlevel = (level + 1);\n\t\tif (level >= NO_LEVELS){\n\t\t\tlevel = -1;\n\t\t}\n\t}", "title": "" }, { "docid": "049b2c27d04b89a46a690e3e4f268b93", "score": "0.6270794", "text": "public void incrementLevel()\n {\n this.currentLevelIndex = getValidIndex(this.currentLevelIndex + 1);\n }", "title": "" }, { "docid": "a47c19cc25b1848cae2c2a384d595453", "score": "0.6265498", "text": "public void nextLevel() {\n // map regen\n map.generateWorld(MAPHEIGHT, MAPWIDTH);\n // grid regen\n grid = new NodeGrid(this);\n\n multi.setMultipliers();\n\n // player reposition\n int playerX = (int) (Math.random() * map.getMaxWidth());\n int playerY = (int) (Math.random() * map.getMaxHeight());\n while (grid.getNode(playerY, playerX).isOccupied() ||\n !grid.getNode(playerY, playerX).isWalkable() ||\n (map.getStairX() == playerX && map.getStairY() == playerY ||\n grid.getNode(playerY, playerX).getItem() != null)) {\n playerX = (int) (Math.random() * map.getMaxWidth());\n playerY = (int) (Math.random() * map.getMaxHeight());\n }\n\n player.setX(playerX * 32);\n player.setY(playerY * 32);\n\n multi.setAvgTurns();\n\n // enemies reset\n enemies.removeAll(enemies);\n \n // items reset\n items.removeAll(items);\n\n // empty enemyBullet\n enemyBullets.removeAll(enemies);\n\n // shot false\n shot = false;\n playerBullet = null;\n levelTurns = 1;\n currentLevel++;\n\n enemyGen();\n itemGen();\n\n }", "title": "" }, { "docid": "780455aaf72888bc042307fd1db31503", "score": "0.6256949", "text": "public void startGame() {\n \t\tgameStarted = true;\n \t}", "title": "" }, { "docid": "9c649eed29b233e109993b2417410ba0", "score": "0.6251262", "text": "private void runLevel() {\n\n if (currentLevel != null) {\n\n if (isNewLevel) {\n\n // If level is started without any previously given data, generate vocabulary\n String newVocabulary = getVocabulary();\n // System.out.println(\"Vocabulary generated: \" + newVocabulary);\n\n if (!newVocabulary.equals(\"\")) {\n\n if (vocabularyUsedCount != vocabularyTotalCount) {\n addUsedVocabulary(newVocabulary);\n\n setVocabularyText(newVocabulary);\n setAnswerText(generateAnswerButtonCaptionOrder(currentLevel.get(newVocabulary)));\n setLevelProgressIndicator();\n\n vocabularyUsedCount++;\n }\n else {\n System.out.println(\"Level done\");\n }\n }\n else {\n // System.out.println(vocabularyUsedCount + \" \" + vocabularyTotalCount);\n\n if (vocabularyUsedCount == vocabularyTotalCount) {\n\n setLevelProgressIndicator();\n\n //System.out.println(\"Level done\");\n\n initResultScreen();\n }\n else {\n runLevel();\n }\n }\n }\n else {\n\n /**\n System.out.println(vocabularyUsedCount);\n System.out.println(vocabularyTotalCount);\n System.out.println(vocabularyUsed.toString());\n System.out.println(answersGiven.toString());\n System.out.println(correctAnswersGiven.toString());\n System.out.println(currentLevel.toString());\n */\n\n if (vocabularyUsedCount != vocabularyTotalCount) {\n\n // If level is restarted, simply get the vocabulary from the vocabularyUsed AL\n String nextVocabulary = vocabularyUsed.get(vocabularyUsedCount);\n\n setVocabularyText(nextVocabulary);\n setAnswerText(generateAnswerButtonCaptionOrder(currentLevel.get(nextVocabulary)));\n setLevelProgressIndicator();\n\n vocabularyUsedCount++;\n }\n else {\n setLevelProgressIndicator();\n initResultScreen();\n }\n }\n }\n }", "title": "" }, { "docid": "fd4a7855a0803a87a514e13195e9419a", "score": "0.6226502", "text": "public void gameStarted(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "22f80621dfc7af282dca72d29ea9592e", "score": "0.6212173", "text": "public void start()\n \t{\n \t\tgenEnemyCommands();\n \t\tpopulateActorList();\n \t\tgetTurnOrder();\n \t\tactiveActor = turnOrder.remove(0);\n \t\tstate = new EngageState(activeActor);\n \t\tstate.setParent(this);\n \t\tplayerIndex = -1;\t\t\n \t}", "title": "" }, { "docid": "aac65452c09350b24c7cbf2dc11c3d10", "score": "0.618066", "text": "public void restartLevel(){\n loadLevel(gameContext.getLevelNum());\n }", "title": "" }, { "docid": "956a9c51b78a488a6bca09297508c288", "score": "0.61752677", "text": "private void moveToNextLevel() {\n if (level >= getMaxLevel()) {\n showGameWinningOrLosingMessage(\"gameWinningMessage\"+getEnergyType());\n } else {\n showFunFact(\"funFact\"+level+getEnergyType());\n level++;\n restartObstacles();\n }\n gameInfoDisplay.setText(createTextDisplay());\n }", "title": "" }, { "docid": "7546826053dc2d700a188e4ececf1a91", "score": "0.61669886", "text": "@Override\n public void onFinish() {\n levelFinished(false);\n }", "title": "" }, { "docid": "32f6de9e63fec1342e034c926b75e2d6", "score": "0.6166481", "text": "public void goNextLevel() {\n world.stop();\n if (level == 3) {\n System.exit(0);\n }\n else if (level ==0){\n level++;\n // get a new world\n world = new Level1();\n\n // fill it with bodies\n world.populate(this);\n world.addStepListener(new TurtleStep(world.getTurtle()));\n view.updateMario(world.getPlayer());\n // switch the keyboard control to the new player\n controller.setBody(world.getPlayer());\n // show the new world in the view\n view.setWorld(world);\n world.start();\n } else if (level ==1){\n level++;\n // get a new world\n world = new Level2();\n // fill it with bodies\n world.populate(this);\n world.addStepListener(new TurtleStep(world.getTurtle()));\n view.updateMario(world.getPlayer());\n // switch the keyboard control to the new player\n controller.setBody(world.getPlayer());\n // show the new world in the view\n view.setWorld(world);\n world.start();\n }\n else if (level ==2){\n level++;\n // get a new world\n world = new Level3();\n // fill it with bodies\n world.populate(this);\n world.addStepListener(new TurtleStep(world.getTurtle()));\n view.updateMario(world.getPlayer());\n // switch the keyboard control to the new player\n controller.setBody(world.getPlayer());\n // show the new world in the view\n view.setWorld(world);\n world.start();\n }\n }", "title": "" }, { "docid": "afcc4c3b6546cd75401215d33c35847f", "score": "0.61621964", "text": "public void gameStart() {\n\t\tSystem.out.println(\"Game start!!\");\n\t\tthis.inGame=true;\n\t\tSystem.out.println(\"********************\");\n\t}", "title": "" }, { "docid": "737c9771ac9d762fa7bff4efff7ef4d2", "score": "0.6161673", "text": "private void playLevel()\n\t{\n\t\tGameOn level1 = new GameOn( levelNames[levelIndex], textureMap );\n\t\t\n\t\tif ( level1.bPassed )\n\t\t{\t\t\t\n\t\t\tif (levelAccess < levelIndex && levelIndex < 24 )\n\t\t\t\tlevelAccess = levelIndex ;\n\t\t\t\n\t\t\tif ( level1.coinCount > coinTotals[levelIndex] )\n\t\t\t\tcoinTotals[levelIndex] = level1.coinCount;\n\t\t\t\n\t\t\tif ( level1.winTime - level1.startTime < timeTotals[levelIndex] || timeTotals[levelIndex] == (long) 0 )\n\t\t\t\ttimeTotals[levelIndex] = level1.winTime - level1.startTime;\n\t\t\t\n\t\t\tcoinTally = 0;\n\t\t\ttotalTime = 0;\n\t\t\t\n\t\t\tfor ( int i = 0 ; i < coinTotals.length ; i++)\n\t\t\t{\n\t\t\t\tcoinTally += coinTotals[i];\n\t\t\t\ttotalTime += timeTotals[i];\n\t\t\t\tSystem.out.println(\"cointotal: \" + coinTally + \"Level \" + i + \": \" + coinTotals[i] + \"\\n\");\n\t\t\t\tsaveGame( currentFile );\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tstate = State.WORLD;\n\t\tpressText.timer = 1; //TODO: necessary?\n\t}", "title": "" }, { "docid": "24a82755d957eacc45a704257075c4e4", "score": "0.61534095", "text": "public void start()\r\n {\r\n this.nextState = STATE_LOAD_LEVEL_DATA;\r\n this.invalidate();\r\n hideNotifyCount = 0;\r\n }", "title": "" }, { "docid": "df10c8674fedce89190d88096993a9f8", "score": "0.61423206", "text": "protected void GXStart( )\n {\n e125L2 ();\n if (returnInSub) return;\n }", "title": "" }, { "docid": "8fad314b35db780b6ab6e8280b96cf9e", "score": "0.613776", "text": "public void next() {\n if (active < levels.size() - 1) {\n switchToLevel(active + 1);\n }\n }", "title": "" }, { "docid": "aca79e060527dc5e0e62443cbe375d7d", "score": "0.61247236", "text": "protected void startGame() {\n }", "title": "" }, { "docid": "aa5ed8bda7e810cc6f6739155a98ccf2", "score": "0.61169755", "text": "@Override\n\tpublic void onResume() {\n\t\thandler.sendEmptyMessage(handler_key.START.ordinal());\n\t\tsuper.onResume();\n\t}", "title": "" }, { "docid": "9ba928e888c5e1fc9a46c9a452a484a0", "score": "0.6112946", "text": "public static void startGame() {\n\n\t\t//A jatek elindult, flag beallitasa\n\t\tgameStatus = 1;\n\t}", "title": "" }, { "docid": "8fa208262881bfe6b2a76bf4e66f9cb2", "score": "0.61123824", "text": "private void manageStartLevel(){\n if(startLevelTracker != null){\n StartLevel startLevel = (StartLevel)startLevelTracker.getService();\n if(startLevel != null){\n int sLevel = startLevel.getBundleStartLevel(ctx.getBundle());\n int defStartLevel = 1;\n Object defStartLevelObject = System.getProperty(START_LEVEL_PROPERTY);\n if(defStartLevelObject != null){\n defStartLevel = Integer.getInteger((String)defStartLevelObject);\n }\n if(sLevel != defStartLevel){\n \tSystem.out.println(\"Setting bundle startlevel to: \"+defStartLevel);\n \tstartLevel.setBundleStartLevel(ctx.getBundle(), defStartLevel);\n }\n }\n }\n }", "title": "" }, { "docid": "5e824966de7d89c90bc6a2e6438d6608", "score": "0.6103687", "text": "protected void GXStart( )\n {\n e121F2 ();\n if (returnInSub) return;\n }", "title": "" }, { "docid": "e6ced9c0ac9764c058e574704e6f9d7a", "score": "0.60875624", "text": "protected void GXStart( )\n {\n e11042 ();\n if (returnInSub) return;\n }", "title": "" }, { "docid": "a35a362ba6f213b2a47bd5bfb0baa07c", "score": "0.6084609", "text": "public void incrementCurrentLevel() {\n this.currentLevel += 1;\n }", "title": "" }, { "docid": "1cdaeb4e46f0b31859295139c510403b", "score": "0.6074312", "text": "public void startGame() {\n\t}", "title": "" }, { "docid": "c9674a595ccf99ba3f4f15299bc530a9", "score": "0.60686076", "text": "public void next_level(long lvl) {\n if (lvl != 0) {\n zombieClicker.getNumerics().plus_boss_kills(1);\n zombieClicker.getNumerics().plus_diamonds(location.getBoss_kill_reward());\n location.plus_zombie_health();\n location.plus_Boss_health();\n location.plus_zombie_kill_reward();\n location.setLoseBoss(false);\n leaveBossFight_btn.setVisible(false);\n bossFight_btn.setVisible(false);\n }\n location.upLevel(lvl);\n location.setMaxZombie_health();\n location.setMaxBoss_health();\n location.plus_count_kill_boss(lvl);\n location.plus_zombie_kills(BigInteger.valueOf(lvl));\n location.setBossFight(false);\n }", "title": "" }, { "docid": "d5958a52a5b6b5d5b9287c11210a4f78", "score": "0.60666734", "text": "void onLevel(int level);", "title": "" }, { "docid": "0b5840577c5d0744183c5412b7136621", "score": "0.6053874", "text": "protected void onBeginNewGame() {\r\n\t\tif (MiniGame.isRestoreAvailable()) {\r\n\t\t\t// Ask to resume\r\n\t\t\tMiniGame.restoreGame();\r\n\t\t} else {\r\n\t\t\tcleanGame();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a236944df2045484b03acd6f99debdac", "score": "0.60491073", "text": "private void goToNextLevel() {\n mInterstitialAd = newInterstitialAd();\n loadInterstitial();\n }", "title": "" }, { "docid": "64564bcc159f9c0ea1a8e79166604c05", "score": "0.6045558", "text": "public boolean nextLevel() {\n if (dungeon.getCurrentLevel() < dungeon.getNbLevel()) {\n dungeon.DungeonLoader(dungeon.getCurrentLevel() + 1);\n posPlayer = dungeon.playerFinder();\n _undoManager = new UndoManager();\n clearInfo();\n nbStorageSlot = dungeon.StorageFinder();\n setChanged();\n notifyObservers();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "7da862faa8c4f839909989d120bb5763", "score": "0.60369575", "text": "@Override\r\n\tprotected void beforeGameStart() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b94400d627db4faa5532347523ecb182", "score": "0.60308605", "text": "@Override\r\n\tprotected void afterGameStart() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a2ace266a754d6613ebb5bbfb73fcfd8", "score": "0.6023721", "text": "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tGdx.input.setInputProcessor(null);\n\t\t\t\t\t\t\t\tif (ld.getCompletedLevels() == 1)\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.first);\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.startscreen);\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "8e956fe2280d6390ca86407f5a11b8b7", "score": "0.6023272", "text": "public void startGame() {\n\n\n\t}", "title": "" }, { "docid": "44c4af9428262cf3fb6a50882664850f", "score": "0.60033137", "text": "@Override\n public void onTurnStart() {\n if(state != ServerState.WAITING_SPAWN)\n {\n state = ServerState.WAITING_ACTION;\n clientHandler.sendMessage(new ChooseTurnActionRequest(model.getCurrentTurn().isMovAllowed()));\n }\n else{\n if(currPlayer.getCardPower().size()<2) {\n CardPower cp = model.drawPowerUp();\n currPlayer.addCardPower(cp);\n clientHandler.sendMessage(new RespawnRequest(cp));\n }\n else\n clientHandler.sendMessage(new RespawnRequest());\n\n }\n\n }", "title": "" }, { "docid": "4725e8b8dbb886fb72e1a89443d5f906", "score": "0.60029656", "text": "abstract public void levelCompleted(int levelNumber);", "title": "" }, { "docid": "93adfefd92c87afbd064458ca81da727", "score": "0.5996852", "text": "void startPoint() {\n\t\t// Do not allow game to start if it is multiplayer without an opponent\n\t\tif (getMPHost() || !ArcadeSystem.isMultiplayerEnabled()) {\n\t\t\tgetBall().randomizeVelocity();\n\t\t\tif (ArcadeSystem.isMultiplayerEnabled()) {\n\t\t\t\tsendInitState();\n\t\t\t}\n\t\t\tgameState = new InProgressState();\n\t\t\tstatusMessage = null;\n\t\t}\n\t}", "title": "" }, { "docid": "ae4f7e1cfb43c43d7dc4b38f014eedea", "score": "0.5992927", "text": "public void updateGameLogicLevel()\r\n\t{\r\n\t\tgoToLevel(gameProgress.getCurrentLevel());\r\n\t}", "title": "" }, { "docid": "856b53f506945f35b7f51656a7cd3c9f", "score": "0.59873205", "text": "private void enterSequence_main_on_default() {\n\t\tenterSequence_main_on_trafficlight_default();\n\t}", "title": "" }, { "docid": "05e9992d28229080bdd9af935bf11353", "score": "0.5970453", "text": "public void startNewGame() {\n\t\tstartGame(null);\n\t}", "title": "" }, { "docid": "11a4716f06bff5aa48ef50fd78cc7ec7", "score": "0.5962118", "text": "@Override\n public void start() {\n mStateMachine.sendMessage(SoftApStateMachine.CMD_START);\n }", "title": "" }, { "docid": "3959362488646705c4064581ee4f1de5", "score": "0.5955559", "text": "public void setUpNextLevel() {\n\t\tlevel++;\n\t\tship_accel=.20;\n\t\t// create a new, inactive ship centered on the screen\n\t\t// I like .35 for acceleration, .98 for velocityDecay, and\n\t\t// .1 for rotationalSpeed. They give the controls a nice feel.\n\t\tif (ship == null) {\n\t\t\tresetShip();\n\t\t\tship.setActive(false);\n\t\t}\n \n\t\t//no shots on the screen at beginning of level\n\t\tpaused = true;\n\t\tshooting = false;\n\t\t//create an array large enough to hold the biggest number\n\t\t//of asteroids possible on this level (plus one because\n\t\t//the split asteroids are created first, then the original\n\t\t//one is deleted). The level number is equal to the\n\t\t//number of asteroids at it's start.\n\t\t\n\t\tentities = new ArrayList<>();\n\t\tpending = new ArrayList<>();\n\t\t\n\t\t// Add the spawners!\n\t\tentities.add(new Spawn(World.scrnWidth / 4, World.scrnHeight / 4, 40, Color.RED));\n\t\tentities.add(new Spawn(World.scrnWidth * 1/2, World.scrnHeight * 3/4, 40, Color.GREEN));\n\t\tentities.add(new Spawn(World.scrnWidth * 3/4, World.scrnHeight / 4, 40, Color.BLUE));\n\t\t\n\t\t//create asteroids in random spots on the screen\n\t\tfor (int i = 0; i < level; i++) {\n\t\t\tentities.add(new Asteroid(Math.random() * World.scrnWidth, Math.random() * World.scrnHeight,\n\t\t\t\t\t\t\tast_radius, ast_minVel, ast_maxVel, ast_numHits, ast_numSplit, Asteroid.randomColor()));\n\t\t\tentities.add(new Virus(Math.random() * World.scrnWidth, Math.random() * World.scrnHeight,\n\t\t\t\t\t\t\tvir_minVel, vir_maxVel, vir_innerr, vir_outerr, vir_life, vir_spikes));\n\t\t\tentities.add(new SpeedUp(Math.random() * World.scrnWidth, Math.random() * World.scrnHeight));\n\t\t}\t\n\t}", "title": "" }, { "docid": "fb0ab0dc4d4858d3fd80f07ad75c79be", "score": "0.594582", "text": "public void gameStarted() {\t\t\n\t\tSystem.out.println(\"Game Started\");\n\t\t\n\t\tbwapi.enableUserInput();\n\t\tbwapi.enablePerfectInformation();\n\t\tbwapi.setGameSpeed(0);\n\t\tbwapi.loadMapData(true);\n\n\t\t// reset agent state\n\t\tclaimed.clear();\n\t\tmorphedDrone = false;\n\t\tpoolDrone = -1;\n\t\tsupplyCap = 0;\n\t}", "title": "" }, { "docid": "b537ba5af06938f422edaa664cc0cc09", "score": "0.59431577", "text": "private void levelFinished() {\n pauseGameLoop(2000);\n player.setMoving(false);\n resetAllTimers();\n currentFruit = null;\n firstFruitSpawned = false;\n secondFruitSpawned = false;\n currentLevelState = LevelState.LEVEL_STARTING;\n }", "title": "" }, { "docid": "229c902d055513fb0f747a4d2afb5032", "score": "0.59367865", "text": "private void startGame() {\n\t\tstate = STATE_MAP;\t\t\t\t\t\t\t\t\t//Set the next State\n\t\t\n\t\t//Clear all actors in the GameHandler\n\t\tthis.clear();\t\n\t\t\n\t\t//Generates a List of 16 Maps\n\t\tmapList = generateMapList();\t\t\t\t\t\t\t\t\n\t\t\n\t\t//Get the first Map\n\t\tcurrentMap = mapList.get(0);\t\t\t\t\t\t\n\t\t\n\t\t//Set the selected Map as Actor\n\t\taddActor(currentMap);\t\t\t\t\t\t\t\n\t\t\n\t\t//Add Charakter reference\n\t\tcurrentMap.setCharRef(charakter);\n\t\t\n\t\t//Generate a UI for the Map\n\t\tcurrentMap.generateUI();\t\t\t\t\t\t\t\n\t\t\n\t\t//Set the player start position\n\t\tMapTile startTile = currentMap.getStartTile();\n\t\tcurrentMap.setCharakterOnPosition(startTile.getPosX(), startTile.getPosY());\n\t\t\n\t\t//Put Events on the map\n\t\tint street = 10 + (0 * 10);\t\t//TODO: replace the 0 with the current number of level\n\t\tint lvl1 = 10;\n\t\tint lvl2 = 5;\n\t\tint lvl3 = (int)(Math.random()*2);\n\t\tcurrentMap.setEvents(street, lvl1, lvl2, lvl3);\n\t\t\n\t\t//Move the camera to the Character Position\n\t\tcurrentMap.moveCameraToCharacter();\n\t}", "title": "" }, { "docid": "9fcd1ccdf46ceeff2c54853c1d9d1e71", "score": "0.5912273", "text": "public void initNewLife() {\n\t\t//Start the level over from the beginning when the player dies\n\t\tdefineLevel();\n\t}", "title": "" }, { "docid": "863e84a120b61fe843434cf1754ab4f1", "score": "0.5909781", "text": "private void loadNextMap() {\n // TODO\n String game = LevelManager.getInstance().getAndSetNextLevel();\n if(game==null){\n startGame(new FXGame());\n }\n else{\n try {\n Deserializer deserializer = new Deserializer(LevelManager.getInstance().getCurrentLevelPath().toString());\n startGame(deserializer.parseFXGame());\n }\n catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }\n ticksElapsed.setValue(0);\n }", "title": "" }, { "docid": "84e86f044b970b11fe3f73c0ce7c3921", "score": "0.5887114", "text": "@Override public void start() {\n\t\tAppState intro = (new Plugin(\"data/scr/menu.ps\").value_boolean(\"showIntro\", \"true\") ? new IntroState() : new NoIntroState());\n\t\tcycle = new AppStateCycle(intro, new MenuState(), new CreditsState(), new EditorState());\n\t\t\n\t\tDisplay.pausable(false); // disable pause on lost-focus\n\t\tDisplay.icon(ImageLoader.get(\"data/img/MenuItems.png\", 32 * 3, 32 * 6, 32, 32)); // load icon from textureatlas\n\t\t\n\t\t// gotta show 'em what you got\n\t\tSystem.out.println(\"Your JARPATH is: \" + Client.jarPath() + \".\");\n\t}", "title": "" }, { "docid": "d1c5a7cea23f433bc1686ac1e48ac3d2", "score": "0.5872945", "text": "public void run() {\r\n\t\t\t\tcontext.addFrameworkListener(new FrameworkListener() {\r\n\t\t\t\t\tpublic void frameworkEvent(FrameworkEvent event) {\r\n\t\t\t\t\t\tif (event.getType() == FrameworkEvent.STARTLEVEL_CHANGED) {\r\n\t\t\t\t\t\t\tServiceReference startLevelReference = context.getServiceReference(StartLevel.class.getName());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tStartLevel startLevel = (StartLevel) context.getService(startLevelReference);\r\n\r\n\t\t\t\t\t\t\tint startlevel = startLevel.getStartLevel();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tcontext.ungetService(startLevelReference);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (startlevel == 0) {\r\n\t\t\t\t\t\t\t\tFrameworkEvent frameworkEvent = new FrameworkEvent(FrameworkEvent.STOPPED_UPDATE, framework, null);\r\n\t\t\t\t\t\t\t\tframework.postFrameworkEvent(frameworkEvent);\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\r\n\t\t\t\tstop0();\r\n\t\t\t}", "title": "" }, { "docid": "facdea9ecf4f52f7196c95c9cb348143", "score": "0.58625174", "text": "public void start()\r\n {\r\n nextState(TypeState.PLAYERS_WAITING);\r\n }", "title": "" }, { "docid": "d9d17775e89c372e85885a2bc45dc226", "score": "0.5861835", "text": "public void nextLevelButtonPressed(ActionEvent event){\n String[] level = _level.split(\" \");\n int nextLevelNumber = Integer.parseInt(level[1]);\n nextLevelNumber++;\n String nextLevel = \"Level \" + nextLevelNumber;\n\n //change into quiz screen\n _myParentController.setScreen(Main.Screen.QUIZ);\n Main.click();\n\n //get the QuizScreen Controller\n QuizScreenController nextScreen = (QuizScreenController)_myParentController.getScreenController(Main.Screen.QUIZ);\n if(_isCustom)\n nextScreen.setupTest(nextLevel,false, true);\n else{\n nextScreen.setupTest(nextLevel,false,false);\n }\n }", "title": "" }, { "docid": "f9df07ac4803d42ed8d9b8e142c63e43", "score": "0.5860781", "text": "public abstract void afterStarting();", "title": "" }, { "docid": "0466b1810753457b55c8e92a3356ce3c", "score": "0.58558655", "text": "@Override\n public void start() {\n mob.getNavigation().stop();\n attackTime = Config.ELITE_AI.SLAM.chargeUpDuration.get();\n currentActivity = Activity.CHARGE_UP;\n mob.setAggressive( true );\n mob.setDeltaMovement( mob.getDeltaMovement().scale( 0.2 ).add( 0.0, 0.4, 0.0 ) );\n mob.playSound( SoundEvents.ARMOR_EQUIP_IRON,\n 1.0F, 1.0F / (mob.getRandom().nextFloat() * 0.4F + 0.8F) );\n }", "title": "" }, { "docid": "84c9f69c1552bb398a2469b3bfbae537", "score": "0.5840937", "text": "private void setNextLevel() {\n int level = gameController.getState().getBoard().getLevel();\n // use level instead of level + 1 because\n // next level has already been set before notify the activity\n String fileName = \"ghost_level\" + level + \"_map\";\n int id = getResources().getIdentifier(fileName, \"drawable\", getPackageName());\n gridView.setBackgroundResource(id);\n }", "title": "" }, { "docid": "5931bb5bf11beff6a70656fcd8a6eebb", "score": "0.5834472", "text": "public void restart() {\n try {\n levels.get(active).terminate();\n\n // Reset mesh cache\n AssetStore.clearMeshCache();\n\n levels.get(active).init();\n } catch (Exception e) {\n System.err.println(\"Could not load level \" + active);\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "04d9ada8ccd029b8ce5b279bdbbb04f4", "score": "0.58329934", "text": "public void spawnNewLevel()\n {\n raiseDifficulty();\n lastRandomSeed = System.nanoTime();\n levelInitFireTrapCount = currentLevel.fireTrapCount;\n Settings.RANDOM.setSeed(lastRandomSeed);\n currentLevelNum++;\n makeNewHouse();\n this.player.setLevel(currentLevel);\n }", "title": "" }, { "docid": "6d5c4c143490b36c2286b91741bbc801", "score": "0.5822141", "text": "public void nextLevel() {\n level++;\n for (Client player : players){\n if (player.isAlive()){\n player.addAttacks(settings.getNumAttacksAwarded());\n player.addRandomTeleports(settings.getNumRandomTeleportsAwarded());\n player.addSafeeleports(settings.getNumSafeTeleportsAwarded());\n player.addScore(25);\n player.sendPlayerInfo();\n }\n //else\n //player.setAlive(true);\n }\n generateGrid(settings.getNumInitialRobots() + settings.getNumAdditionalRobotsPerLevel() * level);\n }", "title": "" }, { "docid": "7c49a428eca7504a883b650e97cda7e6", "score": "0.5815732", "text": "public void start() {\n this.timeStarted = new Date();\n this.running = true;\n Bukkit.getPluginManager().registerEvents(listener, owner);\n ImmutableSet<CPlayer> players1 = getPlayers();\n for (GameObserver gameObserver : getObservers()) {\n try {gameObserver.onGameStart();} catch (Exception e) {e.printStackTrace();}\n for (CPlayer player : players1) {\n try {gameObserver.onPlayerJoinGame(player);} catch (Exception e) {e.printStackTrace();}\n }\n }\n }", "title": "" }, { "docid": "2a13ebbf65d810d6b9b95aaa7fec8768", "score": "0.579252", "text": "public void startGame() {\n isRunning = true;\n }", "title": "" }, { "docid": "506c5370477975e6b7ce40acb80bba0e", "score": "0.5790039", "text": "public void startAction() {\n\t\tstart(RUNNING);\n\t}", "title": "" }, { "docid": "1c2ad3fcb9766579aac18057defb2458", "score": "0.5789918", "text": "public void startMenu() {\n loadScene(new MenuScene(this));\n }", "title": "" }, { "docid": "5f622752b88c17c3085a39e896f05d3c", "score": "0.5788529", "text": "@Override\n\tpublic void startState() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "841e812a09e9094f1805dcafc59abb39", "score": "0.5784502", "text": "public void onStart() {\n\t\tstartExp = Skills.getCurrentExp(Skills.FISHING);\n\t\tstartLevel = Skills.getCurrentLevel(Skills.FISHING);\n\t\tstartTime = System.currentTimeMillis();\n\t\tme = Players.getLocal();\n\t}", "title": "" }, { "docid": "bfa41e6a938fcf9065baad6fdd10db26", "score": "0.5778492", "text": "public void gameStarted() {\r\n System.out.println(username+\": Game started\");\r\n server.setReady(username, false);\r\n try {\r\n reply(\"GLGS\");\r\n } catch(IOException e) { remove(); }\r\n }", "title": "" }, { "docid": "38fe03714b0791f2b5f3a94b20809c31", "score": "0.5777203", "text": "private void startNewSinglePlayer()\n {\n\n }", "title": "" }, { "docid": "ba164280df3f388caa3d2d9a4e013c7c", "score": "0.5760549", "text": "public void eventStartApplication() {\n \t\tthis.getContainer().getLoggerComponent().debug(\"[GameFSM] eventStartApplication received\");\n \n \t\tinitializeICRContext();\n \n \t\ttransition(currentState, FSM_STATE_MAIN_MENU_START_GAME);\n \t}", "title": "" }, { "docid": "8bcdcdabc819a94e8005cd8794563c47", "score": "0.5746931", "text": "private void onEndMenuButton(){\n this.game.reset();\n this.beginScherm.start(this.PrimaryStage);\n }", "title": "" }, { "docid": "8dbf668f07ef11e972ed0b3daae70eea", "score": "0.5744442", "text": "public void startWizard (){\n this.onLastStep = false;\n displayStep(0);\n }", "title": "" }, { "docid": "1bb31c06f1f857c94e27574a661102ce", "score": "0.5743763", "text": "void onStarted();", "title": "" }, { "docid": "1bb31c06f1f857c94e27574a661102ce", "score": "0.5743763", "text": "void onStarted();", "title": "" }, { "docid": "d62edb7ef7d9b63c4147a35087320402", "score": "0.57355547", "text": "private void restartLevelInProgress() {\n levelRunningCount = 0;\n if (player.getNumberOfLives() < 0) System.exit(0);\n for (Ghost ghost : ghostList) {\n ghost.respawn();\n ghost.setVisible(true);\n ghost.setMoving(!ghost.isInGhostHouse());\n ghost.resetVelocity(level);\n ghost.setState(GhostState.SCATTER);\n }\n currentFruit = null;\n player.respawn();\n player.resetVelocity(level);\n player.setSpriteDirection(SpriteDir.LEFT);\n player.setCurrentAnimation(\"left\");\n pauseGameLoop(1500);\n player.setMoving(true);\n setupGhostHouseExit(pinkGhost, 3500);\n setupGhostHouseExit(blueGhost, 5500);\n setupGhostHouseExit(orangeGhost, 8000);\n currentLevelState = LevelState.LEVEL_RUNNING;\n }", "title": "" }, { "docid": "0b2d9257708890ebdc71b348dd3be8d7", "score": "0.5730993", "text": "public void increaseLevel() {\r\n\t\tlevel++;\r\n\t\tlevelLabel.setText(\"LEVEL: \" + level);\r\n\t}", "title": "" }, { "docid": "a86bf8102a9c95ac443c24d46721ab74", "score": "0.57272506", "text": "public void start()\r\n\t{\r\n\t\tcurrentIndex = 0;\r\n\t}", "title": "" }, { "docid": "d965e72a0124feba02880296dc436f1f", "score": "0.5725685", "text": "private void goNextScene() {\r\n\t\tlog.d(\"goNextScene\");\r\n\t\tstartActivity(new Intent(this, ControllerActivity.class));\r\n\t}", "title": "" }, { "docid": "20f782b1e555774c6e06c27bd29dd606", "score": "0.57092315", "text": "public void startTutorial()\n\t{\n\t\t_tutorialStates = TutorialStates.ShootEnemyState;\t\t\n\t\ttutorialOrder();\n\t}", "title": "" }, { "docid": "965b499746bd742e8d741b3339a415a4", "score": "0.5706271", "text": "private void startNewGame() {\n // TODO - handle starting a new game by shuffling the tiles and showing a start message,\n // and updating the game state\n }", "title": "" }, { "docid": "2f5e68f860ffeaac197d2c153168e5da", "score": "0.57052886", "text": "@Override\r\n public void start(){\r\n HashMap<String, Integer> gradesHashMap = ((StudentPrivateState)this.actorState).getGrades();//getting student grades hash map\r\n currentGrade = gradesList.get(currentIndex); //getting course's grade from gradesList\r\n currentPreference = preferencesList.get(currentIndex); //getting course name from preferenceList\r\n if(!registerSucceededFlag){\r\n List<Action<Boolean>> actions = new ArrayList<>();\r\n Action<Boolean> assistant = new PreferencesListAssistant(studentName, gradesHashMap);\r\n actions.add(assistant);\r\n sendMessage(assistant, currentPreference, new CoursePrivateState());\r\n then(actions, ()->{\r\n if(actions.get(0).getResult().get()) {\r\n ((StudentPrivateState)this.actorState).addCourse(currentPreference, currentGrade);\r\n registerSucceededFlag = true;\r\n complete(true);\r\n }\r\n else{\r\n if(preferencesList.size() > (currentIndex + 1)){\r\n currentIndex++;\r\n this.start();\r\n }\r\n else{\r\n complete(false);\r\n }\r\n }\r\n });\r\n }\r\n }", "title": "" }, { "docid": "f70fa6a248851ac2a731313be7e95220", "score": "0.5702647", "text": "public void start(){\n\t\treset();\n\t\t\n\t\tstate = RUNNING;\n\t\tlong[] start = new long[]{System.currentTimeMillis(), 0};\n\t\tslots.add(start);\n\t}", "title": "" } ]
c37c930e64db6c8b451d8c16d90f79ab
Created with IntelliJ IDEA. User: Vsevolod Date: 21.03.14 Time: 18:10 To change this template use File | Settings | File Templates.
[ { "docid": "e51c26664efa8416cd2911a91df17285", "score": "0.0", "text": "public interface CompItem\n{\n String getName();\n}", "title": "" } ]
[ { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.6113009", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "17942d6ab34e0234c0d99b1b5c8e7a12", "score": "0.6100912", "text": "private void gemsupid() {\n\n }", "title": "" }, { "docid": "6ec10e9b93d383ea19782c06a155c339", "score": "0.6061256", "text": "public static void main(String[] args) {\n System.out.println(\"Hello IntelliJ Once again\");\n\n Title title = new Title();\n\n System.out.println(\"The name as you know is : \"+ title.getCall()+\".\"+title.getName());\n\n title.setCall(\"Mr.\");\n title.setName(\"Venki\");\n\n System.out.println(\"The name as you know is : \"+ title.getCall()+\".\"+title.getName());\n\n\n\n\n }", "title": "" }, { "docid": "86ba8b7d16a1dfbff014c09b0780fcb1", "score": "0.6053664", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.59588104", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.59588104", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "2ad52390d92954e1d6f2925b4b14bfd4", "score": "0.59558654", "text": "private Helpers() {}", "title": "" }, { "docid": "6dadd821403b663f3d704c482fda8b08", "score": "0.591573", "text": "private Object garispelukis() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "090367a90ca5031c4baa277087237d68", "score": "0.59118307", "text": "private Traveloid() {\n\t}", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.588704", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.58411825", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.5834518", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.5831946", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.5781659", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3b27d934ea30689efd52c6af24b481a1", "score": "0.57714045", "text": "@Override\n\tpublic void judeti() {\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5770127", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5770127", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "280199ee867322d00fa8fc8f17ee373c", "score": "0.5729256", "text": "private Loesung33() {\r\n\t}", "title": "" }, { "docid": "ed9bda171ba0a6295a0d82585337eb70", "score": "0.57179564", "text": "public void mo31046c() {\n }", "title": "" }, { "docid": "c74f29111dd26487e1359eb6abdacbec", "score": "0.56902575", "text": "public void mo74767a() {\n }", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.56859195", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "8bb251163b0b0790ca14456bd3ce4a1d", "score": "0.56783456", "text": "@Test\n\tpublic void demo() {\n\t}", "title": "" }, { "docid": "ef30ab1f8af9c965c5516ecb803af8b9", "score": "0.5673214", "text": "private Solution() {\n// leave this blank\n }", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.5659465", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.56580365", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "5fe104f8bfc40fd6ef46ddab8d7d7d54", "score": "0.5645189", "text": "private Solution() {\n //unused.\n }", "title": "" }, { "docid": "1f2c22fa4abda66d2d7817fb8f063486", "score": "0.5644501", "text": "private Fachada() {\n\n\t}", "title": "" }, { "docid": "846a58259140a9f82d0c01799b7f7493", "score": "0.56369334", "text": "EffectiveJava(){\r\n\t\tsuper(\"EffectiveJava\");\r\n\t}", "title": "" }, { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.563462", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "69d5c8314f147d3f89a2a2f02a6e6e1b", "score": "0.5634178", "text": "private Solution() {\n /**.\n @constructor\n */\n }", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.5631076", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "b07546ce140f2f3bb5b718f3bf303b9a", "score": "0.56177425", "text": "public void mo5721a() {\n }", "title": "" }, { "docid": "2988fe45f681712faab63cb0e862874c", "score": "0.5606436", "text": "@Override\r\n protected void poDolaczeniu() {\n\r\n }", "title": "" }, { "docid": "24da068fbc02f8b8b3aa9cab24026941", "score": "0.5604084", "text": "@Override\n\tpublic void atacar() {\n\t\t\n\t}", "title": "" }, { "docid": "1330bd5e17e0593769bee421bcb68b22", "score": "0.5598189", "text": "ToDo() {\n //needed for ORMLight\n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.558052", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.55676657", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55640835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "7cc32e3215de6a5ea9e4ae55eb72e2bf", "score": "0.5554943", "text": "public void mo5387a() {\n }", "title": "" }, { "docid": "e2a99768a22c69f3c821ba0bd58b8ca8", "score": "0.55426097", "text": "@Override\n public String getDescription() {\n return \"\";\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.55274093", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.55274093", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.5521567", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d072402b09a9051919fff609b9582346", "score": "0.5510954", "text": "public void mo29445b() {\n }", "title": "" }, { "docid": "5d5f8a204ab4201094295fffada02db6", "score": "0.5503232", "text": "public void mo5391b() {\n }", "title": "" }, { "docid": "938ce14d4f72f4b3b464a8c1109a5634", "score": "0.55021846", "text": "public void mo59805a() {\n }", "title": "" }, { "docid": "055cd9913d4d3aa001a285af40e4508a", "score": "0.548948", "text": "protected RepositorioUtilHBM() {\n\n\t}", "title": "" }, { "docid": "5520fa8fd096c36a6bd8fad3ab1e56d3", "score": "0.54837203", "text": "public final void mo2558ro() {\n }", "title": "" }, { "docid": "e1acf779eed19e5945aa3f4b1a8866d3", "score": "0.5478131", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5477117", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "93089e119265a56ef1e894f73991c703", "score": "0.54757303", "text": "@Override\n\tpublic void hocBai() {\n\t\t\n\t}", "title": "" }, { "docid": "11de2c6bcf0714ba883b6295c9afcc0d", "score": "0.54712963", "text": "public void testCreate()\n {\n }", "title": "" }, { "docid": "62af35269754b8acb72204c12f622caf", "score": "0.5469505", "text": "protected void mo1291L() {\n }", "title": "" }, { "docid": "a3a2708653a63ab18f95057314f3e279", "score": "0.5465561", "text": "private IntelliJadResourceBundle() {\n }", "title": "" }, { "docid": "46bdd3fc51ea477fbb4af71fd6070de5", "score": "0.5455817", "text": "public void utilities() {\n\t}", "title": "" }, { "docid": "4674de2cc7ab35133fe7bba2670c39b4", "score": "0.54490143", "text": "@Override\n\t\tprotected void before() {\n\t\t}", "title": "" }, { "docid": "3cb3946f0f7dc0507ebff41f2640cc3e", "score": "0.5443844", "text": "private Solution() {\n /**.\n * { item_description }\n */\n }", "title": "" }, { "docid": "9b33abfc5615d6a25b440593b4aaa73f", "score": "0.5443832", "text": "public void mo725x() {\n }", "title": "" }, { "docid": "e06f14445f900937c21b43191019b766", "score": "0.54432046", "text": "private Gooey() {\n\t}", "title": "" }, { "docid": "10d40e9b81b4ba39c3ab6d779f3b2692", "score": "0.5441389", "text": "public void mo31237c() {\n }", "title": "" }, { "docid": "1b5d5130f159d5a6272fed091204e048", "score": "0.543026", "text": "public final void mo102268a() {\n }", "title": "" }, { "docid": "258691606189655d249b1a575fdecd2a", "score": "0.5426157", "text": "private static void exampleThree() {\n }", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5422836", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "5c3c2acd34655753ed5c66be62776bb2", "score": "0.5421197", "text": "@Override\n public void initialize() {\n\n }", "title": "" }, { "docid": "c9d7a19ad712ece23e6218c1bbd97e1b", "score": "0.54172355", "text": "@Override\n\tpublic void creap() {\n\n\t}", "title": "" }, { "docid": "5ec258f2523e8507da50b82fc976d92b", "score": "0.5415066", "text": "@Override\n public void foo() {\n \n }", "title": "" }, { "docid": "a037f7afed618d09071372f5c82c2ca9", "score": "0.5412252", "text": "@Override\n protected void startUp() throws Exception {\n }", "title": "" }, { "docid": "4c1a34cab5fec14e09134d15fb18aaa0", "score": "0.5404395", "text": "private void FormMasterGolongan() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "21122eff5c5fdf26b34ef8b80ffff5e2", "score": "0.5398384", "text": "public void mo3669b() {\n }", "title": "" }, { "docid": "2d3ecf6e53df527804bacc319e8e542d", "score": "0.539239", "text": "private DescriptionHelper() {}", "title": "" }, { "docid": "a624b89db95eebb0d7e745f8301395c1", "score": "0.53917885", "text": "public void method() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.539052", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.538504", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.538504", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.53844047", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5381502", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5381502", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "24805e9fce05971ed5667cb15fa69039", "score": "0.5380716", "text": "@Test\n\tpublic void databaseEditWorkout() {\n\n\t}", "title": "" }, { "docid": "73ebfef1a077b493f50cc354b67da3db", "score": "0.5376333", "text": "public void comAssist() {\n\n\t}", "title": "" }, { "docid": "c0e644c8399156aa16ea1b21d56c5578", "score": "0.536765", "text": "public static void EmployeeTeam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cb7ffa191545ceece56845e3f58e92f2", "score": "0.5367352", "text": "@Override\n\tpublic void beforeRun() {\n\t\t\n\t}", "title": "" }, { "docid": "cba46368410e21504ec7c9bff94463ee", "score": "0.5363322", "text": "@Override\r\n protected void initialize() {\n\r\n }", "title": "" }, { "docid": "4603df5570511d7bdad4f69eca7fec25", "score": "0.53618354", "text": "public void basicTest() {\n\t\t\n\t}", "title": "" }, { "docid": "1830f3d68e6e147a23ac83c1b29404f8", "score": "0.5360303", "text": "private TypicalCanteens() {\n }", "title": "" }, { "docid": "d36639f223d978fec860bc0a8b3192cb", "score": "0.5359088", "text": "@Override\n\tprotected void initialize() {}", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.535373", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "14d7e79407599f4cf22826cf13c23428", "score": "0.5353641", "text": "private void tow() {\n }", "title": "" }, { "docid": "9c052331388a2c5e4c1a01dac5b28c41", "score": "0.5353054", "text": "public void verAssist() {\n\t\t\n\n\t}", "title": "" }, { "docid": "0a73f60792d3cf2252de8de212e283dc", "score": "0.53528905", "text": "@Override\n \tpublic void earlyStartup() {\n \t}", "title": "" }, { "docid": "c91675cee55eff97f995a7e9b25bcd43", "score": "0.53524065", "text": "private Fabrica(){}", "title": "" }, { "docid": "49cf231544f6b94d4860c5faeeb7cf68", "score": "0.5351666", "text": "@SuppressWarnings(\"unused\")\r\n private static void dlamc2() {\n\r\n }", "title": "" }, { "docid": "698a44b73516c3710e06f82cc585b127", "score": "0.5351171", "text": "@Override\n public String getName() {\n return \"1\";\n }", "title": "" }, { "docid": "c1e5fabcc92f434d204f7a4a8c9b2dac", "score": "0.5350575", "text": "public void mo39891a() {\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5346857", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5346857", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" } ]
3ccc095ac393c6560175fc0e69423ee0
$ANTLR end "rule__ViewInstance__Group__1__Impl" $ANTLR start "rule__ViewInstance__Group__2" InternalIsml.g:12611:1: rule__ViewInstance__Group__2 : rule__ViewInstance__Group__2__Impl ;
[ { "docid": "27069bf8e8eb190a53d7ad9e8805edee", "score": "0.8380413", "text": "public final void rule__ViewInstance__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12615:1: ( rule__ViewInstance__Group__2__Impl )\n // InternalIsml.g:12616:2: rule__ViewInstance__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "d28c3a11aac0103e45ee0f71498d6411", "score": "0.8215849", "text": "public final void rule__ViewInstance__Group_2_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12707:1: ( rule__ViewInstance__Group_2_0__2__Impl )\n // InternalIsml.g:12708:2: rule__ViewInstance__Group_2_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group_2_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d410ef929ec83c8296e9e84f900c2428", "score": "0.7858372", "text": "public final void rule__ViewInstance__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12678:1: ( rule__ViewInstance__Group_2_0__1__Impl rule__ViewInstance__Group_2_0__2 )\n // InternalIsml.g:12679:2: rule__ViewInstance__Group_2_0__1__Impl rule__ViewInstance__Group_2_0__2\n {\n pushFollow(FOLLOW_51);\n rule__ViewInstance__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group_2_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d10c665008067b14660a883b7cd39d71", "score": "0.7597028", "text": "public final void rule__ViewInstance__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12586:1: ( rule__ViewInstance__Group__1__Impl rule__ViewInstance__Group__2 )\n // InternalIsml.g:12587:2: rule__ViewInstance__Group__1__Impl rule__ViewInstance__Group__2\n {\n pushFollow(FOLLOW_58);\n rule__ViewInstance__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7fe86a427a3fd82fc0ea54a69e42f911", "score": "0.7594069", "text": "public final void rule__View_filter_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:19798:1: ( rule__View_filter_definition__Group__2__Impl )\n // InternalMyDsl.g:19799:2: rule__View_filter_definition__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__View_filter_definition__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2d6761b8d954c94095f612bbf5ae2bca", "score": "0.7511432", "text": "public final void rule__ViewInstance__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12649:1: ( rule__ViewInstance__Group_2_0__0__Impl rule__ViewInstance__Group_2_0__1 )\n // InternalIsml.g:12650:2: rule__ViewInstance__Group_2_0__0__Impl rule__ViewInstance__Group_2_0__1\n {\n pushFollow(FOLLOW_51);\n rule__ViewInstance__Group_2_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group_2_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "84f8d819218e5015a613cbcb7147c328", "score": "0.73526704", "text": "public final void rule__ViewInstanceNoAction__Group_2_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12525:1: ( rule__ViewInstanceNoAction__Group_2_2__1__Impl )\n // InternalIsml.g:12526:2: rule__ViewInstanceNoAction__Group_2_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstanceNoAction__Group_2_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e65e20a8e13247e59c64527320b98683", "score": "0.73020345", "text": "public final void rule__ViewInstanceNoAction__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12270:1: ( rule__ViewInstanceNoAction__Group__2__Impl )\n // InternalIsml.g:12271:2: rule__ViewInstanceNoAction__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstanceNoAction__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "676a19442d13c9f0fd76c1c6634155bf", "score": "0.7294479", "text": "public final void rule__OseeDsl__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2051:1: ( rule__OseeDsl__Group__2__Impl )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2052:2: rule__OseeDsl__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__OseeDsl__Group__2__Impl_in_rule__OseeDsl__Group__24464);\n rule__OseeDsl__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "35977b91fd447d5617e49503e516b5eb", "score": "0.7240214", "text": "public final void rule__ViewInstanceNoAction__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12281:1: ( ( ( rule__ViewInstanceNoAction__Group_2__0 )? ) )\n // InternalIsml.g:12282:1: ( ( rule__ViewInstanceNoAction__Group_2__0 )? )\n {\n // InternalIsml.g:12282:1: ( ( rule__ViewInstanceNoAction__Group_2__0 )? )\n // InternalIsml.g:12283:1: ( rule__ViewInstanceNoAction__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getViewInstanceNoActionAccess().getGroup_2()); \n }\n // InternalIsml.g:12284:1: ( rule__ViewInstanceNoAction__Group_2__0 )?\n int alt108=2;\n int LA108_0 = input.LA(1);\n\n if ( (LA108_0==35) ) {\n alt108=1;\n }\n switch (alt108) {\n case 1 :\n // InternalIsml.g:12284:2: rule__ViewInstanceNoAction__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstanceNoAction__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getViewInstanceNoActionAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1766e5707a5308ee8a72d2641c5e8eb0", "score": "0.7237446", "text": "public final void rule__Model__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:3199:1: ( rule__Model__Group__2__Impl )\n // InternalSequence.g:3200:2: rule__Model__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Model__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8f793d38a0fee25bf88eee7eee83507d", "score": "0.7226383", "text": "public final void rule__IfView__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:11575:1: ( rule__IfView__Group__2__Impl rule__IfView__Group__3 )\n // InternalIsml.g:11576:2: rule__IfView__Group__2__Impl rule__IfView__Group__3\n {\n pushFollow(FOLLOW_29);\n rule__IfView__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__IfView__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b2940da1bd2101ef766f957a75426b7d", "score": "0.72255385", "text": "public final void rule__Events__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:1900:1: ( rule__Events__Group__2__Impl )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:1901:2: rule__Events__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Events__Group__2__Impl_in_rule__Events__Group__23977);\r\n rule__Events__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "00a5f13192e72a65881b9b32920ba615", "score": "0.72220373", "text": "public final void rule__ConstraintInstance__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:6011:1: ( rule__ConstraintInstance__Group_1_2__1__Impl )\n // InternalIsml.g:6012:2: rule__ConstraintInstance__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ConstraintInstance__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "54a9b19d172683da4325142850916bd4", "score": "0.721181", "text": "public final void rule__ObjDecl__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:1696:1: ( rule__ObjDecl__Group__2__Impl )\n // InternalMGPL.g:1697:2: rule__ObjDecl__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ObjDecl__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8fefe0c72d1d0697676d26906a244e7", "score": "0.7171935", "text": "public final void rule__Value__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2450:1: ( rule__Value__Group__2__Impl )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2451:2: rule__Value__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Value__Group__2__Impl_in_rule__Value__Group__25055);\r\n rule__Value__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5137b00df4b36386d1076d85f2c9e316", "score": "0.7161575", "text": "public final void rule__ObjDecl__Group_2_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:1777:1: ( rule__ObjDecl__Group_2_0__2__Impl )\n // InternalMGPL.g:1778:2: rule__ObjDecl__Group_2_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ObjDecl__Group_2_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c8b64bb5432dd6fcd348e58740640182", "score": "0.71520805", "text": "public final void rule__NameSpace__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:442:1: ( rule__NameSpace__Group__2__Impl rule__NameSpace__Group__3 )\r\n // ../org.babu.xtext.training.smalljava.ui/src-gen/org/babu/xtext/training/smalljava/ui/contentassist/antlr/internal/InternalSmalljavaDsl.g:443:2: rule__NameSpace__Group__2__Impl rule__NameSpace__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__NameSpace__Group__2__Impl_in_rule__NameSpace__Group__2875);\r\n rule__NameSpace__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__NameSpace__Group__3_in_rule__NameSpace__Group__2878);\r\n rule__NameSpace__Group__3();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ded669bd5859c333c5df4edd52d26245", "score": "0.7139942", "text": "public final void rule__Service_group__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7680:1: ( rule__Service_group__Group__2__Impl )\n // InternalMyDsl.g:7681:2: rule__Service_group__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Service_group__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "549cb4032dfecb98fa9ce893d843ce0a", "score": "0.7138487", "text": "public final void rule__Objkey_mapping__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:17658:1: ( rule__Objkey_mapping__Group__2__Impl )\n // InternalMyDsl.g:17659:2: rule__Objkey_mapping__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Objkey_mapping__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de8402847a74ac16432ce53a97acb08f", "score": "0.713772", "text": "public final void rule__ViewInstanceNoAction__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12439:1: ( ( ( rule__ViewInstanceNoAction__Group_2_2__0 )* ) )\n // InternalIsml.g:12440:1: ( ( rule__ViewInstanceNoAction__Group_2_2__0 )* )\n {\n // InternalIsml.g:12440:1: ( ( rule__ViewInstanceNoAction__Group_2_2__0 )* )\n // InternalIsml.g:12441:1: ( rule__ViewInstanceNoAction__Group_2_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getViewInstanceNoActionAccess().getGroup_2_2()); \n }\n // InternalIsml.g:12442:1: ( rule__ViewInstanceNoAction__Group_2_2__0 )*\n loop109:\n do {\n int alt109=2;\n int LA109_0 = input.LA(1);\n\n if ( (LA109_0==27) ) {\n alt109=1;\n }\n\n\n switch (alt109) {\n \tcase 1 :\n \t // InternalIsml.g:12442:2: rule__ViewInstanceNoAction__Group_2_2__0\n \t {\n \t pushFollow(FOLLOW_19);\n \t rule__ViewInstanceNoAction__Group_2_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop109;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getViewInstanceNoActionAccess().getGroup_2_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "adc52b76ba7439410835d23ca77edb0c", "score": "0.7130023", "text": "public final void rule__ForView__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:11862:1: ( rule__ForView__Group__2__Impl rule__ForView__Group__3 )\n // InternalIsml.g:11863:2: rule__ForView__Group__2__Impl rule__ForView__Group__3\n {\n pushFollow(FOLLOW_13);\n rule__ForView__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ForView__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ccb6433abd1f1e554de06eede3b7704b", "score": "0.71226096", "text": "public final void rule__StructInstance__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:15683:1: ( ( ( rule__StructInstance__Group_2__0 )? ) )\n // InternalIsml.g:15684:1: ( ( rule__StructInstance__Group_2__0 )? )\n {\n // InternalIsml.g:15684:1: ( ( rule__StructInstance__Group_2__0 )? )\n // InternalIsml.g:15685:1: ( rule__StructInstance__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStructInstanceAccess().getGroup_2()); \n }\n // InternalIsml.g:15686:1: ( rule__StructInstance__Group_2__0 )?\n int alt125=2;\n int LA125_0 = input.LA(1);\n\n if ( (LA125_0==35) ) {\n alt125=1;\n }\n switch (alt125) {\n case 1 :\n // InternalIsml.g:15686:2: rule__StructInstance__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__StructInstance__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStructInstanceAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "af5df3a0f6bfd18a9eed5b14ba571d0c", "score": "0.71216553", "text": "public final void rule__Service__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:6919:1: ( rule__Service__Group_2__2__Impl )\n // InternalIsml.g:6920:2: rule__Service__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Service__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "23222172e458d0eccfc05ae87b673fba", "score": "0.7100206", "text": "public final void rule__Model__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:3276:1: ( rule__Model__Group__2__Impl )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:3277:2: rule__Model__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__Model__Group__2__Impl_in_rule__Model__Group__27135);\n rule__Model__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3118c3ad4b3af23b8a3d512bc06fb593", "score": "0.70904607", "text": "public final void rule__ConstraintInstance__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:5925:1: ( ( ( rule__ConstraintInstance__Group_1_2__0 )* ) )\n // InternalIsml.g:5926:1: ( ( rule__ConstraintInstance__Group_1_2__0 )* )\n {\n // InternalIsml.g:5926:1: ( ( rule__ConstraintInstance__Group_1_2__0 )* )\n // InternalIsml.g:5927:1: ( rule__ConstraintInstance__Group_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getConstraintInstanceAccess().getGroup_1_2()); \n }\n // InternalIsml.g:5928:1: ( rule__ConstraintInstance__Group_1_2__0 )*\n loop58:\n do {\n int alt58=2;\n int LA58_0 = input.LA(1);\n\n if ( (LA58_0==27) ) {\n alt58=1;\n }\n\n\n switch (alt58) {\n \tcase 1 :\n \t // InternalIsml.g:5928:2: rule__ConstraintInstance__Group_1_2__0\n \t {\n \t pushFollow(FOLLOW_19);\n \t rule__ConstraintInstance__Group_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop58;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getConstraintInstanceAccess().getGroup_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8f2fabc5bc038348e1703e1ae3980401", "score": "0.7081562", "text": "public final void rule__ConstraintInstance__Group_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:5980:1: ( rule__ConstraintInstance__Group_1_2__0__Impl rule__ConstraintInstance__Group_1_2__1 )\n // InternalIsml.g:5981:2: rule__ConstraintInstance__Group_1_2__0__Impl rule__ConstraintInstance__Group_1_2__1\n {\n pushFollow(FOLLOW_29);\n rule__ConstraintInstance__Group_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ConstraintInstance__Group_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "95f2f02f5ba91177a90939a29efc63ed", "score": "0.7066733", "text": "public final void rule__ViewInstance__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12626:1: ( ( ( rule__ViewInstance__Alternatives_2 ) ) )\n // InternalIsml.g:12627:1: ( ( rule__ViewInstance__Alternatives_2 ) )\n {\n // InternalIsml.g:12627:1: ( ( rule__ViewInstance__Alternatives_2 ) )\n // InternalIsml.g:12628:1: ( rule__ViewInstance__Alternatives_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getViewInstanceAccess().getAlternatives_2()); \n }\n // InternalIsml.g:12629:1: ( rule__ViewInstance__Alternatives_2 )\n // InternalIsml.g:12629:2: rule__ViewInstance__Alternatives_2\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Alternatives_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getViewInstanceAccess().getAlternatives_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7acdc2998736a3bac97b716821523ee7", "score": "0.7058629", "text": "public final void rule__Annotation__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:15449:1: ( rule__Annotation__Group__2__Impl )\r\n // InternalAadlV3.g:15450:2: rule__Annotation__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Annotation__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "76aa1c231137e6f497aa5e9cffabda81", "score": "0.70483255", "text": "public final void rule__StructInstance__Group_2_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:15864:1: ( rule__StructInstance__Group_2_2__1__Impl )\n // InternalIsml.g:15865:2: rule__StructInstance__Group_2_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__StructInstance__Group_2_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e6f43859c11848a00486fb579f373bb9", "score": "0.7045441", "text": "public final void rule__Atribuicao__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalP2.g:1242:1: ( rule__Atribuicao__Group__2__Impl )\n // InternalP2.g:1243:2: rule__Atribuicao__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atribuicao__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d1cae527b805b4ecad74458324c0d60e", "score": "0.7044078", "text": "public final void rule__RegularMethod__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:8019:1: ( rule__RegularMethod__Group_0__2__Impl )\n // InternalIsml.g:8020:2: rule__RegularMethod__Group_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__RegularMethod__Group_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c0143f02b4f2d385c698f406e4437b55", "score": "0.7043941", "text": "public final void rule__StructInstance__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:15778:1: ( ( ( rule__StructInstance__Group_2_2__0 )* ) )\n // InternalIsml.g:15779:1: ( ( rule__StructInstance__Group_2_2__0 )* )\n {\n // InternalIsml.g:15779:1: ( ( rule__StructInstance__Group_2_2__0 )* )\n // InternalIsml.g:15780:1: ( rule__StructInstance__Group_2_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStructInstanceAccess().getGroup_2_2()); \n }\n // InternalIsml.g:15781:1: ( rule__StructInstance__Group_2_2__0 )*\n loop126:\n do {\n int alt126=2;\n int LA126_0 = input.LA(1);\n\n if ( (LA126_0==27) ) {\n alt126=1;\n }\n\n\n switch (alt126) {\n \tcase 1 :\n \t // InternalIsml.g:15781:2: rule__StructInstance__Group_2_2__0\n \t {\n \t pushFollow(FOLLOW_19);\n \t rule__StructInstance__Group_2_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop126;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStructInstanceAccess().getGroup_2_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "94791f6f38b13fdb4197d9a3373165cc", "score": "0.7028465", "text": "public final void rule__Description__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReqLNG.g:1254:1: ( rule__Description__Group__2__Impl )\n // InternalReqLNG.g:1255:2: rule__Description__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Description__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2653157c1f39bcf1239f2bdc4d8fb312", "score": "0.7020805", "text": "public final void rule__Actor__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:9969:1: ( rule__Actor__Group_2__2__Impl )\n // InternalIsml.g:9970:2: rule__Actor__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Actor__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3d8853a5b9e45b65950c7070f6d77326", "score": "0.700903", "text": "public final void rule__Program__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:2744:1: ( rule__Program__Group__2__Impl )\r\n // InternalPascal.g:2745:2: rule__Program__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Program__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "9372d0313c07e15218e470ea0498525f", "score": "0.70038074", "text": "public final void rule__VirtualBusAccessKeywords__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:18095:1: ( rule__VirtualBusAccessKeywords__Group__2__Impl )\r\n // InternalAadlV3.g:18096:2: rule__VirtualBusAccessKeywords__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__VirtualBusAccessKeywords__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "68adfd839cfd9804089c03aebb4b5d9c", "score": "0.69974005", "text": "public final void rule__ViewInstance__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12557:1: ( rule__ViewInstance__Group__0__Impl rule__ViewInstance__Group__1 )\n // InternalIsml.g:12558:2: rule__ViewInstance__Group__0__Impl rule__ViewInstance__Group__1\n {\n pushFollow(FOLLOW_58);\n rule__ViewInstance__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e88c5b98247c45e319c20ecd073e55d3", "score": "0.69915247", "text": "public final void rule__Expressao__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalP2.g:1431:1: ( rule__Expressao__Group_0__2__Impl )\n // InternalP2.g:1432:2: rule__Expressao__Group_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expressao__Group_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8b14f9cdbbe4a6198aa3ade329590a93", "score": "0.6979499", "text": "public final void rule__Implementation_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:23295:1: ( rule__Implementation_definition__Group__2__Impl rule__Implementation_definition__Group__3 )\n // InternalMyDsl.g:23296:2: rule__Implementation_definition__Group__2__Impl rule__Implementation_definition__Group__3\n {\n pushFollow(FOLLOW_11);\n rule__Implementation_definition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Implementation_definition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "541b51d2363d000ffbdfdf93cfb6daf9", "score": "0.6962231", "text": "public final void rule__Constraint__Group_2_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:9752:1: ( rule__Constraint__Group_2_2__1__Impl )\n // InternalIsml.g:9753:2: rule__Constraint__Group_2_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Constraint__Group_2_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2307672e2a31e0e5fdcc15db67ef0f4b", "score": "0.6954526", "text": "public final void rule__Agent__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:1410:1: ( rule__Agent__Group__2__Impl rule__Agent__Group__3 )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:1411:2: rule__Agent__Group__2__Impl rule__Agent__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__Agent__Group__2__Impl_in_rule__Agent__Group__23004);\r\n rule__Agent__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Agent__Group__3_in_rule__Agent__Group__23007);\r\n rule__Agent__Group__3();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "adcdf87dafd27d21ba7516a2fd42d22c", "score": "0.69510955", "text": "public final void rule__Event__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:3280:1: ( rule__Event__Group__2__Impl )\n // InternalSequence.g:3281:2: rule__Event__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Event__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6273354d684e5892bf099076db760ab9", "score": "0.69439197", "text": "public final void rule__UsersAndGroups__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:7225:1: ( rule__UsersAndGroups__Group__2__Impl )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:7226:2: rule__UsersAndGroups__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__UsersAndGroups__Group__2__Impl_in_rule__UsersAndGroups__Group__214655);\n rule__UsersAndGroups__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8b943625de1686d56f4ec3f1fe1ee22", "score": "0.6942736", "text": "public final void rule__DTO__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:4971:1: ( rule__DTO__Group_2__2__Impl )\n // InternalIsml.g:4972:2: rule__DTO__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DTO__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ec5dbc8d9415b993adca015be3ab9dd5", "score": "0.69354457", "text": "public final void rule__DetectionEvent__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:15044:1: ( rule__DetectionEvent__Group__2__Impl )\r\n // InternalAadlV3.g:15045:2: rule__DetectionEvent__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__DetectionEvent__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3cf8e3d25abaedd8bc6abea8ddd74c92", "score": "0.69342697", "text": "public final void rule__Description__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7437:1: ( rule__Description__Group__2__Impl )\n // InternalMyDsl.g:7438:2: rule__Description__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Description__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "76e586db3ade24b84fc19876f1786669", "score": "0.69247407", "text": "public final void rule__ImplementationBody__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:7267:1: ( rule__ImplementationBody__Group__2__Impl )\r\n // InternalAadlV3.g:7268:2: rule__ImplementationBody__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ImplementationBody__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8db0fab7f1db193f6c1f06645de046a9", "score": "0.6924503", "text": "public final void rule__Controller__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:8584:1: ( rule__Controller__Group__2__Impl )\n // InternalIsml.g:8585:2: rule__Controller__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Controller__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "79d2580ca012eda75baf0c21551c855b", "score": "0.69234675", "text": "public final void rule__Glossary__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReqLNG.g:2274:1: ( rule__Glossary__Group__2__Impl )\n // InternalReqLNG.g:2275:2: rule__Glossary__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Glossary__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d43442cf1771d85badfaaa3533482d3f", "score": "0.6913435", "text": "public final void rule__Service__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:6711:1: ( ( ( rule__Service__Group_2__0 )? ) )\n // InternalIsml.g:6712:1: ( ( rule__Service__Group_2__0 )? )\n {\n // InternalIsml.g:6712:1: ( ( rule__Service__Group_2__0 )? )\n // InternalIsml.g:6713:1: ( rule__Service__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getServiceAccess().getGroup_2()); \n }\n // InternalIsml.g:6714:1: ( rule__Service__Group_2__0 )?\n int alt65=2;\n int LA65_0 = input.LA(1);\n\n if ( (LA65_0==33) ) {\n alt65=1;\n }\n switch (alt65) {\n case 1 :\n // InternalIsml.g:6714:2: rule__Service__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__Service__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getServiceAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d8dd6d2b14ae26e17e0bcd184e227934", "score": "0.6911315", "text": "public final void rule__ViewInstance__Group_2_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12718:1: ( ( '}' ) )\n // InternalIsml.g:12719:1: ( '}' )\n {\n // InternalIsml.g:12719:1: ( '}' )\n // InternalIsml.g:12720:1: '}'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getViewInstanceAccess().getRightCurlyBracketKeyword_2_0_2()); \n }\n match(input,19,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getViewInstanceAccess().getRightCurlyBracketKeyword_2_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c84b23c0bc5cb1e3380e6d8de0f5811c", "score": "0.69071", "text": "public final void rule__Virtual_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:26664:1: ( rule__Virtual_definition__Group__2__Impl rule__Virtual_definition__Group__3 )\n // InternalMyDsl.g:26665:2: rule__Virtual_definition__Group__2__Impl rule__Virtual_definition__Group__3\n {\n pushFollow(FOLLOW_141);\n rule__Virtual_definition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Virtual_definition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7a83d8fdd620fbbdfafe14be3085260a", "score": "0.6900934", "text": "public final void rule__Comparacao__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalP2.g:1161:1: ( rule__Comparacao__Group__2__Impl )\n // InternalP2.g:1162:2: rule__Comparacao__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Comparacao__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "18d9e7b98b335c61d09baebb86178845", "score": "0.69000626", "text": "public final void rule__Simple_expression__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:6781:1: ( rule__Simple_expression__Group__2__Impl )\r\n // InternalPascal.g:6782:2: rule__Simple_expression__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Simple_expression__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "85f5e63e90174363b7851b0f14795999", "score": "0.68984807", "text": "public final void rule__PrimExpr__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:4747:1: ( rule__PrimExpr__Group_2__2__Impl )\n // InternalMGPL.g:4748:2: rule__PrimExpr__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__PrimExpr__Group_2__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ec65e9c729d119ae531c752a6d032c1b", "score": "0.6898476", "text": "public final void rule__Constraint__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:9539:1: ( ( ( rule__Constraint__Group_2__0 )? ) )\n // InternalIsml.g:9540:1: ( ( rule__Constraint__Group_2__0 )? )\n {\n // InternalIsml.g:9540:1: ( ( rule__Constraint__Group_2__0 )? )\n // InternalIsml.g:9541:1: ( rule__Constraint__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getConstraintAccess().getGroup_2()); \n }\n // InternalIsml.g:9542:1: ( rule__Constraint__Group_2__0 )?\n int alt90=2;\n int LA90_0 = input.LA(1);\n\n if ( (LA90_0==35) ) {\n alt90=1;\n }\n switch (alt90) {\n case 1 :\n // InternalIsml.g:9542:2: rule__Constraint__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__Constraint__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getConstraintAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7b8936939cc28db6e2fef18e845d6a22", "score": "0.68969905", "text": "public final void rule__ForView__Group_7_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12115:1: ( rule__ForView__Group_7_0__2__Impl )\n // InternalIsml.g:12116:2: rule__ForView__Group_7_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ForView__Group_7_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "77274df0bff0783c64be7b189178cd0f", "score": "0.6895895", "text": "public final void ruleViewInstance() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:1205:2: ( ( ( rule__ViewInstance__Group__0 ) ) )\n // InternalIsml.g:1206:1: ( ( rule__ViewInstance__Group__0 ) )\n {\n // InternalIsml.g:1206:1: ( ( rule__ViewInstance__Group__0 ) )\n // InternalIsml.g:1207:1: ( rule__ViewInstance__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getViewInstanceAccess().getGroup()); \n }\n // InternalIsml.g:1208:1: ( rule__ViewInstance__Group__0 )\n // InternalIsml.g:1208:2: rule__ViewInstance__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstance__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getViewInstanceAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5cf178f05d860fa2df06eda8a115c6d", "score": "0.68897325", "text": "public final void rule__ConstraintInstance__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:5913:1: ( rule__ConstraintInstance__Group_1__2__Impl rule__ConstraintInstance__Group_1__3 )\n // InternalIsml.g:5914:2: rule__ConstraintInstance__Group_1__2__Impl rule__ConstraintInstance__Group_1__3\n {\n pushFollow(FOLLOW_30);\n rule__ConstraintInstance__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ConstraintInstance__Group_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "52f12e4ee59a120f984b18c82e430aa2", "score": "0.6883337", "text": "public final void rule__Body__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3870:1: ( rule__Body__Group__2__Impl )\r\n // ../bdi.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3871:2: rule__Body__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Body__Group__2__Impl_in_rule__Body__Group__27839);\r\n rule__Body__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "066f83013dce706b78084af3b55438b9", "score": "0.6876805", "text": "public final void rule__Role__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:7037:1: ( rule__Role__Group_2__1__Impl )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:7038:2: rule__Role__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__Role__Group_2__1__Impl_in_rule__Role__Group_2__114285);\n rule__Role__Group_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9f452313fd5f42516a95581d86bf81bd", "score": "0.6876649", "text": "public final void rule__Var__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:3343:1: ( rule__Var__Group_2__2__Impl )\n // InternalMGPL.g:3344:2: rule__Var__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Var__Group_2__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c85de44f083e94fcef3e3d69620f15fb", "score": "0.6873172", "text": "public final void rule__Expression2__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:2892:1: ( rule__Expression2__Group_1__2__Impl )\n // InternalDSL.g:2893:2: rule__Expression2__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expression2__Group_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ebef9f2be7417b1c7fa7433eedc40067", "score": "0.6870131", "text": "public final void rule__Service__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:6699:1: ( rule__Service__Group__2__Impl rule__Service__Group__3 )\n // InternalIsml.g:6700:2: rule__Service__Group__2__Impl rule__Service__Group__3\n {\n pushFollow(FOLLOW_35);\n rule__Service__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Service__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "82398a2707425230224b253736f299f5", "score": "0.68647504", "text": "public final void rule__Comparison__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:15076:1: ( rule__Comparison__Group_1__2__Impl )\n // InternalIsml.g:15077:2: rule__Comparison__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Comparison__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3b27c591e814749ccc4e6d6b83f2fad0", "score": "0.6864631", "text": "public final void rule__Projection_name__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7194:1: ( rule__Projection_name__Group__2__Impl )\n // InternalMyDsl.g:7195:2: rule__Projection_name__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Projection_name__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "85bb9dd07e1888b6220c20efa4ca63d9", "score": "0.68483436", "text": "public final void rule__IfView__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:11587:1: ( ( '(' ) )\n // InternalIsml.g:11588:1: ( '(' )\n {\n // InternalIsml.g:11588:1: ( '(' )\n // InternalIsml.g:11589:1: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIfViewAccess().getLeftParenthesisKeyword_2()); \n }\n match(input,35,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIfViewAccess().getLeftParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "54c5b6a24eb9db7195331090c77fc8e7", "score": "0.68439174", "text": "public final void rule__Annotation__Group_2_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:15611:1: ( rule__Annotation__Group_2_2__1__Impl )\r\n // InternalAadlV3.g:15612:2: rule__Annotation__Group_2_2__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Annotation__Group_2_2__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "33f3c27a68d7dbcbbcaa09db8cfdbd30", "score": "0.68417186", "text": "public final void rule__Type_definition__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:3676:1: ( rule__Type_definition__Group__2__Impl )\r\n // InternalPascal.g:3677:2: rule__Type_definition__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Type_definition__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7e88710e894c3ef84c24e21233c916c8", "score": "0.68291456", "text": "public final void rule__ViewInstanceNoAction__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12398:1: ( rule__ViewInstanceNoAction__Group_2__1__Impl rule__ViewInstanceNoAction__Group_2__2 )\n // InternalIsml.g:12399:2: rule__ViewInstanceNoAction__Group_2__1__Impl rule__ViewInstanceNoAction__Group_2__2\n {\n pushFollow(FOLLOW_30);\n rule__ViewInstanceNoAction__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ViewInstanceNoAction__Group_2__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2a4eb90136587a40971072ac2f4ebf26", "score": "0.6827887", "text": "public final void rule__Field__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:3361:1: ( rule__Field__Group__2__Impl )\n // InternalSequence.g:3362:2: rule__Field__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Field__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5e79d1c551fe2643cec286f240c503cf", "score": "0.68262964", "text": "public final void rule__Implementation_type_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:29506:1: ( rule__Implementation_type_definition__Group__2__Impl rule__Implementation_type_definition__Group__3 )\n // InternalMyDsl.g:29507:2: rule__Implementation_type_definition__Group__2__Impl rule__Implementation_type_definition__Group__3\n {\n pushFollow(FOLLOW_11);\n rule__Implementation_type_definition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Implementation_type_definition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "06d9678fa8343ec8d39a53dce73cec33", "score": "0.68259573", "text": "public final void rule__Constraint__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:9666:1: ( ( ( rule__Constraint__Group_2_2__0 )* ) )\n // InternalIsml.g:9667:1: ( ( rule__Constraint__Group_2_2__0 )* )\n {\n // InternalIsml.g:9667:1: ( ( rule__Constraint__Group_2_2__0 )* )\n // InternalIsml.g:9668:1: ( rule__Constraint__Group_2_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getConstraintAccess().getGroup_2_2()); \n }\n // InternalIsml.g:9669:1: ( rule__Constraint__Group_2_2__0 )*\n loop91:\n do {\n int alt91=2;\n int LA91_0 = input.LA(1);\n\n if ( (LA91_0==27) ) {\n alt91=1;\n }\n\n\n switch (alt91) {\n \tcase 1 :\n \t // InternalIsml.g:9669:2: rule__Constraint__Group_2_2__0\n \t {\n \t pushFollow(FOLLOW_19);\n \t rule__Constraint__Group_2_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop91;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getConstraintAccess().getGroup_2_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d07cb845f547bcdba45f51cc2b44abed", "score": "0.6823182", "text": "public final void rule__OpOther__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSequence.g:5116:1: ( rule__OpOther__Group_2__1__Impl )\n // InternalSequence.g:5117:2: rule__OpOther__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__OpOther__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "03fa73f06554b401ad667875ae8ff90e", "score": "0.68222344", "text": "public final void rule__NamedViewBlock__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12803:1: ( rule__NamedViewBlock__Group__2__Impl )\n // InternalIsml.g:12804:2: rule__NamedViewBlock__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__NamedViewBlock__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "680237d894f9f6ddd076485ee0366bcd", "score": "0.6821199", "text": "public final void rule__Hello__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:3370:1: ( rule__Hello__Group__2__Impl )\n // ../org.xtext.example.hellocustomecore.ui/src-gen/org/xtext/example/hellocustomecore/ui/contentassist/antlr/internal/InternalHelloCustomEcore.g:3371:2: rule__Hello__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__Hello__Group__2__Impl_in_rule__Hello__Group__27321);\n rule__Hello__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f5d30997f2466d9eec34e7187b196f03", "score": "0.68129337", "text": "public final void rule__Projection_component__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7275:1: ( rule__Projection_component__Group__2__Impl )\n // InternalMyDsl.g:7276:2: rule__Projection_component__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Projection_component__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "548cdd692e986ed8e98b86e15e126795", "score": "0.68041635", "text": "public final void rule__Page__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:10756:1: ( rule__Page__Group_2__2__Impl )\n // InternalIsml.g:10757:2: rule__Page__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Page__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1f8c96445a8af64f981d42a2dbee12a1", "score": "0.68004143", "text": "public final void rule__Language_dependent_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:16260:1: ( rule__Language_dependent_definition__Group__2__Impl )\n // InternalMyDsl.g:16261:2: rule__Language_dependent_definition__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Language_dependent_definition__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "72c2c22f53072907fa3c12a0f9b1145c", "score": "0.679705", "text": "public final void rule__Controller__Group_2_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:8676:1: ( rule__Controller__Group_2_0__2__Impl )\n // InternalIsml.g:8677:2: rule__Controller__Group_2_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Controller__Group_2_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a67367b14125acb0cd5fdfc94cc2d05b", "score": "0.67940134", "text": "public final void rule__Var__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:3154:1: ( rule__Var__Group__2__Impl )\n // InternalMGPL.g:3155:2: rule__Var__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Var__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "850c566f092b7adad3d4f020bccd8e40", "score": "0.6789817", "text": "public final void rule__IfView__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:11544:1: ( rule__IfView__Group__1__Impl rule__IfView__Group__2 )\n // InternalIsml.g:11545:2: rule__IfView__Group__1__Impl rule__IfView__Group__2\n {\n pushFollow(FOLLOW_28);\n rule__IfView__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__IfView__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4ef83c9e182714d12b8c3efa407e464c", "score": "0.67865384", "text": "public final void rule__Luname_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:11501:1: ( rule__Luname_definition__Group__2__Impl rule__Luname_definition__Group__3 )\n // InternalMyDsl.g:11502:2: rule__Luname_definition__Group__2__Impl rule__Luname_definition__Group__3\n {\n pushFollow(FOLLOW_11);\n rule__Luname_definition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Luname_definition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2c18100a2f702c8e3c6b09b30cc41dd9", "score": "0.678368", "text": "public final void rule__To_function_definition__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:31361:1: ( ( ( rule__To_function_definition__Group_2__0 )? ) )\n // InternalMyDsl.g:31362:1: ( ( rule__To_function_definition__Group_2__0 )? )\n {\n // InternalMyDsl.g:31362:1: ( ( rule__To_function_definition__Group_2__0 )? )\n // InternalMyDsl.g:31363:2: ( rule__To_function_definition__Group_2__0 )?\n {\n before(grammarAccess.getTo_function_definitionAccess().getGroup_2()); \n // InternalMyDsl.g:31364:2: ( rule__To_function_definition__Group_2__0 )?\n int alt192=2;\n int LA192_0 = input.LA(1);\n\n if ( (LA192_0==RULE_ID) ) {\n alt192=1;\n }\n switch (alt192) {\n case 1 :\n // InternalMyDsl.g:31364:3: rule__To_function_definition__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__To_function_definition__Group_2__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getTo_function_definitionAccess().getGroup_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6b4ce0f008adb1488bb181531d6b013a", "score": "0.67784953", "text": "public final void rule__ViewInstanceNoAction__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12427:1: ( rule__ViewInstanceNoAction__Group_2__2__Impl rule__ViewInstanceNoAction__Group_2__3 )\n // InternalIsml.g:12428:2: rule__ViewInstanceNoAction__Group_2__2__Impl rule__ViewInstanceNoAction__Group_2__3\n {\n pushFollow(FOLLOW_30);\n rule__ViewInstanceNoAction__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ViewInstanceNoAction__Group_2__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "897609dc3e770c54eac824b4d3821535", "score": "0.67760617", "text": "public final void rule__DTO__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:4982:1: ( ( ( rule__DTO__Group_2_2__0 )* ) )\n // InternalIsml.g:4983:1: ( ( rule__DTO__Group_2_2__0 )* )\n {\n // InternalIsml.g:4983:1: ( ( rule__DTO__Group_2_2__0 )* )\n // InternalIsml.g:4984:1: ( rule__DTO__Group_2_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDTOAccess().getGroup_2_2()); \n }\n // InternalIsml.g:4985:1: ( rule__DTO__Group_2_2__0 )*\n loop53:\n do {\n int alt53=2;\n int LA53_0 = input.LA(1);\n\n if ( (LA53_0==27) ) {\n alt53=1;\n }\n\n\n switch (alt53) {\n \tcase 1 :\n \t // InternalIsml.g:4985:2: rule__DTO__Group_2_2__0\n \t {\n \t pushFollow(FOLLOW_19);\n \t rule__DTO__Group_2_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop53;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDTOAccess().getGroup_2_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "58bed35867fa7f0ca690497c4f68d044", "score": "0.6775613", "text": "public final void rule__ViewInstanceNoAction__Group_2__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:12456:1: ( rule__ViewInstanceNoAction__Group_2__3__Impl )\n // InternalIsml.g:12457:2: rule__ViewInstanceNoAction__Group_2__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ViewInstanceNoAction__Group_2__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d54562f29035c3c5ea1cdab91f1fe85d", "score": "0.67678654", "text": "public final void rule__DelimitedExpr__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:8174:1: ( rule__DelimitedExpr__Group_2__2__Impl )\n // InternalFortXTrans.g:8175:2: rule__DelimitedExpr__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DelimitedExpr__Group_2__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e10fb6474173387762fc4aa8a6882a50", "score": "0.6767822", "text": "public final void rule__Tag_minus_definition__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:13121:1: ( rule__Tag_minus_definition__Group_2__1__Impl )\n // InternalMyDsl.g:13122:2: rule__Tag_minus_definition__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Tag_minus_definition__Group_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "775a449bc2a153f9eef51570d4910e89", "score": "0.6767748", "text": "public final void rule__Term__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:15386:1: ( rule__Term__Group_1__2__Impl )\n // InternalIsml.g:15387:2: rule__Term__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Term__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "73394e722b7994f67ff49618d9db2c60", "score": "0.6766931", "text": "public final void rule__RegularMethod__Group_6_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:8361:1: ( rule__RegularMethod__Group_6_0__2__Impl )\n // InternalIsml.g:8362:2: rule__RegularMethod__Group_6_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__RegularMethod__Group_6_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6fdb3ef25ff5144741578e4d2e496cd9", "score": "0.6763382", "text": "public final void rule__Label_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:19467:1: ( rule__Label_definition__Group__2__Impl rule__Label_definition__Group__3 )\n // InternalMyDsl.g:19468:2: rule__Label_definition__Group__2__Impl rule__Label_definition__Group__3\n {\n pushFollow(FOLLOW_11);\n rule__Label_definition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Label_definition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3f939de66690d6fc49b8cadb81efb465", "score": "0.6763326", "text": "public final void rule__Comparison__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFortXTrans.g:5960:1: ( rule__Comparison__Group_1__2__Impl )\n // InternalFortXTrans.g:5961:2: rule__Comparison__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Comparison__Group_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dad241844dc5b3edb2cdf8884d997b43", "score": "0.67630255", "text": "public final void rule__DTO__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:4858:1: ( ( ( rule__DTO__Group_2__0 )? ) )\n // InternalIsml.g:4859:1: ( ( rule__DTO__Group_2__0 )? )\n {\n // InternalIsml.g:4859:1: ( ( rule__DTO__Group_2__0 )? )\n // InternalIsml.g:4860:1: ( rule__DTO__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDTOAccess().getGroup_2()); \n }\n // InternalIsml.g:4861:1: ( rule__DTO__Group_2__0 )?\n int alt52=2;\n int LA52_0 = input.LA(1);\n\n if ( (LA52_0==26) ) {\n alt52=1;\n }\n switch (alt52) {\n case 1 :\n // InternalIsml.g:4861:2: rule__DTO__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__DTO__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDTOAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e409f91caadcd3de731e7aa43c72e218", "score": "0.6753256", "text": "public final void rule__Actor__Group_2_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:10034:1: ( rule__Actor__Group_2_2__1__Impl )\n // InternalIsml.g:10035:2: rule__Actor__Group_2_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Actor__Group_2_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "01e71f73412a6c3ede65df884841f2b3", "score": "0.6752726", "text": "public final void rule__ForView__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:11831:1: ( rule__ForView__Group__1__Impl rule__ForView__Group__2 )\n // InternalIsml.g:11832:2: rule__ForView__Group__1__Impl rule__ForView__Group__2\n {\n pushFollow(FOLLOW_28);\n rule__ForView__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ForView__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "61bb6b8f6c3e817e784672f440618ed1", "score": "0.6750308", "text": "public final void rule__RequirementEnd__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReqLNG.g:2024:1: ( rule__RequirementEnd__Group__2__Impl )\n // InternalReqLNG.g:2025:2: rule__RequirementEnd__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__RequirementEnd__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2d1d6d1576f1e18da01ab728c0367b17", "score": "0.674025", "text": "public final void rule__Change_detection_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:16341:1: ( rule__Change_detection_definition__Group__2__Impl rule__Change_detection_definition__Group__3 )\n // InternalMyDsl.g:16342:2: rule__Change_detection_definition__Group__2__Impl rule__Change_detection_definition__Group__3\n {\n pushFollow(FOLLOW_24);\n rule__Change_detection_definition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Change_detection_definition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c887e990cb8ee7e4d3d95b967330ed29", "score": "0.6739172", "text": "public final void rule__Service__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:6890:1: ( rule__Service__Group_2__1__Impl rule__Service__Group_2__2 )\n // InternalIsml.g:6891:2: rule__Service__Group_2__1__Impl rule__Service__Group_2__2\n {\n pushFollow(FOLLOW_33);\n rule__Service__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Service__Group_2__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6b0769ec0e8198f1d22e352c45f08e03", "score": "0.67388815", "text": "public final void rule__Category__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7599:1: ( rule__Category__Group__2__Impl )\n // InternalMyDsl.g:7600:2: rule__Category__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Category__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
8c80fa755cb3193dff114c813d97d226
Questa funzione serve a chiedere all'utente se vuole o no commentare/condividere il video
[ { "docid": "038d3675999751e13cdd1f7db125d97b", "score": "0.0", "text": "public boolean vuoi()\r\n {\r\n Scanner in1 = new Scanner(System.in);\r\n String scelta1 = in1.next();\r\n\r\n if (scelta1.equals(\"S\") || scelta1.equals(\"s\"))\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "title": "" } ]
[ { "docid": "18f2004ffd6a293cadc765b5b0b193a3", "score": "0.6633543", "text": "@Override\r\n\tprotected void onVideo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2a2d3943485de70946a66205e5d91239", "score": "0.65335023", "text": "private void cargarvideo(String video, String mensaje,eTipoVideo tipoVideo) {\n//\tSystem.out.println(\"cargarvideo \" + tipoVideo.toString());\n\t\n\t// TODO apagar los sonidos \n\tpauseSonidoPregunta();\n\t\n\t\t\t\t\n\tif (stage.getActors().contains(videoScreen, true)) {\n\t\tvideoScreen.dispose();\n\t\tvideoScreen.remove();\t\t\t\t\t\n\t\tvideoScreen = null;\n\t\tgc();\n\t}\n\t\t//System.out.println(\"agregando el contenedor: \" + video);\n\t\t//String[] sino = new String[2];\n\t\t\n\t\tvideoScreen = new Dialogo();\n\t\tvideoScreen.create( video, tipoVideo , false);\n\t\tvideoScreen.setWidth(800);\n\t\tvideoScreen.setHeight(500);\n\t\tvideoScreen.setPosition(25, 25);\n\t\tstage.addActor(videoScreen);\n\n\t\tfinal eTipoVideo vTipoVideo = tipoVideo;\n\t\t\t\t\t\n\t\tvideoScreen.addListener(new ChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\tstage.removeListener(this);\t\t\t\t\t\n\t\t\t\tprocesarVideoListener(videoScreen.getResult(), vTipoVideo);\n\t\t\t}\n\t\t});\n\t\t\t\n\t\tvideoScreen.addListener(new InputListener(){\t\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean keyDown( InputEvent event, int keyCode){\t \t\t\t\n \t\t//\tSystem.out.println(\"KeyCode\" + keyCode);\n \t\t\tif (keyCode == Keys.ENTER || keyCode == Keys.ESCAPE)\n\t\t\t\tstage.removeListener(this);\n\t\t\t\tprocesarVideoListener(videoScreen.getResult(), vTipoVideo);\n\t\t\t\treturn false;\n \t\t\t}\n\t\t}); \t\t\t\t\t\t\n\t\t\n}", "title": "" }, { "docid": "540d8b157f802be8e6df0eb29aa5fa00", "score": "0.6528038", "text": "boolean hasVideo();", "title": "" }, { "docid": "540d8b157f802be8e6df0eb29aa5fa00", "score": "0.6528038", "text": "boolean hasVideo();", "title": "" }, { "docid": "540d8b157f802be8e6df0eb29aa5fa00", "score": "0.6528038", "text": "boolean hasVideo();", "title": "" }, { "docid": "86c959f356f966a53041ec6a9f62aca0", "score": "0.6394893", "text": "@Override\r\n\tprotected void onShortVideo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "09373ee71d36634399c1d72813f5352e", "score": "0.6261286", "text": "boolean hasAddVideo();", "title": "" }, { "docid": "e53c2613135b649f6380c378192eea51", "score": "0.6197178", "text": "public void makeVideoInteractable() {\n this.mShowCloseButtonEventFired = true;\n this.mRadialCountdownWidget.setVisibility(8);\n this.mCloseButtonWidget.setVisibility(0);\n this.mCtaButtonWidget.notifyVideoSkippable();\n this.mSocialActionsView.setVisibility(0);\n }", "title": "" }, { "docid": "0b3227270e7101d2c33b5fafef4bd029", "score": "0.6177858", "text": "public IOntlening ontleen(IVideo video) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f887f89913c44e60e3ebb75c4e3a7cec", "score": "0.61433405", "text": "private void loadViewsAndVideo(){\r\n //JB: Carga la vista del video\r\n YouTubePlayerView playerView = (YouTubePlayerView)findViewById(R.id.youtube_player_view);\r\n playerView.getYouTubePlayerWhenReady(youTubePlayer -> youTubePlayer.cueVideo(mVideoId,0));\r\n this.getLifecycle().addObserver(playerView);\r\n playerView.addFullScreenListener(new YoutubeUIController(ReplyActivity.this,playerView));\r\n\r\n //JB: Gestiona si esa publicacion tiene un like establecido anteriormente\r\n LinearLayout shareContainer = (LinearLayout) playerView.getParent().getParent().getParent();\r\n DiscoverUtilities.manageLike(mSessionId,mShareId,shareContainer,this);\r\n\r\n\r\n mReplies = new ArrayList<>();\r\n repliesInfo = new ArrayList<>();\r\n //JB: Llamada a la funcion que se encarga de las respuestas relacionadas con la publicacion\r\n downloadReplies();\r\n }", "title": "" }, { "docid": "0a3f98ee14515391d6dcaec6de64e7ae", "score": "0.6131269", "text": "@Override\r\n\tpublic void onVideoUndisplay(long userId) {\n\r\n\t}", "title": "" }, { "docid": "2938ea0903fce5d8b597c72a694533dc", "score": "0.6128431", "text": "@Override\r\n\tpublic void startVideo() {\n\t}", "title": "" }, { "docid": "d46efa20e0f926271225acfe90702aff", "score": "0.612193", "text": "@Override\n public void onPrepared(MediaPlayer mp) {\n Toast.makeText(PantallaPrincipal.this, \"El video ya se ha cargado\", Toast.LENGTH_SHORT).show();\n videoView.pause(); //Ponemos en pausa el video para que no se inicie automaticamente al cargar\n }", "title": "" }, { "docid": "467e718098dda061f95e0ed7aad9ad56", "score": "0.6104365", "text": "boolean hasComposeOnVideo();", "title": "" }, { "docid": "72b37b65c647f24a466b78ac455c3479", "score": "0.61028427", "text": "private void conclusion() {\n\t\t// TODO Auto-generated method stub\n\t\treiniciarStage();\n\t\tif (contadorCorrectas > contadorIncorrectas) {\n\t\t\tsonidoTriunfo.play();\t\t\t\n\t\t\tganar();\n\t\t\tgame.mapMin.asignarPartida(partida, batalla,dificultad,configuracion,true);\n\t\t\tcargarVideoInformativo(eTipoVideo.Victoria);\n\n\n\t\t} else {\n\t\t\tsonidoDerrota.play();\n\t\t\tcargarVideoInformativo(eTipoVideo.Derrota);\n\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f16a914355ede14abeff33c2704a76dd", "score": "0.6079868", "text": "@Override\r\n\tpublic void onVideoJoinConfirm(boolean ok) {\n\r\n\t}", "title": "" }, { "docid": "5cd2aca34d0541b12a347ee4d154eb59", "score": "0.60546863", "text": "public void nextVideo(View v) {\n if(uris.size() == 0){\n if(type.equals(\"video\")) {\n Toast.makeText(VideoAndAudioActivity.this, \"You don't have videos in this journey!\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(VideoAndAudioActivity.this, \"You don't have audios in this journey!\", Toast.LENGTH_LONG).show();\n }\n return ;\n }\n if((uri_actual_position + 1) < uris.size()){\n uri_actual_position = uri_actual_position + 1;\n setVideoView(uris.get(uri_actual_position));\n } else {\n uri_actual_position = 0;\n setVideoView(uris.get(uri_actual_position));\n }\n }", "title": "" }, { "docid": "78dbbba174ae986e07ff818be0edf09e", "score": "0.602598", "text": "public void Video() {\n }", "title": "" }, { "docid": "9055010d82c0c1865b7daab9777d467e", "score": "0.60142994", "text": "@Override\r\n\tpublic void stopVideo() {\n\t}", "title": "" }, { "docid": "1ea258f9c7af82ecee9b9312378f8d04", "score": "0.601265", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "085a7b6dfa2aa17932d8521d379a37ab", "score": "0.59942853", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "740bb1738ec1f8b06a19d02546fd5641", "score": "0.5980364", "text": "@Override\r\n\tpublic void pauseVideo() {\n\r\n\t}", "title": "" }, { "docid": "089bd2dd15d0845d54d81b96caeef6bf", "score": "0.5969108", "text": "boolean getComposeOnVideo();", "title": "" }, { "docid": "6daf06a5f718f7efc97edbe3974490fe", "score": "0.59380794", "text": "private void toggleVideo() {\n\t\t//If videoFlag is true then stop Video else start video\n\t\tif(vthread==null)\n\t\t\treturn;\n\t\t\n\t\tif(vthread.videoStream) {\n\t\t\tvthread.videoStream = false;\n\t\t\tSystem.out.println(\"TCPServer: Video streamming stopped\");\n\t\t} else {\n\t\t\tSystem.out.println(\"TCPServer: Video streamming started\");\n\t\t\tvthread.videoStream = true;\n\t\t}\n\t}", "title": "" }, { "docid": "41087fb7a6774ec8281b504721d0176f", "score": "0.5922547", "text": "private void videoPlayStop(int mod){\n \tif(mod==0){\r\n \t\tvideoView.pause();\r\n \t\tpause=true;\r\n \t\tbutton[1].setBackground(this.getResources().getDrawable(R.drawable.ic_play)); \t\t\r\n \t}else if (mod==1){\r\n \t\tif(fileNameList.isEmpty()) return;\r\n \t\tpause=false;\r\n\t\t videoView.setVideoPath(filePathList.get(indexPlay));\r\n\t\t button[1].setBackground(this.getResources().getDrawable(R.drawable.ic_pause));\r\n\t\t fileNameTextView.setText(fileNameList.get(indexPlay));\r\n\t\t runThread();\r\n\t\t videoView.start();\r\n\t\t changedFile=false;\r\n \t}else if(mod==2){\r\n \t\tpause=false;\r\n \t\tbutton[1].setBackground(this.getResources().getDrawable(R.drawable.ic_pause));\r\n \t\t \r\n \t\t if(changedFile){\r\n \t\t \tvideoView.setVideoPath(filePathList.get(indexPlay));\r\n \t\t \tfileNameTextView.setText(fileNameList.get(indexPlay));\r\n \t\t \tchangedFile=false;\r\n \t\t }\r\n \t\t videoView.start();\r\n \t} \t\r\n }", "title": "" }, { "docid": "ef459eb299677ec3f91a6661f6c72523", "score": "0.59142655", "text": "public void videoAdditionMessageConfirmation()\n\t{\n\t\ttry {\n\t\t\tkl.klWait();\n\t\t\tString s = kl.klGetTextFromWebElement(ObjectRepository.VIDEOADDMESSAGE);\n\t\t\tkl.klWait();\n\t\t\tAssert.assertTrue(s.contains(configProperties.getProperty(\"VIDEOFILENAME\")));\n\t\t\tBasicConfigurator.configure();\n\t\t\tlogger.info(\"video url confirmed\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tlogger.error(\"Exception occurred during videoAdditionMessageConfirmation(): \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "5add585d0f04e5a24456ddcf460f6e92", "score": "0.5890995", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "5add585d0f04e5a24456ddcf460f6e92", "score": "0.5890995", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "5add585d0f04e5a24456ddcf460f6e92", "score": "0.5890995", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "5add585d0f04e5a24456ddcf460f6e92", "score": "0.5890995", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "e5207f95ed074e018f2b1bb9dc419a38", "score": "0.58860576", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "e5207f95ed074e018f2b1bb9dc419a38", "score": "0.58860576", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "e5207f95ed074e018f2b1bb9dc419a38", "score": "0.58860576", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "1eba72b7529c67ba9942cd55ef52c90c", "score": "0.5877224", "text": "boolean hasVideoAdSkippable();", "title": "" }, { "docid": "ccf5a815d4ad9aa6f02329f3f0329a2a", "score": "0.5876628", "text": "void showDucks() {\n\t\tplayVideo(\"https://www.youtube.com/watch?v=MtN1YnoL46Q\");\n\t}", "title": "" }, { "docid": "d2900fd3bb68836c46a891a5709e3feb", "score": "0.5863646", "text": "public void cargarVideo(){\n //Se crea el controlador del video\n mediaController = new MediaController(PantallaPrincipal.this);\n\n //Establecemos el ancho del controlador\n mediaController.setAnchorView(videoView);\n\n //Se añade el controlador al VideoView\n videoView.setMediaController(mediaController);\n // Cargamos el contenido multimedia (el vídeo) en el VideoView\n\n //OTROS VIDEOS\n //videoView.setVideoURI(Uri.parse(\"http://desprogresiva.antena3.com/mp_seriesh4/2013/02/22/00029/001.mp4\"));\n //videoView.setVideoURI(Uri.parse(\"http://www.ebookfrenzy.com/android_book/movie.mp4\"));\n videoView.setVideoURI(Uri.parse(\"https://www.w3schools.com/html/mov_bbb.mp4\"));\n\n //Listener que será invocado cuando el vídeo esté cargado y preparado para la reproducción\n videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n //Se indica que el video esta cargado\n Toast.makeText(PantallaPrincipal.this, \"El video ya se ha cargado\", Toast.LENGTH_SHORT).show();\n videoView.pause(); //Ponemos en pausa el video para que no se inicie automaticamente al cargar\n }\n });\n }", "title": "" }, { "docid": "239d7152b502e205adc43dfbed7408ca", "score": "0.586227", "text": "public void onVideoEnd() {\n super.onVideoEnd();\n }", "title": "" }, { "docid": "8d9699f935e34554062a06d39177af5d", "score": "0.58472353", "text": "public T caseVideo(Video object)\n {\n return null;\n }", "title": "" }, { "docid": "441b8d05ce167a641d00ce11863516f7", "score": "0.58307064", "text": "@Override\r\n\tpublic void onVideoDisplay(UserInfo user) {\n\r\n\t}", "title": "" }, { "docid": "824c784ba11c5bb42d7fd8d12f2d0390", "score": "0.58290595", "text": "public boolean removeVideo(Video video);", "title": "" }, { "docid": "41ba8648c5415728712ce95adb41617d", "score": "0.5821832", "text": "@Override\n public void run() {\n String result = HttpUtils.doGet(path1);\n\n if (null != result && result.length() > 0) {\n playVideo = PlayVideo_JsonUtil.getData(result);\n if (!playVideo.equals(\"\")) {\n handler.sendEmptyMessage(1);\n\n Log.e(\"aaaaa\", \"njds1nvsdjknv\");\n } else {\n handler.sendEmptyMessage(0);\n }\n\n } else {\n handler.sendEmptyMessage(0);\n }\n }", "title": "" }, { "docid": "bb290ce809a8b556aecf3462483e2226", "score": "0.58192027", "text": "boolean hasVideoUrl();", "title": "" }, { "docid": "7629eaaa3799c24e6651f1512c315e23", "score": "0.58100253", "text": "private void cargarayuda() {\n\n\ttry{\n\t\tif (!videoAyuda.equals(\"0\")){\n//\t\t\tSystem.out.println(\"videoAyuda\" + videoAyuda);\n\t\t\tcargarVideoInformativo(eTipoVideo.Ayuda);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Error, no se ha configurado el video de Ayuda para este minijuego\");\n\t}\n\tcatch(Exception e){\n\t\tSystem.out.println(\"Error cargando el video: \" + videoAyuda + \" \"+ e.getMessage());\t\t\n\t}\t\n}", "title": "" }, { "docid": "b62e6ceac97004e668714097844eeb75", "score": "0.58009934", "text": "private void loadVideoPreview() {\n if (videosPath != null && videosPath.size() > 0) {\n imagesCountNow = 0;\n imagesCount = videosPath.size() + 1;\n for (String videoPath : videosPath) {\n if (videoPath.length() > 0) {\n ChatsModel.Chat chat = initDataSenderMessage(videoPath, ChatType.VIDEO);\n chatsModel.getChats().add(chat);\n chatAdapter.addItem(chat);\n postConversation(ChatType.VIDEO.canonicalForm(), videoPath, chatsModel.getIdConversation());\n }\n binding.etFieldChat.setText(\"\");\n moveToBottomImage(moveToBottomRv, 500);\n }\n }\n }", "title": "" }, { "docid": "737117ea0307bfe338766f213fda37f9", "score": "0.5780688", "text": "boolean hasVid();", "title": "" }, { "docid": "27110fb339f820bb3217f58aeeeb0096", "score": "0.5768585", "text": "private void startVideoChat() {\n\t\tif(mEventListener != null)\n\t\t\tmEventListener.startVideoChat( mContact );\n\t}", "title": "" }, { "docid": "bdbe8392c19780348eee08a6e2aaf928", "score": "0.5754002", "text": "private static void watchMyVideos(int arrayPosition) {\n\t\tUser e = userList.get(arrayPosition);\n\t\tIterator <Video> xxx = e.videoList.iterator();\n\t\twhile (xxx.hasNext()) {\n\t\t\tVideo w=xxx.next();\n\t\tSystem.out.println(w.title+\" \"+e.videoList.indexOf(w));\n\t\t}\n\t\tfor (int j=0;j<e.videoList.size();j++) {\n\t\t\tVideo b = e.videoList.get(j);\n\t\t\tSystem.out.println(\"You are watching video \"+b.title+\" tag:\"+b.tags+ \" url \"+b.url);\n\t\t}\n\tentry();\n}", "title": "" }, { "docid": "9778a8b524ae4b02d65bdf463a1a1877", "score": "0.5748914", "text": "private void loadVideo(){\n\n URL url_media;\n try {\n url_media = new URL(\"file:\\\\D:\\\\mes projets\\\\Java\\\\javaAllForDeal\\\\AllForDeal\\\\images\\\\phoneGap.avi\");\n } catch (MalformedURLException ex) {\n url_media=null;\n Logger.getLogger(PanelAboutUs.class.getName()).log(Level.SEVERE, null, ex);\n }\n Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, true );\n try\n {\n \n // Créer un lecteur pour lire le fichier specifié \n Player mediaPlayer = Manager.createRealizedPlayer( url_media );\n \n // Créer les composants de video et de contrôle PlaysBack\n Component video = mediaPlayer.getVisualComponent(); \n Component controles = mediaPlayer.getControlPanelComponent(); \n \n // Ajouter les composants dans le JPanel\n if ( video != null )\n jPanel2.add( video, BorderLayout.CENTER );\n \n if ( controles != null )\n jPanel2. add( controles, BorderLayout.SOUTH );\n \n // Lancer la lecture de fichier sélectionné \n mediaPlayer.start(); \n \n } \n catch ( Exception err )\n {\n System.err.println( \"Erreur: \"+err );\n } \n \n}", "title": "" }, { "docid": "69e71e5dd8e97f97f6126b9d5fd189b6", "score": "0.5741733", "text": "@Override\r\n\tpublic void onVideoCameraAvailiable(boolean ok) {\n\r\n\t}", "title": "" }, { "docid": "911a832634ef1df1c030bf9174d19f50", "score": "0.5733769", "text": "public static void actualizarRegistroVideo(Video vd){\r\n Connection cn;\r\n try {\r\n cn = conexion();\r\n String QuertyUpdate = \"UPDATE video SET titulo=?,director=?,productora=?,tipo=?,\"+\r\n \"anio=?,duracion=?,pais=?,idioma=?,subtitulo=?,\"+\r\n \"clasificacion=?,genero=?,ubicacion=?,sinopsis=? WHERE codigo=?\";\r\n PreparedStatement ps = cn.prepareStatement(QuertyUpdate);\r\n ps.setString(1, vd.getTitulo());\r\n ps.setString(2, vd.getDirector());\r\n ps.setInt(3, vd.getProductora());\r\n ps.setString(4, vd.getTipo());\r\n ps.setString(5, vd.getAnio());\r\n ps.setInt(6, vd.getDuracion());\r\n ps.setInt(7, vd.getPais());\r\n ps.setInt(8, vd.getIdioma());\r\n ps.setString(9, vd.getSubtitulo());\r\n ps.setInt(10, vd.getClasificacion());\r\n ps.setString(11, vd.getGenero());\r\n ps.setString(12, vd.getUbicacion());\r\n ps.setString(13, vd.getSinopsis());\r\n ps.setString(14, vd.getCodigo());\r\n ps.executeUpdate(); //ejecuta la inserción a la tabla participante\r\n cn.close(); //cierra la conexión al servidor MySQL\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(DBAdmin.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "a7348863c2d50bae712b535599fd40e2", "score": "0.573347", "text": "public boolean isVideo() throws org.gsma.joyn.JoynServiceException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: org.gsma.joyn.ipcall.IPCall.isVideo():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.ipcall.IPCall.isVideo():boolean\");\n }", "title": "" }, { "docid": "b0d1355110f8c3d7968a2d7e54aa64ff", "score": "0.5728329", "text": "public boolean addVideo(Video newVideo);", "title": "" }, { "docid": "4d23383eaa18e36367c2aa2c5531a9fa", "score": "0.5718466", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tispreparePlayed = false; \r\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "3cd3de1a505c06750c5e43aabf6359e0", "score": "0.5708457", "text": "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void testVideoTesting() throws Exception {\r\n\t\tRegUserAndChangePass.RegisterToComcastAppAndChangePassword(driver);\r\n\r\n\t\tThread.currentThread().sleep(sleepTime);\r\n\t\tdriver.findElement(By.linkText(\"My Dog Eve\")).click();\r\n\r\n\t\tThread.sleep(sleepTimeForVideoPlay);\r\n\t\tdriver.findElement(By.cssSelector(\"button.pause\")).click();\r\n\r\n\t\tThread.sleep(sleepTime);\r\n\t\tdriver.findElement(By.linkText(\"Log Out\")).click();\r\n\t}", "title": "" }, { "docid": "a9cc6a0e9294f359517f2ced7f2e1b9b", "score": "0.56960946", "text": "public void previousVideo(View v) {\n if(uris.size() == 0){\n if(type.equals(\"video\")) {\n Toast.makeText(VideoAndAudioActivity.this, \"You don't have videos in this journey!\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(VideoAndAudioActivity.this, \"You don't have audios in this journey!\", Toast.LENGTH_LONG).show();\n }\n return ;\n }\n if((uri_actual_position - 1) < 0){\n uri_actual_position = uris.size() - 1;\n setVideoView(uris.get(uri_actual_position));\n } else {\n uri_actual_position = uri_actual_position - 1;\n setVideoView(uris.get(uri_actual_position));\n }\n }", "title": "" }, { "docid": "10a0ca6315b75d0634fda409f8a25815", "score": "0.5688189", "text": "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmVideoContrl.seekTo((int) time);\r\n\t\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISMISS_PLAYER_PAUSE_ICON);\r\n\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "c679a5ac0d1293efaa90fe7e3b29d395", "score": "0.56663793", "text": "CVDLucchetto(CampoVideo campoVideo, boolean chiuso) {\n /* rimanda al costruttore della superclasse */\n super(campoVideo, null, null);\n\n try { // prova ad eseguire il codice\n\n /* regola le variabili di istanza coi parametri */\n this.setChiuso(chiuso);\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "b2a3d3e4082bc142bb7be34ff7b85d3c", "score": "0.56655926", "text": "public void restaVid(){\r\n if(vidas<=2){\r\n removeObject(vida3); \r\n }\r\n if(vidas<=1){\r\n removeObject(vida2);\r\n }\r\n if(vidas<=0){\r\n removeObject(vida1);\r\n Greenfoot.playSound(\"gameover.mp3\");\r\n Greenfoot.setWorld(new gameover());\r\n }\r\n }", "title": "" }, { "docid": "f55f8c95270ab297b848cf3d0288d892", "score": "0.5660901", "text": "private boolean cargarVideoInformativo(eTipoVideo pTipoVideo) {\n\t\n\tString vPath = \"\";\n\n\tswitch (pTipoVideo) {\n\tcase Victoria:\n\t\tvPath = \"assets/video/\" + batalla + \"/\" + minijuego + \"v.ogv\";\t\t\n\t\tbreak;\n\t\t\n\tcase Derrota:\t\t\t\n\t\tvPath = \"assets/video/\" + batalla + \"/\" + minijuego + \"d.ogv\";\t\t\n\t\tbreak; \n\t\t\n\tcase Ayuda:\t\t\n\t\tvPath = \"assets/video/\"+ batalla + \"/\" + minijuego + \"a.ogv\";\n\t\tbreak;\n\t\n\tdefault:\t\t\t\n\t\tbreak;\n\t}\t\t\t\t\t\n\ttry{\n\t\tcargarvideo(vPath, \" \", pTipoVideo);\n\t\treturn true;\n\t}\n\tcatch(Exception e){\n\t\tSystem.out.println(\"no se puede cargar el video: \" + vPath);\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "7dd8c2c371f02317800d2eca9c458831", "score": "0.5639899", "text": "public boolean isLocalVideoVisible() { return false; }", "title": "" }, { "docid": "44e3036c543efb7e0a8fd4ba47559eb8", "score": "0.5636371", "text": "private void cargarhistoria() {\n\ttry{\t\n\t\tif (!videoHistoria.equals(\"0\"))\n\t\t\tcargarvideo(videoHistoria, \" Ayuda \", eTipoVideo.Historia);\n\t\telse\n\t\t\tSystem.out.println(\"Error, no se ha configurado el video de Historia para este minijuego\");\n\t}\n\tcatch(Exception e){\n\t\tSystem.out.println(\"Error cargando el video: \" + videoHistoria);\t\t\n\t}\n\n}", "title": "" }, { "docid": "8ae92dcf14ab315ff2beb9c891cba830", "score": "0.56344885", "text": "private void setVideoView(final String toUser) {\n try {\n\n String liveChatUrl = \"rtsp://mobiversitewowza.westeurope.cloudapp.azure.com:1935/videochat/\" + toUser;\n Log.d(TAG, \"run: setVideoView URL : \" + liveChatUrl);\n videoView.setVideoURI(Uri.parse(liveChatUrl));\n videoView.start();\n videoView.setOnErrorListener(new MediaPlayer.OnErrorListener() {\n @Override\n public boolean onError(MediaPlayer mp, int what, int extra) {\n setVideoView(toUser);\n Log.e(TAG, \"Error playing video 353\");\n return true;\n }\n });\n\n\n } catch (Exception e) {\n setVideoView(toUser);\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "958633e5d727e0a6151b21344be3f095", "score": "0.5632739", "text": "boolean estVide() {\n\t\treturn this == VIDE ;\n\t}", "title": "" }, { "docid": "a40c1e49b5a6b9dad45a14b53f8a51fd", "score": "0.56270427", "text": "private void pausaAutoplayControles(boolean cambioPagina) {\n\n Log.v(Constants.Log.METHOD, \"ReadActivityStandard - pausaAutoplayControles\");\n\n if (!paused) {\n\n //Cancelamos tarea de desvanecimiento\n cancelDesvanecimientoControles();\n\n mPager.pauseTimer(cambioPagina);\n //Pausamos la música\n MusicManager.pauseMusic();\n\n paused = true;\n\n //Animación click\n play_btn.startAnimation(clickPlayForPause);\n progressBar.startAnimation(clickProgressBar);\n AnimationDrawable frameAnimation;\n //Animación transformación play/pause\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\n frameAnimation = (AnimationDrawable) getResources().getDrawable(R.drawable.frame_anim_pause_play_standard, null);\n }\n else {\n\n frameAnimation = (AnimationDrawable) getResources().getDrawable(R.drawable.frame_anim_pause_play_standard);\n }\n play_btn.setImageDrawable(frameAnimation);\n frameAnimation.start();\n }\n }", "title": "" }, { "docid": "85c6b5876760e7fef948c8dec26a6fd8", "score": "0.5623193", "text": "public void setVideo(Video video) {\n this.video = video;\n }", "title": "" }, { "docid": "135b06341203f4a82f482250fa1b9585", "score": "0.56047344", "text": "@Override\r\n\t\tpublic void onVideoPlayInfoNotify(int infoCode) {\n\t\t\tUtils.printLog(TAG, \"onVideoPlayInfoNotify\");\r\n\t\t\tif (infoCode == CommonConst.media_player_buffering) {\r\n//\t\t\t\tmVideoPlayerHander.sendEmptyMessage(SHOW_WAIT_DIALOG);\r\n\t\t\t} else if (infoCode == CommonConst.media_player_buffered) {\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISSMISS_WAIT_DIALOG);\r\n\r\n\t\t\t} else if (infoCode == CommonConst.media_player_subtitle_update) {\r\n\t\t\t\tString subtitle = mVideoContrl.getCurrentSubtitleText();\r\n\t\t\t\tUtils.printLog(TAG, \"setsubtiteltext = \" + subtitle);\r\n\t\t\t\tmSubtitleTextView.setText(subtitle);\r\n\t\t\t} else if (infoCode == CommonConst.media_player_subtitle_null) {\r\n\t\t\t\tmSubtitleTextView.setText(\"\");\r\n\r\n\t\t\t} \r\n\t\t\r\n//\t\t\telse if (infoCode == CommonConst.media_player_startplayer_firstframe) {\r\n//\t\t\t\tif (mVideoContrl != null\r\n//\t\t\t\t\t\t&& mVideoContrl.isMediaPlayerPrepared()) {\r\n//\t\t\t\t\tint dobby = mVideoContrl.isDobby(-1);\r\n//\t\t\t\t\tif(dobby == 1){\r\n//\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is Dobby\");\r\n//\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DDIMAGE);\r\n//\t\t\t\t\t}else{\r\n//\t\t\t\t\t\tint dts = mVideoContrl.isDTS(-1);\r\n//\t\t\t\t\t\tif(dts == 1){\r\n//\t\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS\");\r\n//\t\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTSIMAGE);\r\n//\t\t\t\t\t\t}else{\r\n//\t\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is not Dobby and DTS\");\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\t\r\n//\t\t\t\t\t\r\n//\t\t\t\t\t\r\n//\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t//\t}\r\n\t\telse {\r\n\t\t\t\tif (infoCode == CommonConst.media_player_not_seekable) {\r\n\t\t\t\t\tmIsSeeking = false;\r\n\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISSMISS_WAIT_DIALOG);\r\n\t\t\t\t}\r\n\t\t\t\tmMediaHanler.sendEmptyMessage(infoCode);\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "1c1de4b6bc5ea4129c324b3d684a4d59", "score": "0.5604688", "text": "@Test\n\tpublic void verifyVideoPlayedTest() throws Throwable {\n\t\tThread.sleep(8000);\n\t\tgotoMyCoursesView();\n\t\tdriver.clickElementById(getHeaderId());\n\t\tdriver.clickElementById(getMyCourseId());\n\t\tThread.sleep(10 * 1000);\n\t\tdriver.clickElementWithIndexById(getCourseListId(), 1);\n\t\tThread.sleep(10 * 1000);\n\t\tdriver.clickElementById(getSectionSubsectionListId());\n\t\tThread.sleep(10 * 1000);\n\t\tdriver.clickElementById(getSectionSubsectionListId());\n\t\tdriver.clickElementById(getVideoListId());\n\t\t// verify video player\n\t\tdriver.verifyElementPresentById(getVideoPlayerId());\n\t}", "title": "" }, { "docid": "e02c325b68c0db1d62ad58497b3f7bb4", "score": "0.5592771", "text": "public void cuatro() {\n\n if(this.numero == 4) {\n mp = MediaPlayer.create(this, R.raw.cuatro);\n mp.start();\n SystemClock.sleep(1000);\n mp = MediaPlayer.create(this, R.raw.bien);\n mp.start();\n //mp = MediaPlayer.create(this, R.raw.sonidoanimal);\n //mp.start();\n SystemClock.sleep(1000);\n\n this.auxNum = numero;\n this.numero = this.random();\n while(this.auxNum == this.numero)\n this.numero = this.random();\n this.imagenAnimal(this.numero, this.picture);\n }\n else {\n this.incorrecto(mp);\n }\n }", "title": "" }, { "docid": "e50bf76b60fba468dea4518b9e2fcdc5", "score": "0.5580817", "text": "public static int vide() {\n\t\treturn vide(chemin_fichier);\n\t}", "title": "" }, { "docid": "2b63a5a3feb84af01ef03b5bdc072892", "score": "0.55589634", "text": "public void enableVideoData(){\n\t\tpst.setATCommand(\"AT*CONFIG=\"+(seq++)+\",\\\"general:video_enable\\\",\\\"TRUE\\\"\"+CR+\"AT*FTRIM=\"+(seq++), false);\n\t}", "title": "" }, { "docid": "bac35cd03c776b652ca076c714f4a31e", "score": "0.55488276", "text": "public void startVideo() {\n\t\t\tif( !useUSB ) {//IP\n\t\t\t\tif(vPlayers.get(tabNum).get(numVideo) == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//vPlayers.get(tabNum).add(numVideo, new RTSPPlayer(new String[]{}, \"rtsp://127.0.0.1:8554/test\"));\n\t\t\t\t\t\tvPlayers.get(tabNum).add(numVideo, new RTSPPlayer(initPanel.inputs[1].getText().split(\" \"), initPanel.inputs[0].getText()));\n\t\t\t\t\t\t//cam.get(tabNum).set(numVideo, vPlayers.get(tabNum).get(numVideo).getVideoComponent());\n\t\t\t\t\t\tvPlayers.get(tabNum).get(numVideo).videoComponent = new VideoComponent();\n\t\t\t\t\t\tcam.get(tabNum).set(numVideo, vPlayers.get(tabNum).get(numVideo).videoComponent);\n\t\t\t\t\t\tvPlayers.get(tabNum).get(numVideo).playbin.setVideoSink(vPlayers.get(tabNum).get(numVideo).videoComponent.getElement());\n\t\t\t\t\t\t\n\t\t\t\t\t\tint x1 = (numVideo%2)*(width/2);//either 0 or width/2 (go right?)\n\t\t\t\t\t\tint y1 = (numVideo/2)*(height/2);//either 0 or height/2 (go down?)\n\t\t\t\t\t\tint width1 = width;\n\t\t\t\t\t\t\tif(cam.get(tabNum).size() > 1) width1 /= 2;\n\t\t\t\t\t\tint height1 = height;\n\t\t\t\t\t\t\tif(cam.get(tabNum).size() > 1) height1 /= 2;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcam.get(tabNum).get(numVideo).setPreferredSize(new Dimension(width1, height1));\n\t\t\t\t\t\tcam.get(tabNum).get(numVideo).setBounds(x1,y1, width1, height1);\n\t\t\t\t\t\tcam.get(tabNum).get(numVideo).setSize(width1, height1);\n\t\t\t\t\t\tcam.get(tabNum).get(numVideo).setOpaque(false);\n\t\t\t\t\t\tSystem.out.printf(\"Made vPlayer:%d %d\\n\", tabNum, numVideo);\n\t\t\t\t\t} catch (URISyntaxException e) {e.printStackTrace(); }\n\t\t\t\t}\n\t\t\t\tself.unbindNumTab(tabNum);\n\t\t\t\tself.setTabCanvas(tabNum);\n\t\t\t\t//vPlayers.get(tabNum).get(numVideo).videoComponent = cam.get(tabNum).get(numVideo);\n//\t\t\t\t\tJFrame frame = new JFrame(\"VideoPlayer\");\n//\t\t\t frame.getContentPane().add(vPlayers.get(tabNum).get(numVideo).videoComponent, BorderLayout.CENTER);\n//\t\t\t frame.setPreferredSize(new Dimension(640, 480));\n//\t\t\t frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n//\t\t\t frame.pack();\n//\t\t\t frame.setVisible(true);\n\t\t vPlayers.get(tabNum).get(numVideo).playbin.setState(State.PLAYING);\n\t\t\t\t//vPlayers.get(tabNum).get(numVideo).startMain();\n\t\t\t\t//vPlayers.get(tabNum).get(numVideo).setVideoSink();\n\t\t\t\t//vPlayers.get(tabNum).get(numVideo).setPlay();\n\t\t System.out.println(\"Make RTSP\");\n//\t\t\t\tself.setTabCanvas(tabNum);\n\t\t\t} else {//USB\n\t\t\t\tif(usbPlayers.get(tabNum).get(numVideo) == null) {\n\t\t\t\t\tint x1 = (numVideo%2)*(width/2);//either 0 or width/2 (go right?)\n\t\t\t\t\tint y1 = (numVideo/2)*(height/2);//either 0 or height/2 (go down?)\n\t\t\t\t\tint width1 = width;\n\t\t\t\t\t\tif(usbPlayers.get(tabNum).size() > 1) width1 /= 2;\n\t\t\t\t\tint height1 = height;\n\t\t\t\t\t\tif(usbPlayers.get(tabNum).size() > 1) height1 /= 2;\n\t\t\t\t\tusbPlayers.get(tabNum).add(numVideo, new USBVideoPlayer(self, x1,y1,width1,height1, initPanel,tabNum,numVideo));\n\t\t\t\t}\n\t\t\t\tusbPlayers.get(tabNum).get(numVideo).handleConnectionRequest();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "efec8787aa95d2a967b57e830f7dad56", "score": "0.55444276", "text": "public void MovimientosContabilidad(){}", "title": "" }, { "docid": "4f9df47bcc2af226f0ed0d0dc1bdf33c", "score": "0.55330724", "text": "private void startVideoMessage() {\n\t\tif(mEventListener != null)\n\t\t\tmEventListener.startVideoMessage( mContact );\n\t}", "title": "" }, { "docid": "afd96e9cc3ae8ea694bf1448db1b8931", "score": "0.5526187", "text": "void videoUpdate(VideoEvent event);", "title": "" }, { "docid": "bd2f25ec5ba11a11f4d829572243178a", "score": "0.55260473", "text": "Comment save(CommentVideo commentVideo);", "title": "" }, { "docid": "57cafb5bb1fc44655097558c13039ee3", "score": "0.5510343", "text": "public final void mo8713dV(String str) {\n Integer valueOf;\n int i;\n String filePath;\n long j;\n int i2 = 2;\n int i3 = 1;\n Long l = null;\n AppMethodBeat.m2504i(110973);\n C25052j.m39376p(str, \"mediaId\");\n C4990ab.m7416i(this.TAG, \"this: \" + this + \" stop \" + str + ' ' + C5046bo.dpG());\n Object[] objArr = new Object[17];\n StoryVideoView storyVideoView = C22319p.this.sqW;\n objArr[0] = storyVideoView != null ? Integer.valueOf(storyVideoView.getCurrPosMs()) : Integer.valueOf(0);\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n valueOf = Integer.valueOf((int) storyVideoView.getFirstPlayWaitTime());\n } else {\n valueOf = null;\n }\n objArr[1] = valueOf;\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n valueOf = Integer.valueOf(storyVideoView.cCZ());\n } else {\n valueOf = null;\n }\n objArr[2] = valueOf;\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n valueOf = Integer.valueOf(storyVideoView.cDa());\n } else {\n valueOf = null;\n }\n objArr[3] = valueOf;\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n valueOf = Integer.valueOf(storyVideoView.cDb());\n } else {\n valueOf = null;\n }\n objArr[4] = valueOf;\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n valueOf = Integer.valueOf(storyVideoView.getStayTime());\n } else {\n valueOf = null;\n }\n objArr[5] = valueOf;\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n valueOf = Integer.valueOf(storyVideoView.getErrorCode());\n } else {\n valueOf = null;\n }\n objArr[6] = valueOf;\n objArr[7] = Integer.valueOf(this.cFa);\n if (this.cFa > 0) {\n i = 2;\n } else {\n i = 1;\n }\n objArr[8] = Integer.valueOf(i);\n if (this.sqx) {\n i2 = 3;\n }\n objArr[9] = Integer.valueOf(i2);\n C29283a c29283a = C29282c.rRS;\n storyVideoView = C22319p.this.sqW;\n if (storyVideoView != null) {\n filePath = storyVideoView.getFilePath();\n }\n filePath = \"\";\n objArr[10] = C29283a.aak(filePath);\n C35201i c35201i = this.sqy;\n if (c35201i != null) {\n l = Long.valueOf(c35201i.rUJ);\n }\n objArr[11] = l;\n C22212h c22212h = C22212h.scu;\n objArr[12] = Long.valueOf(C22212h.cAs().mo20732FF());\n c22212h = C22212h.scu;\n objArr[13] = Long.valueOf(C22212h.cAs().mo20734FH());\n c22212h = C22212h.scu;\n if (C22212h.cAs().mo20737FK() != 1) {\n i3 = 0;\n }\n objArr[14] = Integer.valueOf(i3);\n C4133a c4133a = C43644j.rST;\n C46275k cxT = C4133a.cxT();\n C35201i c35201i2 = this.sqy;\n if (c35201i2 != null) {\n j = c35201i2.rUJ;\n } else {\n j = 0;\n }\n objArr[15] = Integer.valueOf(cxT.mo74418ly(j));\n objArr[16] = Integer.valueOf(C22319p.this.srh);\n C4990ab.m7416i(this.TAG, \"reportTips: \" + Arrays.toString(objArr));\n C37961o.alm().mo73063l(str, objArr);\n AppMethodBeat.m2505o(110973);\n }", "title": "" }, { "docid": "35b2dda40df67d1ec1578ecb3f83b98c", "score": "0.5509112", "text": "@Override \n\t\t public void onClick(View arg0)\n\t {\n\t\t if(btn_switch==false)\n\t\t {mediaPlayer.reset();\n\t\t if (mthread==null)\n\t\t { \n\t\t \t video_index++;\n\t\t \t mthread = new RCamera(10*60*1000, surfaceview, surfaceHolder,thisQ,video_index);\n\t\t \t mthread.start(); \n\t\t \t while(mthread.start_r==false)\n\t\t \t { btn.setEnabled(false);}\n\t\t \t\t \n\t\t \t btn_switch=true;\n\t\t\t btn.setImageResource(R.drawable.image_stop);\n\t\t\t btn.setEnabled(true);\n\t\t\t \n\t\t }else { \n\t\t Toast.makeText(getActivity(), \"正在錄影\", Toast.LENGTH_SHORT).show(); \n\t\t } \n\t\t \n\t\t \n\t\t \n\t\t } \n\t\t else\n\t\t {\n\t\t \t if (mthread!=null) { \n\t\t \t\n\t\t \t\t mthread.stopRecord(); \n\t \n\t mthread=null; \n\t \n\t Intent mediaScanIntent = new Intent(\n\t Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n\t Uri contentUri;\n\t if(Is_every_teach.thisQ.indexOf('s')==-1)\n\t {\n\t contentUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory().getPath()+\"/面試App/面試_\"+name+\"_\"+thisQ+\"-\"+video_index+\".mp4\"));\n\t }else{\n\t \tcontentUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory().getPath()+\"/面試App/R面試For_\"+Is_every_teach.R_for_x+\"_\"+thisQ+\"-\"+video_index+\".mp4\"));\n\t }\n\t \tmediaScanIntent.setData(contentUri);\n\t view.getContext().sendBroadcast(mediaScanIntent);\n\t \t \n\t if(Is_every_teach.thisQ.indexOf('s')==-1)\n\t\t\t\t\t\t{\n\t\t\t\t \t\n\t\t\t\t \tToast.makeText(view.getContext(),Environment.getExternalStorageDirectory().getPath()+\"/面試App/面試_\"+name+\"_\"+thisQ+\"-\"+video_index+\".mp4\" , Toast.LENGTH_SHORT).show(); \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\tthisQ =Is_every_teach.thisQ.substring(1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tToast.makeText(view.getContext(),Environment.getExternalStorageDirectory().getPath()+\"/面試App/R面試For_\"+Is_every_teach.R_for_x+\"_\"+thisQ+\"-\"+video_index+\".mp4\", Toast.LENGTH_SHORT).show(); \n\t\t\t\t\t\t}\n\t \n\t }else { \n\t Toast.makeText(getActivity(), \"還沒開始錄呢\", Toast.LENGTH_SHORT).show(); \n\t }\n\t btn_switch=false;\n\t btn.setImageResource(R.drawable.image_btn);\n\t\t }\n\t }", "title": "" }, { "docid": "db88ea0f936566e07a0615553f473a4d", "score": "0.55005413", "text": "private void m17250j() {\n if (this.f13893a == null) {\n this.f13893a = new MediaPlayer();\n this.f13893a.setAudioStreamType(3);\n this.f13893a.setOnPreparedListener(new OnPreparedListener() {\n public void onPrepared(MediaPlayer mediaPlayer) {\n mediaPlayer.start();\n C4065b.m16867b(\"DefaultAdVideoPlayer\", \"onPrepared\");\n if (C4164a.this.f13898f != null) {\n C4164a.this.f13898f.mo23925a(C4164a.this);\n }\n }\n });\n this.f13893a.setOnInfoListener(new OnInfoListener() {\n public boolean onInfo(MediaPlayer mediaPlayer, int i, int i2) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"onInfo,what:--extra:\");\n sb.append(i2);\n C4065b.m16867b(\"DefaultAdVideoPlayer\", sb.toString());\n return true;\n }\n });\n this.f13893a.setOnBufferingUpdateListener(new OnBufferingUpdateListener() {\n public void onBufferingUpdate(MediaPlayer mediaPlayer, int i) {\n if (C4164a.this.f13898f != null) {\n C4164a.this.f13898f.mo23926a(C4164a.this, i);\n }\n }\n });\n this.f13893a.setOnCompletionListener(new OnCompletionListener() {\n public void onCompletion(MediaPlayer mediaPlayer) {\n C4065b.m16867b(\"DefaultAdVideoPlayer\", \"onCompletion\");\n if (C4164a.this.f13898f != null) {\n C4164a.this.f13898f.mo23929c(C4164a.this);\n }\n }\n });\n this.f13893a.setOnErrorListener(new OnErrorListener() {\n public boolean onError(MediaPlayer mediaPlayer, int i, int i2) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"onError,what:--extra:\");\n sb.append(i2);\n C4065b.m16867b(\"DefaultAdVideoPlayer\", sb.toString());\n if (!(i == -38 || i == Integer.MIN_VALUE || i2 == -38 || i2 == Integer.MIN_VALUE || C4164a.this.f13898f == null)) {\n C4164a.this.f13898f.mo23927a(C4164a.this, i, i2);\n }\n return true;\n }\n });\n }\n }", "title": "" }, { "docid": "408c55e20f8efd1d9550ac3c92a86a1c", "score": "0.5490477", "text": "public static void insertarVideo(Video vd) throws ParseException, ClassNotFoundException, SQLException {\r\n Connection cn;\r\n try {\r\n cn = conexion(); //optiene la conexión\r\n String queryInsert = \"INSERT INTO video (codigo, titulo, director, productora, tipo, \"+\r\n \"anio, duracion, pais, idioma, subtitulo, clasificacion, \"+\r\n \"genero, ubicacion, sinopsis) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n PreparedStatement ps = cn.prepareStatement(queryInsert);\r\n ps.setString(1, vd.getCodigo());\r\n ps.setString(2, vd.getTitulo());\r\n ps.setString(3, vd.getDirector());\r\n ps.setInt(4, vd.getProductora());\r\n ps.setString(5, vd.getTipo());\r\n ps.setString(6, vd.getAnio());\r\n ps.setInt(7, vd.getDuracion());\r\n ps.setInt(8, vd.getPais());\r\n ps.setInt(9, vd.getIdioma());\r\n ps.setString(10, vd.getSubtitulo());\r\n ps.setInt(11, vd.getClasificacion());\r\n ps.setString(12, vd.getGenero());\r\n ps.setString(13, vd.getUbicacion());\r\n ps.setString(14, vd.getSinopsis());\r\n ps.executeUpdate(); //ejecuta la inserción a la tabla participante\r\n cn.close(); //cierra la conexión al servidor MySQL\r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error en la conexión a la base de datos\");\r\n }\r\n }", "title": "" }, { "docid": "e5db1182bb5e626896b71e2a1afa9f8c", "score": "0.5483839", "text": "public void ButtonBrowseVideoAction(ActionEvent event) {\n\t\tFileChooser fc = new FileChooser();\n\t\tfc.getExtensionFilters().addAll(\n\t\t\t\t\tnew ExtensionFilter(\"MP4, 3GP, 3G2, MKV, OGV, AVI\", \"*.mp4\", \"*.3gp\", \"*.3g2\", \"*.mkv\", \"*.ogv\", \"*.avi\"));\n\t\t\t\t\t\n\t\tFile video = fc.showOpenDialog(null);\n\t\tif(video != null) {\n\t\t\ttext_video.setText(video.getAbsolutePath());\n\t\t\tSystem.out.println(video.getAbsolutePath());\n\t\t\tMain.source = new Source(video.getAbsolutePath());\n\t\t\t//on met a jour les labels des sliders From/To\n\t\t\tfloat time=Main.source.duration;\n\t\t\tlabel_to.setText(Main.timeToString(time));\n\t\t\tlabel_from.setText(Main.timeToString(0f));\n\t\t\t//on met a jour la destination\n\t\t\tMain.destination=new Destination(Main.source);\n\t\t\tMain.destination.end_cut=Main.source.duration;\n\t\t\t//on met a jour le bitrate propose\n\t\t\tslider_bitrate.setValue(Main.destination.resolution.width*Main.destination.resolution.height*60/10000);\n\t\t\ttext_bitrate.setText(String.valueOf(Main.destination.resolution.width*Main.destination.resolution.height*60/10000));\n\t\t\t\n\t\t\t//On unable les zones de la fenetre\n\t\t\tgrid_output.setDisable(false);\n\t\t\tgrid_add_audio.setDisable(false);\n\t\t\tgrid_subtitle.setDisable(false);\n\t\t\tgrid_codec.setDisable(false);\n\t\t\tgrid_audio_bitrate.setDisable(false);\n\t\t\tgrid_video_quality.setVisible(true);\n\t\t\tgrid_resolution.setDisable(false);\n\t\t\tgrid_no.setDisable(false);\n\t\t\tcheckbox_cut_video.setDisable(false);\n\t\t\tsubtitle_window_button.setDisable(false);\n\t\t\tlaunch.setDisable(false);\n\n\t\t\tres_list.setConverter(new StringConverter<Resolution>(){\n\t\t\t\t@Override\n\t\t\t\tpublic String toString(Resolution r) {\n\t\t\t\t\tif (r.width==0) {\n\t\t\t\t\t\treturn (\"Custom\");\n\t\t\t\t\t}\n\t\t\t\t\telse return r.print();\n\t\t\t\t}\t\n\t\t\t\t@Override\n\t\t\t\tpublic Resolution fromString(String string) {\n\t\t\t\t\treturn new Resolution(string);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (!Main.source.resolution.is_16_9()) {\n\t\t\t\tres_list.getItems().addAll(Main.source.resolution.get_360p_ratio(),Main.source.resolution.get_480p_ratio(),Main.source.resolution.get_720p_ratio(),Main.source.resolution.get_1080p_ratio(),Resolution.get_custom());\n\t\t\t} else {\n\t\t\t\tres_list.getItems().addAll(Resolution.get_360p(),Resolution.get_480p(),Resolution.get_720p(),Resolution.get_1080p(),Resolution.get_custom());\t\t\t\n\t\t\t}\n\t\t\tabitrate_slider.setValue(320);\n\t\t\tMain.destination.resolution=null;\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"the file is not a video\");\n\t\t\tcheckbox_cut_video.setDisable(true);\n\t\t\tsubtitle_window_button.setDisable(true);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "2c004e82825103d6a3fa9a5e4bb3f12a", "score": "0.5470971", "text": "public void searchContent(){\r\n\t\t\tboolean visible2 = false;\r\n\t\t\tboolean visible=false;\r\n\t\t\tboolean content=false;\r\n\t\t\t\r\n\t\t\ttry {\t\t\t\t \r\n\t\t\t\t waitTime(2000);\r\n\t\t\t visible2 = foxapp.driver.findElementByName(\"Select-Btn\").isDisplayed();\t\t\t \r\n\t\t\t content = true;\r\n\t\t\t}catch(Exception e) {\t\t\t\t\r\n\t\t\t\tcontent= false;\r\n\t\t\t}\r\n\t\t\tif((visible2!=false)) {\r\n\t\t\t\tprint(\"ES UNA SERIE\");\r\n\t\t\t\t space();\t\t\t \r\n\t\t\t\t findName(\"Select-Btn\",\"Episodio \");\t\t\r\n\t\t\t\t try {\t\t\t\t\t \r\n\t\t\t\t\t waitTime(2000);\r\n\t\t\t\t visible = foxapp.driver.findElementByName(\"Placeholder-TryButton\").isDisplayed();\t\t\t\t \r\n\t\t\t\t foxapp.encontrado = true;\t\t\t\t \r\n\t\t\t\t }catch(Exception e) {\t\t\t\t\t \r\n\t\t\t\t\t foxapp.encontrado = false;\r\n\t\t\t\t }\t\t\t\t\r\n\t\t\t\t if ((visible !=false)||(foxapp.encontrado !=false)) {\r\n\t\t\t\t\t System.err.println(\"Este contenido no se puede reproducir debido a la suscripcion\");\r\n\t\t\t\t\t waitTime(3000);\r\n\t\t\t\t\t space();\r\n\t\t\t\t\t waitTime(2000);\t\r\n\t\t\t\t\t findName(\"Btn-Back-Hero-Container\",\"Boton atras\");\r\n\t\t\t\t\t \r\n\t\t\t\t }else {\r\n\t\t\t\t\t space();\r\n\t\t\t\t\t System.out.println(\"Esperando por anuncio\");\t\t\r\n//*****************This action also find back button but just function of this way when the video is played\r\n\t\t\t\t\t foxapp.driver.findElementByName(\"Activity-Indicator-Container\").click();\r\n\t\t\t\t\t foxapp.driver.findElementByName(\"Activity-Indicator-Container\").click();\r\n\t\t\t\t\t foxapp.driver.findElementByName(\"Activity-Indicator-Container\").click();\t\t\r\n//**********************************************************************************************************\t\t\t\t\t \r\n\t\t\t\t\t waitTime(50000);\t\t\t\t\t \r\n\t\t\t\t\t print(\"Terminó anuncio\"); \r\n\t\t\t\t\t \r\n\t\t\t\t\t space();\r\n//*****************This action also find back button but just function of this way when the video is played\r\n\t\t\t\t\t foxapp.driver.findElementByName(\"Activity-Indicator-Container\").click();\r\n\t\t\t\t\t waitTime(2000);\r\n\t\t\t\t\t foxapp.driver.findElementByName(\"Activity-Indicator-Container\").click();\r\n\t\t\t\t\t waitTime(2000);\r\n\t\t\t\t\t foxapp.driver.findElementByName(\"Activity-Indicator-Container\").click();\r\n//**********************************************************************************************************\r\n\t\t\t\t\t waitTime(2000);\r\n\t\t\t\t\t findName(\"Btn-Back-Hero-Container\",\"Boton atras\");\r\n\t\t\t\t\t waitTime(2000);\r\n\t\t\t\t\t findName(\"Btn-Back-Hero-Container\",\"Boton atras\");\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t }\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tprint(\"ES UNA PELICULA\");\r\n\t\t\t\t try {\t\t\t\t\t \r\n\t\t\t\t\t waitTime(2000);\r\n\t\t\t\t visible = foxapp.driver.findElementByName(\"Placeholder-TryButton\").isDisplayed();\t\t\t\t \r\n\t\t\t\t foxapp.encontrado = true;\t\t\t\t \r\n\t\t\t\t }catch(Exception e) {\t\t\t\t\t \r\n\t\t\t\t\t foxapp.encontrado = false;\r\n\t\t\t\t }\t\t\t\t\r\n\t\t\t\t if ((visible !=false)||(foxapp.encontrado !=false)) {\r\n\t\t\t\t\t System.err.println(\"Este contenido no se puede reproducir debido a la suscripcion\");\r\n\t\t\t\t\t waitTime(3000);\r\n\t\t\t\t\t space();\r\n\t\t\t\t\t waitTime(2000);\t\t\t\t\t \r\n\t\t\t\t\t findName(\"Btn-Back-Hero-Container\",\"Boton atras\");\t\t\t\t\t \r\n\t\t\t\t }else {\r\n\t\t\t\t\t waitTime(5000);\r\n\t\t\t\t }\t\r\n\t\t\t\tspace();\r\n\t\t\t\tfindName(\"Btn-Back-Hero-Container\",\"Boton atras\");\t\t\t\t\r\n\t\t\t}\t\t\t \r\n\t\t}", "title": "" }, { "docid": "c7a742e617adf63af82379f5c7af3cd4", "score": "0.54653114", "text": "private void videoDialog() {\n PermissionAll permissionAll = new PermissionAll();\n permissionAll.checkWriteStoragePermission(this);\n progressDialog.show();\n }", "title": "" }, { "docid": "596460202efe773e5f013021d99d12f6", "score": "0.5460782", "text": "private void playVideoLocal() {\n\n try {\n scalableVideoView.setRawData(R.raw.boat);\n\n scalableVideoView.prepareAsync(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n Log.i(\"viewCompanion\", \"Video view is prepared\");\n //Log.i(\"videoView3\", \"Uri used is: \" + uriParsed.toString());\n\n scalableVideoView.setVisibility(View.VISIBLE);\n videoProgressBar.setVisibility(View.GONE);\n\n scalableVideoView.setVolume(0,0);\n scalableVideoView.setLooping(true);\n\n scalableVideoView.start();\n\n if (scalableVideoView.isPlaying()) {\n videoProgressBar.setVisibility(View.GONE);\n }\n }\n });\n\n } catch (IOException ioe) {\n //handle error\n }\n }", "title": "" }, { "docid": "110edd946b70aa45a4e4957258e7c230", "score": "0.54509676", "text": "void mo114675a(VideoTopic videoTopic, int i);", "title": "" }, { "docid": "403cedfb1a967a87cfa349eda6408773", "score": "0.54406357", "text": "@Override\r\n\tpublic void seekVideo(int seekTo) {\n\r\n\t}", "title": "" }, { "docid": "46c3e949f80d198ebf224bf308d863e4", "score": "0.54393756", "text": "@Override\n public void run()\n {\n engine.setupRemoteVideo(new VideoCanvas(null, RENDER_MODE_HIDDEN, uid));\n viewPagerAdapter.removeSurfaceView(uid);\n }", "title": "" }, { "docid": "cc12a2c3258c0298f1d5b0c1ff4be11c", "score": "0.54384", "text": "public boolean connectVideo(){\n\t\tif(inetaddr==null){\n\t\t\tSystem.err.println(\"please call \\\"connect\\\" method, before calling this method\");\n\t\t\treturn false;\n\t\t}\t\t\n\t\tif(!landing){\n\t\t\tSystem.err.println(\"calling this method not in flight\");\n\t\t\treturn false;\t\t\t\n\t\t}\n\n\t\tardroneVideo=new ARDroneVideo(this, inetaddr);\n\t\tardroneVideo.setImageListener(new ImageListener() {\n\t\t\t@Override\n\t\t\tpublic void imageUpdated(BufferedImage image) {\n\t\t\t\tif(imageListener!=null){\n\t\t\t\t\timageListener.imageUpdated(image);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6b49f8587b24ab8036261b1d990c3c2e", "score": "0.5434072", "text": "@Override\n public void onVideoEnded() {\n gotoHome();\n }", "title": "" }, { "docid": "eaf14871b5a8ed596c31bbd1ccea3360", "score": "0.54319847", "text": "public void showNextCreative() {\n MediaFile mediaFile;\n block20 : {\n MediaFile mediaFile2;\n Object object;\n this.hasPassedCloseOffset = false;\n this.onPreparedFired = false;\n Object object2 = object = this.videoTimerMonitor;\n // MONITORENTER : object2\n if (this.killTimer) {\n // MONITOREXIT : object2\n return;\n }\n // MONITOREXIT : object2\n PlayableAd playableAd = this.currentAd;\n if ((playableAd == null || playableAd.getPlayableVastCreatives().size() == 0) && this.adsToPlay.size() == 0) {\n Object object3;\n if (this.atLeastOneAdPlayed) {\n this.vastPlayerListener.onSuccess(this.wasAtLeastOneAdSkipped);\n } else {\n this.vastPlayerListener.onFailure(\"No ads played\");\n }\n Object object4 = object3 = this.videoTimerMonitor;\n // MONITORENTER : object4\n this.killTimer = true;\n // MONITOREXIT : object4\n return;\n }\n PlayableAd playableAd2 = this.currentAd;\n if (playableAd2 == null || playableAd2.getPlayableVastCreatives().size() == 0) {\n this.currentAd = (PlayableAd)this.adsToPlay.pop();\n this.adSequence = this.adCount - this.adsToPlay.size();\n }\n if (this.currentAd.getPlayableVastCreatives().isEmpty()) {\n this.showNextCreative();\n return;\n }\n this.currentCreative = (Creative)this.currentAd.getPlayableVastCreatives().pop();\n Creative creative = this.currentCreative;\n if (creative instanceof CompanionAdsCreative) {\n if (this.isBanner) {\n AerServLog.d(LOG_TAG, \"Banner does not support companion ads. Showing next creative.\");\n this.showNextCreative();\n return;\n }\n if (this.adsToPlay.size() > 0) {\n AerServLog.d(LOG_TAG, \"Cannot show companion ads between ad pods. Showing next creative.\");\n this.showNextCreative();\n return;\n }\n this.showNextCompanionAdsCreative((CompanionAdsCreative)this.currentCreative);\n return;\n }\n this.currentLinearCreative = (LinearCreative)creative;\n Iterator iterator = this.currentLinearCreative.getMediaFiles().iterator();\n do {\n boolean bl = iterator.hasNext();\n mediaFile = null;\n if (!bl) break block20;\n mediaFile2 = (MediaFile)iterator.next();\n String string = LOG_TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"MediaFile mime type found: \");\n stringBuilder.append(mediaFile2.getMimeType());\n AerServLog.v(string, stringBuilder.toString());\n } while (!supportedMimeTypesSet.contains((Object)mediaFile2.getMimeType()));\n mediaFile = mediaFile2;\n }\n if (mediaFile == null) {\n String string = this.getClass().getName();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Could not find a playable mimetype in MediaFiles for this Creative. Supported are: \");\n stringBuilder.append(supportedMimeTypesSet);\n AerServLog.d(string, stringBuilder.toString());\n this.showNextCreative();\n return;\n }\n this.vastPlayerListener.onMediaFileFound(mediaFile);\n if (\"text/html\".equals((Object)mediaFile.getMimeType())) {\n this.vastVideoView.setVisibility(4);\n this.nonLinearWebView.setVisibility(4);\n FrameLayout.LayoutParams layoutParams = this.getLinearWebViewEndCardLayoutParams(mediaFile);\n this.linearWebView.setLayoutParams((ViewGroup.LayoutParams)layoutParams);\n this.linearWebView.setVisibility(0);\n this.linearWebView.loadUrl(mediaFile.getMediaUri());\n this.linearWebView.bringToFront();\n return;\n }\n this.allProgressEvents = new TrackingEvents();\n this.allProgressEvents.addAll((Collection)this.currentLinearCreative.getTrackingEventsByEventType(EventType.START));\n this.allProgressEvents.addAll((Collection)this.currentLinearCreative.getTrackingEventsByEventType(EventType.FIRST_QUARTILE));\n this.allProgressEvents.addAll((Collection)this.currentLinearCreative.getTrackingEventsByEventType(EventType.MID_POINT));\n this.allProgressEvents.addAll((Collection)this.currentLinearCreative.getTrackingEventsByEventType(EventType.THIRD_QUARTILE));\n this.allProgressEvents.addAll((Collection)this.currentLinearCreative.getTrackingEventsByEventType(EventType.PROGRESS));\n this.allProgressEvents.addAll((Collection)this.ad.getAllWrapperLinearCreativeTrackingEventsByType(EventType.START));\n this.allProgressEvents.addAll((Collection)this.ad.getAllWrapperLinearCreativeTrackingEventsByType(EventType.FIRST_QUARTILE));\n this.allProgressEvents.addAll((Collection)this.ad.getAllWrapperLinearCreativeTrackingEventsByType(EventType.MID_POINT));\n this.allProgressEvents.addAll((Collection)this.ad.getAllWrapperLinearCreativeTrackingEventsByType(EventType.THIRD_QUARTILE));\n this.allProgressEvents.addAll((Collection)this.ad.getAllWrapperLinearCreativeTrackingEventsByType(EventType.PROGRESS));\n this.allImpressionEvents = new ArrayList();\n this.allImpressionEvents.addAll((Collection)this.currentAd.getInlineAd().getImpressionUris());\n this.allImpressionEvents.addAll((Collection)this.ad.getAllWrapperImpressionUris());\n this.nonLinearWebView.setVisibility(4);\n this.linearWebView.setVisibility(4);\n String string = VideoFileCache.getCachedPath((Context)this.activity, mediaFile.getMediaUri());\n if (string != null) {\n String string2 = this.getClass().getName();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Using local file for VAST video at \");\n stringBuilder.append(string);\n AerServLog.d(string2, stringBuilder.toString());\n this.vastVideoView.setVideoPath(string);\n } else {\n AerServLog.d(this.getClass().getName(), \"Using remote file for VAST video\");\n this.vastVideoView.setVideoURI(Uri.parse((String)mediaFile.getMediaUri()));\n }\n this.quartiles.clear();\n this.quartiles.push((Object)AerServEvent.VIDEO_75);\n this.quartiles.push((Object)AerServEvent.VIDEO_50);\n this.quartiles.push((Object)AerServEvent.VIDEO_25);\n this.quartiles.push((Object)AerServEvent.VIDEO_START);\n this.vastVideoView.bringToFront();\n this.iconsPlayer = new IconsPlayer((Context)this.activity, this.currentLinearCreative.getIcons(), (IconsListener)new 8(this));\n this.masterFrameLayout.addView((View)this.iconsPlayer);\n this.startVastVideoView();\n return;\n {\n catch (Throwable throwable) {}\n {\n // MONITOREXIT : object2\n throw throwable;\n }\n }\n }", "title": "" }, { "docid": "f6b21566266be30a53670b3764e0b9ac", "score": "0.54312295", "text": "public void clicSurBoutonGauche()\n{\nsuper.clicSurBoutonGauche();\n\n// MultimédiaFerme(MM_Appel)\nWDAPIMediaPlayer.multimediaFerme(mWD_MM_Appel);\n\n// Ferme(FEN_Appel)\nWDAPIFenetre.ferme(GWDPProjet_AppliDistributeurNourriture.ms_Project.mWD_FEN_Appel);\n\n}", "title": "" }, { "docid": "7158aac9a7cca6ea040bd353fd20faeb", "score": "0.54218274", "text": "public void addVideo()\n\t{\n\t\ttry {\n\t\t\tkl.klWait();\n\t\t\tWebElement urlBox = kl.klIsElementPresent(ObjectRepository.URLBOX);\n\t\t\turlBox.sendKeys(configProperties.getProperty(\"YOUTUBEURL\"));\n\t\t\tkl.klWebElementClick(ObjectRepository.ADDURLBUTTON);\n\t\t\tlogger.info(\"video url added\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tlogger.error(\"Exception occurred during addVideo(): \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "2d961142eab723b9bd7ae1c026684400", "score": "0.54199386", "text": "public void onPrepared(MediaPlayer mp) {\n //pDialog.dismiss();\n //wheel.stopSpinning();\n pDialog.dismiss();\n videoView.start();\n }", "title": "" }, { "docid": "bf14b79abbd3c945dbd29674e7eac875", "score": "0.54084945", "text": "private void loadWelcomeVideo() {\n\n File clip = new File(Environment.getExternalStorageDirectory(), WELCOME_VIDEO_FILE_PATH);\n\n if(clip.exists()){\n videoView = (VideoView)findViewById(R.id.welcomeVideoView);\n MediaController mediaController = new MediaController(this);\n mediaController.setAnchorView(videoView);\n videoView.setMediaController(mediaController);\n videoView.setVideoPath(clip.getAbsolutePath());\n videoView.requestFocus();\n videoView.start();\n }else{\n Toast.makeText(this, WELCOME_VIDEO_FILE_PATH +\" cannot be found\", Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "48db1cba30dc797a07fe6260ea0a5f60", "score": "0.5405998", "text": "RealtimeBidding.BidRequest.Video getVideo();", "title": "" }, { "docid": "0c38e57f383d53e62c1bb3c391720334", "score": "0.54035", "text": "private void onVideoCompleted() {\n mHandler.removeCallbacks(mUpdateTimeTask);\n seekBarVideo.setProgress(0);\n mVideoView.seekTo(mStartPosition * 1000);\n mVideoView.pause();\n imgPlay.setBackgroundResource(R.drawable.ic_play);\n }", "title": "" }, { "docid": "4d86171e6b1ca65ed0216da20498204c", "score": "0.53954244", "text": "@Override\n public void run() {\n if (!waitForSrvReady()) {\n mSendErrorCode = ERR_SRV_NOT_READY;\n return;\n }\n mSendErrorCode = mWorkingMessage.setAttachment(\n PaWorkingMessage.VIDEO, uri, getMaxFileTransferSize());\n if (PaWorkingMessage.OK != mSendErrorCode) {\n Log.d(TAG, \"Video setAttachment fail\");\n return;\n }\n mSendErrorCode = mWorkingMessage.generateThumbnail();\n if (PaWorkingMessage.OK != mSendErrorCode) {\n Log.d(TAG, \"Video generate thumbnail fail\");\n return;\n }\n sendMessage(PaWorkingMessage.VIDEO);\n }", "title": "" }, { "docid": "43f27f6146b6fd965b8287782ec5a709", "score": "0.53801584", "text": "public void removeVideo() throws org.gsma.joyn.JoynServiceException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: org.gsma.joyn.ipcall.IPCall.removeVideo():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.ipcall.IPCall.removeVideo():void\");\n }", "title": "" }, { "docid": "35216832ba52758778a8583fceef5a4c", "score": "0.53721625", "text": "@Override\n\tpublic String videoConvert(String Param) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "db29347b0d691bbabd12712818108fd7", "score": "0.5369005", "text": "public final void mo72156j() {\n new MenuConfigClick(\"立即分享\").post();\n MixtapeVideoSourceModel k = ((VideoPlayerPlayPresenter) mo64290b(VideoPlayerPlayPresenter.class)).mo72226k();\n if (k != null) {\n KmVideoPlayerDataSource aVar = this.f49013e;\n if (aVar == null) {\n C32569u.m150520b(C6969H.m41409d(\"G6D82C11B8C3FBE3BE50B\"));\n }\n String id = k.getId();\n C32569u.m150513a((Object) id, C6969H.m41409d(\"G60979B13BB\"));\n aVar.mo71949c(id);\n }\n }", "title": "" }, { "docid": "a6e1269078b6401e0349785ed6dd2302", "score": "0.5360181", "text": "@Override\r\n\tpublic void setVideoVisibility(boolean visible) {\n\t}", "title": "" }, { "docid": "f0675c3ae97e5c0cdb400e489804c3f7", "score": "0.53594595", "text": "void videoAdded(VideoEvent event);", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7af8062996788ceaeb93d5818829eab7", "score": "0.0", "text": "@Override\n\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\tif (mReviewAdapter != null) {\n\t\t\t\t\t\t\tObject item = mReviewAdapter.getItem((int) id);\n\t\t\t\t\t\t\tif (item instanceof ReviewListItemRow) {\n\t\t\t\t\t\t\t\tReview review = ((ReviewListItemRow) item).review;\n\t\t\t\t\t\t\t\tIntent intent = new Intent(ReviewListActivity.this, ReviewActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(ReviewActivity.Extra_Review, review);\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "11d67a80d2cd31685776b15ccccc59f0", "score": "0.65296996", "text": "@Override\n\t\t\tpublic void PridenieNaBielu() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.6487723", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.64378566", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.635662", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.632985", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.62754047", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6219628", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "2a5b1784967271fc8f331ece95bee2d7", "score": "0.6173247", "text": "@Override\r\n\t\tpublic void Sudentcf() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.6163209", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.61020076", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.609516", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "0535d453c6fc64b6eaca5802d4fcc90b", "score": "0.6038407", "text": "@Override\r\n public void atacar() {\n }", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.60336334", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.60311055", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.6027037", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.6000438", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "59fd0ccdce9a8709416c7bdb0b2740f7", "score": "0.59167963", "text": "@Override\n public void solidaria() {\n \n \n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.58953464", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58730215", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5862488", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "d735c08559b9ccd2b05318e486d52050", "score": "0.585777", "text": "@Override\n public void generate() {\n\n }", "title": "" }, { "docid": "c27a216ac709a1e3b9e7156e1c8104e5", "score": "0.5851762", "text": "public void initailize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7a47ca8b3a55006f92a271bd71da43b7", "score": "0.583262", "text": "@Override\n\tprotected void Sessioprovide() {\n\t\t\n\t}", "title": "" }, { "docid": "ea53a5ca5e3b174f6cc9c79515550cf9", "score": "0.58291394", "text": "@Override\n\tpublic void Faild() {\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.58270997", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.580496", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.5784581", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "329dcd36a53fe338909407efceaa048a", "score": "0.57815796", "text": "@Override\n\tpublic void ovr() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5772904", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5767454", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5756245", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.5742983", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "b07fa371b39d89d85ee2b46058153640", "score": "0.5741075", "text": "private void set() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.5737052", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c5279e0c512854cbd0006208a1abf1e4", "score": "0.57304084", "text": "public void sprzedaj() {\n\t\t\n\t}", "title": "" }, { "docid": "4791f18ffa1db9cf9896372a4bb400cd", "score": "0.5712386", "text": "@Override\n\t\t\t\tpublic void update() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "b329688e04bd48d0184ad83234db5580", "score": "0.5702716", "text": "@Override\r\n public int describeContents() {\n return 0;\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "7a5ce2d278c2d189c1b8ef8c5af5d416", "score": "0.5686818", "text": "@Override\n\tprotected void initValue() {\n\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5685303", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "be566411d6ed8758a024d201a025c102", "score": "0.5682171", "text": "@Override\r\n\tprotected void update() {\n\t}", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56804705", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a055db97fb04dc3ace542d55ba4eb731", "score": "0.5659786", "text": "public void wypozycz() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.5653795", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" } ]
c1c65a4c9f03d54b576f6ecf192f8da2
Set this required option to specify where to write the output.
[ { "docid": "e3a14478972311cee3852543a21ad775", "score": "0.55623", "text": "@Description(\"Path of the file to write to\")\n @Validation.Required\n String getOutput();", "title": "" } ]
[ { "docid": "5254ea09d48e40db9e2ec7f83083f81a", "score": "0.69469327", "text": "public static void setOutput(String opt){\n\t\t\tout = opt;\n\t}", "title": "" }, { "docid": "d82b79145f4d5273db0224ec6c57c4b2", "score": "0.6651191", "text": "void setOutputOptions(String property);", "title": "" }, { "docid": "aad41ba8ee2b63715ae0cb92a99a40e0", "score": "0.62636656", "text": "public void setOuputResultsToFile(boolean val) {\r\n ouputResultsToFile = val;\r\n }", "title": "" }, { "docid": "72c0e237687d08fb5cb41c5b8c19abc1", "score": "0.62551373", "text": "public String getOutputFileOption() {\n return this.outFileArgName;\n }", "title": "" }, { "docid": "50cd3ebafe0b78fa0728417bbf8d2a71", "score": "0.62275434", "text": "protected void selectOutput() {\n String outFile = m_options.getOutputOption();\n if (outFile == null) {\n m_output = System.out;\n }\n else {\n try {\n // check for package name\n String packageName = m_options.getPackagenameOption();\n if (packageName != null) {\n String packagePath = \"\";\n\n // build the package path (e.g. com.foo.bar -> /com/foo/bar)\n for (String p: packageName.split( \"\\\\.\" )) {\n packagePath = packagePath + File.separator + p;\n }\n\n if (!outFile.endsWith( packagePath )) {\n outFile = outFile + packagePath;\n }\n }\n\n File out = new File( outFile );\n\n if (!out.exists() && !outFile.endsWith( \".java\" )) {\n // create the directory if needed\n out.mkdirs();\n }\n\n if (out.isDirectory()) {\n // create a file in this directory named classname.java\n String fileName = outFile + File.separator + getClassName() + \".java\";\n out = new File( fileName );\n }\n\n m_output = new PrintStream( new FileOutputStream( out ) );\n }\n catch (Exception e) {\n abort( \"I/O error while trying to open file for writing: \" + outFile, e );\n }\n }\n\n // check for DOS line endings\n if (m_options.hasDosOption()) {\n m_nl = \"\\r\\n\";\n }\n }", "title": "" }, { "docid": "026a2cab2946d3db58a660e2c1ec6eaf", "score": "0.61977446", "text": "public void setOutput(File o)\n {\n setOutput(o.getAbsolutePath());\n }", "title": "" }, { "docid": "ff6d3fb15546f899cc6cd01e661cfce9", "score": "0.61374885", "text": "@Override\n public void setSystemOutput(String out) {\n\n }", "title": "" }, { "docid": "24f2f22a0e80a586ddc1c3990d0fc623", "score": "0.6112402", "text": "public void setOutputLoc(java.lang.String param){\r\n localOutputLocTracker = param != null;\r\n \r\n this.localOutputLoc=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "b5a857bdaa09fbde013eddc0e0e5bf05", "score": "0.606629", "text": "Optional<String> outputPath();", "title": "" }, { "docid": "5fc4405ebb16b5beaba8d3770cc2390d", "score": "0.60090184", "text": "protected void setOuputOnHelp() {\n say(\"set_output_on true| false\");\n sayi(\"This is used chiefly with batch files, to toggle whether or not there is output directed to the console,\");\n sayi(\"true means to turn on output, false means to suspend it\");\n say(\"See also: set_verbose_on\");\n }", "title": "" }, { "docid": "14a4ee4a51f2a666ac246eaae8f844fd", "score": "0.5985213", "text": "@BQConfigProperty(\"Output path for the SARL compiler in which the Java code is written.\")\n\tpublic void setOutputPath(File path) {\n\t\tthis.outputPath = path;\n\t}", "title": "" }, { "docid": "0e12eca9b979435c4280bf7c154b7dda", "score": "0.58312654", "text": "public void setOutput(String file){\n output = new File(file);\n }", "title": "" }, { "docid": "cdade1b75592ae698ee7e3ada148714d", "score": "0.58285546", "text": "private Path getOutputPath() {\n\t\tString sep = System.getProperty(\"file.separator\");\n\t\tSystem.out.println(\"Using output \" + conf.get(\"output\") + sep + conf.get(\"iteration\"));\n\t\treturn new Path(conf.get(\"output\") + sep + String.valueOf(conf.getInt(\"iteration\", 0)));\n\t}", "title": "" }, { "docid": "15ca0f3d62371d239f1e20bb9ec1d243", "score": "0.5826516", "text": "public void setOutputFile(File output) {\n this.outputFile = output;\n }", "title": "" }, { "docid": "dad2616ebb7fe691e248feffe4d95a0e", "score": "0.58202076", "text": "public void setOutput(OutputMaker output){\n this.output = output;\n }", "title": "" }, { "docid": "c3b97c40b8b1de2dfaa16e55745b33af", "score": "0.57838154", "text": "private void setOutputDirectory(File outputDirectory) {\n fOutputDirectory = outputDirectory;\n }", "title": "" }, { "docid": "c55f161fc34e8c7a704266f717828333", "score": "0.578016", "text": "protected abstract File outputDirectory();", "title": "" }, { "docid": "8f2bf0fac6e7432fab71de53112455bc", "score": "0.5779825", "text": "public void setOutputFilePath (String path) throws DfvException {\n // Set the path...\n String opt = \"-o\";\n if (path != null && !path.equals(\"\")) {\n if (this.args.containsKey(opt))\n this.args.remove(opt);\n this.args.put(opt, path);\n }\n else {\n this.args.remove(opt);\n }\n }", "title": "" }, { "docid": "30c3e0766063d3d4326431f0586a0c5d", "score": "0.57512754", "text": "public void setOutputSource(String string){ \n //--------------------------------------------------------------------------- \n outputSource=string; \n }", "title": "" }, { "docid": "23e523279c406e3e95f3c3cdb11a13cb", "score": "0.5749265", "text": "public String getOuputPath() {\n\t\treturn conf.get(MRJobConfig.OUTPUT_PATH);\n\t}", "title": "" }, { "docid": "387408c6035b9bc2c5baa95b98f171ea", "score": "0.5719104", "text": "@Override\r\n public String getOutputFile() {\n return null;\r\n }", "title": "" }, { "docid": "659e055a97d707e78de2bf6ae949e59e", "score": "0.5714238", "text": "protected String getOutputFileParameter() {\n if (_outputFile==null || _outputFile.length()==0)\n return null;\n File f = _outputFile;\n return \"/output=\"+f.toString();\n }", "title": "" }, { "docid": "2063219137af3018c48962c0e0b0d414", "score": "0.56974643", "text": "public void setDestination(PrintStream output) {\n\t this.output = output;\r\n }", "title": "" }, { "docid": "1c57f2ab809a0c6c7b0c44fa3dea221b", "score": "0.5688891", "text": "public void setOutputLocation(int[] location) {\n _outputLocation = location;\n }", "title": "" }, { "docid": "9dcb78550d629d98d6ef17e3e7c723ef", "score": "0.5683077", "text": "@PUT\n @Path(\"/outputpath\")\n public void setConfigOutputPath(String outputPath) {\n if (outputPath == null || outputPath.isEmpty()) {\n throw new IllegalArgumentException(\"Output path may not be empty or null\");\n }\n synchronized(prefsRoot) {\n try {\n prefsRoot.put(PREFS_KEY_OUTPUT_PATH, outputPath);\n prefsRoot.flush();\n } catch (BackingStoreException ex) {\n Logger.getLogger(FileHandlerConfig.class.getName()).log(Level.SEVERE, null, ex);\n throw new ConfigurationError(ex);\n }\n prepareFinalOutputDir();\n }\n }", "title": "" }, { "docid": "facceaea1ed22024b0d4296d5779f223", "score": "0.562108", "text": "void setOutput(String line) throws BuildException;", "title": "" }, { "docid": "d98519adf005331e512e906d52e1c538", "score": "0.5606543", "text": "public String getOutputPath() {\n return outputPath;\n }", "title": "" }, { "docid": "737928dce3af8ff4ad7bda25850b85ca", "score": "0.5591278", "text": "void setOutputFile(String outputPath) {\n if (outputPath != null) {\n this.outputFile = new File(outputPath);\n } else {\n this.outputFile = null;\n }\n }", "title": "" }, { "docid": "915ff013af4770156804e8e61f2208d7", "score": "0.5561077", "text": "public String getOutputDirectory() { return outputDirectory; }", "title": "" }, { "docid": "4293a2622b15983a64822d9516210df9", "score": "0.5556854", "text": "@Override\n public void setOutput(OutputStream out) {\n\n }", "title": "" }, { "docid": "014c0c6bb931fb0f7ed7f226dd709740", "score": "0.5518745", "text": "public PrintStream setOut(OutputType type) {\n return setOut(type, new FileName(\"system.out.txt\"));\n }", "title": "" }, { "docid": "06a7e436c99208b0f1efd6cd37b9292c", "score": "0.5518578", "text": "private void initOutputFile() {\n\n if (this.filepath.length() != 0) {\n this.isWritingToFile = true;\n } else {\n if (Constant.APPL_OUTPUT_FILE_NAME.length() == 0) {\n this.isWritingToFile = false;\n } else {\n this.isWritingToFile = true;\n this.filepath = getFilename(Constant.APPL_OUTPUT_FILE_NAME);\n }\n }\n }", "title": "" }, { "docid": "3008ace1e8173abb7687e05031a0697e", "score": "0.5515346", "text": "private void setOutputFolder(FastqPair fastqPair) {\n\t\tFile file = fastqPair.getFiles().get(0);\n\t\tthis.outputDir = new File(file.getParentFile().getAbsolutePath() + \"/\" + this.trimName(file.getName()));\n\t}", "title": "" }, { "docid": "eb7ff11d1b47b0f1bb4d7e0212609758", "score": "0.55092597", "text": "public synchronized void setOutput(ExecutableOutputSchema outputSchema) {\n this.executableIOSchema.outputSchema = outputSchema;\n }", "title": "" }, { "docid": "1bf861a70ad85740e5cc8f888d05cd72", "score": "0.549843", "text": "@Param(defaultDoc = \"Path to the file where to store results.\")\n public TargetStream getOutFile() {\n return outFile;\n }", "title": "" }, { "docid": "2f6bcf9695f8f41f5bb7c0c1d2915eec", "score": "0.5480301", "text": "void setOutput(Appendable out) throws NullPointerException;", "title": "" }, { "docid": "43396241525598ceb0968f2ef4728672", "score": "0.5476678", "text": "public void write() {\n String outputProfile = System.getProperty(COMPSsConstants.OUTPUT_PROFILE);\n if (outputProfile != null && !outputProfile.isEmpty()) {\n LOGGER.debug(\"Output profile detected. Writting to file \" + outputProfile);\n writeOutputProfile(outputProfile);\n }\n }", "title": "" }, { "docid": "92e7e5bd2ae714a60ac11a75d7402b10", "score": "0.54745084", "text": "public String getOutFilePath() {\n\t\treturn this.outPath;\n\t}", "title": "" }, { "docid": "a4fd34c14c7add784fd7c08cc4c61751", "score": "0.54666954", "text": "private static void setFile(){\n Path currentRelativePath = Paths.get(\"\"); // Get the path to the project directory\n String path = currentRelativePath.toAbsolutePath().toString(); // Convert the path to a string\n String outputAsmPath = path + \"/src/output\"; // This is the folder the file will be printed to\n\n try{\n path = outputAsmPath + \"/\" + FILE_NAME;\n File file = new File(path);\n _writer = new PrintWriter(file);\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "12db9946f4c36a1d99bccf71dee8ab4d", "score": "0.54631823", "text": "private MarkletOptions() {\n\t\tthis.outputDirectory = DEFAULT_OUTPUT_DIRECTORY;\n\t\tthis.fileEnding = DEFAULT_FILE_ENDING;\n\t\tthis.linkEnding = DEFAULT_LINK_ENDING;\n\t}", "title": "" }, { "docid": "3a1d2bc362ec75e207a0ede53d99f8bf", "score": "0.5438761", "text": "public void setOutputFileStrategy(CreateFileOutput fo)\r\n\t{\r\n\t\toutputFileStrategy = fo;\r\n\t}", "title": "" }, { "docid": "d49fbf6b517a00ae9b756a934759db24", "score": "0.5415337", "text": "public static void use() {\r\n System.out.println(\"Options:\\n\"\r\n + \"First argument: input_file\\n\"\r\n + \"Second argumen: output_file\\n\"\r\n + \"Example: C:/input.txt C:/output.txt\");\r\n\r\n }", "title": "" }, { "docid": "e322b8e6f935cfaa89a2157bc1b55015", "score": "0.54093796", "text": "public void setOutputDirectory(String output) {\n this.mOutputDir = output;\n }", "title": "" }, { "docid": "a0c4ad36e1c5fbe610f33d867961644f", "score": "0.5405432", "text": "protected void configureDerivationOutput() {\n configureDerivationOutput(false);\n }", "title": "" }, { "docid": "b0d7a1a40d8c51df6de610b54145b0c9", "score": "0.5401047", "text": "@OutputDirectory\n public DirectoryProperty getOutputDir() {\n return outputDir;\n }", "title": "" }, { "docid": "cf5d76ee795555f84cd58516ddead96a", "score": "0.5398481", "text": "public void setOutput(String output) {\n this.output = output;\n }", "title": "" }, { "docid": "058a27cf9be0470a20bb5144d9de05d7", "score": "0.53909683", "text": "public void setOutFile(TargetStream outFile) {\n this.outFile = outFile;\n }", "title": "" }, { "docid": "ea6b455d4c5a1da61c66438940ee3832", "score": "0.5387832", "text": "@GET\n @Path(\"/outputpath\")\n public String getConfigOutputPath() {\n synchronized(prefsRoot) {\n return prefsRoot.get(PREFS_KEY_OUTPUT_PATH, null);\n }\n }", "title": "" }, { "docid": "44f9b21b004b3a3dd81ea866962c9d95", "score": "0.5384429", "text": "public void setOutputPath(String outputPath) {\n\t\tconf.set(MRJobConfig.OUTPUT_PATH, outputPath);\n\t}", "title": "" }, { "docid": "4d3b8c66c51786294b9a024f6cb2ae69", "score": "0.53759927", "text": "@BQConfigProperty(\"Output path for the Java compiler in which the byte-code is written.\")\n\tpublic void setClassOutputPath(File path) {\n\t\tthis.classOutputPath = path;\n\t}", "title": "" }, { "docid": "1f5ecf0f3ca52f980ea427dd9c119b91", "score": "0.5356949", "text": "public void setOutputFilePath(String outputFilePath) {\n this.outputFilePath = outputFilePath;\n }", "title": "" }, { "docid": "46539c01cadeee8655db6b3869feb396", "score": "0.5338883", "text": "public final void setOutputFolder(final String output) {\n if (output.isEmpty()) {\n throw new IllegalArgumentException(//\n \"Output folder cannot be empty string.\");//$NON-NLS-1$\n }\n this.setOutputFolder(Paths.get(output));\n }", "title": "" }, { "docid": "5a4f6b6d6cf53d412887d2010a98882b", "score": "0.5333606", "text": "public File getOutputPath() {\n\t\treturn this.outputPath;\n\t}", "title": "" }, { "docid": "3905ef8b88dbbede9a45245828529252", "score": "0.5311663", "text": "public void setOutput(OutputStream output) {\n this.output = output;\n }", "title": "" }, { "docid": "2eca0d30b6bcec611730735016ea6653", "score": "0.52859807", "text": "public void setOutputFile(String outputFile)\r\n\t{\r\n\t\tthis.outputFile = outputFile;\r\n\t}", "title": "" }, { "docid": "03634c6de5ed7b92324dde5888d9cf3b", "score": "0.5264909", "text": "public void WriteOutput()\r\n\t{\r\n // this is common that the code generator does it\r\n cg.WriteOutput(os);\r\n\t}", "title": "" }, { "docid": "a42a0ee206757a394ef9c620fbd00fc5", "score": "0.526473", "text": "public static void setTracingOutput(Appendable out) {\n\tif (out == null) out = System.out;\n\tDMethodParameters.out = out;\n }", "title": "" }, { "docid": "c2e97245968c8760dac7509305322dba", "score": "0.52609557", "text": "public void setOutputDirectory(File outputDirectory) {\n this.outputDirectory = outputDirectory;\n }", "title": "" }, { "docid": "567a77cc244477ad015a65c5736c6cfa", "score": "0.5230221", "text": "public String getOutputPath()\r\n {\r\n return outputPath + File.separator + name + \".scs\";\r\n }", "title": "" }, { "docid": "8ae9bfc98e3bd6a6e0a4ab5c62a78781", "score": "0.52183956", "text": "@Override\n\tpublic void write(File output) {\n\t}", "title": "" }, { "docid": "4e36548a6bdfe18c8f7df920d5cfcda6", "score": "0.52011126", "text": "public static String getOutput() {\n\t\treturn output_dir;\n\t}", "title": "" }, { "docid": "815548abb6c19c848d8b831a1284b38d", "score": "0.5188162", "text": "public void setOutputFile(String filename) {\n this.filename = filename;\n }", "title": "" }, { "docid": "46589bb19793ffc8b95aa6fcdaa6e32b", "score": "0.5186929", "text": "public boolean isSetOutputPath() {\n return this.outputPath != null;\n }", "title": "" }, { "docid": "8d9bd3ec6e0b60aab3909fe76b2949d4", "score": "0.51857847", "text": "File getOutputFile() {\n return this.outputFile;\n }", "title": "" }, { "docid": "8e4759896093be76f5ab95c2d6c199af", "score": "0.5184346", "text": "@OutputFile\n public RegularFileProperty getOutputFile() {\n return outputFile;\n }", "title": "" }, { "docid": "d6cb787cd1caa49133c962dc8f3d517e", "score": "0.5183542", "text": "public void selectOutput() {\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n int option = fileChooser.showOpenDialog(frame);\n if (option == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n outputFolder = file.getPath();\n selectoutput.setText(projectFolder);\n\n\n }\n\n }", "title": "" }, { "docid": "0c31ef81b804f93f58cc38ea079f1286", "score": "0.5182997", "text": "@Override\n @Nullable\n public SourcePath getSourcePathToOutput() {\n return null;\n }", "title": "" }, { "docid": "9d12e698162f50cb6d90e0b0af667804", "score": "0.51664877", "text": "public void setOutput(java.lang.String output) {\n this.output = output;\n }", "title": "" }, { "docid": "9d12e698162f50cb6d90e0b0af667804", "score": "0.51664877", "text": "public void setOutput(java.lang.String output) {\n this.output = output;\n }", "title": "" }, { "docid": "0cab86bfe9c749a67e5cd5e6beb7adbe", "score": "0.51596946", "text": "private void setOutputDirectory(final String outputDirectory) {\n\t\tthis.outputDirectory = outputDirectory;\n\t}", "title": "" }, { "docid": "d14fe5419fc9b9bbaff649c944e35fad", "score": "0.51508915", "text": "private String writeOptions(File f) {\n\t\t\n\t\tString string = \"\";\n\t\t\n\t\tif(f.isDirectory()) {\n\t\t\tstring = string + \"d\";\n\t\t}else {\n\t\t\tstring = string + \"-\";\n\t\t}\n\t\t\n\t\tif(f.canRead()) {\n\t\t\tstring = string + \"r\";\n\t\t}else {\n\t\t\tstring = string + \"-\";\n\t\t}\n\t\t\n\t\tif(f.canWrite()) {\n\t\t\tstring = string + \"w\";\n\t\t}else {\n\t\t\tstring = string + \"-\";\n\t\t}\n\t\t\n\t\tif(f.canExecute()) {\n\t\t\tstring = string + \"x\";\n\t\t}else {\n\t\t\tstring = string + \"-\";\n\t\t}\n\t\t\n\t\treturn string;\n\t}", "title": "" }, { "docid": "732f799b978cd3d77f0cbc9f68b13b38", "score": "0.5139001", "text": "public String getOutputDirectory() {\n\t\treturn outputDirectory;\n\t}", "title": "" }, { "docid": "191ae4d709c9c12bc52922ad25ca0fce", "score": "0.51244134", "text": "public void setOutputStream(PrintStream output) {\n\t\t\tsynchronized (pluginPSI) {\n\t\t\t\toutputStream = output;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d916350c34fd7bb5c0c43f05454ac480", "score": "0.51178986", "text": "public void setOutputWriter(MosaicWriter ow) {\r\n\t\tthis.mw = ow;\r\n\t}", "title": "" }, { "docid": "4c55c8e781abe78cd0af49be765e2edf", "score": "0.5115493", "text": "public void setOutfolder(Path outFolder) {\n mOutFolder = outFolder.toString();\n }", "title": "" }, { "docid": "0865ad8d2bb760de0ba2929ed1388832", "score": "0.5111488", "text": "public void setOutputdir(String outputdir) {\n\t\tthis.outputdir = outputdir;\n\t}", "title": "" }, { "docid": "0097057ad572c1abe854a7255442a184", "score": "0.51090044", "text": "public void writeOptions(JsonGenerator g) throws IOException {\n\t\t// no options by default\n\t}", "title": "" }, { "docid": "e4f84d13c18c5a191f7b4155d203c082", "score": "0.51032645", "text": "public String getOutputdir() {\n\t\treturn outputdir;\n\t}", "title": "" }, { "docid": "7f67b029d2f8c48f9f24c1cb5704995b", "score": "0.50872296", "text": "public void setOutput(OutputStream playerOut) {\r\n\t\t\r\n\t\tthis.playerOut = playerOut;\r\n\t}", "title": "" }, { "docid": "2423956b3b7562e3ac53b9b6a2cea97e", "score": "0.50648075", "text": "public void setOutput(String output) {\n this.output = output == null ? null : output.trim();\n }", "title": "" }, { "docid": "c2a9dae930a7c199b194d4c58d2e421a", "score": "0.50573564", "text": "public final void setVertexOutputPath(String path) {\n VERTEX_OUTPUT_PATH.set(this, path);\n }", "title": "" }, { "docid": "b007e4cd57d6f2f7e45737a344539df7", "score": "0.5043403", "text": "public void setOutputDirectory(String pstrPath2OutputFiles) {\n MeerkatSystem.OUTPUT_DIRECTORY = pstrPath2OutputFiles;\n }", "title": "" }, { "docid": "c1455c86787416b80004c7738c3dba54", "score": "0.5029305", "text": "public abstract void setOutputFile(java.io.File fileName)\n throws IOException;", "title": "" }, { "docid": "f609bb4b7f4f442a7990df59798b972e", "score": "0.5022188", "text": "public ManifestPrinter(Configuration conf, PrintStream out) {\n super(conf);\n this.out = out;\n }", "title": "" }, { "docid": "d90c21f9f68c1b9feb2a98b5ce4d3c91", "score": "0.50188404", "text": "private void setFormatOutput(final SupportedFileFormat outputFormatVal) {\n this.outputFormat = outputFormatVal;\n }", "title": "" }, { "docid": "d262ffdb673a1288c9116106c61fd5a5", "score": "0.5003882", "text": "protected void execPwd() throws IOException\n {\n outputBuffer.append(getWorkingDirectory().getCanonicalPath() + NEW_LINE);\n }", "title": "" }, { "docid": "bf7fd3785cc9c8cf316aaaaf235a0597", "score": "0.50025576", "text": "public String getJieOut() {\n return getPipelineDir() + File.separator + JIE_DIR;\n }", "title": "" }, { "docid": "38bde34522e84fdc08ce3d636ab6f071", "score": "0.50000274", "text": "public String getVizOut() {\n return getPipelineDir() + File.separator + VISUALIZATION_DIR;\n }", "title": "" }, { "docid": "36cc3a9a6cfb90e42ef2ed7b50ade74c", "score": "0.49970692", "text": "public File getOutputDirectory() {\n return fOutputDirectory;\n }", "title": "" }, { "docid": "2a3059f9b98c05c20a142f4f34349f0d", "score": "0.4993569", "text": "private PrintStream setOut(OutputType type, FileName fileName) {\n PrintStream stream;\n if (type == OutputType.CONSOLE) {\n Logger.getLogger(Polymorfing.class.getName()).log(Level.INFO, \"Using the Console as output\");\n stream = System.out;\n } else if (type == OutputType.ERROR) {\n Logger.getLogger(Polymorfing.class.getName()).log(Level.INFO, \"Using the Console Error as output\");\n stream = System.err;\n } else {\n Logger.getLogger(Polymorfing.class.getName()).log(Level.INFO, \"Trying to use text file as output with name: \" + fileName.getFileName());\n try {\n OutputStream output = new FileOutputStream(fileName.getFileName());\n PrintStream printOut = new PrintStream(output);\n stream = printOut;\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Polymorfing.class.getName()).log(Level.SEVERE, \"File not found\", ex);\n // defaulting to Sytem.out\n stream = System.out;\n }\n }\n\n return stream;\n }", "title": "" }, { "docid": "9be5c03f384b94cb28a3606dc91a7365", "score": "0.49823228", "text": "protected void configureSchemaOutput() {\n Path outPath = MRReasoningUtils.getSchemaPath(job.getConfiguration());\n SequenceFileOutputFormat.setOutputPath(job, outPath);\n job.setOutputFormatClass(SequenceFileOutputFormat.class);\n job.setOutputKeyClass(NullWritable.class);\n job.setOutputValueClass(SchemaWritable.class);\n LazyOutputFormat.setOutputFormatClass(job, SequenceFileOutputFormat.class);\n MultipleOutputs.addNamedOutput(job, \"schemaobj\",\n SequenceFileOutputFormat.class, NullWritable.class, SchemaWritable.class);\n MultipleOutputs.addNamedOutput(job, MRReasoningUtils.DEBUG_OUT,\n TextOutputFormat.class, Text.class, Text.class);\n MultipleOutputs.setCountersEnabled(job, true);\n }", "title": "" }, { "docid": "76a4e3c2d1fd20551f387c744c113034", "score": "0.49820295", "text": "public void setOutput(PrintWriter output) {\r\n\t\tthis.output = output;\r\n\t}", "title": "" }, { "docid": "8c0e7a8f9ebfb2f05ce5f019a10177e8", "score": "0.4977605", "text": "public void setOutputPath(String path) {\r\n\t\tLog.i(this, \"getAppliedRules()\");\r\n\r\n\t\tconfiguration.setSetting(Configuration.OUTPUT_PATH, path);\r\n\t}", "title": "" }, { "docid": "6190f61949a49aa3b5ea92daf5f09c7a", "score": "0.4974226", "text": "@Override\r\n public void writeFile(String arg0, Map result) {\r\n\r\n // Initial variables\r\n BufferedWriter bwR; // output object\r\n\r\n try {\r\n\r\n // Initial BufferedWriter\r\n arg0 = revisePath(arg0);\r\n outputFile = new File(arg0 + \"Run.bat\");\r\n bwR = new BufferedWriter(new FileWriter(outputFile));\r\n\r\n // Output Run File\r\n bwR.write(\"C:\\\\dssat45\\\\dscsm045 b dssbatch.v45\\r\\n\");\r\n bwR.write(\"@echo off\\r\\n\");\r\n bwR.write(\"pause\\r\\n\");\r\n\r\n // Output finish\r\n bwR.close();\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "25d816ad04d2ec1f85cce61f2b6211c8", "score": "0.49622297", "text": "public Path getOutputDirectory() {\n\t\treturn process_.getOutputDirectory();\n\t}", "title": "" }, { "docid": "443dff87dc44f9d730167f68d6902e93", "score": "0.4957245", "text": "public void setOutputDirectory(File dir) {\n boolean done = false;\n if (dir == null) {\n throw new NullPointerException(\"Output directory is NULL.\");\n }\n if (dir.isDirectory()) {\n if (dir.canRead() && dir.canWrite()) {\n output_dir = dir.getAbsolutePath();\n done = true;\n }\n }\n\n if (!done) {\n throw new IllegalStateException(\"Unable to assign output directory path.\");\n }\n }", "title": "" }, { "docid": "a132259341bdb67b0855382c9e01d809", "score": "0.49526206", "text": "public void setOutput(Writer writer) {\n if (writer instanceof BufferedWriter) {\n this.writer = (BufferedWriter) writer;\n } else {\n this.writer = new BufferedWriter(writer, WRITE_BUFFER_SIZE);\n }\n // END android-changed\n\n // elementStack = new String[12]; //nsp/prefix/name\n //nspCounts = new int[4];\n //nspStack = new String[8]; //prefix/nsp\n //indent = new boolean[4];\n\n nspCounts[0] = 2;\n nspCounts[1] = 2;\n nspStack[0] = \"\";\n nspStack[1] = \"\";\n nspStack[2] = \"xml\";\n nspStack[3] = \"http://www.w3.org/XML/1998/namespace\";\n pending = false;\n auto = 0;\n depth = 0;\n\n unicode = false;\n }", "title": "" }, { "docid": "c8e7eba2c2798daafa5c75c56c313873", "score": "0.4944375", "text": "public void setInstallerOutput(java.lang.String installerOutput) {\r\n this.installerOutput = installerOutput;\r\n }", "title": "" }, { "docid": "e739ade90bdf6a0e6c6da143e8a7f744", "score": "0.4930187", "text": "@Test\n\tpublic void options() {\n\n\t\tthis.scriptWriter.opts(JAVA_OPTS);\n\n\t\tthis.assertScript(\"options\", null);\n\t}", "title": "" }, { "docid": "68b2767d27528306c92d966fb3de3e7d", "score": "0.49245378", "text": "public void setOutputProperty(String name, String val) {\n setProp(name,val,false);\n \n }", "title": "" } ]
1aad87bc87f8e2ee71bc1b3ac96edf55
Return type metadata object
[ { "docid": "ce3960bb9a2db1273501f75bb8e7f21b", "score": "0.0", "text": "public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }", "title": "" } ]
[ { "docid": "4d0706e225de0d3c32f5d58aacee919a", "score": "0.81437534", "text": "MetadataType getMetadata();", "title": "" }, { "docid": "e71c56f6e557b3b88520e47e4799797e", "score": "0.6904064", "text": "Metadata.Restriction.Type getTyp();", "title": "" }, { "docid": "44a3d10d3ce8924d07f94ea8945310e4", "score": "0.6900643", "text": "ContentMetadataType createContentMetadataType();", "title": "" }, { "docid": "b90f6c9e2de4a0e18e9aecca2a44251e", "score": "0.68901473", "text": "MetaTypeRef createMetaTypeRef();", "title": "" }, { "docid": "bbfdf2081e9fddaa7206c92da316f569", "score": "0.6885483", "text": "@CodeCompletion\n public abstract Object meta(String type, String name) throws WGAPIException;", "title": "" }, { "docid": "f394dded324292bc56331d2582136f2e", "score": "0.68266857", "text": "public abstract String metaTypeName();", "title": "" }, { "docid": "b047a461db509ccc6244b5dd8f20effc", "score": "0.6762197", "text": "Metadata.Album.Type getTyp();", "title": "" }, { "docid": "6eb94392b8b050c5de851d86056f5a83", "score": "0.66787905", "text": "MetadataLinkType createMetadataLinkType();", "title": "" }, { "docid": "57e4df22fdc089c3b35e2e93682daa54", "score": "0.66583693", "text": "public TypeInfo getTypeInfo()\n {\n\treturn c_typeinfo;\n }", "title": "" }, { "docid": "61a7c56b76a009bc36e97f03edf93dd8", "score": "0.6655451", "text": "public abstract EntityTypeInfo getTypeInfo();", "title": "" }, { "docid": "81b3d237079cc88d5c05d4147573c0b6", "score": "0.6645174", "text": "MetadataAssociationType createMetadataAssociationType();", "title": "" }, { "docid": "5afb0f47c444137216f354979bac6908", "score": "0.6631782", "text": "public Map<Set<String>,TypeMetadata> getTypeMetadataMap() {\n Map<Set<String>,TypeMetadata> typeMetadataMap = Maps.newHashMap();\n \n TypeMetadata typeMetadata = new TypeMetadata();\n typeMetadata.put(\"field1\", \"ingest1\", \"LcType\");\n typeMetadata.put(\"field1\", \"ingest2\", \"DateType\");\n typeMetadataMap.put(Collections.singleton(\"AUTHA\"), typeMetadata);\n \n typeMetadata = new TypeMetadata();\n typeMetadata.put(\"field2\", \"ingest1\", \"IntegerType\");\n typeMetadata.put(\"field2\", \"ingest2\", \"LcType\");\n typeMetadataMap.put(Collections.singleton(\"AUTHB\"), typeMetadata);\n \n typeMetadata = new TypeMetadata();\n typeMetadata.put(\"field1\", \"ingest1\", \"LcType\");\n typeMetadata.put(\"field1\", \"ingest2\", \"DateType\");\n typeMetadata.put(\"field2\", \"ingest1\", \"IntegerType\");\n typeMetadata.put(\"field2\", \"ingest2\", \"LcType\");\n typeMetadataMap.put(Sets.newHashSet(\"AUTHA\", \"AUTHB\"), typeMetadata);\n return typeMetadataMap;\n }", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.6543223", "text": "String getType();", "title": "" }, { "docid": "1fb97e36f7dec8c2cd80ee60a189c8b6", "score": "0.65263355", "text": "TypeManager getTypeManager();", "title": "" }, { "docid": "8e46f0fe9af59610da3f9e06f264a0f4", "score": "0.6492794", "text": "prometheus.Types.MetricMetadata.MetricType getType();", "title": "" }, { "docid": "389ec41cf4bc9919436d87e864fd5db2", "score": "0.64810663", "text": "Metadata.Copyright.Type getTyp();", "title": "" }, { "docid": "932fc4c003ca1ac64c9a39d8bd5aaf31", "score": "0.64792633", "text": "public interface TypeDefn {\n String getType();\n\n int length();\n}", "title": "" }, { "docid": "0da9af8fce9807bd3bb9d2ddf8c2311c", "score": "0.6475025", "text": "Map<String, Object> getMetadata();", "title": "" }, { "docid": "567ac5d429a13b9c5fa57b96c745da94", "score": "0.64192975", "text": "Object getTYPE();", "title": "" }, { "docid": "ec4ba0a5fba673c18e0da8d0beaebec3", "score": "0.63708234", "text": "public String getType ();", "title": "" }, { "docid": "d96accac74eafd94da2ffe5379c69477", "score": "0.6338821", "text": "void getInformationByType(String type);", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6329532", "text": "public String getType();", "title": "" }, { "docid": "6e8753aa40167e90749bef42594d7b7e", "score": "0.63205236", "text": "@Public\n @Unstable\n public abstract String getType();", "title": "" }, { "docid": "1f89ee8efe80a95c3105ee7da59cada1", "score": "0.62908244", "text": "public DescriptionType getDescriptionType();", "title": "" }, { "docid": "d046f5e6f6518eec4ae8f78b9c006404", "score": "0.6288741", "text": "InfoType getInfo();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.628487", "text": "java.lang.String getType();", "title": "" }, { "docid": "695ee82c633bc2ff5e32f81ec27eb665", "score": "0.62803894", "text": "public static com.ibm.ws.webservices.engine.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.627527", "text": "public Type getType();", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.627527", "text": "public Type getType();", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.627527", "text": "public Type getType();", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.627527", "text": "public Type getType();", "title": "" }, { "docid": "fcadfbec6695deedfd3902c6d9c73de6", "score": "0.6249712", "text": "GetType createGetType();", "title": "" }, { "docid": "ae7b4c4196d222ff68fb48064bf5e7fe", "score": "0.62479997", "text": "long getType();", "title": "" }, { "docid": "ae7b4c4196d222ff68fb48064bf5e7fe", "score": "0.62479997", "text": "long getType();", "title": "" }, { "docid": "bbe95117ffe6b4e91db8b0828ea2e056", "score": "0.6236019", "text": "public abstract int get_type();", "title": "" }, { "docid": "09f69b8624583ede07fe77ce5428e57a", "score": "0.6227797", "text": "Type getType();", "title": "" }, { "docid": "28b07cc2f4ead1f4a812cb9865aff8df", "score": "0.6217979", "text": "public TypeSummary getType() {\n\t\tTypeDeclSummary typeDecl = summary.getTypeDecl();\n\t\treturn GetTypeSummary.query(typeDecl);\n\t}", "title": "" }, { "docid": "f03721d8f9649693b23fab56a6317f5e", "score": "0.6209023", "text": "public String type();", "title": "" }, { "docid": "b54b682b76498a50d67226420d80a9d6", "score": "0.6201528", "text": "public BusinessObjectMetadata(Biomine3000Mimetype type) {\r\n json = new JSONObject();\r\n setType(type.toString()); \r\n }", "title": "" }, { "docid": "a4ef53db8ec4e21dfccb0ec145e39137", "score": "0.61942095", "text": "@Transient\n public <T extends LedgerEntryMetadata> T getMetadata() {\n if (metadata == null && getType().getMetadataClass() != null) {\n metadata = getType().getMetadata(getProperties());\n }\n\n return (T) metadata;\n }", "title": "" }, { "docid": "3a5323a56ec00a4e591cac6fd1e2e556", "score": "0.6184686", "text": "public static com.ibm.ws.webservices.engine.description.TypeDesc getTypeDesc() {\n\t\treturn typeDesc;\n\t}", "title": "" }, { "docid": "2a6cc41f0c1fa2cb857254231c4455d0", "score": "0.6161522", "text": "abstract public String getType();", "title": "" }, { "docid": "2a6cc41f0c1fa2cb857254231c4455d0", "score": "0.6161522", "text": "abstract public String getType();", "title": "" }, { "docid": "2a6cc41f0c1fa2cb857254231c4455d0", "score": "0.6161522", "text": "abstract public String getType();", "title": "" }, { "docid": "b7335ac80e2cca037617694b75773f76", "score": "0.6158772", "text": "public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\r\n return typeDesc;\r\r\n }", "title": "" }, { "docid": "3c21ae13ece1a8e2bc5a77c3ba2a0760", "score": "0.6154782", "text": "@Override\n\tpublic DataType getDataType() {\n\t\tif (typeInfoDataType == null) {\n\t\t\ttypeInfoDataType = getDataType(STRUCTURE_NAME, DESCRIPTION);\n\t\t}\n\t\treturn typeInfoDataType;\n\t}", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.6146188", "text": "public abstract String getType();", "title": "" }, { "docid": "2f1d6977574a79212561ebca755dfd88", "score": "0.6141722", "text": "@Override\n\tpublic TypeInfo getTypeInfo() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2f1d6977574a79212561ebca755dfd88", "score": "0.6141722", "text": "@Override\n\tpublic TypeInfo getTypeInfo() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "65cb54152fab06a6f396b239d8361c8e", "score": "0.6138713", "text": "java.lang.String getStructuretype();", "title": "" }, { "docid": "65cb54152fab06a6f396b239d8361c8e", "score": "0.6138713", "text": "java.lang.String getStructuretype();", "title": "" }, { "docid": "cf43a4ec6b23fd52a7760699417674e9", "score": "0.6132389", "text": "TypeDescription getType(String aTypeName);", "title": "" }, { "docid": "2129416821f9aaac6f7c99f8af57d1e9", "score": "0.6114035", "text": "public String getTypeOfData();", "title": "" }, { "docid": "ce580355d4bbbfa729b23b54f82d06ae", "score": "0.6110645", "text": "public Map<Set<String>,TypeMetadata> getChangedTypeMetadataMap() {\n Map<Set<String>,TypeMetadata> typeMetadataMap = Maps.newHashMap();\n TypeMetadata typeMetadata = new TypeMetadata();\n typeMetadata.put(\"field2\", \"ingest2\", \"FooBarType\");\n typeMetadataMap.put(Sets.newHashSet(\"AUTHA\", \"AUTHB\"), typeMetadata);\n return typeMetadataMap;\n }", "title": "" }, { "docid": "e90a5191b335325911bfa492d045e56c", "score": "0.6109744", "text": "ModMetadata getMetadata();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6105439", "text": "String type();", "title": "" }, { "docid": "cef01b2c308485a070685c955df66005", "score": "0.608824", "text": "abstract String getType();", "title": "" }, { "docid": "2114de6755da6ffbc90859576a8ebc4f", "score": "0.60867023", "text": "public String getType() { return type; }", "title": "" }, { "docid": "3bec58d6ef41267a081a90da346c8024", "score": "0.6076651", "text": "public TypeInfo() {\r\n super();\r\n }", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.60679984", "text": "int getType();", "title": "" } ]
ae8082bf559c0ef564c1122eed719513
Setter of the property op2NacinAdresiranja
[ { "docid": "dd76d08331f9d3b9a36e45562a234623", "score": "0.7429136", "text": "public void setOp2NacinAdresiranja(NacinAdresiranja op2NacinAdresiranja) {\r\n\t\t\tthis.op2NacinAdresiranja = op2NacinAdresiranja;\r\n\t\t}", "title": "" } ]
[ { "docid": "1163eb29b2939e9376e10144aa506c36", "score": "0.6874269", "text": "public void setOp1NacinAdresiranja(NacinAdresiranja op1NacinAdresiranja) {\r\n\t\t\tthis.op1NacinAdresiranja = op1NacinAdresiranja;\r\n\t\t}", "title": "" }, { "docid": "9cb7e4c0357ccae9555f2a276c5c5b79", "score": "0.68692344", "text": "public NacinAdresiranja getOp2NacinAdresiranja() {\r\n\t\t\treturn op2NacinAdresiranja;\r\n\t\t}", "title": "" }, { "docid": "089e6dc8f195bdeb820ab72e6548ae4e", "score": "0.6028557", "text": "public NacinAdresiranja getOp1NacinAdresiranja() {\r\n\t\t\treturn op1NacinAdresiranja;\r\n\t\t}", "title": "" }, { "docid": "53a38c076b2bda293aa3aa276e75887c", "score": "0.5925453", "text": "public void setValorAtributo2(ValorAtributo valorAtributo2)\r\n/* 583: */ {\r\n/* 584:611 */ this.valorAtributo2 = valorAtributo2;\r\n/* 585: */ }", "title": "" }, { "docid": "64e73aa0fc1b13b91947c6d5630a49a3", "score": "0.5809704", "text": "public void setObservacion(String observacion)\r\n/* 684: */ {\r\n/* 685:731 */ this.observacion = observacion;\r\n/* 686: */ }", "title": "" }, { "docid": "00cd5a430812f9e008942f80a584528b", "score": "0.5739269", "text": "public void setOra(String ora);", "title": "" }, { "docid": "4e752fccf7b8d53accaf979eb4706c12", "score": "0.5703409", "text": "public void setCongiunzione2(String unaCongiunzione2) {\n this.unaCongiunzione2 = unaCongiunzione2;\n }", "title": "" }, { "docid": "848d015c23940f90e4400a33c9749a0e", "score": "0.5694722", "text": "void setLiCo(int a,int b){\r\n this.linie = a;\r\n this.coloana = b;\r\n }", "title": "" }, { "docid": "364b93b57a8c061cefa55af2a79bee45", "score": "0.5608262", "text": "public void setUnitaOperativa(String unitaOperativa);", "title": "" }, { "docid": "7e8321885bed019fba81d7bdd9d7e639", "score": "0.5589735", "text": "public void setDetalleTransferenciaBodega(DetalleMovimientoInventario detalleTransferenciaBodega)\r\n/* 321: */ {\r\n/* 322:405 */ this.detalleTransferenciaBodega = detalleTransferenciaBodega;\r\n/* 323: */ }", "title": "" }, { "docid": "9822ed489a4cec3654b86283cf20d316", "score": "0.5546585", "text": "public void setDestreza (int des) {this.destreza = des;}", "title": "" }, { "docid": "63fdf3faeb186c371d9b028fe9cb14e7", "score": "0.55316216", "text": "public void setNoiDungYKien(String noiDungYKien);", "title": "" }, { "docid": "1c5a33af8b1e0e02bbbb7759265b4d89", "score": "0.5519821", "text": "public void setAtributo2(Atributo atributo2)\r\n/* 483: */ {\r\n/* 484:531 */ this.atributo2 = atributo2;\r\n/* 485: */ }", "title": "" }, { "docid": "2b3e952f78dd672f374a6586f45ebc20", "score": "0.5518866", "text": "public void setCodigoRetencion(String value)\n/* 44: */ {\n/* 45:116 */ this.codigoRetencion = value;\n/* 46: */ }", "title": "" }, { "docid": "8a4e6040b05c98be97af3d6a00b32664", "score": "0.54941815", "text": "void setOperation(Operation o){\n if(n1_set & !n2_set){\n op = o;\n }\n }", "title": "" }, { "docid": "65f347abb070b5e30385a71c91f2c512", "score": "0.54904443", "text": "void setN2(String binaryString){\n if(!binaryString.equals((\"\"))) {\n this.n2 = Integer.parseInt(binaryString, 2);\n this.n2_set = true;\n }\n }", "title": "" }, { "docid": "207196ceea90ad543b52acecdd8358bd", "score": "0.54852605", "text": "public void setNumero(String numero)\r\n/* 281: */ {\r\n/* 282:366 */ this.numero = numero;\r\n/* 283: */ }", "title": "" }, { "docid": "84abed0c62bc8b85210ed31dc9200514", "score": "0.54833704", "text": "public void setAddress2(String value) {\n address2 = value;\n }", "title": "" }, { "docid": "b957a11d2ff34b3f3adf1cd389eff854", "score": "0.5481367", "text": "public String operacao(){\n return String.valueOf(this.n1 + this.n2);\n }", "title": "" }, { "docid": "b27b0be4ee5213a6dfe8762240c3e388", "score": "0.5448242", "text": "public void setTarifaOperacion(TarifaOperacion tarifaOperacion)\r\n/* 231: */ {\r\n/* 232:414 */ this.tarifaOperacion = tarifaOperacion;\r\n/* 233: */ }", "title": "" }, { "docid": "4964394d559f2fd044fb9f3f48a0ac33", "score": "0.54359204", "text": "protected void setX2(int x2)\n {\n this.x2 = x2; \n }", "title": "" }, { "docid": "3775fe8699a4df932c85edc94e7cb293", "score": "0.54347944", "text": "public void setObservacionCalidad(String observacionCalidad)\r\n/* 764: */ {\r\n/* 765:844 */ this.observacionCalidad = observacionCalidad;\r\n/* 766: */ }", "title": "" }, { "docid": "d3a9a36c23a231045753de16f239a4dc", "score": "0.54311913", "text": "public void setNum2(int value) {\r\n this.num2 = value;\r\n }", "title": "" }, { "docid": "23c5d0740e541ae56798e7d45a722fba", "score": "0.5416192", "text": "public void setOperacaoOrigem(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localOperacaoOrigemTracker = true;\n } else {\n localOperacaoOrigemTracker = false;\n \n }\n \n this.localOperacaoOrigem=param;\n \n\n }", "title": "" }, { "docid": "1b013d07c0a2b614387f81f6df0d4655", "score": "0.53938735", "text": "public void setVer(int pos1, int pos2){\n colecao.get(pos1).setVer(pos2);\n }", "title": "" }, { "docid": "8342b16372f60bb163233bd3fd0f8cb2", "score": "0.5379405", "text": "public void setInterno(String interno);", "title": "" }, { "docid": "4e3c1cc99834ba001400ec10b5eda8df", "score": "0.5377892", "text": "public void setNumero(String numero)\r\n/* 186: */ {\r\n/* 187:307 */ this.numero = numero;\r\n/* 188: */ }", "title": "" }, { "docid": "bd69e981bb0febda0ce8703c98808e64", "score": "0.5368615", "text": "public void setNombre(String nombre)\r\n/* 110: */ {\r\n/* 111: 94 */ this.nombre = nombre;\r\n/* 112: */ }", "title": "" }, { "docid": "4e1a6144a4ddc66f7a0bd6ff7aba0e81", "score": "0.5361559", "text": "public void setNumero2(java.lang.Integer numero2) {\n this.numero2 = numero2;\n }", "title": "" }, { "docid": "4470e6f7b1ac33d3325cdce1a33257c7", "score": "0.5361542", "text": "public void setRegistroDesde(int param){\n \n this.localRegistroDesde=param;\n \n\n }", "title": "" }, { "docid": "93359acf3410fe2c902c7202074de5fd", "score": "0.5360103", "text": "public void setCodigo(String value)\n/* 34: */ {\n/* 35: 92 */ this.codigo = value;\n/* 36: */ }", "title": "" }, { "docid": "80fdc0736c8eedc51cbddeac352e5ab0", "score": "0.5344945", "text": "void setPhone2(java.lang.String newValue) throws java.rmi.RemoteException;", "title": "" }, { "docid": "f48d6440bc958cfbe31a44b3d69cb423", "score": "0.5329313", "text": "void setNombreDestino(String setNombreDestino){\r\n _cNombreDestino=setNombreDestino;\r\n }", "title": "" }, { "docid": "b26d3e48f1341e6a758e4943740c7495", "score": "0.5329283", "text": "public void setNguoiTao(String nguoiTao);", "title": "" }, { "docid": "5ff717b110b9f2ec2381d89656eebf09", "score": "0.53245264", "text": "public void setOrdenNacimiento(int value) {\n this.ordenNacimiento = value;\n }", "title": "" }, { "docid": "f3c85bb76c9ccc09a8df1cb1262471ce", "score": "0.52866524", "text": "public void setCotaPadraoOperadorPontos(Cota param){\n \n if (param != null){\n //update the setting tracker\n localCotaPadraoOperadorPontosTracker = true;\n } else {\n localCotaPadraoOperadorPontosTracker = false;\n \n }\n \n this.localCotaPadraoOperadorPontos=param;\n \n\n }", "title": "" }, { "docid": "87a6d8a49f91ff8f38f83813d58a22b1", "score": "0.5280841", "text": "public void setDoisPontos() {\r\n this.ponto = this.ponto + 2;\r\n }", "title": "" }, { "docid": "01b118f7af92708b0f0f651e62bbfebe", "score": "0.5273768", "text": "public ValorAtributo getValorAtributo2()\r\n/* 578: */ {\r\n/* 579:607 */ return this.valorAtributo2;\r\n/* 580: */ }", "title": "" }, { "docid": "f3eddd5103773295abf5099c255987fd", "score": "0.5263734", "text": "public void setNroDocumento(java.lang.String param){\n localNroDocumentoTracker = true;\n \n this.localNroDocumento=param;\n \n\n }", "title": "" }, { "docid": "f3eddd5103773295abf5099c255987fd", "score": "0.5263734", "text": "public void setNroDocumento(java.lang.String param){\n localNroDocumentoTracker = true;\n \n this.localNroDocumento=param;\n \n\n }", "title": "" }, { "docid": "e2939794527f11117131805672f54800", "score": "0.5258369", "text": "void setV2(int v2);", "title": "" }, { "docid": "6c9f8edb8f2a581a2352ba30431b0e24", "score": "0.52473587", "text": "public void setRestricao2(java.lang.String param) {\n this.localRestricao2 = param;\n }", "title": "" }, { "docid": "463d93f4e77cee93b7a7540c4d43cb34", "score": "0.5223754", "text": "public void setEnderecoServicoConsumido(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localEnderecoServicoConsumidoTracker = true;\n } else {\n localEnderecoServicoConsumidoTracker = false;\n \n }\n \n this.localEnderecoServicoConsumido=param;\n \n\n }", "title": "" }, { "docid": "d00296782dfb5a6ff57c5faf5c7c907b", "score": "0.5219302", "text": "public void setOirepaivakirja(Oirepaivakirja oirepaivakirja) {\n this.oirepaivakirja = oirepaivakirja;\n alusta();\n \n }", "title": "" }, { "docid": "0b9ad7dff8908d8643f10c6c36acf105", "score": "0.5203681", "text": "public void setCodigo(String codigo)\r\n/* 121: */ {\r\n/* 122:205 */ this.codigo = codigo;\r\n/* 123: */ }", "title": "" }, { "docid": "bdb679a84ad790e176309e565216340a", "score": "0.52032024", "text": "public void setAsiento(Asiento asiento)\r\n/* 286: */ {\r\n/* 287:489 */ this.asiento = asiento;\r\n/* 288: */ }", "title": "" }, { "docid": "fd1298707f41342646ef6246f07241f1", "score": "0.5202856", "text": "public void setValorAtributo1(ValorAtributo valorAtributo1)\r\n/* 573: */ {\r\n/* 574:603 */ this.valorAtributo1 = valorAtributo1;\r\n/* 575: */ }", "title": "" }, { "docid": "8dcc73b97ff2cdebd7621fd0908bbdf1", "score": "0.51943994", "text": "public void setDescrizioneContorno2(String unaDescrizioneContorno2) {\n this.unaDescrizioneContorno2 = unaDescrizioneContorno2;\n }", "title": "" }, { "docid": "240f5e7f8578acb265fb70702aa0e6e3", "score": "0.5190125", "text": "public final native void setX2(String x2) /*-{\n\t\tthis.x2 = x2;\n\t}-*/;", "title": "" }, { "docid": "191a273672b16253d4c38fc57c4ebabe", "score": "0.51863545", "text": "public int getVrednostOperanda2() {\r\n\t\t\treturn vrednostOperanda2;\r\n\t\t}", "title": "" }, { "docid": "c49df1f71d62b098829f8e0dce9bd3c3", "score": "0.5185895", "text": "public void setOp (Operation op) {\n \tSystem.out.println(\"Bharat added setOP\");\n \tthis.op = op;\n\t\t\n }", "title": "" }, { "docid": "537f968272ac3358c41f9721385981ac", "score": "0.51810974", "text": "public void setPorcentajeEsc2(int p) { this.porcentajeEsc2 = p; }", "title": "" }, { "docid": "44377219333b49d11b6a3ef40f07bf0a", "score": "0.5173773", "text": "public void setData2(String data2) {\n\t\tthis.data2 = data2;\n\t}", "title": "" }, { "docid": "d6e89d1f273c43f39572d500295b51ea", "score": "0.5161766", "text": "public void setCuentaBancariaOrganizacion(CuentaBancariaOrganizacion cuentaBancariaOrganizacion)\r\n/* 146: */ {\r\n/* 147:231 */ this.cuentaBancariaOrganizacion = cuentaBancariaOrganizacion;\r\n/* 148: */ }", "title": "" }, { "docid": "94071c7a054143c2eb8444bc9cc38b2c", "score": "0.51535404", "text": "public void setObr_nr_id(int obr_nr_id)\n/* */ {\n/* 106 */ this.obr_nr_id = obr_nr_id;\n/* */ }", "title": "" }, { "docid": "9e409b64024a3a210988b657c08079e8", "score": "0.51469135", "text": "public void setNombre(String nombre)\r\n/* 131: */ {\r\n/* 132:224 */ this.nombre = nombre;\r\n/* 133: */ }", "title": "" }, { "docid": "571ea87c6d2095e5db24e53833467039", "score": "0.5138261", "text": "public void setCodigoDesnormalizado(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localCodigoDesnormalizadoTracker = true;\n } else {\n localCodigoDesnormalizadoTracker = false;\n \n }\n \n this.localCodigoDesnormalizado=param;\n \n\n }", "title": "" }, { "docid": "4e218d064260327dafc6957167f1d639", "score": "0.51348764", "text": "public final void setField2(String value) {\r\n this.field2 = value;\r\n }", "title": "" }, { "docid": "3af5bbfb546036ed9a1ebd9e94c68c1b", "score": "0.5132568", "text": "public void setFECHAOPRCN(int value) {\n this.fechaoprcn = value;\n }", "title": "" }, { "docid": "3af5bbfb546036ed9a1ebd9e94c68c1b", "score": "0.5132568", "text": "public void setFECHAOPRCN(int value) {\n this.fechaoprcn = value;\n }", "title": "" }, { "docid": "3af5bbfb546036ed9a1ebd9e94c68c1b", "score": "0.5132568", "text": "public void setFECHAOPRCN(int value) {\n this.fechaoprcn = value;\n }", "title": "" }, { "docid": "3af5bbfb546036ed9a1ebd9e94c68c1b", "score": "0.5132568", "text": "public void setFECHAOPRCN(int value) {\n this.fechaoprcn = value;\n }", "title": "" }, { "docid": "3af5bbfb546036ed9a1ebd9e94c68c1b", "score": "0.5132568", "text": "public void setFECHAOPRCN(int value) {\n this.fechaoprcn = value;\n }", "title": "" }, { "docid": "d6ae7e5178095cf03284cf5a91c39f12", "score": "0.5124976", "text": "public void setEnderecoOrigem(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localEnderecoOrigemTracker = true;\n } else {\n localEnderecoOrigemTracker = false;\n \n }\n \n this.localEnderecoOrigem=param;\n \n\n }", "title": "" }, { "docid": "92e6f2ce162801d30f46e7052d87b251", "score": "0.5123866", "text": "public String zamienNaONP(String wyrazenie) throws Exception {\r\n\t\tString onp = \"\";\r\n\t\tif ((wyrazenie.charAt(wyrazenie.length() - 1)) != '=')\r\n\t\t\tthrow new Exception(\"Brak znaku '=' na koncu wyrażenia.\");\r\n\t\telse if (!sprawdzNawiasy(wyrazenie)) {\r\n\t\t\tthrow new Exception(\"Ilość otwartych nawiasów != ilości nawiasów zamkniętych\");\r\n\t\t} else if (!sprawdzPoprawnosc(wyrazenie)) {\r\n\t\t\tthrow new Exception(\"Niepoprawne wyrażenie.\");\r\n\t\t} else {\r\n\t\t\tStos<String> stos = new Stos<String>();\r\n\t\t\tfor (int i = 0; i < wyrazenie.length(); i++) {\r\n\t\t\t\t// w zaleznosci od wczytanego znaku dodaj na stos, zdejmij ze\r\n\t\t\t\t// stosu lub przepisz na wyjscie\r\n\t\t\t\tswitch (wyrazenie.charAt(i)) {\r\n\t\t\t\tcase '(': {\r\n\t\t\t\t\tstos.push(Character.toString(wyrazenie.charAt(i)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase ')': {\r\n\t\t\t\t\twhile (!stos.top().equals(\"(\")) // dopoki na gorze stosu nie\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// jest znak otwierajacy\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// nawias to zdejmuj\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// operatory ze stosu\r\n\t\t\t\t\t\tonp += stos.pop();\r\n\t\t\t\t\tstos.pop(); // zdejmij operator ( bez wpisywania go na\r\n\t\t\t\t\t\t\t\t// wyjscie\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase '+':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase '-':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase 'x':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase '/':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase '%':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase '^':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase 'v':\r\n\t\t\t\t\t;\r\n\t\t\t\tcase '!': {\r\n\t\t\t\t\t// jesli stos jest pusty lub priorytet pobieranego operatora\r\n\t\t\t\t\t// jest wyzszy niz priorytet operatora na stosie to dodaj\r\n\t\t\t\t\t// operator na stos\r\n\t\t\t\t\tif (stos.isEmpty() || wyznaczPriorytet(Character.toString(wyrazenie.charAt(i))) > wyznaczPriorytet(\r\n\t\t\t\t\t\t\tstos.top())) {\r\n\t\t\t\t\t\tstos.push(Character.toString(wyrazenie.charAt(i)));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// w przeciwnym razie zdejmuj ze stosu wszystkie operatory z\r\n\t\t\t\t\t// priorytetem wyzszym lub rownym od pobieranego i dodaj\r\n\t\t\t\t\t// operator na stos\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\twhile (!stos.isEmpty() && wyznaczPriorytet(stos.top()) >= wyznaczPriorytet(\r\n\t\t\t\t\t\t\t\tCharacter.toString(wyrazenie.charAt(i)))) {\r\n\t\t\t\t\t\t\tonp += stos.pop();\r\n\t\t\t\t\t\t\tonp += \" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstos.push(Character.toString(wyrazenie.charAt(i)));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase '=': {\r\n\t\t\t\t\t// znak rownosci oznacza zakonczenie rownania wiec\r\n\t\t\t\t\t// zdejmujemy ze stosu wszystkie znaki\r\n\t\t\t\t\twhile (!stos.isEmpty())\r\n\t\t\t\t\t\tonp += stos.pop();\r\n\t\t\t\t\tonp += \" =\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t// liczby przepisujemy od razu na wyjscie\r\n\t\t\t\t\tonp += wyrazenie.charAt(i);\r\n\t\t\t\t\t// jesli po cyfrze znajduje sie kolejna cyfra lub kropka to\r\n\t\t\t\t\t// nie dajemy spacji, tak aby utworzyla sie liczba\r\n\t\t\t\t\tif (!((wyrazenie.charAt(i + 1) >= '0' && wyrazenie.charAt(i + 1) <= '9')\r\n\t\t\t\t\t\t\t|| wyrazenie.charAt(i + 1) == '.'))\r\n\t\t\t\t\t\tonp += \" \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn onp;\r\n\r\n\t}", "title": "" }, { "docid": "ae1d2be3a7d407c55d9596a29aa153da", "score": "0.5118994", "text": "private void connEtoC12(java.beans.PropertyChangeEvent arg1) {\r\n\t\ttry {\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t\tthis.firePropertyChange(\"opcionesBarButton00Enabled\", arg1.getOldValue(), arg1.getNewValue());\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {3}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "873311e6516b24af17592178f0b533c8", "score": "0.5111304", "text": "public void setBodega(Bodega bodega)\r\n/* 381: */ {\r\n/* 382:453 */ this.bodega = bodega;\r\n/* 383: */ }", "title": "" }, { "docid": "32ed602b6fe43fde965098fd1b337af2", "score": "0.51043934", "text": "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 844: */ {\r\n/* 845:908 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 846: */ }", "title": "" }, { "docid": "7971eedcb0675da652fc6a22f4ed85e4", "score": "0.50967973", "text": "public void setOsoite(String uusiOs) { this.osoite = uusiOs; }", "title": "" }, { "docid": "493570dc94ddd30d914e85f3439a2782", "score": "0.5092942", "text": "public void setEmpresa(Empresa empresa)\r\n/* 421: */ {\r\n/* 422:485 */ this.empresa = empresa;\r\n/* 423: */ }", "title": "" }, { "docid": "8642c056bd6fbc8f6aa9b16359c3bb4d", "score": "0.5091894", "text": "public void setProducto(Producto producto)\r\n/* 531: */ {\r\n/* 532:580 */ this.producto = producto;\r\n/* 533: */ }", "title": "" }, { "docid": "75540c29d6912295528a5b1a556642d4", "score": "0.50907594", "text": "public void setNomeContorno2(String unNomeContorno2) {\n this.unNomeContorno2 = unNomeContorno2;\n }", "title": "" }, { "docid": "9a1b65a5c20cd690b28c566a811120ee", "score": "0.50903183", "text": "public void setRemate (int rem) {this.remate = rem;}", "title": "" }, { "docid": "9562d599ed98178a9402614acdc23ac7", "score": "0.5088373", "text": "public String getCongiunzione2() {\n return unaCongiunzione2;\n }", "title": "" }, { "docid": "b0393457adee34beba98f7eab6eb91bc", "score": "0.5086205", "text": "public void setShipaddr2(String value) {\r\n setAttributeInternal(SHIPADDR2, value);\r\n }", "title": "" }, { "docid": "cafe68e2ffe65332653bef3ae83e871d", "score": "0.508593", "text": "public void setCantidad(int param){\n \n this.localCantidad=param;\n \n\n }", "title": "" }, { "docid": "4b7b3424dc371ebbcf3f34df762942e6", "score": "0.50836545", "text": "public int getOrigen(){\n return localOrigen;\n }", "title": "" }, { "docid": "23728f2ac2cae9a7a19eff09c479879e", "score": "0.5080903", "text": "private void setEstadoOpuesto(){\n\t\tthis.estadoDeTransformacionOpuesto = this.estadoDeTransformacionActual;\n\t}", "title": "" }, { "docid": "d2d7e56e4417de36b8784d08eee97748", "score": "0.5078268", "text": "public void setProducto(Producto producto)\r\n/* 74: */ {\r\n/* 75:73 */ this.producto = producto;\r\n/* 76: */ }", "title": "" }, { "docid": "d1ee5578428d66410a077c5d242a6afe", "score": "0.5077301", "text": "@Override\n\tpublic void setAddress2(String address2) {\n\t\tthis.address2 = address2;\n\t}", "title": "" }, { "docid": "aa36747cb5dc10eea403a65da436475c", "score": "0.50641984", "text": "public abstract void setValoreDaElenco(Object valore);", "title": "" }, { "docid": "fcbb9f82e5dab153441e5856db38cf0e", "score": "0.50626", "text": "public void setOrdenPagoProveedor(OrdenPagoProveedor ordenPagoProveedor)\r\n/* 316: */ {\r\n/* 317:520 */ this.ordenPagoProveedor = ordenPagoProveedor;\r\n/* 318: */ }", "title": "" }, { "docid": "c62cf25a339852e4b39bd8fbd09adc10", "score": "0.5062364", "text": "public java.lang.String getOperacaoOrigem(){\n return localOperacaoOrigem;\n }", "title": "" }, { "docid": "10ff99df29b2ca9a1d5b805edda73230", "score": "0.5059287", "text": "public void setCodDocSustento(String value)\n/* 84: */ {\n/* 85:212 */ this.codDocSustento = value;\n/* 86: */ }", "title": "" }, { "docid": "d19ea0e6c2e07a0c355adc255dfd39ba", "score": "0.50584906", "text": "public String getAddress2() {\n return address2;\n }", "title": "" }, { "docid": "d19ea0e6c2e07a0c355adc255dfd39ba", "score": "0.50584906", "text": "public String getAddress2() {\n return address2;\n }", "title": "" }, { "docid": "851fee9d95b0c8625b0f1c1d2ce4f4dc", "score": "0.5050323", "text": "public void setObservaciones(String p) { this.observaciones = p; }", "title": "" }, { "docid": "436d589143c77e9e6d458685c3e7c331", "score": "0.50477684", "text": "public void setDocumento(Documento documento)\r\n/* 216: */ {\r\n/* 217:364 */ this.documento = documento;\r\n/* 218: */ }", "title": "" }, { "docid": "5ccdb012863979f89acbb2a53f0304fd", "score": "0.50447774", "text": "public void setAddr2(java.lang.String addr2) {\n this.addr2 = addr2;\n }", "title": "" }, { "docid": "5ccdb012863979f89acbb2a53f0304fd", "score": "0.50447774", "text": "public void setAddr2(java.lang.String addr2) {\n this.addr2 = addr2;\n }", "title": "" }, { "docid": "fa3fd1c74e00005157d764cf64d9cfc9", "score": "0.50406885", "text": "public void setUmPonto() {\r\n this.ponto++;\r\n }", "title": "" }, { "docid": "1d269e2ebc1b8a29a99482b3a8b6661c", "score": "0.50390345", "text": "public void setJenis_Buku(String jenis_buku){//Menerapkan parameter\n //Untuk memanggil method tertentu dari class induk (class TokoBuku1)\n super.jenis_buku = jenis_buku;\n }", "title": "" }, { "docid": "a39bd77965dd2fb9470526715f3c402f", "score": "0.5036049", "text": "public void setCargaOtros(String cargaOtros)\r\n/* 571: */ {\r\n/* 572:612 */ this.cargaOtros = cargaOtros;\r\n/* 573: */ }", "title": "" }, { "docid": "82987fff3b3592e8094051c9c0e221ab", "score": "0.50339144", "text": "public String getNombre2() {\n\t\treturn nombre2;\n\t}", "title": "" }, { "docid": "b5a3f058df057a60808d3f697fde28a3", "score": "0.503374", "text": "public void setNumeroAnexos(int p) { this.numeroAnexos = p; }", "title": "" }, { "docid": "b4121e30ca91bf93037e98e9488bc7d9", "score": "0.5026564", "text": "public void setOrden(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localOrdenTracker = true;\n } else {\n localOrdenTracker = true;\n \n }\n \n this.localOrden=param;\n \n\n }", "title": "" }, { "docid": "0a5a33a9ca54b69d9d75cc140a24ba2f", "score": "0.5024923", "text": "public void setDocumento(Documento documento)\r\n/* 553: */ {\r\n/* 554:509 */ this.documento = documento;\r\n/* 555: */ }", "title": "" }, { "docid": "242f45be9810fc5dbb7894d1c555cba4", "score": "0.50246656", "text": "public String Zwroc_Nazwe() {return this.Nazwa;}", "title": "" }, { "docid": "338d4004e88e4d90259ba66ba958e7e6", "score": "0.5024264", "text": "public int getPorcentajeEsc2() { return this.porcentajeEsc2; }", "title": "" }, { "docid": "6a5d68d08c78fe9dc9787e653f687567", "score": "0.50214", "text": "public void setBonus_Pembelian(String bonus_pembelian){//Menerapkan parameter\n //Untuk memanggil method tertentu dari class induk (class TokoBuku1)\n super.bonus_pembelian = bonus_pembelian; \n }", "title": "" } ]
6f8dbd6ba7c5142beaecf200bd378537
does the set contain point p?
[ { "docid": "ca6823638919a79ad63b3352feff5584", "score": "0.6882322", "text": "public boolean contains(Point2D p){\n if(p == null)\n throw new IllegalArgumentException(\"null input!\");\n return contains(root, p);\n }", "title": "" } ]
[ { "docid": "3ab2b6b4a6ca3858cee48ed271818ac0", "score": "0.85049033", "text": "public boolean contains(Point2D p) {\n return set.contains(p); \n }", "title": "" }, { "docid": "faa6fc4f0e0b11d20abb9bb86838b9ca", "score": "0.85019296", "text": "public boolean contains(Point2D p) {\n validation(p);\r\n return pointSet.contains(p);\r\n}", "title": "" }, { "docid": "758d1d46a2cc18495c2435409a0de7c9", "score": "0.8192881", "text": "public boolean contains(Point2D p) {\n\t\treturn set.contains(p);\n\t}", "title": "" }, { "docid": "758d1d46a2cc18495c2435409a0de7c9", "score": "0.8192881", "text": "public boolean contains(Point2D p) {\n\t\treturn set.contains(p);\n\t}", "title": "" }, { "docid": "1f2e48a783244acf2e4a2059997012a8", "score": "0.8176308", "text": "public boolean contains(Point2D p) \n\t{\n\t\treturn pointSet.contains(p);\n\t}", "title": "" }, { "docid": "a33d662e3d4e2f2b9070441d80b41708", "score": "0.807589", "text": "public boolean contains(Point2D p) {\r\n // does the set contain point p?\r\n if (p == null) {\r\n throw new java.lang.IllegalArgumentException(\"null argument received\");\r\n }\r\n return mSet.contains(p);\r\n }", "title": "" }, { "docid": "822f27f8901186844d94699a73045376", "score": "0.80474085", "text": "public boolean contains(Point2D p) {\n\t\treturn pSet.contains(p);\n\t}", "title": "" }, { "docid": "6599565812029320a0261a2f534c30b9", "score": "0.8040702", "text": "@Override\n\tpublic boolean contains(Point p) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0feee79308d473646907293b99edd1ee", "score": "0.7893581", "text": "public boolean contains(Point2D p) {\n\t\tif (p == null) throw new java.lang.NullPointerException(\"argument point is null.\");\n\t\treturn set.contains(p);\n\t}", "title": "" }, { "docid": "25dd9ad56401d016501b61ab05ce5584", "score": "0.7864664", "text": "public boolean contains(Point p) {\n return b.contains(p);\n }", "title": "" }, { "docid": "86c053a85be77d9a222a4561d805e56c", "score": "0.7845692", "text": "public boolean contains(Point2D p) {\n checkArgNotNull(p);\n return set.contains(p);\n }", "title": "" }, { "docid": "9f996f33735ec225355a965dd4c71420", "score": "0.7828036", "text": "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"argument cannot be null.\");\n return pointSet.contains(p);\n }", "title": "" }, { "docid": "a62c1fdc0cc317ee92a03b50d51d6708", "score": "0.77168137", "text": "public boolean contains(Point p) {\n return shape.contains(p);\n }", "title": "" }, { "docid": "bb3011985bf1b95ac6df2671fffc8894", "score": "0.7662129", "text": "public boolean containsPoint(Vector p) {\n\treturn false;\n}", "title": "" }, { "docid": "e756d425cc06c35033b9d8dde430733e", "score": "0.76264006", "text": "public boolean contains(Point2D p) {\n return points.contains(p);\r\n }", "title": "" }, { "docid": "fe28d13cf27b2f16ebf7e8f01bd5030f", "score": "0.7460721", "text": "@Override\n\tpublic boolean contains(Point2D p) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2bd08a4399e4ce12c2b6b68b6bac10a2", "score": "0.7452177", "text": "public boolean contains(Point p) {\n return (b.contains(p) || b.contains(new Point(p.x - getInterspace(), p.y)));\n }", "title": "" }, { "docid": "ed7596340e0bc3d6ec47e89ed1476746", "score": "0.7403651", "text": "public boolean contains(Point2D p) {\n return points.contains(p);\n }", "title": "" }, { "docid": "fe2ccdaf265d263b4e28e55a3d8f4cdf", "score": "0.7367092", "text": "public final int contains(Point p) {\r\n\t\treturn contains(p.x, p.y);\r\n\t}", "title": "" }, { "docid": "06c90b3b44fbb47e16585fc0ba9b45ae", "score": "0.73159194", "text": "boolean contains(Point2D p);", "title": "" }, { "docid": "30d1b4730509b0f60a9e0ae28c626437", "score": "0.7301718", "text": "boolean hasPoint();", "title": "" }, { "docid": "30d1b4730509b0f60a9e0ae28c626437", "score": "0.7301718", "text": "boolean hasPoint();", "title": "" }, { "docid": "62da271e225f04b22811ab428f7b2b0f", "score": "0.72674274", "text": "public boolean contains(Point p){\n return this.boundingShape.contains(p);\n }", "title": "" }, { "docid": "c49a8771394b60b6160a18898df5915b", "score": "0.7263809", "text": "public boolean contains(Point2D p) { return contains(root, p, true); }", "title": "" }, { "docid": "aa03fa9542dd82d85864a23d3632bc68", "score": "0.72593516", "text": "public boolean contains(Point2D p) {\n validation(p);\r\n return contains(root, p, false);\r\n}", "title": "" }, { "docid": "ee3829fc88350f241c9856f8be0f4a68", "score": "0.72315365", "text": "public boolean contains(Point2D p) {\n assertNull(p);\n return points.contains(p);\n }", "title": "" }, { "docid": "da3f5b8caf3c9cba9de859102b7f5ba8", "score": "0.722854", "text": "@Override\n public boolean contains(Point p) {\n double Bx = x[1] - x[0];\n double By = y[1] - y[0];\n double Cx = x[2] - x[0];\n double Cy = y[2] - y[0];\n double Px = p.getX() - x[0];\n double Py = p.getY() - y[0];\n \n //solve equation: r*B + s*C = P\n double r = ((Px/Bx)-((Py*Cx)/(Cy*Bx)))/(1-((By*Cx)/(Cy*Bx)));\n double s = ((Py-r*By)/Cy);\n return (r>=0 && s>=0 && s+r<=1);\n }", "title": "" }, { "docid": "88fd3a2954bc09a8542c719469bc7f9b", "score": "0.7205018", "text": "public boolean contains(Point3D p) {\r\n try {\r\n return p.equals(_point) || p.subtract(_point).dotProduct(_normal) == 0;\r\n } catch (ZeroVectorException ex) {\r\n System.err.println(ex.getMessage());\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "e5612438bb46beea3ab9dc06ddf69aa9", "score": "0.7201313", "text": "public boolean contains(Point2D p) {\n return contains(p, tree, 0);\n }", "title": "" }, { "docid": "0b99aba327bcffef58486cd3a754e89a", "score": "0.7181219", "text": "public boolean contains(Point2D p){\n if (p == null) throw new IllegalArgumentException(\"argument to contains() is null\");\n return get(p) != null;\n }", "title": "" }, { "docid": "adee8eef59551435c4bd054314e65ad6", "score": "0.71653926", "text": "public boolean contains(Point p) {\r\n\t\treturn p.distanceTo(getCenter()) <= radius;\r\n\t}", "title": "" }, { "docid": "4962df2a337560e83853c5cc27914b65", "score": "0.7145787", "text": "@Override\n public boolean contains(Point p) {\n java.awt.geom.Line2D.Double check = new java.awt.geom.Line2D.Double(start, end);\n // \"close\" means within 3 pixels\n return (check.ptSegDist(p) < 3);\n }", "title": "" }, { "docid": "5c0da8a2e7de5e1a36854288813b9260", "score": "0.71420383", "text": "public boolean contains(Point p) {\n\treturn rect.contains(p);\n }", "title": "" }, { "docid": "f124f0d03b036446acf160031c9ed602", "score": "0.7119604", "text": "public boolean contains(Point3D point);", "title": "" }, { "docid": "b4c38ca104086547b6339edb2666703a", "score": "0.7115886", "text": "public boolean contains(Point p)\n {\n \tif(box.contains(p))\n \t{\n \t\treturn true;\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "a86d4f6b1b375f981ffc25faca243058", "score": "0.71033317", "text": "public boolean contains(Point2D p) { \n if (p == null) throw new NullPointerException();\n return get(p) != null;\n }", "title": "" }, { "docid": "6a08dff39069fa4181f8b236f30ca7c4", "score": "0.70998734", "text": "public boolean contains(PointD p){\n PointD center = this.getCenter();\n double radius = this.getRadius();\n return GeoComputation.distance(p, center) <= radius;\n }", "title": "" }, { "docid": "78627fcfab87fe55255ec2d2eda03e0b", "score": "0.70752966", "text": "public boolean contains(Point p) {\n\t\treturn bounds.contains(p);\n\t}", "title": "" }, { "docid": "b926e448bd255704e63e47f39abd093f", "score": "0.7069576", "text": "public boolean contains(Point2D p) {\n if (p == null) throw new NullPointerException();\n return points.contains(p);\n }", "title": "" }, { "docid": "0a96f3840ad01565937ab8469dd4d93a", "score": "0.70331687", "text": "public boolean contains(Point2D p) {\r\n ensureNonNull(p);\r\n return points.contains(p);\r\n }", "title": "" }, { "docid": "617f206e4ee781b7cb21daaeea5cb80d", "score": "0.70281017", "text": "@Override\r\n\tpublic boolean contains(Vector2 point) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "58c55b67bd0feb957a6dc4566dd57447", "score": "0.7021903", "text": "@Override\n\tpublic boolean contains(Point.Float p) {\n\t\tint px = (int) p.getX()+getWidth()/2; // mouse location\n\t\tint py = (int) p.getY()+getHeight()/2;\n\t\tint xLoc = (int) this.getXTran(); // shape location\n\t\tint yLoc = (int) this.getYTran();\n\t\tif ( (px >= xLoc) && (px <= xLoc+this.getWidth()) && (py >= yLoc) && (py <= yLoc+this.getHeight()) )\n\t\treturn true; \n\t\telse return false;\n\t}", "title": "" }, { "docid": "56ecbf12c96b1a5d6458ab6009fd6a22", "score": "0.69888586", "text": "public boolean contains(Point2D p) {\n return contains(root, p);\n }", "title": "" }, { "docid": "c7d7fd2ec9da9ff419ce5c0f468671d6", "score": "0.6981412", "text": "public boolean contains(Point2D p) {\r\n\t\treturn contains(root, p, true);\r\n\t}", "title": "" }, { "docid": "9967b606057efc1b3cb8b9e6ac010188", "score": "0.6973797", "text": "public boolean contains(Vec3 pt) {\n final int x = pt.x;\n if ( x < minimum.x || x > maximum.x ) return false;\n \n final int y = pt.y;\n if ( y < minimum.y || y > maximum.y ) return false;\n \n final int z = pt.z;\n if ( z < minimum.z || z > maximum.z ) return false;\n \n return true;\n }", "title": "" }, { "docid": "e33de816fc936f61470386ee75756ff7", "score": "0.6967091", "text": "public boolean contains(Point2D point);", "title": "" }, { "docid": "5add683c76a0c87bfa770f89df0ab070", "score": "0.6939759", "text": "public boolean contains(FloatPoint p_point)\n {\n if (lx > p_point.x || ly > p_point.y\n || rx < p_point.x || uy < p_point.y)\n {\n return false;\n }\n double tmp_1 = p_point.x - p_point.y;\n double tmp_2 = p_point.x + p_point.y;\n if (ulx > tmp_1 || lrx < tmp_1 || llx > tmp_2 || urx < tmp_2)\n {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "5ec2f334fba68805bfdd48e63c1eeda7", "score": "0.69373417", "text": "public abstract boolean containsPoint(Point2D.Double point);", "title": "" }, { "docid": "0e1318af094f9fdbd4d797b3fa2fd026", "score": "0.689343", "text": "@Override\n public boolean contains(Point2D ot) {\n // TODO Auto-generated method stub\n return this.equals(ot);\n }", "title": "" }, { "docid": "d7450833254e7f6586ad451ac94a1c63", "score": "0.6881531", "text": "boolean isAlreadyContains(GameState gameState, Point p, Owner symbol){\n\t if (symbol == Owner.PLAYER_1) {\n\t for (int i = 0; i < gameState.vec1.size(); i++) {\n\n\t // Check if the point already exists.\n\t if (p.isEqual(gameState.vec1.elementAt(i))) {\n\t return true;\n\t }\n\t }\n\t } else {\n\t if (symbol == Owner.PLAYER_2) {\n\t for (int i = 0; i < gameState.vec2.size(); i++) {\n\n\t // Check if the point already exists.\n\t if (p.isEqual(gameState.vec2.elementAt(i))) {\n\t return true;\n\t }\n\t }\n\t }\n\t }\n\n\t return false;\n\n\t}", "title": "" }, { "docid": "9ac094fe82d4a9fca38b82178f089aec", "score": "0.6871444", "text": "public boolean contains(Vector3 point)\r\n {\r\n double x = point.x;\r\n double y = point.y;\r\n int npol = points.size();\r\n\r\n int i, j;\r\n boolean c = false;\r\n for (i = 0, j = npol - 1; i < npol; j = i++)\r\n {\r\n Vector3 pi = points.get(i);\r\n Vector3 pj = points.get(j);\r\n if ((((pi.y <= y) && (y < pj.y)) || ((pj.y <= y) && (y < pi.y)))\r\n && (x < (pj.x - pi.x) * (y - pi.y) / (pj.y - pi.y) + pi.x))\r\n {\r\n c = !c;\r\n }\r\n }\r\n return c;\r\n }", "title": "" }, { "docid": "7e3a5e0183fe2f766f265948d3999666", "score": "0.68675643", "text": "public boolean wasHit(Point p) {\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (points[i] != null && p.x == points[i].x && p.y == points[i].y) {\r\n\t\t\t\tslots[i] = true;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ebbd444c56b278824426af10caa03db6", "score": "0.68621093", "text": "public boolean contains(Point p) {\r\n if (this.start().equals(p)) {\r\n return true;\r\n }\r\n if (this.start().slopeWith(p) == null && this.slope() == null) {\r\n return doubleEquals(this.start().getX(), p.getX())\r\n && isBetween(p.getY(), this.start().getY(), this.end().getY());\r\n }\r\n /*\r\n The method checks that p is on the same linear equation as the line by comparing the slope between p and the\r\n line's start point to the line's slope, it also checks if p is between the line's edges\r\n */\r\n return doubleEquals(this.start().slopeWith(p), (this.slope()))\r\n && isBetween(p.getX(), this.start().getX(), this.end().getX());\r\n }", "title": "" }, { "docid": "5fc41f5fa43c6ab620158ee5a45b62df", "score": "0.6861679", "text": "public boolean containsPoint(int x, int y);", "title": "" }, { "docid": "ea4e4aa956225dba5237737502fd3afb", "score": "0.6858509", "text": "public boolean contains(Point2D p) {\n\t\treturn(contains(root, p, 0) != null);\n\t}", "title": "" }, { "docid": "7a9ff62982337bf73075f2608cb33f5a", "score": "0.68411386", "text": "private boolean pointInCurrentPolygon(final Point p) {\n if (current == null) {\n return false;\n }\n for (final Polygon item : current) {\n if (item.contains(p)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "8f13d6c6efaadcdc85a22135c4485d1a", "score": "0.6840857", "text": "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Can't be a null point\");\n return get(root, p) != null;\n }", "title": "" }, { "docid": "a2aa22140e1a18fc8fe8e455eeb5af03", "score": "0.6839332", "text": "public boolean contains(Point2D p) {\n if (p == null) throw new java.lang.NullPointerException();\n \n return ST.contains(p);\n }", "title": "" }, { "docid": "9e5742d5cfc71e5c98fa3033f83cf1f6", "score": "0.6839147", "text": "public boolean contains(Position p) {\n return p.x > this.p.x && p.x < this.p.x + this.width - 1 && p.y > this.p.y && p.y < this.p.y + this.height - 1;\n }", "title": "" }, { "docid": "d28d14d7f0cf97b56b5e2a9d48385e53", "score": "0.68247956", "text": "boolean contains(Point2D pos);", "title": "" }, { "docid": "7fd85599b41804ab5702ad7d4f9fbe08", "score": "0.6822915", "text": "boolean isPointIn(Point point);", "title": "" }, { "docid": "ba9df988a382ccaa48724dc27aae03a3", "score": "0.6815616", "text": "public boolean contains(RPoint p){\n float testx = p.x;\n float testy = p.y;\n\n // Test for containment in bounding box\n RRectangle bbox = getBounds();\n float xmin = bbox.getMinX();\n float xmax = bbox.getMaxX();\n\n float ymin = bbox.getMinY();\n float ymax = bbox.getMaxY();\n \n if( (testx < xmin) || (testx > xmax) || (testy < ymin) || (testy > ymax)){\n return false;\n }\n\n // Test for containment in path\n RPoint[] verts = getPoints();\n \n if(verts == null){\n return false;\n }\n \n int nvert = verts.length;\n int i, j = 0;\n boolean c = false;\n for (i = 0, j = nvert-1; i < nvert; j = i++) {\n if ( ((verts[i].y > testy) != (verts[j].y>testy)) &&\n (testx < (verts[j].x-verts[i].x) * (testy-verts[i].y) / (verts[j].y-verts[i].y) + verts[i].x) )\n c = !c;\n }\n return c;\n }", "title": "" }, { "docid": "a050eb9040ea150961542604ee034d68", "score": "0.67959136", "text": "public boolean contains(Point p) {\n\n\t\tif (shape == CIRCLE) {\n\t\t\tPoint circleCenter = new Point(upperLeft.x + size / 2, upperLeft.y + size / 2);\n\t\t\treturn circleCenter.distance(p) <= size / 2;\n\n\t\t} else {\n\t\t\treturn p.x >= upperLeft.x && p.x <= upperLeft.x + size &&\n\t\t\t\t\tp.y >= upperLeft.y && p.y <= upperLeft.y + size;\n\t\t}\n\t}", "title": "" }, { "docid": "67e1fa8c5e63e690e216903e8f5ea8ad", "score": "0.6742803", "text": "public boolean contains(Point2D p) {\n if (null == p) {\n throw new java.lang.NullPointerException();\n }\n Node cur = this.root;\n int step = 0;\n while (cur != null) {\n if (cur.getP().equals(p)) {\n return true;\n }\n if (step % 2 == 0) {\n if (p.x() < cur.getP().x()) {\n cur = cur.getLb();\n }\n else {\n cur = cur.getRt();\n }\n }\n else {\n if (p.y() < cur.getP().y()) {\n cur = cur.getLb();\n }\n else {\n cur = cur.getRt();\n }\n }\n ++step;\n }\n return false;\n }", "title": "" }, { "docid": "d6ba4be988eb378228f5733c422a0854", "score": "0.6732764", "text": "@Override\n\tpublic boolean contains(P2d p) {\n\t\tif(p.getX()>= a.getX() && p.getX()<=b.getX() &&\n\t\t\t\tp.getY()>=a.getY() && p.getY()<= b.getY())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "465a880531fa54198ebb6c222107c72a", "score": "0.67249143", "text": "public boolean contain(Point p, List<Move> moves) {\n\t\tjava.util.Iterator<Move> it = moves.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tif (it.next().pos.equals(p))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5b14d2775afe8cebf677b82cad379b58", "score": "0.6717045", "text": "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n Node x = root;\n while (x != null) {\n int cmp = compare(p, x);\n if (cmp < 0) x = x.left;\n else if (cmp > 0) x = x.right;\n else {\n if (p.compareTo(x.point) == 0) return true;\n else x = x.right;\n }\n }\n return false;\n }", "title": "" }, { "docid": "2e74034f0892a3b16691dfc23cdb4741", "score": "0.6708869", "text": "public boolean contains(Point2D p)\r\n {\r\n if (p == null) throw new NullPointerException(\"Null point\");\r\n \r\n return contains(root, p);\r\n }", "title": "" }, { "docid": "6cd6e6d71c366f4e32351dd9787d0286", "score": "0.6671766", "text": "public boolean isEmpty() {\n return pointSet.isEmpty();\r\n}", "title": "" }, { "docid": "0f45eba3667e73b9aee0182a13b97948", "score": "0.6660861", "text": "public boolean isPertenece(Pixel p) {\r\n\t\tif (getShape() != null){\r\n\t\t\treturn getShape().contains(p.getX(), p.getY());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6651b9fffb119acda1db541ec4899b7f", "score": "0.6617306", "text": "public boolean contains_inside(IntPoint p_point)\n {\n return p_point.x > this.ll.x && p_point.x < this.ur.x\n && p_point.y > this.ll.y && p_point.y < this.ur.y;\n }", "title": "" }, { "docid": "7757db0362dede8249602c96cecbf9e5", "score": "0.66172653", "text": "public abstract boolean contains(Vec2f pnt);", "title": "" }, { "docid": "586188cb07079b699e79af0a5efb6996", "score": "0.65992093", "text": "public boolean contains(Point2D p) {\n if (p == null) {\n throw new NullPointerException(\"Can't compare with null\");\n }\n return contains(root, 0, p);\n }", "title": "" }, { "docid": "3127e169f9bf27babcf6216f8b42dad0", "score": "0.65871364", "text": "public boolean inRange(Point p) {\n \tfor(Vertex v: myWorld) {\n \t\tif(v.getPoint().x == p.x && v.getPoint().y == p.y) {\n \t\t\treturn true;\n \t\t}\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "65eefe2aaad01c819f1bf85199b09ea1", "score": "0.65575194", "text": "public boolean contains(Shape forma, Point2D p){\n return forma.contains(p); // llama al contains de Shape\n }", "title": "" }, { "docid": "c91adc08c4411a7b65446d5b614a204a", "score": "0.65367943", "text": "private boolean isPointOnMap(Point p) {\n\t\treturn map != null && p != null && p.getX() >= 0 &&\n\t\t\t p.getX() < map.length && p.getY() >= 0 && p.getY() < map.length;\n\t}", "title": "" }, { "docid": "441799db10bdf33fbd6e30d6dc9d8eb7", "score": "0.6529748", "text": "public boolean hasPoint() {\n return point_ != null;\n }", "title": "" }, { "docid": "634a425fd9044760aaea7af05cfd9244", "score": "0.652558", "text": "public boolean contains(Object elem) {\r\n\treturn set.contains(elem);\r\n\t}", "title": "" }, { "docid": "5f68ac1a32292a0511cea0b70d28b90a", "score": "0.64978534", "text": "public boolean contains(Point2D p) {\n\t\tEllipse2D circle = new Ellipse2D.Double(x, y, 2 * GameSettings.BALL_RADIUS, 2 * GameSettings.BALL_RADIUS);\n\t\treturn circle.contains(p);\n\t}", "title": "" }, { "docid": "1d1cb8ccd7d8182d1111434e2ad1427c", "score": "0.6496137", "text": "public boolean isInside(Point p) {\n for (int i=0; i<coords.length; i++)\n if (!coords[i].canBeInstantiatedTo(p.getCoord(i)))\n return false;\n return true; \n }", "title": "" }, { "docid": "58986aaaa0285dfa16588f31635b3513", "score": "0.64879656", "text": "boolean contains(double xcoord, double ycoord);", "title": "" }, { "docid": "117fb068d0f5de811d86048897282128", "score": "0.6462144", "text": "@Override\r\n\tpublic boolean contains(Point2D ot) {\r\n\t\tdouble d = this._A.distance(this._B);\r\n\t\tdouble d1 = ot.distance(this._A);\r\n\t\tdouble d2 = ot.distance(this._B);\r\n\t\t\r\n\t\treturn (d == d1 + d2);\r\n\t}", "title": "" }, { "docid": "697ba654a2d53e03c221d1184e9a2823", "score": "0.64240944", "text": "public boolean atSetPoint(){\n return Math.abs(getPosition() - getSetpoint())<.1;\n }", "title": "" }, { "docid": "85c80b9f11fe02b11337f56705457596", "score": "0.64047664", "text": "private boolean isVisited(Position p){\r\n return visitedPositions.containsKey(p.hashCode());\r\n }", "title": "" }, { "docid": "86c3a7bbbbbbd51e7c65bea012f63510", "score": "0.6394301", "text": "public boolean hasElement(T t) {\n\t\tjava.util.Iterator<T> i = hashSet.iterator();\n\t\t\n\t\twhile (i.hasNext()) {\n\t\t\tT element = (T) i.next();\n\t\t\tSystem.out.print(element.toString() + \" \");\n\t\t\tif (element.equals(t)) {\n\t\t\t\tSystem.out.println();\t//Note that hashSet does not store these in order.\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b9d07ea88fa1cc55ca5e3e0b8689c22a", "score": "0.6386653", "text": "public boolean equals(Point p)\n {\n return (x.equals(p.getX()) && (p.getY().equals(y)));\n }", "title": "" }, { "docid": "6d7331b4c779a9482fc1663f6d5ae041", "score": "0.6367891", "text": "public boolean equals(Point p) {\n\t\tif (this.yP == p.getYp() && this.xP == p.getXp())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "9547551611873f8ef89092857b437e71", "score": "0.6356885", "text": "private boolean contains(Node root, Point2D p) {\n // was not found\n if (root == null) return false;\n // was found\n if (root.isEqual(p)) return true;\n \n if (root.type == VERTICAL) {\n if (p.x() < root.point.x()) {\n return contains(root.leftbottom, p);\n } else {\n return contains(root.righttop, p);\n }\n } else {\n if (p.y() < root.point.y()) {\n return contains(root.leftbottom, p);\n } else {\n return contains(root.righttop, p);\n }\n }\n }", "title": "" }, { "docid": "36396fe1c98cd2d6d4afd7d3f7adae47", "score": "0.6352218", "text": "boolean hasCoordinates();", "title": "" }, { "docid": "77bbe4045cf717c2157098162fafa5e7", "score": "0.6351557", "text": "public boolean containsPoint(PairDouble pos) {\n\t\treturn bounds.contains(pos.x, pos.y);\n\t}", "title": "" }, { "docid": "fff3746ae4f636eeb15914c926deccef", "score": "0.6332189", "text": "public boolean contains(Point mousePt) {\n\t\tdouble dx, dy;\n\t\tPoint EndPt = new Point(fX + fWidth, fY + fHeight);\n\t\tdx = (2 * mousePt.x - fX - EndPt.x) / (double) fWidth;\n\t\tdy = (2 * mousePt.y - fY - EndPt.y) / (double) fHeight;\n\t\treturn dx * dx + dy * dy < 1.0;\n\t}", "title": "" }, { "docid": "b38ffc04c96c586bad2d1e350b53643d", "score": "0.63247734", "text": "public boolean hasPoint() {\n return instance.hasPoint();\n }", "title": "" }, { "docid": "622751a4681d8654e121f30f0274dcc7", "score": "0.63197523", "text": "boolean isIntersection(Place p) {\n return isIntersection(p.x, p.y);\n }", "title": "" }, { "docid": "e0db4d1ee1251c1d9b1f8642e390bc08", "score": "0.62934107", "text": "public boolean validState(List<List<Point>> state, Point p){\n for(List<Point> row : state){\n for(Point col : row){\n if(col.getX() == p.getX() && col.getY() == p.getY()){\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "61881956e2382a0ded73a3f3d889f612", "score": "0.62920445", "text": "public boolean isInMap(Point p) {\n\t\treturn p.getX() >= 0 && p.getY() >= 0 && p.getX() < getWidth() && p.getX() < getHeight();\n\t}", "title": "" }, { "docid": "11aba59030ce2236682e65b2bb9893c0", "score": "0.6291755", "text": "public boolean containsDominator(SupVec sv, int t, int s, PartialOutSeq q) {\n\t\tPassedSV temp;\n\t\tif (set.size() == 0) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < set.size(); i++) {\n\t\t\ttemp = set.get(i);\n\t\t\t//System.out.println(\"temp.p\");\n\t\t\t//temp.p.output();\n\t\t\tif ((sv.isGreaterEq(temp.p)) && (temp.time == t) && (temp.sc == s) && (temp.o.equals(q))) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\t\t\n\t}", "title": "" }, { "docid": "32313499aa629956c8433653a30c6006", "score": "0.6286838", "text": "public boolean equals(Object p){\n\t\tif (p instanceof Point3)\n\t\t\treturn this.equals((Point3) p); \n\t\treturn super.equals(p);\n\t}", "title": "" }, { "docid": "2da49b0cdd98c4ee83b61f979ce7e9e2", "score": "0.6284903", "text": "public boolean contains(Vec3 pt1, Vec3 pt2) {\n if ( contains(pt1) ) return true;\n if ( contains(pt2) ) return true;\n \n // Doesn't contain either point, but perhaps the line passes through?\n // Need essentially a ray-box intersection test\n \n if ( pt1.x <= pt2.x ) {\n if ( pt2.x < minimum.x ) return false;\n } else {\n if ( pt1.x > maximum.x ) return false;\n }\n \n if ( pt1.y <= pt2.y ) {\n if ( pt2.y < minimum.y ) return false;\n } else {\n if ( pt1.y > maximum.y ) return false;\n }\n \n if ( pt1.z <= pt2.z ) {\n if ( pt2.z < minimum.z ) return false;\n } else {\n if ( pt1.z > maximum.z ) return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "ca923167c81af6ebd70acf2608dbbbd0", "score": "0.6263949", "text": "protected boolean containsDuplicateElement(int key) {\n for (Pair<Integer, Double> pair : pairSets) {\n if (pair.getKey().compareTo(key) == 0) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "499a8a3db600df4e2158bc7c9477eced", "score": "0.62603146", "text": "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Point)) {\n return false;\n }\n return true;\n }", "title": "" } ]
6c067e6140865ced6d6c44b027ff255e
optional uint32 account_to_swap = 3;
[ { "docid": "fc4ee0be46ee95310dc3451ad22d023d", "score": "0.5508211", "text": "public Builder clearAccountToSwap() {\n bitField0_ = (bitField0_ & ~0x00000004);\n accountToSwap_ = 0;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "308f36aedd752653bbf25312f496aea0", "score": "0.7898375", "text": "int getAccountToSwap();", "title": "" }, { "docid": "b9499a1dd927b92984c96c90ba055e37", "score": "0.68841094", "text": "public int getAccountToSwap() {\n return accountToSwap_;\n }", "title": "" }, { "docid": "ecadfbf9d521ad26ce9fc197878cda8b", "score": "0.680865", "text": "boolean hasAccountToSwap();", "title": "" }, { "docid": "a00cc8cc35fe194428a12be72afea213", "score": "0.67797", "text": "public int getAccountToSwap() {\n return accountToSwap_;\n }", "title": "" }, { "docid": "44a6d33ae448b9ee31e225270d2d204a", "score": "0.6371493", "text": "int getSwapWith();", "title": "" }, { "docid": "38397c09274ecd213d5d1426b909093a", "score": "0.62583715", "text": "public Builder setAccountToSwap(int value) {\n bitField0_ |= 0x00000004;\n accountToSwap_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b0a10abaa1ff5cf80604d65a709860dd", "score": "0.5971813", "text": "public boolean hasAccountToSwap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "aa2962e318ba56d72ff5a1125d0882e9", "score": "0.59694976", "text": "public boolean hasAccountToSwap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "83bee437e5f1914e8300298bdc611d19", "score": "0.53886056", "text": "static void swap(int a,int b){\n\tint temp=a;\n\ta=b;\n\tb=temp;\n\t}", "title": "" }, { "docid": "710fcf5f2b4d4d8a9dd7aeadaec29e26", "score": "0.53762287", "text": "private void deactivateAccount(Account account) {\n\n\t}", "title": "" }, { "docid": "60a6450229a015703704186ca25f40e1", "score": "0.5359821", "text": "public void swap() {\n KVPair temp = pair1;\n pair1 = pair2;\n pair2 = temp;\n }", "title": "" }, { "docid": "a17fbb122fc99ceac2de369eb1472a4a", "score": "0.53584397", "text": "boolean hasSwapWith();", "title": "" }, { "docid": "352e0b24bf4304b2a40f95cdafa3972d", "score": "0.5348527", "text": "protected Integer swap(Integer a, Integer b){\n return a;\n }", "title": "" }, { "docid": "f43c3c60697c02ec3525d4f72c253883", "score": "0.5333778", "text": "@Override\n public void swap(int paramInt1, int paramInt2) {\n }", "title": "" }, { "docid": "6188e26bc757dcdf0720bcad030a4526", "score": "0.5327393", "text": "public void setBalance(long param){\n localBalanceTracker = true;\n \n this.localBalance=param;\n \n\n }", "title": "" }, { "docid": "b313ef1035afb3d2f9f98de641c36d8c", "score": "0.5319919", "text": "public abstract void swap();", "title": "" }, { "docid": "6136df49751412763b8a3c288146f1eb", "score": "0.52901125", "text": "public abstract void onThrottledWalletChanged();", "title": "" }, { "docid": "e60c7c4b27e1df82e4c9065b09044778", "score": "0.5268158", "text": "public boolean canSwap();", "title": "" }, { "docid": "1e0b2699ad0f143b04bccad70554c7da", "score": "0.52505666", "text": "@DSSafe(DSCat.SAFE_LIST)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:50.403 -0400\", hash_original_method = \"6E266F7886D6B5A2425ED73C34F43FE1\", hash_generated_method = \"96052107A34B7CD5A389B5F1DF090657\")\n \npublic static int swapInteger(int value) {\r\n return\r\n ( ( ( value >> 0 ) & 0xff ) << 24 ) +\r\n ( ( ( value >> 8 ) & 0xff ) << 16 ) +\r\n ( ( ( value >> 16 ) & 0xff ) << 8 ) +\r\n ( ( ( value >> 24 ) & 0xff ) << 0 );\r\n }", "title": "" }, { "docid": "07834d646f9178445157024dea503850", "score": "0.52344054", "text": "static int swapBits(int num)\n\t{\n\t\tint even = num & 0xAAAAAAAA;\n\t\t//shift it to make it in odd position\n\t\teven >>= 1;\n \n //0x55555555 is 0101 pattern\n\t\tint odd = num & 0x55555555;\n\t\t//shift it to make it in even position\n\t\todd <<= 1;\n\n\t\treturn (even | odd);\n\t}", "title": "" }, { "docid": "65c97850b7ce93b8719ad309f35a7fd6", "score": "0.5231747", "text": "public static void main(String[] args) {\n\n System.out.println(swapPair(83748));\n }", "title": "" }, { "docid": "e021db66fec938dde6464be4b6b3d3f9", "score": "0.52273494", "text": "public static void swap(int direction,int p[])\n\t{\n\t\t/*\n\t\t * look through job table for job that is not in memory\n\t\t * \t- check for state is new\n\t\t * use memory manager to allocate memory\n\t\t * \t- send job size\n\t\t * \t-if space found\t(addres returned >=0)\t\t\n\t\t * \t\t- put job in memory\n\t\t * \t\t- save address in pcb\n\t\t * \t\t- call siodrum with 0\n\t\t * -else (addres returned is -2(table not found) or -1(not enough sapce))\n\t\t * \t- use job table to find job with \n\t\t * \t\t\tleast priority less than job coming in and \n\t\t * \t\t\tsize > than\tsize of job coming in and\n\t\t\t\t\t\tnot latched and \n\t\t\t\t\t\tnot blocked\n\t\t\t\t\t\tif found send it back the drum and free its memory\n\t\t\t\t\t\tthen allocate the new job\n\t\t * */\n\t\tif(direction==1)\n\t\t{\n\t\t\tsos.siodrum(toDrum.getJobNum(),toDrum.getJobSize(),toDrum.getMemLoc(),1);\n\t\t\tdrumWorking = true;\n\t\t\tbeingSwapped = toDrum;\n\t\t\ttoDrum = null;\n\t\t\tfound = true;\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(ProcessControlBlock e:jobTable)\n\t\t\t{\n\t\t\t\tif(e.getState()==1&&!drumWorking)\n\t\t\t\t{\n\t\t\t\t\tint memAddress;\n\t\t\t\t\tmemAddress = MemoryManager.allocate(e.getJobSize(), freeSpaceTable);\n\t\t\t\t\tif(memAddress>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\te.setMemLoc(memAddress);\n\t\t\t\t\t\tsos.siodrum(e.getJobNum(),e.getJobSize(),e.getMemLoc(),0);\n\t\t\t\t\t\tdrumWorking = true;\n\t\t\t\t\t\tbeingSwapped = e;\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfound = false;\n\t\t\t\t\t\tSystem.out.println(\"need to swap out a job to make space for: \" + p[1]);\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\tif(!found)\n\t\t{\n\t\t\tfor(ProcessControlBlock e:readyQueue)\n\t\t\t{\n\t\t\t\t//printCompareTwoJobs(e,jobTable.getLast());\n\t\t\t\tif( e.getJobSize()>jobTable.getLast().getJobSize()&&\n\t\t\t\t\te.getPriority()<jobTable.getLast().getPriority()&&\n\t\t\t\t\t!e.isDoingIO()&&\n\t\t\t\t\t!e.isBlocked()&&\t\t\t\t\t\n\t\t\t\t\te.getState()!=3\n\t\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\ttoDrum = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(toDrum!=null)\n\t\t\t{\n\t\t\t\tswap(1,p);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "21ad231b138908534fcdef935875bd36", "score": "0.52170014", "text": "private static void swap(int i, int j, int[] array) {\n array[i] = array[i] ^ array[j];\r\n array[j] = array[i] ^ array[j];\r\n array[i] = array[i] ^ array[j];\r\n\r\n return;\r\n }", "title": "" }, { "docid": "974fa56dbd1264a87c29e92dd12f71ff", "score": "0.521088", "text": "public static int pairwiseSwap (int a){\n\t\tint odd_mask = 0xAAAAAAAA;\n\t\tint even_mask = 0x55555555;\n\t\treturn (odd_mask >>> 1) | (even_mask << 1);//Use logical right shift\n\t}", "title": "" }, { "docid": "62af56bebff3f24bb37de6542c2951c2", "score": "0.5195525", "text": "public void swap(){\r\n \tNetworkAddress tmp = source;\r\n \tsource = destination;\r\n \tdestination = tmp;\r\n }", "title": "" }, { "docid": "4454ff3db3c8e96f0ec7abcec29f337c", "score": "0.5195348", "text": "@Test\n public void testSwap() throws Exception {\n }", "title": "" }, { "docid": "a5c7b4fbfbd902261eca7d69beff7279", "score": "0.51715094", "text": "int balance() {\n/* 850 */ return (byte)this.info;\n/* */ }", "title": "" }, { "docid": "81b2879fa28d63aad185b15729ded2b9", "score": "0.5164831", "text": "private void swap()\r\n\t{\r\n\t\tside = side.opposite();\r\n\t}", "title": "" }, { "docid": "b26e12a28c40c6433ef9d1667ac17855", "score": "0.515881", "text": "public void updateTransB4bup() {\n\t\tprefs=getSharedPreferences (PREFNAME, MODE_PRIVATE);\n\t\tint thisTrans=prefs.getInt(\"transB4bup\",0);\n\n\t\tthisTrans=thisTrans+1;\n\t\tSharedPreferences.Editor editor=prefs.edit();\n\t\teditor.putInt(\"transB4bup\", thisTrans);\n\t\teditor.commit();\n\t}", "title": "" }, { "docid": "1e61329b14f10dcec0389053e0af0a54", "score": "0.5152705", "text": "@Test\n public void testSwapLastTwo() {\n setUpCorrect();\n assertEquals(15, slidingTile.getBoard().getTile(3, 2).getId());\n assertEquals(25, slidingTile.getBoard().getTile(3, 3).getId());\n slidingTile.getBoard().swapTiles(3, 3, 3, 2);\n assertEquals(25, slidingTile.getBoard().getTile(3, 2).getId());\n assertEquals(15, slidingTile.getBoard().getTile(3, 3).getId());\n }", "title": "" }, { "docid": "5f934fcc09ccda1cf8245d82055bdbaf", "score": "0.5148967", "text": "@org.jetbrains.annotations.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object unregisterWallet(@org.jetbrains.annotations.NotNull com.bitcoin.mwallet.zion.ZionId r6, @org.jetbrains.annotations.NotNull com.bitcoin.mwallet.zion.ZionWalletName r7, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {\n /*\n r5 = this;\n boolean r0 = r8 instanceof com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$1\n if (r0 == 0) goto L_0x0014\n r0 = r8\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$1 r0 = (com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r1 = r1 & r2\n if (r1 == 0) goto L_0x0014\n int r8 = r0.label\n int r8 = r8 - r2\n r0.label = r8\n goto L_0x0019\n L_0x0014:\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$1 r0 = new com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$1\n r0.<init>(r5, r8)\n L_0x0019:\n java.lang.Object r8 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 1\n if (r2 == 0) goto L_0x0042\n if (r2 != r3) goto L_0x003a\n java.lang.Object r6 = r0.L$3\n com.htc.htcwalletsdk.Export.HtcWalletSdkManager r6 = (com.htc.htcwalletsdk.Export.HtcWalletSdkManager) r6\n java.lang.Object r6 = r0.L$2\n com.bitcoin.mwallet.zion.ZionWalletName r6 = (com.bitcoin.mwallet.zion.ZionWalletName) r6\n java.lang.Object r6 = r0.L$1\n com.bitcoin.mwallet.zion.ZionId r6 = (com.bitcoin.mwallet.zion.ZionId) r6\n java.lang.Object r6 = r0.L$0\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA r6 = (com.bitcoin.mwallet.zion.ZionRepositoryZKMA) r6\n kotlin.ResultKt.throwOnFailure(r8)\n goto L_0x0065\n L_0x003a:\n java.lang.IllegalStateException r6 = new java.lang.IllegalStateException\n java.lang.String r7 = \"call to 'resume' before 'invoke' with coroutine\"\n r6.<init>(r7)\n throw r6\n L_0x0042:\n kotlin.ResultKt.throwOnFailure(r8)\n com.htc.htcwalletsdk.Export.HtcWalletSdkManager r8 = r5.manager\n if (r8 == 0) goto L_0x0067\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$Companion r2 = Companion\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$$inlined$let$lambda$1 r4 = new com.bitcoin.mwallet.zion.ZionRepositoryZKMA$unregisterWallet$$inlined$let$lambda$1\n r4.<init>(r8, r0, r7, r6)\n kotlin.jvm.functions.Function0 r4 = (kotlin.jvm.functions.Function0) r4\n r0.L$0 = r5\n r0.L$1 = r6\n r0.L$2 = r7\n r0.L$3 = r8\n r0.label = r3\n java.lang.String r6 = \"unregisterWallet\"\n java.lang.Object r8 = r2.tryZionCall(r6, r4, r0)\n if (r8 != r1) goto L_0x0065\n return r1\n L_0x0065:\n kotlin.Unit r8 = (kotlin.Unit) r8\n L_0x0067:\n kotlin.Unit r6 = kotlin.Unit.INSTANCE\n return r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.zion.ZionRepositoryZKMA.unregisterWallet(com.bitcoin.mwallet.zion.ZionId, com.bitcoin.mwallet.zion.ZionWalletName, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "title": "" }, { "docid": "39e39f7449d2e8b3d971f1258afe2f20", "score": "0.5148138", "text": "int updateByPrimaryKeySelective(UserAccountBalance record);", "title": "" }, { "docid": "2f0cc1ac10d76c4efce3e5829f8821ea", "score": "0.5143488", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:50.410 -0400\", hash_original_method = \"43F1953459ED4A6D7CC6DB0D2AF14731\", hash_generated_method = \"92A00B9BBBAE9E5C3293B909A1EA1F62\")\n \npublic static long readSwappedUnsignedInteger(byte[] data, int offset) {\r\n long low = ( ( ( data[ offset + 0 ] & 0xff ) << 0 ) +\r\n ( ( data[ offset + 1 ] & 0xff ) << 8 ) +\r\n ( ( data[ offset + 2 ] & 0xff ) << 16 ) );\n\r\n long high = data[ offset + 3 ] & 0xff;\n\r\n return (high << 24) + (0xffffffffL & low); \r\n }", "title": "" }, { "docid": "3622d0eccea26ab1676d7787b35610d0", "score": "0.5126141", "text": "private void swap(int left, int right) {\n\n long tmp_key = keyArray[left];\n keyArray[left] = keyArray[right];\n keyArray[right] = tmp_key;\n\n int tmp_offset = offsetArray[left];\n offsetArray[left] = offsetArray[right];\n offsetArray[right] = tmp_offset;\n }", "title": "" }, { "docid": "df64085e16e961e13d3bc06aa752d041", "score": "0.51134306", "text": "void balance(int level) {\n/* 859 */ this.info &= 0xFFFFFF00;\n/* 860 */ this.info |= level & 0xFF;\n/* */ }", "title": "" }, { "docid": "d33b998e27519f6c8db5cb68dfac446d", "score": "0.51044863", "text": "public static void main(String[] args) {\n\t\tint a,b,x;\n\t\t\n\t\ta=Integer.parseInt(args[0]);\n\t\tb=Integer.parseInt(args[1]);\n\t\t\n\t\tSystem.out.println(\"before swapping: \"+a+b);\n\t\t\n\t\tx=a;\n\t\ta=b;\n\t\tb=x;\n\t\t\n\t\tSystem.out.println(\"after swapping: \"+a+b);\n\t}", "title": "" }, { "docid": "12a9c738e739be48b65838f91161f89d", "score": "0.509405", "text": "Pair<Account, Transaction> saveTransaction(Account account, Transaction transaction);", "title": "" }, { "docid": "9d3804bab7cb44cd654c5bc29363ed4c", "score": "0.50721574", "text": "private static void swapTwoNumbers(){\n int x = 10;\n int y = 20;\n x = x ^ y;\n y = x ^ y;\n x = x ^ y;\n System.out.println(\"Swap two numbers x = \"+ x +\" \"+\"y = \"+y);\n }", "title": "" }, { "docid": "87dfa82802568bd938dd84997635aff0", "score": "0.5071204", "text": "@Test\n public void testSwap() {\n System.out.println(\"swap\");\n int prviIndeks = 0;\n int drugiIndeks = 0;\n long milisekunde = 0L;\n boolean korak = false;\n PoljeSort instance = new PoljeSort();\n instance.swap(prviIndeks, drugiIndeks, milisekunde, korak);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "e1f0ed9da7703df355fd072da60a2cf0", "score": "0.5069223", "text": "void incorrectPin(int maxAttempts, CardStateTransitions st) {\n }", "title": "" }, { "docid": "068118f0c8aee384a8d5099cc25b5cbe", "score": "0.50657034", "text": "protected void rebalance() {\n if (fHashMultipliers == null) {\n fHashMultipliers = new int[MULTIPLIERS_SIZE];\n }\n PrimeNumberSequenceGenerator.generateSequence(fHashMultipliers);\n rehashCommon(fBuckets.length);\n }", "title": "" }, { "docid": "43c3a15a35c6cf8776a9e8a323a6dc53", "score": "0.50611675", "text": "@Test\r\n public void testUpdateAccount2() \r\n {\r\n \tcard1 = new Card(0, 1);\r\n \thand.add(card1);\r\n \tcard2 = new Card(1, 4);\r\n \thand.add(card2);\r\n \tcard3 = new Card(3, 6);\r\n \thand.add(card3);\r\n \tcard4 = new Card(1, 8);\r\n \thand.add(card4);\r\n \tcard5 = new Card(0, 10);\r\n \thand.add(card5);\r\n \t\r\n \tAccount account = new Account(\"Peter\");\r\n \tpoker = new PokerPlayer(5,hand,account); \r\n poker.updateAccount(poker.getAccountBalance(),0);\r\n int result = (int) poker.getAccountBalance();\r\n assertEquals(0, result);\r\n }", "title": "" }, { "docid": "195389b6b7ab731e935153e9d14bb226", "score": "0.5054589", "text": "private void swap() {\n\t\ttoDo = complete;\n\t\tcomplete = temp;\n\t}", "title": "" }, { "docid": "f3c9280e4170e7d8407ccfbdf5fc2242", "score": "0.50508", "text": "private String swapRows(String key, int r1, int r2) {\t\n\t\treturn (r1 == r2) ? swapRows(key, new SecureRandom().nextInt(4), new SecureRandom().nextInt(4)) : permute(key, r1, r2, true);\n\t}", "title": "" }, { "docid": "e98e425d22e547cc87ac35a9b4e79558", "score": "0.5040071", "text": "private static <T> void swap(T[] array, int a, int b) {\n\t\tT tmp = array[a];\n\t\tarray[a] = array[b];\n\t\tarray[b] = tmp;\n\t}", "title": "" }, { "docid": "9567e85eec6d98688329e0cbb7aa170f", "score": "0.5039963", "text": "void lockAccount(String accountRef);", "title": "" }, { "docid": "22a5d5c1b5dd13ffe007b37048d290cb", "score": "0.50249654", "text": "private static void swap(int x[], int a, int b) {\n\tint t = x[a];\n\tx[a] = x[b];\n\tx[b] = t;\n }", "title": "" }, { "docid": "5cbebf5166346ea89f17c3d99636bd73", "score": "0.50233454", "text": "private void testForSwap() {\n\t\tif (getFirstNumSign().equals(\"-\") && getOperandSign().equals(\"-\") && isSecondNumNegative()\n\t\t\t\t&& getBigger().equals(getNumTwo())\n\t\t\t\t|| getFirstNumSign().equals(\"-\") && !getOperandSign().equals(\"-\") && !isSecondNumNegative()\n\t\t\t\t\t\t&& getBigger().equals(getNumTwo())\n\t\t\t\t|| !getFirstNumSign().equals(\"-\") && !getOperandSign().equals(\"-\") && isSecondNumNegative()\n\t\t\t\t\t\t&& getBigger().equals(getNumTwo())\n\t\t\t\t|| getBigger().equals(getNumTwo()) && getFirstNumSign().equals(\"+\") && getOperandSign().equals(\"-\")\n\t\t\t\t\t\t&& !isSecondNumNegative()) {\n\t\t\tsetSwap(true);\n\t\t\tswap();\n\t\t}\n\t}", "title": "" }, { "docid": "691bed36023b0436ef5beba50e7dc8a9", "score": "0.50226974", "text": "public void swapPlayers() {\r\n\t\tint temp = guessingPlayer;\r\n\t\tguessingPlayer = editingPlayer;\r\n\t\teditingPlayer = temp;\r\n\t\tanswer = \"\";\r\n\t\ttip = \"\";\r\n\t}", "title": "" }, { "docid": "e9bd1c75b64e6a89a76be2cb3cfe0d4d", "score": "0.5017842", "text": "private static void swap(int[] array, int a, int b) {\n int temp = array[a];\n array[a] = array[b];\n array[b] = temp;\n }", "title": "" }, { "docid": "25328114998a0bd414b1b6dca001d53d", "score": "0.501688", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:50.418 -0400\", hash_original_method = \"ACA20742F9E22A6D5539033955270B30\", hash_generated_method = \"617FEADF89CAB1A9DD7AEACA6F0D2EF6\")\n \npublic static long readSwappedUnsignedInteger(InputStream input)\r\n throws IOException\r\n {\r\n int value1 = read( input );\r\n int value2 = read( input );\r\n int value3 = read( input );\r\n int value4 = read( input );\n\r\n long low = ( ( ( value1 & 0xff ) << 0 ) +\r\n ( ( value2 & 0xff ) << 8 ) +\r\n ( ( value3 & 0xff ) << 16 ) );\n\r\n long high = value4 & 0xff;\n\r\n return (high << 24) + (0xffffffffL & low); \r\n }", "title": "" }, { "docid": "f84f52a324a8eaa9b6f5019112ce68bc", "score": "0.50007933", "text": "public static void main(String[] args) {\n\t\tint a =1;\n\t\tint b =2 ;\n\t\t/*int c;\n\t\t\n c=a;\n a=b;\n b=c;\t\n \n System.out.println(\"After Swapping the values are\" +a+\" \"+b);*/\n \n //logic 2 -- using incremnetal and decre,ental operator\n \n a=a+b;//3\n b=a-b; //3-2 = 1\n a=a-b;\n System.out.println(\"After Swapping the values are\" +a+\" \"+b);\n\n \n \n\t}", "title": "" }, { "docid": "a990d29614866a14a717821535b852ca", "score": "0.50003093", "text": "@Override\n\tprotected void swap(AbFunctions node)\n\t{\n\t\t//Does nothing at this level\n\t}", "title": "" }, { "docid": "a4c489c71c873ec9628dadec9f72a691", "score": "0.4997329", "text": "private void ChangePIN(APDU apdu, byte[] buffer) {\n\t\t/*\n\t\t * Here I suppose the PIN code is small enough that 2 of them enter in\n\t\t * the buffer TODO: Verify the assumption and eventually adjust code to\n\t\t * support reading PINs in multiple read()s\n\t\t */\n\t\tbyte pin_nb = buffer[ISO7816.OFFSET_P1];\n\t\tif ((pin_nb < 0) || (pin_nb >= MAX_NUM_PINS))\n\t\t\tISOException.throwIt(SW_INCORRECT_P1);\n\t\tOwnerPIN pin = pins[pin_nb];\n\t\tif (pin == null)\n\t\t\tISOException.throwIt(SW_INCORRECT_P1);\n\t\tif (buffer[ISO7816.OFFSET_P2] != (byte) 0x00)\n\t\t\tISOException.throwIt(SW_INCORRECT_P2);\n\t\tshort avail = Util.makeShort((byte) 0x00, buffer[ISO7816.OFFSET_LC]);\n\t\tif (apdu.setIncomingAndReceive() != avail)\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\n\t\t// At least 1 charachter for each PIN code\n\t\tif (avail < 4)\n\t\t\tISOException.throwIt(SW_INVALID_PARAMETER);\n\t\tbyte pin_size = buffer[ISO7816.OFFSET_CDATA];\n\t\tif (avail < (short) (1 + pin_size + 1))\n\t\t\tISOException.throwIt(SW_INVALID_PARAMETER);\n\t\tif (!CheckPINPolicy(buffer, (short) (ISO7816.OFFSET_CDATA + 1), pin_size))\n\t\t\tISOException.throwIt(SW_INVALID_PARAMETER);\n\t\tbyte new_pin_size = buffer[(short) (ISO7816.OFFSET_CDATA + 1 + pin_size)];\n\t\tif (avail < (short) (1 + pin_size + 1 + new_pin_size))\n\t\t\tISOException.throwIt(SW_INVALID_PARAMETER);\n\t\tif (!CheckPINPolicy(buffer, (short) (ISO7816.OFFSET_CDATA + 1 + pin_size + 1), new_pin_size))\n\t\t\tISOException.throwIt(SW_INVALID_PARAMETER);\n\t\tif (pin.getTriesRemaining() == (byte) 0x00)\n\t\t\tISOException.throwIt(SW_IDENTITY_BLOCKED);\n\t\tif (!pin.check(buffer, (short) (ISO7816.OFFSET_CDATA + 1), pin_size)) {\n\t\t\tLogoutIdentity(pin_nb);\n\t\t\tISOException.throwIt(SW_AUTH_FAILED);\n\t\t}\n\t\tpin.update(buffer, (short) (ISO7816.OFFSET_CDATA + 1 + pin_size + 1), new_pin_size);\n\t\t// JC specifies this resets the validated flag. So we do.\n\t\tlogged_ids &= (short) ((short) 0xFFFF ^ (0x01 << pin_nb));\n\t}", "title": "" }, { "docid": "0cb0fd8f1e18fdb07b477d03b0e3a00c", "score": "0.49921086", "text": "public static int swap(int value)\r\n {\r\n int b1 = (value >> 0) & 0xff;\r\n int b2 = (value >> 8) & 0xff;\r\n int b3 = (value >> 16) & 0xff;\r\n int b4 = (value >> 24) & 0xff;\r\n\r\n return b1 << 24 | b2 << 16 | b3 << 8 | b4 << 0;\r\n }", "title": "" }, { "docid": "7380d3f609402c20cadc40692900103b", "score": "0.4981366", "text": "public static void payRoyalty(int tileNo) throws InterruptedException {\n\r\n\t\tint currentPlayerID = Game.currentPlayer;\r\n\t\t\r\n\t\tint royalty = ((App) Board.tiles[tileNo]).getRoyaltyPrice();\r\n\t\tint owner = ((App) Board.tiles[tileNo]).getOwner();\r\n\t\tint noBeta = ((App) Board.tiles[tileNo]).getNumBeta();\r\n\t\tint noFinal = ((App) Board.tiles[tileNo]).getNumFinal();\r\n\t\tint betaRent = ((App) Board.tiles[tileNo]).getBetaRentPrice();\r\n\t\tint finalRent = ((App) Board.tiles[tileNo]).getFinalRentPrice();\r\n\r\n\t\tint ownerCash = Game.players.get(owner).getPlayerCash();\r\n\t\tString ownerName = Game.players.get(owner).getPlayerName();\r\n\t\tint playerCash = Game.players.get(currentPlayerID).getPlayerCash();\r\n\t\tString playerName = Game.players.get(currentPlayerID).getPlayerName();\r\n\r\n\t\tif (noFinal == 1) {\r\n\r\n\t\t\tboolean pay = checkResources(finalRent, currentPlayerID);\r\n\r\n\t\t\tif (pay == true) {\r\n\t\t\t\tint balanceNewOwner = ownerCash + finalRent;\r\n\t\t\t\tint balanceNewPlayer = playerCash - finalRent;\r\n\r\n\t\t\t\tGame.players.get(owner).setPlayerCash(balanceNewOwner);\r\n\t\t\t\tGame.players.get(currentPlayerID).setPlayerCash(balanceNewPlayer);\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tSystem.out.println(\"\\n\"+playerName + \" has paid \" + finalRent + \" BitCoins to \" + ownerName);\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t\tGame.players.get(currentPlayerID).displayResources();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tint balanceNewOwner = ownerCash + playerCash;\r\n\t\t\t\tint balanceNewPlayer = 0;\r\n\r\n\t\t\t\tGame.players.get(owner).setPlayerCash(balanceNewOwner);\r\n\t\t\t\t\r\n\t\t\t\tGame.players.get(currentPlayerID).setPlayerCash(balanceNewPlayer);\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(playerName + \" has insufficent BitCoins, the game will now end\");\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tGame.endGame();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\r\n\t\t\tint toPay = royalty + (noBeta * betaRent);\r\n\t\t\tboolean pay = checkResources(toPay, currentPlayerID);\r\n\r\n\t\t\tif (pay == true) {\r\n\t\t\t\tint balanceNewOwner = ownerCash + toPay;\r\n\t\t\t\tint balanceNewPlayer = playerCash - toPay;\r\n\r\n\t\t\t\tGame.players.get(owner).setPlayerCash(balanceNewOwner);\r\n\t\t\t\tGame.players.get(currentPlayerID).setPlayerCash(balanceNewPlayer);\r\n\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tSystem.out.println(\"\\n\"+playerName + \" has paid \" + toPay + \" BitCoins to \" + ownerName);\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t\tGame.players.get(currentPlayerID).displayResources();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tint balanceNewOwner = ownerCash + playerCash;\r\n\t\t\t\tint balanceNewPlayer = 0;\r\n\r\n\t\t\t\tGame.players.get(owner).setPlayerCash(balanceNewOwner);\r\n\t\t\t\t\r\n\t\t\t\tGame.players.get(currentPlayerID).setPlayerCash(balanceNewPlayer);\r\n\t\t\t\tSystem.out.println(playerName + \" has insufficent BitCoins, the game will now end\");\r\n\t\t\t\tGame.endGame();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "26da57b1c2dda34d399a27e1e6a58f5f", "score": "0.4978903", "text": "public int makeBet(int account)\r\n\t{\r\n\t\treturn 10;\r\n\t}", "title": "" }, { "docid": "97575d281b05cab9ffb687e72e3d734d", "score": "0.4978103", "text": "public int getSwapWith() {\n return swapWith_;\n }", "title": "" }, { "docid": "7fead17ae175d69400555e41f8b715ef", "score": "0.49591509", "text": "void updateBank(Account bank, int result);", "title": "" }, { "docid": "4c50069f657f57925635ea7b6e459062", "score": "0.49584758", "text": "static int swapBits(int x, int p1, int p2, int n)\n {\n int set1 = (x >> p1) & ((1 << n) - 1);\n\n // Move all bits of second set\n //to rightmost side\n int set2 = (x >> p2) & ((1 << n) - 1);\n\n // XOR the two sets\n int xor = (set1 ^ set2);\n\n // Put the xor bits back to\n // their original positions\n xor = (xor << p1) | (xor << p2);\n\n // XOR the 'xor' with the original number\n // so that the two sets are swapped\n int result = x ^ xor;\n\n return result;\n }", "title": "" }, { "docid": "dbbb9589a36f076d4079d1f0fa81be04", "score": "0.49564585", "text": "public void setAdjustaccountinstruction(Adjustaccounttransactionparameters param){\n localAdjustaccountinstructionTracker = param != null;\n \n this.localAdjustaccountinstruction=param;\n \n\n }", "title": "" }, { "docid": "51d2d505ccba145f384cf98555568a70", "score": "0.49485463", "text": "private void swap(int pL, int pR){\n\t\n\tint temp = A[pL];\n\tA[pL] = A[pR];\n\tA[pR] = temp;\n\t\n}", "title": "" }, { "docid": "6b35a2fd8b2d24e508732d7b40c2f8f1", "score": "0.4939938", "text": "public static void Swap(byte[] S, int s, int t) {\n byte temp = 0;\n temp = S[s];\n S[s] = S[t];\n S[t] = temp;\n\n }", "title": "" }, { "docid": "11df2114d3712df77e19249edde6d8ab", "score": "0.49320626", "text": "public void swap(int startA, int startB, int lengthB);", "title": "" }, { "docid": "3060fa403399aa414a296b364412bfe2", "score": "0.49262917", "text": "public void swap() {\n\t\tString tmp1 = \"\";\n\t\tString tmp2 = \"\";\n\t\ttmp1 = getNumOne();\n\t\ttmp2 = getNumTwo();\n\t\tsetNumOne(tmp2);\n\t\tsetNumTwo(tmp1);\n\t}", "title": "" }, { "docid": "3390277a019f573c3cf5d0c508969e9a", "score": "0.49226758", "text": "public void pay(int amount){ this.amountOfMoney -= amount; }", "title": "" }, { "docid": "f76af33b8634e07e7faaa12d2fb77368", "score": "0.49062383", "text": "long getFrozenBalance();", "title": "" }, { "docid": "564139db70addcb56b48b931e54ce568", "score": "0.49004033", "text": "@DSSafe(DSCat.SAFE_LIST)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:50.404 -0400\", hash_original_method = \"62386991685EFA23920441655B819944\", hash_generated_method = \"5BBB9FC117A95CDC8E04F751688B781F\")\n \npublic static long swapLong(long value) {\r\n return\r\n ( ( ( value >> 0 ) & 0xff ) << 56 ) +\r\n ( ( ( value >> 8 ) & 0xff ) << 48 ) +\r\n ( ( ( value >> 16 ) & 0xff ) << 40 ) +\r\n ( ( ( value >> 24 ) & 0xff ) << 32 ) +\r\n ( ( ( value >> 32 ) & 0xff ) << 24 ) +\r\n ( ( ( value >> 40 ) & 0xff ) << 16 ) +\r\n ( ( ( value >> 48 ) & 0xff ) << 8 ) +\r\n ( ( ( value >> 56 ) & 0xff ) << 0 );\r\n }", "title": "" }, { "docid": "e347f285f3c1f887b6de52704c561b02", "score": "0.49003455", "text": "public boolean hasSwapWith() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "a133b85f587dca3a56c0af5ad07ea7eb", "score": "0.48980254", "text": "static void swap(int[] arr, int a, int b) {\n int temp = arr[a];\n arr[a] = arr[b];\n arr[b] = temp;\n }", "title": "" }, { "docid": "f5b2675c8d5788071aeac51103ce30d4", "score": "0.48973128", "text": "@Test\n public void balanceNotEnough() {\n long exchangeId = 1;\n String tokenId = \"_\";\n long quant = 100_000000L;\n String buyTokenId = \"abc\";\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_SECOND);\n AccountWrapper accountWrapper = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountWrapper.getAssetMap();\n accountWrapper.setBalance(quant - 1);\n Assert.assertEquals(null, assetMap.get(buyTokenId));\n dbManager.getAccountStore().put(ownerAddress, accountWrapper);\n\n ExchangeTransactionOperator actuator = new ExchangeTransactionOperator(getContract(\n OWNER_ADDRESS_SECOND, exchangeId, tokenId, quant),\n dbManager);\n TransactionResultWrapper ret = new TransactionResultWrapper();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"balance is not enough\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n }\n }", "title": "" }, { "docid": "0b8eb57227255f5479727bcd09db7fcf", "score": "0.4880998", "text": "private static void swap(int[] data, int x, int y){\n\tint temp = data[x];\n\tdata[x] = data[y];\n\tdata[y] = temp;\n }", "title": "" }, { "docid": "80a69c2447445f35f13b9cc9b72e1b0c", "score": "0.48770756", "text": "@Test\n public void players_swap_current_player_makes_current_player_opposite_one_to_actual() {\n this.players.swapCurrentPlayer();\n //then\n assertEquals(players.getCurrentPlayer().getSign(), Sign.O);\n }", "title": "" }, { "docid": "19acfb5cc6c2555c877a7f6f5e1ebeed", "score": "0.48734006", "text": "public boolean hasSwapWith() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "3f09fcdfbce90ee6bbf7d0bd6bb19ea3", "score": "0.48729745", "text": "int insertSelective(UserAccountBalance record);", "title": "" }, { "docid": "5a6d5c1a5eaf4ef526d226f28bf6cd1d", "score": "0.48718503", "text": "@org.jetbrains.annotations.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object getWalletXPub(@org.jetbrains.annotations.NotNull com.bitcoin.mwallet.zion.ZionId r21, @org.jetbrains.annotations.NotNull com.bitcoin.mwallet.core.models.Coin r22, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super com.bitcoin.mwallet.zion.ZionResponse<com.bitcoin.mwallet.zion.ZionXPub>> r23) {\n /*\n r20 = this;\n r0 = r20\n r10 = r22\n r1 = r23\n boolean r2 = r1 instanceof com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$1\n if (r2 == 0) goto L_0x001a\n r2 = r1\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$1 r2 = (com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$1) r2\n int r3 = r2.label\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r3 & r4\n if (r3 == 0) goto L_0x001a\n int r1 = r2.label\n int r1 = r1 - r4\n r2.label = r1\n goto L_0x001f\n L_0x001a:\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$1 r2 = new com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$1\n r2.<init>(r0, r1)\n L_0x001f:\n r11 = r2\n java.lang.Object r1 = r11.result\n java.lang.Object r12 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r11.label\n r13 = 0\n r14 = 1\n if (r2 == 0) goto L_0x0055\n if (r2 != r14) goto L_0x004d\n java.lang.Object r2 = r11.L$4\n com.htc.htcwalletsdk.Export.HtcWalletSdkManager r2 = (com.htc.htcwalletsdk.Export.HtcWalletSdkManager) r2\n int r2 = r11.I$2\n int r2 = r11.I$1\n int r2 = r11.I$0\n java.lang.Object r2 = r11.L$3\n com.bitcoin.bitcoink.DerivationPath r2 = (com.bitcoin.bitcoink.DerivationPath) r2\n java.lang.Object r2 = r11.L$2\n com.bitcoin.mwallet.core.models.Coin r2 = (com.bitcoin.mwallet.core.models.Coin) r2\n java.lang.Object r2 = r11.L$1\n com.bitcoin.mwallet.zion.ZionId r2 = (com.bitcoin.mwallet.zion.ZionId) r2\n java.lang.Object r2 = r11.L$0\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA r2 = (com.bitcoin.mwallet.zion.ZionRepositoryZKMA) r2\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x00ea\n L_0x004d:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0055:\n kotlin.ResultKt.throwOnFailure(r1)\n java.util.Map<com.bitcoin.mwallet.core.models.Coin, com.bitcoin.bitcoink.DerivationPath> r1 = coinPaths\n java.lang.Object r1 = r1.get(r10)\n r15 = r1\n com.bitcoin.bitcoink.DerivationPath r15 = (com.bitcoin.bitcoink.DerivationPath) r15\n if (r15 == 0) goto L_0x00f8\n java.util.List r1 = r15.getPath()\n int r1 = r1.size()\n r2 = 3\n if (r1 == r2) goto L_0x0076\n com.bitcoin.mwallet.zion.ZionResponse r1 = new com.bitcoin.mwallet.zion.ZionResponse\n com.bitcoin.mwallet.zion.ZionError r2 = com.bitcoin.mwallet.zion.ZionError.BAD_ARGUMENTS\n r1.<init>(r13, r2)\n return r1\n L_0x0076:\n java.util.List r1 = r15.getPath()\n r2 = 0\n java.lang.Object r1 = r1.get(r2)\n com.bitcoin.bitcoink.DerivationPath$Path r1 = (com.bitcoin.bitcoink.DerivationPath.Path) r1\n int r9 = r1.getPath()\n java.util.List r1 = r15.getPath()\n java.lang.Object r1 = r1.get(r14)\n com.bitcoin.bitcoink.DerivationPath$Path r1 = (com.bitcoin.bitcoink.DerivationPath.Path) r1\n int r8 = r1.getPath()\n java.util.List r1 = r15.getPath()\n r2 = 2\n java.lang.Object r1 = r1.get(r2)\n com.bitcoin.bitcoink.DerivationPath$Path r1 = (com.bitcoin.bitcoink.DerivationPath.Path) r1\n int r7 = r1.getPath()\n com.htc.htcwalletsdk.Export.HtcWalletSdkManager r6 = r0.manager\n if (r6 == 0) goto L_0x00ef\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$Companion r5 = Companion\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$$inlined$let$lambda$1 r16 = new com.bitcoin.mwallet.zion.ZionRepositoryZKMA$getWalletXPub$$inlined$let$lambda$1\n r1 = r16\n r2 = r6\n r3 = r11\n r4 = r21\n r13 = r5\n r5 = r9\n r14 = r6\n r6 = r8\n r17 = r7\n r18 = r12\n r12 = r8\n r8 = r22\n r19 = r13\n r13 = r9\n r9 = r15\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9)\n r1 = r16\n kotlin.jvm.functions.Function0 r1 = (kotlin.jvm.functions.Function0) r1\n r11.L$0 = r0\n r2 = r21\n r11.L$1 = r2\n r11.L$2 = r10\n r11.L$3 = r15\n r11.I$0 = r13\n r11.I$1 = r12\n r2 = r17\n r11.I$2 = r2\n r11.L$4 = r14\n r2 = 1\n r11.label = r2\n java.lang.String r2 = \"getWalletXPub\"\n r3 = r19\n java.lang.Object r1 = r3.tryZionCall(r2, r1, r11)\n r2 = r18\n if (r1 != r2) goto L_0x00ea\n return r2\n L_0x00ea:\n com.bitcoin.mwallet.zion.ZionResponse r1 = (com.bitcoin.mwallet.zion.ZionResponse) r1\n if (r1 == 0) goto L_0x00ef\n return r1\n L_0x00ef:\n com.bitcoin.mwallet.zion.ZionResponse r1 = new com.bitcoin.mwallet.zion.ZionResponse\n com.bitcoin.mwallet.zion.ZionError r2 = com.bitcoin.mwallet.zion.ZionError.NO_MANAGER\n r3 = 0\n r1.<init>(r3, r2)\n return r1\n L_0x00f8:\n r3 = r13\n com.bitcoin.mwallet.zion.ZionResponse r1 = new com.bitcoin.mwallet.zion.ZionResponse\n com.bitcoin.mwallet.zion.ZionError r2 = com.bitcoin.mwallet.zion.ZionError.BAD_ARGUMENTS\n r1.<init>(r3, r2)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.zion.ZionRepositoryZKMA.getWalletXPub(com.bitcoin.mwallet.zion.ZionId, com.bitcoin.mwallet.core.models.Coin, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "title": "" }, { "docid": "dd8d39474a0fb7c8fb14d3a55f81a494", "score": "0.48694342", "text": "void payType(int t) {notAllowed();}", "title": "" }, { "docid": "7201a0b37bced0c5bc35760c0a35d093", "score": "0.48664972", "text": "private static void swap(Table t, int row1, int col1, int row2, int col2) {\n\t\tassignment_counter++; // var temp is assigned\n\t\tfunction_counter = function_counter + 4; // 3 more function calls for setTableValue() and one for this one: swap().\n\t\tint temp = t.getTableValue(row1, col1);\n\t\tt.setTableValue(row1, col1, t.getTableValue(row2, col2));\n\t\tt.setTableValue(row2, col2, temp);\n\t}", "title": "" }, { "docid": "09ddfbbab2ac273e5181c3a0b6c17acf", "score": "0.48600036", "text": "private void frozenaccount() {\n\t\tSystem.out.println(\"请输入要冻结账户\");\n\t\tString name = input.next();\n\t\tAccount account = bank.findbyname(name);\n\t\tif(account==null) {\n\t\t\tSystem.out.println(\"此账户不存在\");\n\t\t} else {\n\t\t\taccount.setState(false);\n\t\t}\n\t}", "title": "" }, { "docid": "3f0456c9bbd655353106a60b267ea0b1", "score": "0.4856688", "text": "private static void swap(int[] input,int index1,int index2){\n int temp = input[index1];\n input[index1] = input[index2];\n input[index2] = temp;\n }", "title": "" }, { "docid": "da279a7eb0bae70a3361d42a413b3149", "score": "0.48544478", "text": "public int getSwapWith() {\n return swapWith_;\n }", "title": "" }, { "docid": "c2250cfc121147e595a28a22cf46fa44", "score": "0.48517764", "text": "private void swap(int[] array, int l, int r) {\n int tmp = array[r];\n array[r] = array[l];\n array[l] = tmp;\n }", "title": "" }, { "docid": "2f7c5c79abcab04efc559d2d5a4ec5b2", "score": "0.4841013", "text": "public static void main(String[] args) {\n int x = 100;\n System.out.println(swapNibbles(x));\n\t}", "title": "" }, { "docid": "7e35a7c34d7d5aa6c4efc4286871733f", "score": "0.48373425", "text": "public void swap(int firstIndex, int secondIndex){\n \n //store the value in the placeHolder\n int placeHolder = intArray.get(firstIndex);\n \n //remove the value at the currentMaxIndex from the array\n intArray.set(firstIndex, intArray.get(secondIndex));\n \n //add the value to the back\n intArray.set(secondIndex, placeHolder);\n}", "title": "" }, { "docid": "79298cca1c866664acf99d0a66204598", "score": "0.48298183", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the numbers you want to swap:\");\n\t\tScanner in=new Scanner(System.in);\n\t\tint a=in.nextInt();\n\t\tint b=in.nextInt();\n\t\tint temp;\n\t\ttemp=a;\n\t\ta=b;\n\t\tb=temp;\n\t\tSystem.out.println(\"Swapped numbers are\"+a+\" \"+b);\n\t\tin.close();\n\t}", "title": "" }, { "docid": "9e565de84220b0078fcb52a9ac81d8bc", "score": "0.48235765", "text": "private static void freezeAccount(Account account) {\n if(account instanceof Savings)\n ((Savings) account).setStatus(Status.FROZEN);\n else if(account instanceof CheckingAccount)\n ((CheckingAccount)account).setStatus(Status.FROZEN);\n else if(account instanceof StudentChecking)\n ((StudentChecking)account).setStatus(Status.FROZEN);\n }", "title": "" }, { "docid": "0dc3003dd8563c5108b06369372663a2", "score": "0.48215914", "text": "private void UnblockPIN(APDU apdu, byte[] buffer) {\n\t\tbyte pin_nb = buffer[ISO7816.OFFSET_P1];\n\t\tif ((pin_nb < 0) || (pin_nb >= MAX_NUM_PINS))\n\t\t\tISOException.throwIt(SW_INCORRECT_P1);\n\t\tOwnerPIN pin = pins[pin_nb];\n\t\tOwnerPIN ublk_pin = ublk_pins[pin_nb];\n\t\tif (pin == null)\n\t\t\tISOException.throwIt(SW_INCORRECT_P1);\n\t\tif (ublk_pin == null)\n\t\t\tISOException.throwIt(SW_INTERNAL_ERROR);\n\t\t// If the PIN is not blocked, the call is inconsistent\n\t\tif (pin.getTriesRemaining() != 0)\n\t\t\tISOException.throwIt(SW_OPERATION_NOT_ALLOWED);\n\t\tif (buffer[ISO7816.OFFSET_P2] != 0x00)\n\t\t\tISOException.throwIt(SW_INCORRECT_P2);\n\t\tshort numBytes = Util.makeShort((byte) 0x00, buffer[ISO7816.OFFSET_LC]);\n\t\t/*\n\t\t * Here I suppose the PIN code is small enough to fit into the buffer\n\t\t * TODO: Verify the assumption and eventually adjust code to support\n\t\t * reading PIN in multiple read()s\n\t\t */\n\t\tif (numBytes != apdu.setIncomingAndReceive())\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\n\t\tif (!CheckPINPolicy(buffer, ISO7816.OFFSET_CDATA, (byte) numBytes))\n\t\t\tISOException.throwIt(SW_INVALID_PARAMETER);\n\t\tif (!ublk_pin.check(buffer, ISO7816.OFFSET_CDATA, (byte) numBytes))\n\t\t\tISOException.throwIt(SW_AUTH_FAILED);\n\t\tpin.resetAndUnblock();\n\t}", "title": "" }, { "docid": "e2487eb4900765ec3e9d8bb45269a659", "score": "0.48195374", "text": "void setBalance();", "title": "" }, { "docid": "1e2f718764784d80ac7d8ef8ec479b40", "score": "0.48189732", "text": "private void swap(int x, int y) {\n\t\tint temp = array[x];\n\t\tarray[x] = array[y];\n\t\tarray[y] = temp;\n\t}", "title": "" }, { "docid": "0fbd9d0b93e83ddb43df48928359c2e4", "score": "0.4818489", "text": "private void singleDataSwap(int instr) {\n\t\tif ((instr & 0x400000) == 0x400000) //Bit 22 SET - byte quantity\n\t\t\tswpb(instr >>> 16, instr >>> 12, instr);\n\t\telse\n\t\t\tswp(instr >>> 16, instr >>> 12, instr);\t\n\t}", "title": "" }, { "docid": "3ee0dd2f4284a13d92fcf194d3459666", "score": "0.48162073", "text": "protected void balanceChanged(int asset, long balance) {\n\t}", "title": "" }, { "docid": "17ec7e97184de77f8fa7b4a671d7a951", "score": "0.4814799", "text": "void UPD_ACC_ZN() {\n rST.setH(rST.h & ~(SSP_FLAG_Z | SSP_FLAG_N));\n if (rA32.v == 0) rST.setH(rST.h | SSP_FLAG_Z);\n else rST.setH(rST.h | ((rA32.v >> 16) & SSP_FLAG_N));\n }", "title": "" }, { "docid": "5d64e206e946e2d5d2e07cc3166070bb", "score": "0.48096994", "text": "private static void swap(Object[] x, int a, int b) {\n\tObject t = x[a];\n\tx[a] = x[b];\n\tx[b] = t;\n }", "title": "" }, { "docid": "5ed8284076674bf43037f4559cc5f394", "score": "0.4808286", "text": "@org.jetbrains.annotations.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object registerWallet(@org.jetbrains.annotations.NotNull com.bitcoin.mwallet.zion.ZionWalletName r6, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super com.bitcoin.mwallet.zion.ZionResponse<com.bitcoin.mwallet.zion.ZionId>> r7) {\n /*\n r5 = this;\n boolean r0 = r7 instanceof com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$1\n if (r0 == 0) goto L_0x0014\n r0 = r7\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$1 r0 = (com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r1 = r1 & r2\n if (r1 == 0) goto L_0x0014\n int r7 = r0.label\n int r7 = r7 - r2\n r0.label = r7\n goto L_0x0019\n L_0x0014:\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$1 r0 = new com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$1\n r0.<init>(r5, r7)\n L_0x0019:\n java.lang.Object r7 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 1\n if (r2 == 0) goto L_0x003e\n if (r2 != r3) goto L_0x0036\n java.lang.Object r6 = r0.L$2\n com.htc.htcwalletsdk.Export.HtcWalletSdkManager r6 = (com.htc.htcwalletsdk.Export.HtcWalletSdkManager) r6\n java.lang.Object r6 = r0.L$1\n com.bitcoin.mwallet.zion.ZionWalletName r6 = (com.bitcoin.mwallet.zion.ZionWalletName) r6\n java.lang.Object r6 = r0.L$0\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA r6 = (com.bitcoin.mwallet.zion.ZionRepositoryZKMA) r6\n kotlin.ResultKt.throwOnFailure(r7)\n goto L_0x005f\n L_0x0036:\n java.lang.IllegalStateException r6 = new java.lang.IllegalStateException\n java.lang.String r7 = \"call to 'resume' before 'invoke' with coroutine\"\n r6.<init>(r7)\n throw r6\n L_0x003e:\n kotlin.ResultKt.throwOnFailure(r7)\n com.htc.htcwalletsdk.Export.HtcWalletSdkManager r7 = r5.manager\n if (r7 == 0) goto L_0x0064\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$Companion r2 = Companion\n com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$$inlined$let$lambda$1 r4 = new com.bitcoin.mwallet.zion.ZionRepositoryZKMA$registerWallet$$inlined$let$lambda$1\n r4.<init>(r7, r0, r6)\n kotlin.jvm.functions.Function0 r4 = (kotlin.jvm.functions.Function0) r4\n r0.L$0 = r5\n r0.L$1 = r6\n r0.L$2 = r7\n r0.label = r3\n java.lang.String r6 = \"registerWallet\"\n java.lang.Object r7 = r2.tryZionCall(r6, r4, r0)\n if (r7 != r1) goto L_0x005f\n return r1\n L_0x005f:\n com.bitcoin.mwallet.zion.ZionResponse r7 = (com.bitcoin.mwallet.zion.ZionResponse) r7\n if (r7 == 0) goto L_0x0064\n return r7\n L_0x0064:\n com.bitcoin.mwallet.zion.ZionResponse r6 = new com.bitcoin.mwallet.zion.ZionResponse\n r7 = 0\n com.bitcoin.mwallet.zion.ZionError r0 = com.bitcoin.mwallet.zion.ZionError.NO_MANAGER\n r6.<init>(r7, r0)\n return r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.zion.ZionRepositoryZKMA.registerWallet(com.bitcoin.mwallet.zion.ZionWalletName, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "title": "" }, { "docid": "d47599f610e6ea8613803cdb144ed4b1", "score": "0.48013037", "text": "private void rehashCollision(Integer input)\r\n{\r\n\tif(numbers[input*3%12] == null)\r\n\t\tnumbers[input *3 %12] = input;\r\n\telse\r\n\t\tquadraticCollision(input, input*3%12);\r\n}", "title": "" }, { "docid": "f0a269cf91e4b568ac0735baffaf9479", "score": "0.48012075", "text": "@Test\r\n public void test1(){\n assertEquals(\"HEllOWOrld!\",swap(\"HelloWorld!\"));\r\n\r\n }", "title": "" }, { "docid": "45770138dd93e699ec6b950328067544", "score": "0.4801188", "text": "private int rehash(int x){\r\n return (x+1)%tamTab;\r\n }", "title": "" }, { "docid": "7b5b07f2cc3f1b69b620cf34cd6b4d70", "score": "0.4799318", "text": "@Test\r\n public void testUpdateAccount1() \r\n {\r\n \tcard1 = new Card(0, 1);\r\n \thand.add(card1);\r\n \tcard2 = new Card(1, 4);\r\n \thand.add(card2);\r\n \tcard3 = new Card(3, 6);\r\n \thand.add(card3);\r\n \tcard4 = new Card(1, 8);\r\n \thand.add(card4);\r\n \tcard5 = new Card(0, 10);\r\n \thand.add(card5);\r\n \t\r\n \tAccount account = new Account(\"Peter\");\r\n \tpoker = new PokerPlayer(5,hand,account); \r\n poker.updateAccount(poker.getAccountBalance(),1);\r\n int result = (int) poker.getAccountBalance();\r\n assertEquals(2000, result);\r\n }", "title": "" }, { "docid": "2b87ef8a03874920f3dcb1a6ab9b4626", "score": "0.47963268", "text": "int updateByPrimaryKey(UserAccountBalance record);", "title": "" }, { "docid": "5795337cd1d549acaf3434c099ab6dbb", "score": "0.47921267", "text": "static void swap(int[] A, int x, int y){\n int z = A[x];\n A[x] = A[y];\n A[y] = z;\n }", "title": "" } ]
a18cdd3ac90cc93bc5680b06a6d624e3
Test the behavior when loading the comments failed and the view layout is created before the request is send.
[ { "docid": "6236966daa1ba2f6e8fe2f71424219b0", "score": "0.8373467", "text": "@Test\r\n public void testLoadCommentsFailedAndViewLayoutCreated() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n verify(api).comments(lineup.getId(), true, null, null);\r\n verify(view).showCommentsLoading();\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onFailure(commentsCall, new SocketTimeoutException());\r\n verify(view).showCommentLoadingFailed();\r\n verify(view).showSocketTimeout();\r\n verify(view, never()).showCommentsLoadingSuccess(anyListOf(Comment.class));\r\n }", "title": "" } ]
[ { "docid": "6f8b5115a9ca511b5bc580ea6361127b", "score": "0.85237205", "text": "@Test\r\n public void testLoadCommentsFailedAndViewLayoutNotCreated() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(api).comments(lineup.getId(), true, null, null);\r\n verify(view, never()).showCommentsLoading();\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onFailure(commentsCall, new SocketTimeoutException());\r\n verify(view, never()).showCommentLoadingFailed();\r\n verify(view, never()).showSocketTimeout();\r\n verify(view, never()).showCommentsLoadingSuccess(anyListOf(Comment.class));\r\n }", "title": "" }, { "docid": "8ed99626c38886338edf4c098ca77ebc", "score": "0.82958454", "text": "@Test\r\n public void testOnViewLayoutCreatedWhenLoadCommentsRequestIsNotSending() {\r\n presenter.onViewLayoutCreated();\r\n verify(view, never()).showCommentsLoading();\r\n }", "title": "" }, { "docid": "a95b4ce5ec508e24b8fbd3573f7b3348", "score": "0.80316126", "text": "@Test\r\n public void testOnViewLayoutCreatedWhenLoadCommentsRequestIsSending() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(api).comments(lineup.getId(), true, null, null);\r\n verify(view, never()).showCommentsLoading();\r\n presenter.onViewLayoutCreated();\r\n verify(view).showCommentsLoading();\r\n }", "title": "" }, { "docid": "7399f941ebda32b3177abf8959d36cf7", "score": "0.7877034", "text": "@Test\r\n public void testAddCommentFailedAndViewLayoutCreated() {\r\n final String body = response.getComment().getBody();\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.addComment(body);\r\n verify(api).addComment(intCaptor.capture(), requestCaptor.capture());\r\n assertEquals(lineup.getId(), intCaptor.getValue());\r\n assertEquals(body, requestCaptor.getValue().getBody());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onFailure(addCommentCall, new UnknownHostException());\r\n verify(view).showCommentAddingFailed();\r\n verify(view).showNoInternetConnection();\r\n verify(view, never()).showCommentAddingSuccess(any(Comment.class));\r\n }", "title": "" }, { "docid": "e6a550cafc13daa0706ba460b3ed071f", "score": "0.77895844", "text": "@Test\r\n public void testCommentUpdateFailedAndViewLayoutNotDestroyed() {\r\n final Comment comment = comments.get(1);\r\n final String newBody = \"Test\";\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.updateComment(comment, newBody);\r\n verify(api).updateComment(intCaptor.capture(),\r\n intCaptor.capture(), requestCaptor.capture());\r\n assertEquals(lineup.getId(), intCaptor.getAllValues().get(0));\r\n assertEquals(comment.getId(), intCaptor.getAllValues().get(1));\r\n assertEquals(newBody, requestCaptor.getValue().getBody());\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onFailure(updateCommentCall, new SocketTimeoutException());\r\n verify(view).showCommentUpdatingFailed(comment);\r\n verify(view).showSocketTimeout();\r\n verify(view, never()).showCommentUpdatingSuccess(any(Comment.class), any(Comment.class));\r\n }", "title": "" }, { "docid": "6ad146526f59f8eef756520007b712c8", "score": "0.7756974", "text": "@Test\r\n public void testLoadCommentsSuccessAndViewLayoutNotDestroyed() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n verify(api).comments(lineup.getId(), true, null, null);\r\n verify(view).showCommentsLoading();\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onResponse(commentsCall, Response.success(comments));\r\n verify(view).showCommentsLoadingSuccess(comments);\r\n verify(view, never()).showCommentLoadingFailed();\r\n }", "title": "" }, { "docid": "5900ae0cec426c8d84ca520bf34404b2", "score": "0.76843476", "text": "@Test\r\n public void testDeleteCommentFailedAndViewLayoutNoyCreated() {\r\n final Comment comment = comments.get(2);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.deleteComment(comment);\r\n verify(deleteCommentCall).enqueue(emptyResponseCaptor.capture());\r\n emptyResponseCaptor.getValue()\r\n .onFailure(deleteCommentCall, new InternalServerErrorException());\r\n verify(view, never()).showCommentDeletingFailed(any(Comment.class));\r\n verify(view, never()).showInternalServerError();\r\n verify(view, never()).showCommentDeletingSuccess(any(Comment.class));\r\n }", "title": "" }, { "docid": "2c508536ad415b0fdf88f05102ed2500", "score": "0.76726735", "text": "@Test\r\n public void testLoadCommentsCalledWhenThePreviousLoadRequestIsNotFinished() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.loadComments();\r\n verify(api).comments(anyInt(), anyBoolean(), anyInt(), anyInt());\r\n }", "title": "" }, { "docid": "c584ccaa787a8589505616d9ca12b588", "score": "0.76469505", "text": "@Test\r\n public void testDeleteCommentFailedAndViewLayoutCreated() {\r\n final Comment comment = comments.get(2);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.deleteComment(comment);\r\n verify(api).deleteComment(intCaptor.capture(), intCaptor.capture());\r\n assertEquals(lineup.getId(), intCaptor.getAllValues().get(0));\r\n assertEquals(comment.getId(), intCaptor.getAllValues().get(1));\r\n verify(deleteCommentCall).enqueue(emptyResponseCaptor.capture());\r\n emptyResponseCaptor.getValue()\r\n .onFailure(deleteCommentCall, new InternalServerErrorException());\r\n verify(view).showCommentDeletingFailed(comment);\r\n verify(view).showInternalServerError();\r\n verify(view, never()).showCommentDeletingSuccess(any(Comment.class));\r\n }", "title": "" }, { "docid": "4dd01fe5776ec129c30f28b227213d5a", "score": "0.7524564", "text": "@Test\r\n public void testAddCommentFailedAndViewLayoutDestroyed() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.addComment(response.getComment().getBody());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n presenter.onViewLayoutDestroyed();\r\n commentResponseCaptor.getValue().onFailure(addCommentCall, new UnknownHostException());\r\n verify(view, never()).showCommentAddingFailed();\r\n verify(view, never()).showNoInternetConnection();\r\n verify(view, never()).showCommentAddingSuccess(any(Comment.class));\r\n }", "title": "" }, { "docid": "b4bfa6a7830b9bc1269d85c86929a1af", "score": "0.7469066", "text": "@Test\r\n public void testCommentUpdateFailedAndViewLayoutDestroyed() {\r\n final Comment comment = comments.get(1);\r\n final String newBody = \"Test\";\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.updateComment(comment, newBody);\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n presenter.onViewLayoutDestroyed();\r\n commentResponseCaptor.getValue().onFailure(updateCommentCall, new SocketTimeoutException());\r\n verify(view, never()).showCommentUpdatingFailed(comment);\r\n verify(view, never()).showSocketTimeout();\r\n verify(view, never()).showCommentUpdatingSuccess(any(Comment.class), any(Comment.class));\r\n }", "title": "" }, { "docid": "b0aedc93f4095495bd1d7289ca46b613", "score": "0.7451546", "text": "@Test\r\n public void testCommentsUpdateSuccessAndViewLayoutNotCreated() {\r\n final Comment comment = comments.get(2);\r\n final String newBody = \"Test\";\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.updateComment(comment, newBody);\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onResponse(updateCommentCall, Response.success(response));\r\n verify(view, never()).showCommentUpdatingSuccess(any(Comment.class), any(Comment.class));\r\n verify(view, never()).showCommentUpdatingFailed(any(Comment.class));\r\n }", "title": "" }, { "docid": "90b2dd3cdba14c19614b4bfb2ceb56be", "score": "0.74378926", "text": "@Test\r\n public void testLoadCommentAfterPreviousLoadingRequestFailed() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onFailure(commentsCall, new Throwable());\r\n presenter.loadComments();\r\n verify(api, times(2)).comments(anyInt(), anyBoolean(), anyInt(), anyInt());\r\n }", "title": "" }, { "docid": "959d231a443886137fca9655f8a25673", "score": "0.73235273", "text": "@Test\r\n public void testLoadCommentsSuccessAndViewLayoutDestroyed() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n verify(api).comments(lineup.getId(), true, null, null);\r\n verify(view).showCommentsLoading();\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n presenter.onViewLayoutDestroyed();\r\n commentsCallbackCaptor.getValue().onResponse(commentsCall, Response.success(comments));\r\n verify(view, never()).showCommentsLoadingSuccess(comments);\r\n verify(view, never()).showCommentLoadingFailed();\r\n }", "title": "" }, { "docid": "ec9f3cb6cbe42d8cff665b0362a6edb9", "score": "0.7242152", "text": "@Test\r\n public void testAddCommentSuccessAndViewLayoutNotDestroyed() {\r\n final Comment comment = response.getComment();\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.addComment(comment.getBody());\r\n verify(api).addComment(intCaptor.capture(), requestCaptor.capture());\r\n assertEquals(lineup.getId(), intCaptor.getValue());\r\n assertEquals(comment.getBody(), requestCaptor.getValue().getBody());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onResponse(addCommentCall, Response.success(response));\r\n verify(view).showCommentAddingSuccess(commentCaptor.capture());\r\n assertEquals(comment.getId(), commentCaptor.getValue().getId());\r\n assertEquals(comment.getUserId(), commentCaptor.getValue().getUserId());\r\n assertEquals(comment.getBody(), commentCaptor.getValue().getBody());\r\n verify(view, never()).showCommentAddingFailed();\r\n }", "title": "" }, { "docid": "9a18b199b85d7e308bbf003ee3a04937", "score": "0.7006349", "text": "@SuppressWarnings(\"ConstantConditions\")\r\n @Test\r\n public void testCommentDeleteSuccessAndViewLayoutNotDestroyed() {\r\n final Comment comment = comments.get(1);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.deleteComment(comment);\r\n verify(api).deleteComment(intCaptor.capture(), intCaptor.capture());\r\n assertEquals(lineup.getId(), intCaptor.getAllValues().get(0));\r\n assertEquals(comment.getId(), intCaptor.getAllValues().get(1));\r\n verify(deleteCommentCall).enqueue(emptyResponseCaptor.capture());\r\n Void response = null;\r\n emptyResponseCaptor.getValue().onResponse(deleteCommentCall, Response.success(response));\r\n verify(view).showCommentDeletingSuccess(comment);\r\n verify(view, never()).showCommentDeletingFailed(any(Comment.class));\r\n }", "title": "" }, { "docid": "737b82b9142b97a85a5ca8beb9b81fe8", "score": "0.68431383", "text": "@Test\r\n public void testOnViewDestroyedAfterLoadingRequestFailed() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onFailure(commentsCall, new Throwable());\r\n verify(api).comments(anyInt(), anyBoolean(), anyInt(), anyInt());\r\n presenter.onViewDestroyed();\r\n verify(commentsCall, never()).cancel();\r\n }", "title": "" }, { "docid": "d42988c0f062e2e0f6b1ccc3b1936e73", "score": "0.6838027", "text": "@Test\r\n public void testLoadCommentAfterPreviousLoadingRequestSucceeded() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onResponse(commentsCall, Response.success(comments));\r\n presenter.loadComments();\r\n verify(api, times(2)).comments(anyInt(), anyBoolean(), anyInt(), anyInt());\r\n }", "title": "" }, { "docid": "3c5203d36f9382932cc4064aa1df06a9", "score": "0.6814895", "text": "@Test\r\n public void testCommentsUpdateSuccessAndViewLayoutCreated() {\r\n final Comment comment = comments.get(2);\r\n final String newBody = \"Test\";\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.updateComment(comment, newBody);\r\n verify(api).updateComment(intCaptor.capture(),\r\n intCaptor.capture(), requestCaptor.capture());\r\n assertEquals(lineup.getId(), intCaptor.getAllValues().get(0));\r\n assertEquals(comment.getId(), intCaptor.getAllValues().get(1));\r\n assertEquals(newBody, requestCaptor.getValue().getBody());\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onResponse(updateCommentCall, Response.success(response));\r\n verify(view).showCommentUpdatingSuccess(commentCaptor.capture(), commentCaptor.capture());\r\n assertSame(comment, commentCaptor.getAllValues().get(0));\r\n assertSame(response.getComment(), commentCaptor.getAllValues().get(1));\r\n verify(view, never()).showCommentUpdatingFailed(any(Comment.class));\r\n }", "title": "" }, { "docid": "9a2354304e3d8c1e3673e1a727d335a4", "score": "0.6789423", "text": "@Test\r\n public void testOnViewDestroyedWhenLoadingRequestIsSending() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(api).comments(anyInt(), anyBoolean(), anyInt(), anyInt());\r\n presenter.onViewDestroyed();\r\n verify(commentsCall).cancel();\r\n }", "title": "" }, { "docid": "3c7b19f1c545876365edeec1dfa22046", "score": "0.67601544", "text": "@Test\r\n public void testAddCommentSuccessAndViewLayoutDestroyed() {\r\n final Comment comment = response.getComment();\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.addComment(comment.getBody());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n presenter.onViewLayoutDestroyed();\r\n commentResponseCaptor.getValue().onResponse(addCommentCall, Response.success(response));\r\n verify(view, never()).showCommentAddingSuccess(any(Comment.class));\r\n verify(view, never()).showCommentAddingFailed();\r\n }", "title": "" }, { "docid": "be6d4e8d3f32ceb0f80a16a3ca1aee28", "score": "0.664954", "text": "@Test\r\n public void testAddCalledBeforeThePreviousUpdateRequestFinishedAndThatRequestFailed() {\r\n final Comment comment = comments.get(1);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.updateComment(comment, \"\");\r\n presenter.addComment(\"\");\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api, never()).addComment(anyInt(), any(CommentRequest.class));\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onFailure(updateCommentCall, new Throwable());\r\n verify(api).addComment(anyInt(), any(CommentRequest.class));\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n }", "title": "" }, { "docid": "2d258e53ce1b93f5ab89195a609ca9d8", "score": "0.660446", "text": "@SuppressWarnings(\"ConstantConditions\")\r\n @Test\r\n public void testCommentDeleteSuccessAndViewLayoutDestroyed() {\r\n final Comment comment = comments.get(1);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.deleteComment(comment);\r\n verify(deleteCommentCall).enqueue(emptyResponseCaptor.capture());\r\n presenter.onViewLayoutDestroyed();\r\n Void response = null;\r\n emptyResponseCaptor.getValue().onResponse(deleteCommentCall, Response.success(response));\r\n verify(view, never()).showCommentDeletingSuccess(comment);\r\n verify(view, never()).showCommentDeletingFailed(any(Comment.class));\r\n }", "title": "" }, { "docid": "e60a2d09b54c755bbb4ea3caddeb1e6a", "score": "0.658931", "text": "@Test\r\n public void testUpdateCalledBeforeThePreviousDeleteRequestFinishedAndThatRequestFailed() {\r\n final Comment comment = comments.get(1);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.deleteComment(comment);\r\n presenter.updateComment(comment, \"\");\r\n verify(api).deleteComment(anyInt(), anyInt());\r\n verify(api, never()).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(deleteCommentCall).enqueue(emptyResponseCaptor.capture());\r\n emptyResponseCaptor.getValue().onFailure(deleteCommentCall, new Throwable());\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api).deleteComment(anyInt(), anyInt());\r\n }", "title": "" }, { "docid": "81e1f056c04315ba0ea8ab9e9e8f2c50", "score": "0.6376806", "text": "@Test\r\n public void testAddCalledBeforeThePreviousAddRequestFinishedAndThatRequestFailed() {\r\n final String body1 = \"Test Comment Body 1\";\r\n final String body2 = \"Test Comment Body 2\";\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.addComment(body1);\r\n presenter.addComment(body2);\r\n verify(api).addComment(anyInt(), requestCaptor.capture());\r\n assertEquals(body1, requestCaptor.getValue().getBody());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onFailure(addCommentCall, new Throwable());\r\n verify(api, times(2)).addComment(anyInt(), requestCaptor.capture());\r\n assertEquals(body2, requestCaptor.getAllValues().get(2).getBody());\r\n }", "title": "" }, { "docid": "39268fdc6414fb73cebdc1c28bf42b6a", "score": "0.6322775", "text": "@Test(expected = IllegalArgumentException.class)\r\n public void testLoadCommentsWhenLineupIdNotSet() {\r\n presenter.loadComments();\r\n }", "title": "" }, { "docid": "e78c7e979cf5387fc23d8d3ac09e5bc8", "score": "0.6295573", "text": "@SuppressWarnings(\"ConstantConditions\")\r\n @Test\r\n public void testUpdateCalledBeforeThePreviousDeleteRequestFinishedAndThatRequestSucceeded() {\r\n final Comment comment = comments.get(1);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.deleteComment(comment);\r\n presenter.updateComment(comment, \"\");\r\n verify(api).deleteComment(anyInt(), anyInt());\r\n verify(api, never()).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(deleteCommentCall).enqueue(emptyResponseCaptor.capture());\r\n Void response = null;\r\n emptyResponseCaptor.getValue().onResponse(deleteCommentCall, Response.success(response));\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api).deleteComment(anyInt(), anyInt());\r\n }", "title": "" }, { "docid": "483ff4bc4c3c5636efabb8eabf518125", "score": "0.6218503", "text": "@Test\r\n public void testOnViewDestroyedAfterLoadingRequestSucceeded() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n verify(commentsCall).enqueue(commentsCallbackCaptor.capture());\r\n commentsCallbackCaptor.getValue().onResponse(commentsCall, Response.success(comments));\r\n verify(api).comments(anyInt(), anyBoolean(), anyInt(), anyInt());\r\n presenter.onViewDestroyed();\r\n verify(commentsCall, never()).cancel();\r\n }", "title": "" }, { "docid": "25cc8a88f1abe804363ad3cdaf70b18d", "score": "0.6215899", "text": "public void testHandleRequestView() throws Exception {\n\t}", "title": "" }, { "docid": "37dae9dbec173a81a87c9a3388e8a6fa", "score": "0.59923923", "text": "@Test\r\n public void testOnViewDestroyedWhenNoneRequestForCommentChangingIsSending() {\r\n presenter.onViewDestroyed();\r\n verify(addCommentCall, never()).cancel();\r\n verify(updateCommentCall, never()).cancel();\r\n verify(deleteCommentCall, never()).cancel();\r\n }", "title": "" }, { "docid": "5d451dbc83635e5b7e0a545438ef715f", "score": "0.5976605", "text": "@Test\r\n public void testAddCalledBeforeThePreviousUpdateRequestFinishedAndThatRequestSucceeded() {\r\n final Comment comment = comments.get(1);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.updateComment(comment, \"\");\r\n presenter.addComment(\"\");\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api, never()).addComment(anyInt(), any(CommentRequest.class));\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onResponse(updateCommentCall, Response.success(response));\r\n verify(api).addComment(anyInt(), any(CommentRequest.class));\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n }", "title": "" }, { "docid": "20a7e886c2ee9ba374e8c82919d2fe17", "score": "0.59624547", "text": "@SuppressLint(\"SimpleDateFormat\")\n\tpublic void testDisplayCommentInList() throws Throwable {\n\t\t// Create test comment List\n\t\t\t\tArrayList<CommentModel> commentList = new ArrayList<CommentModel>();\n\t\t\t\t// Creates two test head comments\n\t\t\t\tCommentModel headCommentOld = new CommentModel();\n\t\t\t\theadCommentOld.setTitle(\"Old Test Title\");\n\t\t\t\theadCommentOld.setAuthor(\"TestUsername\");\n\t\t\t\theadCommentOld.setContent(\"Old Test Head Comment Content\");\n\t\t\t\theadCommentOld.setTimestamp(Calendar.getInstance());\n\t\t\t\t\n\t\t\t\t// Create test location model\n\t\t\t\tLocationModel tstLocationModel = new LocationModel(\"Lat: 100 Long: 100\", 100, 100);\n\t\t\t\theadCommentOld.setLocation(tstLocationModel);\n\t\t\t\t\n\t\t\t\t// Add head comment to test list\n\t\t\t\tcommentList.add(headCommentOld);\n\n\t\t\t\tCommentModel headCommentNew = new CommentModel();\n\t\t\t\theadCommentNew.setTitle(\"New Test Title\");\n\t\t\t\theadCommentNew.setAuthor(\"TestUsername\");\n\t\t\t\theadCommentNew.setContent(\"New Test Head Comment Content\");\n\t\t\t\theadCommentNew.setTimestamp(Calendar.getInstance());\n\t\t\t\theadCommentNew.setLocation(tstLocationModel);\n\t\t\t\tcommentList.add(headCommentNew);\n\t\t\t\t\n\t\t\t\t// Set comment list to something so that it is not null for the load\n\t\t\t\tappState.setCommentList(backupList);\n\t\t\t\t// Sets file path for comment list file\n\t\t\t\tappState.setFileContext(getInstrumentation().getContext());\n\t\t\t\tappState.loadComments();\n\t\t\t\t// Backup actual comment list\n\t\t\t\tbackupList = appState.getCommentList();\n\t\t\t\t\n\t\t\t\t// Sets test comment list\n\t\t\t\tappState.setCommentList(commentList);\n\t\t\t\t// Sorts list by date\n\t\t\t\tCollections.sort(commentList, ApplicationStateModel.dateCompare);\n\t\t\t\t// Saves comments\n\t\t\t\tappState.saveComments();\n\t\t\t\t\n\t\t // Launches MainListviewActivity\n\t\t activity = getActivity(); \n\n\t\t // Gets layout of head comment list item\n\t\t View commentLayout = (View) activity.findViewById(R.id.head_comment_list_item_layout);\n\t\t \n\t\t fail();\n\t\t // Identifies list item objects required for the test\n\t\t TextView title = (TextView) commentLayout.findViewById(R.id.head_comment_title);\n\t\t TextView userName = (TextView) commentLayout.findViewById(R.id.head_comment_username);\n\t\t TextView location = (TextView) commentLayout.findViewById(R.id.head_comment_location);\n\t\t TextView date = (TextView) commentLayout.findViewById(R.id.head_comment_time);\n\t\t \n\t\t // Test new comment title is correct\n\t\t assertEquals(\"Head comment title should appear in list\", headCommentNew.getTitle(), title.getText());\n\t\t // Test new comment username is correct\n\t\t assertEquals(\"Head comment username should appear in list\", headCommentNew.getAuthor(), userName.getText());\n\t\t // Test new comment location is correct\n\t\t assertEquals(\"Head comment location should appear in list\", headCommentNew.getLocation().getName(), location.getText());\n\t\t \n\t\t // Converts new headcomment's timestamp calendar object to a testable string\n\t\t SimpleDateFormat sdf = new SimpleDateFormat(\"MMM. dd, yyyy - hh:mm aa\");\n\t\t String timeString = sdf.format(headCommentNew.getTimestamp().getTime());\n\t\t \n\t\t // Test new comment date is correct\n\t\t assertEquals(\"Head comment date should appear in list\", timeString, date.getText());\n\t\t \n\t\t // Restores actual comment list\n\t\t appState.setCommentList(backupList);\n\t\t appState.saveComments();\n\t\t // Close activity\n\t\t activity.finish();\n\t\t setActivity(null);\n\t}", "title": "" }, { "docid": "9aa3d2f4dea823de61ddd78b49a60d57", "score": "0.5953131", "text": "@Test\r\n public void testOnViewDestroyedWhenAddCommentCallIsSending() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.addComment(\"\");\r\n verify(api).addComment(anyInt(), any(CommentRequest.class));\r\n presenter.onViewDestroyed();\r\n verify(addCommentCall).cancel();\r\n }", "title": "" }, { "docid": "651cffa782cbf4ca3c5dceae996b233b", "score": "0.59122187", "text": "@Test\r\n public void testOnViewDestroyedWhenUpdateCommentCallIsSending() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.updateComment(comments.get(1), \"\");\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n presenter.onViewDestroyed();\r\n verify(updateCommentCall).cancel();\r\n }", "title": "" }, { "docid": "b98c4e335490e0c56188ca2f86039aa8", "score": "0.5850726", "text": "@Test\n public void testView() throws Exception {\n\n request.setPortletMode(PortletMode.VIEW);\n doRender(request, response);\n assertNotNull(response.getIncludedUrl());\n\n }", "title": "" }, { "docid": "b95cbddc8b545bc6eb13f98c93eed129", "score": "0.582312", "text": "@Test\n\tpublic void testListComments() {\n\t\t// Comments: rendezvous, expectedException\n\t\tfinal Rendezvous rendezvous = this.rendezvousService.findOne(this.getEntityId(\"rendezvous1\"));\n\n\t\tfinal Object[][] testingData = {\n\n\t\t\t{\n\t\t\t\trendezvous, null\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.testListCommentsTemplate((Rendezvous) testingData[i][0], (Class<?>) testingData[i][1]);\n\n\t}", "title": "" }, { "docid": "16772878771b27d44620523aae745c7d", "score": "0.579232", "text": "public void testPreconditions() {\n\t\tassertNotNull(m_view);\n\t}", "title": "" }, { "docid": "e7e6c86c16a1fa3df502b407b2e674ae", "score": "0.56787443", "text": "@Test\r\n public void testAddCalledBeforeThePreviousAddRequestFinishedAndThatRequestSucceeded() {\r\n final String body1 = \"Test Comment Body 1\";\r\n final String body2 = \"Test Comment Body 2\";\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.onViewLayoutCreated();\r\n presenter.addComment(body1);\r\n presenter.addComment(body2);\r\n verify(api).addComment(anyInt(), requestCaptor.capture());\r\n assertEquals(body1, requestCaptor.getValue().getBody());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onResponse(addCommentCall, Response.success(response));\r\n verify(api, times(2)).addComment(anyInt(), requestCaptor.capture());\r\n assertEquals(body2, requestCaptor.getAllValues().get(2).getBody());\r\n }", "title": "" }, { "docid": "4f1d2fc43d739f6497bea2c564a6013a", "score": "0.56122696", "text": "@Test\n\tvoid responsibleCommentTest(){\n\t\tLocation resutantLocation2 = new Location(0d,0d);\n\t\tRestaurant restaurat_2 =new Restaurant(\"Grido\", new Category(\"ice cream shop\"), resutantLocation2);\n\t\tLocation responsibleLocation2 = new Location(0d,0d);\n\t\tResponsible responsible_2= new Responsible(\"Don Grido\", \"superGrido\", \"gridoPass\", responsibleLocation2);\n\t\tresponsible.addRestaurant(restaurat_2);\n\t\t\n\t\tresponsible_2.comment(\"Not bad\", restaurant);\n\t\tassertTrue(restaurant.numberOfComments() == 0);\n\t\t\t\t\t\t\n\t\t\t\t\n\t}", "title": "" }, { "docid": "6ef9f01abafa4dd3fe4c14f4384806ef", "score": "0.55538356", "text": "@Test\r\n public void testOnViewDestroyedWhenDeleteCommentCallIsSending() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.deleteComment(comments.get(1));\r\n verify(api).deleteComment(anyInt(), anyInt());\r\n presenter.onViewDestroyed();\r\n verify(deleteCommentCall).cancel();\r\n }", "title": "" }, { "docid": "8e370580bd9eceada769e2c9ef93cb4d", "score": "0.55422384", "text": "@Test\n public void testOnLoadArticlesFailure() {\n /** Arrange **/\n presenter.onLoadArticlesSuccess(fullData, 0);\n\n /** Exercise **/\n presenter.onLoadArticlesFailure(SEARCH_API_RATE_EXCEEDED, null);\n\n /** Verify **/\n verify(mockView, atLeastOnce()).onArticlesLoaded(any());\n verify(mockView).onArticlesFailedToLoad(context.getString(R.string.article_browser_exceeded_api_limit));\n }", "title": "" }, { "docid": "8bf6a4d9fc05af453fbf7b0e916f297d", "score": "0.5540137", "text": "@Test\r\n public void testAllCallWillBeExecuteOneByOneAfterThePreviousIsFinished() {\r\n final String body1 = \"Test Comment Body 1\";\r\n final String body2 = \"Test Comment Body 2\";\r\n final Comment comment = comments.get(0);\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.addComment(body1);\r\n presenter.updateComment(comment, \"\");\r\n presenter.addComment(body2);\r\n presenter.deleteComment(comment);\r\n verify(api).addComment(anyInt(), requestCaptor.capture());\r\n assertEquals(body1, requestCaptor.getValue().getBody());\r\n verify(api, never()).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api, never()).deleteComment(anyInt(), anyInt());\r\n verify(addCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getValue().onResponse(addCommentCall, Response.success(response));\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api).addComment(anyInt(), any(CommentRequest.class));\r\n verify(api, never()).deleteComment(anyInt(), anyInt());\r\n verify(updateCommentCall).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getAllValues().get(1)\r\n .onResponse(updateCommentCall, Response.success(response));\r\n verify(api, times(2)).addComment(anyInt(), requestCaptor.capture());\r\n assertEquals(body2, requestCaptor.getAllValues().get(2).getBody());\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api, never()).deleteComment(anyInt(), anyInt());\r\n verify(addCommentCall, times(2)).enqueue(commentResponseCaptor.capture());\r\n commentResponseCaptor.getAllValues().get(3)\r\n .onResponse(addCommentCall, Response.success(response));\r\n verify(api).deleteComment(anyInt(), anyInt());\r\n verify(api).updateComment(anyInt(), anyInt(), any(CommentRequest.class));\r\n verify(api, times(2)).addComment(anyInt(), requestCaptor.capture());\r\n }", "title": "" }, { "docid": "540eeb04787db01589f95f86d7f3efd4", "score": "0.5520944", "text": "@Test\n public void testBadGetInclude() throws Exception {\n String url = null;\n\n // Bad terminology\n url = baseUrl + \"/ncit/C3224?include=NOT_AN_INCLUDE\";\n log.info(\"Testing url - \" + url);\n mvc.perform(get(url)).andExpect(status().isBadRequest()).andReturn();\n // content is blank because of MockMvc\n\n }", "title": "" }, { "docid": "c675ca6fe6e9ca21725509a76a380e50", "score": "0.55048716", "text": "@SmallTest\n public void testLayoutExists() {\n assertNotNull(activity.findViewById(R.id.email));\n assertNotNull(activity.findViewById(R.id.password));\n assertNotNull(activity.findViewById(R.id.email_sign_in_button));\n assertNotNull(activity.findViewById(R.id.link_to_register));\n assertNotNull(activity.findViewById(R.id.imageView));\n // Verifies the text of the views\n AutoCompleteTextView view1 = (AutoCompleteTextView) activity.findViewById(R.id.email);\n assertEquals(\"Incorrect hint of email textview\", \"Email\", view1.getHint());\n EditText view2 = (EditText) activity.findViewById(R.id.password);\n assertEquals(\"Incorrect hint of password textview\", \"Password\", view2.getHint());\n Button view3 = (Button) activity.findViewById(R.id.email_sign_in_button);\n assertEquals(\"Incorrect label of the button\", \"Sign in\", view3.getText());\n TextView view4 = (TextView) activity.findViewById(R.id.link_to_register);\n assertEquals(\"Incorrect text on register textview\", \"New? Register here\", view4.getText());\n }", "title": "" }, { "docid": "76120def1a7d88c7629d622fbc6abf17", "score": "0.550423", "text": "@Test(expected = IllegalArgumentException.class)\r\n public void testUpdateCommentCalledWithNullBodyParam() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.updateComment(comments.get(0), null);\r\n }", "title": "" }, { "docid": "f6e7e350caaa01169f225e0d5abb14db", "score": "0.5464461", "text": "@Test\n public void commentsTest() {\n // TODO: test comments\n }", "title": "" }, { "docid": "1100a8042a6c40f1d3ab3d90d33bf168", "score": "0.54500985", "text": "@AlfrescoTest(testlink = \"AONE-5684\")\n @Test(groups = {\"WQS\", \"EnterpriseOnly\"})\n public void verifyLeaveCommentForm() throws Exception\n {\n\n // ---- Step 1 ----\n // ---- Step action ----\n // Fill in Leave Comment fields with correct data;\n // ---- Expected results ----\n // Data is entered successfully;\n\n String visitorName = \"name\" + getTestName();\n String visitorEmail = getTestName() + \"@\" + DOMAIN_FREE;\n String visitorWebsite = \"website \" + getTestName();\n String visitorComment = \"Comment by \" + visitorName;\n\n navigateTo(wqsURL);\n WcmqsHomePage homePage = new WcmqsHomePage(drone);\n homePage.selectMenu(WcmqsBlogPage.BLOG_MENU_STR);\n WcmqsBlogPage blogPage = new WcmqsBlogPage(drone);\n blogPage.clickLinkByTitle(WcmqsBlogPage.ETHICAL_FUNDS);\n WcmqsBlogPostPage wcmqsBlogPostPage = new WcmqsBlogPostPage(drone);\n\n wcmqsBlogPostPage.setVisitorEmail(visitorEmail);\n wcmqsBlogPostPage.setVisitorName(visitorName);\n wcmqsBlogPostPage.setVisitorWebsite(visitorWebsite);\n wcmqsBlogPostPage.setVisitorComment(visitorComment);\n\n // ---- Step 2 ----\n // ---- Step action ----\n // Click Post button;\n // ---- Expected results ----\n // Your comment has been sent! message is shown;\n\n wcmqsBlogPostPage.clickPostButton();\n assertThat(\"Posting was succesfull\", wcmqsBlogPostPage.isAddCommentMessageDisplay());\n\n // ---- Step 3 ----\n // ---- Step action ----\n // Refresh browser page and verify the presence of Leave Comment form;\n // ---- Expected results ----\n // Page is refreshed, Leave Comment form is shown again;\n\n homePage = new WcmqsHomePage(drone);\n homePage.selectMenu(WcmqsBlogPage.BLOG_MENU_STR);\n blogPage = new WcmqsBlogPage(drone);\n blogPage.clickLinkByTitle(WcmqsBlogPage.ETHICAL_FUNDS);\n wcmqsBlogPostPage = new WcmqsBlogPostPage(drone);\n assertThat(\"Leave comment form is displayed \", wcmqsBlogPostPage.isLeaveCommentFormDisplayed());\n }", "title": "" }, { "docid": "d524001e48c5442c59461d928caa99fc", "score": "0.54417616", "text": "@Test(expected = IllegalArgumentException.class)\r\n public void testAddCommentWithNullParam() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.addComment(null);\r\n }", "title": "" }, { "docid": "d5d23b34b815fa90a5bb94fd124e11db", "score": "0.54038036", "text": "@Test\n public void shouldShowErrorIfTaskDescIsEmpty() {\n Mockito.when(view.getTaskTitle()).thenReturn(\"test\");\n Mockito.when(view.getTaskDescription()).thenReturn(\"\");\n\n presenter.initiateAddTask();\n\n Mockito.verify(view).showMessage(R.string.err_empty_description);\n\n }", "title": "" }, { "docid": "40315830f7fac8d7c998227431e232ec", "score": "0.53920484", "text": "public void verifyGuestUserSeeCommentSuccessfulMessage()\n {\n assertURL(\"about-nopcommerce\");\n assertTextMessage(\"You Should be registered Customer To Refer to a Friend\",expected, _assert1CommentSuccessMessage);\n //assertTextMessage(\"Added Comments not Showing,expected,_assert2User\");\n }", "title": "" }, { "docid": "a5c92b4fd4fdcaefb5fb2f9ea2291594", "score": "0.5355002", "text": "@Test(groups=\"pending\")\n\tpublic void test12_CheckViewAllPageAfterReceivingACommentNotification4Comments() {\n\t\tinfo(\"Test 12 Check View All page after receiving a Comment notification (4 comments)\");\n\t\t/*Step Number: 1\n\t\t *Step Name: Step 1 : Check notifications list\n\t\t *Step Description: \n\t\t\t- Login with User A\n\t\t\t- Click the notifications icon in the top navigation\n\t\t\t- Check the notification list\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\t- A comment notification is displayed in the list*/\n\n\t\t/*Step number: 2\n\t\t *Step Name: Step 2 : Check View All page\n\t\t *Step Description: \n\t\t\t- Go to View All page\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\tThe Intranet Notifications is displayed / available in the View All page : $LAST_AVATAR$USER_LIST and $COUNT more have commented on your activity $ACTIVITY$DATEWhere : \n\t\t\t- $LAST_AVATAR is the thumbnail of User B\n\t\t\t- $LAST2_USERSis User D, User B\n\t\t\t- $COUNT is 2\n\t\t\t- $ACTIVITY is the activity title/message\n\t\t\t- $DATE is the date of the activity*/ \n\n\t}", "title": "" }, { "docid": "172e40605a796e24b23ca2e9b1f7a53d", "score": "0.5352761", "text": "public void attemptCommentCreation(View v){\n\t\tthis.postContents = ceditText.getText().toString();\n\t\tthis.postUsername = ueditText.getText().toString();\n\t\tthis.postTitle = teditText.getText().toString();\n\t\t\n\t\tstopListeningLocation();\n\t\tsetLocation();\n\t\t\n\t\tif(checkStringIsAllWhiteSpace(this.postContents)){\n\t\t\traiseContentsIncompleteError();\n\t\t}\n\t\telse if(checkStringIsAllWhiteSpace(this.postTitle)){\n\t\t\traiseTitleIncompleteError();\n\t\t}\n\t\telse if(checkStringIsAllWhiteSpace(this.postUsername)){\n\t\t\traiseUsernameIncompleteError();\n\t\t}\n\t\t// Does nothing if no location has been set - error message spawned in\n\t\t// setLocation()\n\t\telse if (this.postLocation == null)\n\t\t\t;\n\t\t\n\t\telse{\n\t\t\t\n\t\t\tappState.getCommentToEdit().setTitle(this.postTitle);\n\t\t\tappState.getCommentToEdit().setAuthor(this.postUsername);\n\t\t\tappState.getCommentToEdit().setContent(this.postContents);\n\t\t\tappState.getCommentToEdit().setPhoto(this.postPhoto);\n\t\t\t\n\t\t\tappState.getCommentToEdit().setLocation(this.postLocation);\n\n\t\t\tappState.saveComments();\n\t\t\tappState.loadComments();\n\t\t\t\n\t\t\tappState.queueDelete(appState.getCommentToEdit());\n\t\t\tappState.queueAdd(appState.getCommentToEdit());\n\t\t\t\n\t\t\t//Destroy this activity so that we return to the previous one.\n\t\t\tgoBack();\n\t\t}\n\t}", "title": "" }, { "docid": "399c2596aeab4d2f9bf0b2b1c56b12bc", "score": "0.532067", "text": "@Test(expected = IllegalArgumentException.class)\r\n public void testUpdateCommentWithNullCommentParam() {\r\n this.initArgs();\r\n presenter.onViewCreated(args);\r\n presenter.updateComment(null, \"Test\");\r\n }", "title": "" }, { "docid": "742ed4e65819d7ff9d3723d869bb6c2b", "score": "0.5308633", "text": "@Test\n\tpublic void whenGetCommentsOfItemThenThereIsRigthComments() {\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tSystem.setOut(new PrintStream(out));\n\t\tTracker tracker = new Tracker();\n\t\tItem item1 = new Item(\"name1\", \"desc1\");\n\t\titem1.addComment(\"comment1\");\n\t\titem1.addComment(\"comment2\");\n\t\ttracker.add(item1);\n\t\tString id = tracker.getAll().get(0).getId();\n\t\tArrayList<String> answers = new ArrayList<String>();\n\t\tanswers.add(\"7\");\n\t\tanswers.add(id);\n\t\tanswers.add(\"8\");\n\t\tInput input = new StubInput(answers);\n\t\tnew StartUI(input, tracker).init();\n\t\tassertThat(out.toString(), containsString(\"comment1\"));\n\t\tassertThat(out.toString(), containsString(\"comment2\"));\n\t}", "title": "" }, { "docid": "64e26b2727ae892d2554893b0eaca856", "score": "0.5291196", "text": "@Override\n protected View onCreateContent(ViewStub contentStub) {\n contentStub.setLayoutResource(R.layout.feedback_activity);\n return contentStub.inflate();\n }", "title": "" }, { "docid": "7d91bd0b0b39189a2807f4a6ed27e413", "score": "0.52731067", "text": "@Test\n\tpublic void testNoContent() throws Exception {\n\t\tMockito.when(repository.query(any(QuestionSpecification.class))).thenThrow(new NoContentException());\n\n\t\tThrowable exception = null;\n\n\t\ttry {\n\t\t\tthis.mockMvc.perform(get(\"/questions\")).andReturn();\n\t\t} catch (NestedServletException e) {\n\t\t\texception = e.getRootCause();\n\t\t} finally {\n\t\t\tassertNotNull(exception);\n\t\t\tassertTrue(exception instanceof NoContentException);\n\t\t}\n\t}", "title": "" }, { "docid": "dd6b815b2abf203dd800652cd12dc55e", "score": "0.526216", "text": "@Test(timeout = 4000)\n public void test214() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Component component0 = hidden0.addInternalRenderHint(\"Could not encode string '\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "8fff8c4d695702628799f0fe70512586", "score": "0.5261831", "text": "@Test\n public void shouldShowErrorIfTaskIsEmpty() {\n Mockito.when(view.getTaskTitle()).thenReturn(\"\");\n\n presenter.initiateAddTask();\n\n Mockito.verify(view).showMessage(R.string.err_empty_task);\n\n }", "title": "" }, { "docid": "b65a2bf15bb3ecc230d27465cacd338c", "score": "0.524791", "text": "@Test\n public void testLoadLayout() throws WdkModelException {\n long stepId = 100069240;\n RunnableObj<Step> runnableStep = _wdkModel.getStepFactory()\n .getStepByValidId(stepId, ValidationLevel.RUNNABLE)\n .getRunnable()\n .getOrThrow(step -> new WdkModelException(\n \"Step with ID \" + stepId + \" is not runnable. \" + step.getValidationBundle().toString()));\n GeneSetLayoutManager layoutManager = new GeneSetLayoutManager(_wdkModel);\n GroupLayout layout = layoutManager.getLayout(AnswerValueFactory.makeAnswer(runnableStep), getLayoutJson().toString());\n Assert.assertEquals(6, layout.getNodes().size());\n }", "title": "" }, { "docid": "d5be32eaebaffe82d117767d718059f0", "score": "0.52368885", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = errorPage0.placeholder(\"\");\n assertEquals(\"Block_1\", block0.getComponentId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "66ef6b66bb0cabff745f31f24a8d6d84", "score": "0.5229297", "text": "@Override\n public void onFailure(Call<List<Comment>> call, Throwable t) {\n textView.setText(t.getMessage());\n }", "title": "" }, { "docid": "8b8b6108d715f7d24bd813a2252dc1cd", "score": "0.52280706", "text": "@Test\n\tpublic void whenAddCommentInItemThenThereIsRigthComment() {\n\t\tTracker tracker = new Tracker();\n\t\tItem item1 = new Item(\"name1\", \"desc1\");\n\t\ttracker.add(item1);\n\t\tString id = tracker.getAll().get(0).getId();\n\t\tArrayList<String> answers = new ArrayList<String>();\n\t\tanswers.add(\"6\");\n\t\tanswers.add(id);\n\t\tanswers.add(\"comment\");\n\t\tanswers.add(\"8\");\n\t\tInput input = new StubInput(answers);\n\t\tnew StartUI(input, tracker).init();\n\t\tassertThat(tracker.getAll().get(0).getComments().get(0), is(\"comment\"));\n\t}", "title": "" }, { "docid": "ea02cab9ae65fb2d80641887b8858a6f", "score": "0.5199543", "text": "@AlfrescoTest(testlink = \"AONE-5681\")\n @Test(groups = {\"WQS\", \"EnterpriseOnly\"})\n public void emptyFieldsInComment() throws Exception\n {\n String visitorName = \"name\" + getTestName();\n String visitorEmail = getTestName() + \"@\" + DOMAIN_FREE;\n String visitorWebsite = \"website \" + getTestName();\n String visitorComment = \"Comment by \" + visitorName;\n\n // ---- Step 1 ----\n // ---- Step action ----\n // Do not enter any data and click Post button;\n // ---- Expected results ----\n // Friendly notification is displayed;\n\n navigateTo(wqsURL);\n WcmqsHomePage homePage = new WcmqsHomePage(drone);\n homePage.selectMenu(WcmqsBlogPage.BLOG_MENU_STR);\n WcmqsBlogPage blogPage = new WcmqsBlogPage(drone);\n blogPage.clickLinkByTitle(WcmqsBlogPage.COMPANY_ORGANISES_WORKSHOP);\n WcmqsBlogPostPage wcmqsBlogPostPage = new WcmqsBlogPostPage(drone);\n wcmqsBlogPostPage.clickPostButton();\n assertThat(\"Main form error message is displayed! \", wcmqsBlogPostPage.isFormProblemsMessageDisplay());\n\n // ---- Step 2 ----\n // ---- Step action ----\n // Leave Name(mandatory) field empty, fill other fields with correct\n // data;\n // ---- Expected results ----\n // Data is entered successfully;\n\n wcmqsBlogPostPage.setVisitorEmail(visitorEmail);\n wcmqsBlogPostPage.setVisitorWebsite(visitorWebsite);\n wcmqsBlogPostPage.setVisitorComment(visitorComment);\n\n // ---- Step 3 ----\n // ---- Step action ----\n // Click Post button;\n // ---- Expected results ----\n // Friendly notification is displayed;\n\n wcmqsBlogPostPage.clickPostButton();\n assertThat(\"Verify name field error is displayed\", wcmqsBlogPostPage.getFormErrorMessages(), hasItem(equalTo(\"please enter a name\")));\n\n // ---- Step 4 ----\n // ---- Step action ----\n // Leave Email(mandatory) field empty, fill other fields with correct\n // data;\n // ---- Expected results ----\n // Data is entered successfully;\n\n wcmqsBlogPostPage.setVisitorName(visitorName);\n wcmqsBlogPostPage.setVisitorEmail(\"\");\n\n // ---- Step 5 ----\n // ---- Step action ----\n // Click Post button;\n // ---- Expected results ----\n // Friendly notification is displayed;\n\n wcmqsBlogPostPage.clickPostButton();\n assertThat(\"Verify email field error is displayed\", wcmqsBlogPostPage.getFormErrorMessages(), hasItem(equalTo(\"please enter an email address\")));\n\n // ---- Step 6 ----\n // ---- Step action ----\n // Leave Website field empty, fill other fields with correct data;\n // ---- Expected results ----\n // Data is entered successfully;\n\n wcmqsBlogPostPage.setVisitorEmail(visitorEmail);\n wcmqsBlogPostPage.setVisitorWebsite(\"\");\n\n // ---- Step 7 ----\n // ---- Step action ----\n // Click Post button;\n // ---- Expected results ----\n // Post is saved successfully;\n\n wcmqsBlogPostPage.clickPostButton();\n assertThat(\"Posting was succesfull\", wcmqsBlogPostPage.isAddCommentMessageDisplay());\n\n // ---- Step 8 ----\n // ---- Step action ----\n // Open Blog post again;\n // ---- Expected results ----\n // Blog post is opened;\n\n homePage = new WcmqsHomePage(drone);\n homePage.selectMenu(WcmqsBlogPage.BLOG_MENU_STR);\n blogPage = new WcmqsBlogPage(drone);\n blogPage.clickLinkByTitle(WcmqsBlogPage.COMPANY_ORGANISES_WORKSHOP);\n\n assertThat(\"Verify if the correct page opened \", blogPage.getTitle(), containsString(WcmqsBlogPage.COMPANY_ORGANISES_WORKSHOP));\n\n // ---- Step 9 ----\n // ---- Step action ----\n // Leave Comment field empty, fill other fields with correct data;\n // ---- Expected results ----\n // Data is entered successfully;\n\n wcmqsBlogPostPage.setVisitorName(visitorName);\n wcmqsBlogPostPage.setVisitorEmail(visitorEmail);\n wcmqsBlogPostPage.setVisitorWebsite(visitorWebsite);\n\n // ---- Step 10 ----\n // ---- Step action ----\n // Click Post button;\n // ---- Expected results ----\n // Friendly notification is displayed;\n\n wcmqsBlogPostPage.clickPostButton();\n assertThat(\"Verify comment textfield error is displayed\", wcmqsBlogPostPage.getFormErrorMessages(), hasItem(equalTo(\"please enter a comment\")));\n }", "title": "" }, { "docid": "dbb2f3b836262305a9a697ecfc5fe1c9", "score": "0.51954573", "text": "@Test\n public void ViewTest() throws Exception {\n displaysViewLoading.launchActivity(new Intent());\n onView(withText(R.string.From)).check(matches(isDisplayed()));\n onView(withText(R.string.OMEGA)).check(matches(isDisplayed()));\n onView(withText(R.string.University_of_Pretoria)).check(matches(isDisplayed()));\n onView(withText(R.string.app_name)).check(matches(isDisplayed()));\n onView(withText(R.string.motto)).check(matches(isDisplayed()));\n }", "title": "" }, { "docid": "c976b12389937bab805599728e17cfd8", "score": "0.51879877", "text": "@Test\n public void commentsWhenAttached() {\n selector.comments(Lists.newArrayList(\"test\"));\n part.comments(Lists.newArrayList(\"test\"));\n assertThat(part.comments()).hasSize(1);\n }", "title": "" }, { "docid": "a7723e781b6fc9047c29d301dbd3353d", "score": "0.51822156", "text": "@Test\n @DisplayName(\"상위 10개 소재 노출 실패 테스트 소재 풀이 비어있는 없는 경우\")\n public void get_top_10_advertisement_fail_test_empty_pool() throws Exception {\n mockMvc.perform(MockMvcRequestBuilders\n .get(DEFAULT_PATH))\n .andExpect(status().isOk());\n /* then */\n }", "title": "" }, { "docid": "d6533057cfbb514a7e09cf3420d78dad", "score": "0.5178104", "text": "public void testLoadRecenltyOpenIssues() {\n\t}", "title": "" }, { "docid": "eb71a9bb528f28158c705ce32ebb83ab", "score": "0.5173355", "text": "@Override\n \t\t\tpublic void onFailure(final Throwable caught) {\n \t\t\t\tGWT.log(\"AsyncCallback Failed: OnlineGlomService.getDetailsLayoutAndData(): \" + caught.getMessage());\n \t\t\t}", "title": "" }, { "docid": "13afdb63ab036311d76774feade8b5f1", "score": "0.5171081", "text": "@Override\n protected void assertPreRender() {\n }", "title": "" }, { "docid": "b323998a950d2a4636cbf940952b2bc5", "score": "0.5168114", "text": "@SmallTest\n public void testVisibility(){\n if(activity.getmProgressDialog().isShowing()){\n activity.getmProgressDialog().dismiss();\n }\n\n onView(withId(R.id.tvStudentConcessionCourse)).check(matches(isDisplayed()));\n onView(withId(R.id.tvStudentConcessionCourseVal)).check(matches(isDisplayed()));\n onView(withId(R.id.tvCommentView)).check(matches(isDisplayed()));\n onView(withId(R.id.StudentPdfView)).check(matches(isDisplayed()));\n }", "title": "" }, { "docid": "ddd1fcc41656c8cf0fd8b9001c66ffc9", "score": "0.51593035", "text": "@Test\n public void testComment() {\n // TODO: test Comment\n }", "title": "" }, { "docid": "e25dd1f855a95d14b1d6a9190511e8b9", "score": "0.515538", "text": "@Test(expected = IllegalArgumentException.class)\r\n public void testAddCommentWhenLineupIdIsNotSet() {\r\n presenter.addComment(\"Test\");\r\n }", "title": "" }, { "docid": "bcf362f3ca83bdfc2d9deec50d5d0b8b", "score": "0.51453245", "text": "@Test\n public void testRecyclerViewLayout() {\n // check whether recycleView exist\n onView(Matchers.<View>instanceOf(RecyclerView.class)).check(matches(isDisplayed()));\n // check item number is greater than 0\n onView(Matchers.<View>instanceOf(RecyclerView.class)).check(withItemCount(greaterThan(0)));\n // check item layout hierarchy\n onView(withText(\"Recipe 0\")).check(matches(withParent(Matchers.<View>instanceOf(LinearLayout.class))));\n onView(withText(containsString(\"description of Recipe 1\"))).check(matches(withParent(Matchers.<View>instanceOf(LinearLayout.class))));\n onView(withText(\"Recipe 0\")).check(matches(hasSibling(withText(containsString(\"description of Recipe 0\")))));\n onView(withText(\"Recipe 0\")).check(isCompletelyAbove(withText(containsString(\"description of Recipe 0\"))));\n }", "title": "" }, { "docid": "851d686f6769d13b5bbf9bca88cdeb44", "score": "0.5137944", "text": "@Test\n public void testException()\n {\n onView(withId(12345))\n .check(doesNotExist());\n }", "title": "" }, { "docid": "be4de781a053791cf8bfd731be14d290", "score": "0.51364076", "text": "public void clickOnComment() throws Throwable {\n dynamicWaitByLocator(RSPOrderDetailsPage.btnComment,60);\n click(RSPOrderDetailsPage.btnComment,\"Comment button\");\n }", "title": "" }, { "docid": "1644a0c8737768ea20636ffaa0863daa", "score": "0.51196927", "text": "@Test\n\tpublic void testSaveFromCreateComment() {\n\t\t// Comment: text, optional URL picture,rendezvous, user, originalComment, expectedException\n\t\tfinal Rendezvous rendezvous = this.rendezvousService.findOne(this.getEntityId(\"rendezvous1\"));\n\t\tfinal User user = this.userService.findOne(this.getEntityId(\"user1\"));\n\n\t\tfinal Object[][] testingData = {\n\n\t\t\t{\n\t\t\t\t\"testText1\", null, rendezvous, user, null, null\n\t\t\t}, {\n\t\t\t\t\"testText2\", \"http://images.nationalgeographic.com.es/medio/2015/12/21/bf63ef82rio_narcea_tineo_720x480.jpg\", rendezvous, user, null, null\n\t\t\t}, {\n\t\t\t\tnull, \"http://images.nationalgeographic.com.es/medio/2015/12/21/bf63ef82rio_narcea_tineo_720x480.jpg\", rendezvous, user, null, IllegalArgumentException.class\n\t\t\t}, {\n\t\t\t\t\"testText4\", \"DefinitelyNotAnURL\", rendezvous, user, null, ConstraintViolationException.class\n\t\t\t}, {\n\t\t\t\t\"testText5\", \"http://images.nationalgeographic.com.es/medio/2015/12/21/bf63ef82rio_narcea_tineo_720x480.jpg\", null, user, null, IllegalArgumentException.class\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.testSaveFromCreateCommentTemplate((String) testingData[i][0], (String) testingData[i][1], (Rendezvous) testingData[i][2], (User) testingData[i][3], (Comment) testingData[i][4], (Class<?>) testingData[i][5]);\n\n\t}", "title": "" }, { "docid": "a0b7cd06cc35d7fd235b5e63a52a27d9", "score": "0.5113319", "text": "@Test(expected = InvalidRequest.class)\r\n\tpublic void viewOrdersInvalidRequest() {\r\n\t\tString name = \"\";\r\n\t\tassertNotNull(testHandler.viewOrders(name, 0, 10));\r\n\t}", "title": "" }, { "docid": "b17555f32588eebe282a8ade553378c1", "score": "0.5109704", "text": "@Test\n public void testBlankHeaderNoComments()\n {\n String result;\n instance = getPage();\n //instance.setRenderComments(false);\n instance.setRunningEnvironment(DevelopmentEnvironments.Development);\n System.out.println(result = instance.toString(true));\n String expResult = \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"</html>\";\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "0bc9d832f63b0c9686d88929bde01a25", "score": "0.50996345", "text": "@Test\n public void test093() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.ul();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "title": "" }, { "docid": "60147fc7a99fa48bcc43b7788c4a03e2", "score": "0.5094127", "text": "@Test(timeout = 4000)\n public void test172() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.div();\n assertEquals(\"Block_1\", component0.getComponentId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "9449b2791cc24bd65031528c8c9a5c72", "score": "0.5088591", "text": "@Test\n public void validateFieldsStartActivity(){\n //validaing layout\n StartActivity activity = rule.getActivity();\n View viewById1 = activity.findViewById(R.id.busname);\n assertThat(viewById1,notNullValue());\n\n View viewById2 = activity.findViewById(R.id.busname);\n assertThat(viewById2,notNullValue());\n\n //View viewById3 = activity.findViewById(R.id.bussubmit);\n\n\n\n }", "title": "" }, { "docid": "373069816d9b623e9cbaf96baec834ea", "score": "0.50819844", "text": "private void initView() {\n Intent intent = getIntent();\n String url = intent.getStringExtra(Constant.STRING_URL);\n artId = intent.getLongExtra(Constant.STRING_ART_ID, 0L);\n userId = IPreference.prefHolder.getPreference(this).get(Constant.STRING_USER_ID, IPreference.DataType.STRING);\n configCommentBar();\n //在载入文章前展示progressbar\n mRecyclerView.setVisibility(View.INVISIBLE);\n mCommentBar.setVisibility(View.INVISIBLE);\n mProgressBar.setVisibility(View.VISIBLE);\n //-------------------------\n initRecyclerView();\n //展开评论框\n addDisposable(RxView.clicks(mTvComment).throttleFirst(Constant.THROTTLE_TIME, TimeUnit.MILLISECONDS).subscribe(o -> showCommentDialog()));\n addDisposable(RxView.clicks(ivBack).throttleFirst(Constant.THROTTLE_TIME, TimeUnit.MILLISECONDS).subscribe(o -> finish()));\n mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n switch (newState) {\n case RecyclerView.SCROLL_STATE_IDLE:\n isScrolling = false;\n break;\n case RecyclerView.SCROLL_STATE_DRAGGING:\n isScrolling = true;\n break;\n case RecyclerView.SCROLL_STATE_SETTLING:\n isScrolling = true;\n break;\n }\n }\n\n });\n list.add(new ReadNewsDetailBean(ReadNewsDetailBean.ITEM_WEBVIEW));\n mAdapter = new MultipleReadDetailAdapter(list);\n mAdapter.setWebViewUrl(url);\n mAdapter.setOnItemLongClickListener((adapter, view, position) -> {\n deleteItem = (ReadNewsDetailBean) adapter.getItem(position);\n int itemViewType = adapter.getItemViewType(position);\n if (TextUtils.equals(deleteItem.getUserId(), userId) && itemViewType == ReadNewsDetailBean.ITEM_COMMENTS) {\n showAlertDialog(R.string.ensure_delete, (dialog, which) -> mPresenter.deleteMineComment(deleteItem.getId()));\n }\n return false;\n });\n mAdapter.setOnItemChildClickListener((adapter, view, position) -> {\n ReadNewsDetailBean item = (ReadNewsDetailBean) adapter.getItem(position);\n switch (view.getId()) {\n case R.id.tv_detail_vote:\n boolean isLike = item.isLikedCommed();\n if (isLike) {\n mPresenter.userUnlikeComment(item.getId(), userId);\n item.setLikeCount(String.valueOf(Long.parseLong(item.getLikeCount()) - 1));\n } else {\n mPresenter.userLikeComment(item.getId(), userId);\n item.setLikeCount(String.valueOf(Long.parseLong(item.getLikeCount()) + 1));\n }\n item.setLikedCommed(!isLike);\n mAdapter.notifyItemChanged(position);\n break;\n case R.id.iv_detail_icon:\n photoPreviewWrapper(item.getHeadImg());\n break;\n }\n });\n mRecyclerView.setAdapter(mAdapter);\n }", "title": "" }, { "docid": "1d414d9b77ab35316a5a5206147648e8", "score": "0.5080663", "text": "@Test(timeout = 4000)\n public void test179() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = errorPage0.placeholder(\"\");\n block0.q((Object) null);\n assertEquals(\"Block_1\", block0.getComponentId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "b5537f0a084a5a8a77fc8e971f430b0c", "score": "0.5073165", "text": "@Then(\"User is directed to the edit comment box\")\npublic void user_is_directed_to_the_edit_comment_box() {\n\ttry {\n\t\tThread.sleep(3000);\n\t\tWebElement obj = driver.findElement(By.xpath(\"//*[@id=\\\"post\\\"]/div/h1\"));\n\t\tobj.click();\n\t\t\n\t} catch (Exception e) {\n \tSystem.out.println(e);\n \tAssert.fail();\n\t\n}\n}", "title": "" }, { "docid": "3243f2fcad0d764936d90840c64fd94d", "score": "0.50696605", "text": "@Test(timeout = 4000)\n public void test310() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.dl();\n component0.h5();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_1\", component0.getComponentId());\n }", "title": "" }, { "docid": "d647f3f233ca7d301c9d91b0be2bfe86", "score": "0.50535995", "text": "@Test(timeout = 4000)\n public void test319() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.div();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_1\", component0.getComponentId());\n }", "title": "" }, { "docid": "e0cf1ba6e5ecb46d83f3d6c152aadb08", "score": "0.5053", "text": "@Test(expected = IllegalArgumentException.class)\r\n public void testUpdateCommentWhenLineupIdIsNotSet() {\r\n presenter.updateComment(new Comment(), \"Test\");\r\n }", "title": "" }, { "docid": "d7be9e908109061e66f27000b04e6d66", "score": "0.50426906", "text": "@Test(timeout = 4000)\n public void test175() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Submit submit0 = new Submit(errorPage0, \"\", \"\");\n Hidden hidden0 = new Hidden(submit0, (String) null, \"\");\n Component component0 = errorPage0.tt((Object) hidden0);\n component0.span((Object) errorPage0);\n assertTrue(hidden0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "c03be06e3fba29114a04eea2581e11e8", "score": "0.50423795", "text": "@Test\n public void viewTest() {\n // TODO: test view\n }", "title": "" }, { "docid": "68af57c051ccade2f33076be6d48fd4e", "score": "0.50292104", "text": "public interface ICommentView extends IBaseView {\n void getCommentListSuccess(MessageCommentListProtocl messageCommentListProtocl);\n void getCommentListFailure(String message);\n void sendCommentSuccess(String message);\n void sendCommentFailure(String message);\n}", "title": "" }, { "docid": "995ea79e9b0063eeda7b113e0ac563d5", "score": "0.5026111", "text": "public void addComment() {\n Comment newComment = new Comment(\"Status\", commentField.getText(), App.userService.getActiveUser().getUserName(), CommentType.DEFAULT);\n App.requestService.addComment(this.parent.request, newComment);\n generateCommentHelper(this.parent.request.getGenericRequest().getComments().size()-1);\n //System.out.println(\"The end size is: \"+this.parent.request.getGenericRequest().getComments().size());\n commentField.setText(\"\");\n }", "title": "" }, { "docid": "387c6edb4d7c7fbffc46680360cc7f29", "score": "0.50215524", "text": "@Test\n public void test095() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.div();\n assertTrue(block0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "2e0b08c47fe95337d15e40a6451bb898", "score": "0.5017425", "text": "@Test(timeout = 4000)\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n List<CharSequence> list0 = errorPage0._getRenderHints();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertNotNull(list0);\n }", "title": "" }, { "docid": "a58d9d9453ea2ce231913a67b8fa8b7d", "score": "0.501261", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tisLoading = true;\n\t\t\twaitView.setVisibility(View.VISIBLE);\n\t\t\t// commentListview.setVisibility(View.GONE);\n\t\t\tsuper.onPreExecute();\n\t\t}", "title": "" }, { "docid": "9786b28573a54aeab5342004810fc3df", "score": "0.5003785", "text": "@Test(timeout = 4000)\n public void test118() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.span();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_1\", component0.getComponentId());\n }", "title": "" }, { "docid": "c3d1bc1bb856d6b66f1827c2c053d8cc", "score": "0.5002508", "text": "@Test\n public void whenTryToAddCommentToTaskAndIdIsCorrectThenTaskWithCommentIsPrintedInOutput() {\n Task mockTask = new Task();\n mockTask.setName(\"Test task\");\n mockTask.setDescription(\"Test description\");\n\n this.taskTracker.add(mockTask);\n\n long testTaskId = mockTask.getId();\n\n this.stubInputDictionary.put(\"stubInputLine\", new String[]{\"6\", \"Test comment\", \"7\"});\n this.stubInputDictionary.put(\"stubYesNoAnswer\", new String[]{\"Y\"});\n this.stubInputDictionary.put(\"stubInputId\", new String[]{Long.toString(testTaskId)});\n\n this.stubInput = new StubInput(this.stubInputDictionary);\n\n new StartUI(this.taskTracker, this.stubInput).init();\n\n Assert.assertThat(outputContent.toString(), containsString(mockTask.toString()));\n }", "title": "" }, { "docid": "b932486f700f51ec983e7d1cbb319585", "score": "0.5000201", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n TableBlock tableBlock0 = new TableBlock(errorPage0, \"~:WL;MJgFX2K76Y\");\n TextArea textArea0 = new TextArea(tableBlock0, \"yes\", \"/:vJkCY\");\n textArea0.renderHint(\"/:vJkCY\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "e43c7ac43863423e2199253d2f93aac8", "score": "0.4993817", "text": "@Test(timeout = 4000)\n public void test325() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.p();\n assertEquals(\"Block_1\", component0.getComponentId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "d9c0d4459f91b5b528e333fa0200ccc1", "score": "0.49929935", "text": "public void clickOnAddCommentsButtonInCommentsModalWindow() throws Throwable {\n dynamicWaitByLocator(RSPOrderDetailsPage.btnAddCommetnsInCommentsTab,60);\n click(RSPOrderDetailsPage.btnAddCommetnsInCommentsTab,\"Add comments\");\n }", "title": "" }, { "docid": "df8b20b4bda71d0b098aa298503814e8", "score": "0.4981826", "text": "@Test\n public void validateFieldsRegisterActivity(){\n StartActivity activity = rule.getActivity();\n //validaing layout\n View viewById1 = activity.findViewById(R.id.unid_Reg);\n assertThat(viewById1,nullValue());\n\n View viewById2 = activity.findViewById(R.id.pw_Reg);\n assertThat(viewById2,nullValue());\n\n View viewById3 = activity.findViewById(R.id.email_Reg);\n assertThat(viewById3,nullValue());\n\n View viewById4 = activity.findViewById(R.id.address_Reg);\n assertThat(viewById4,nullValue());\n\n View viewById5 = activity.findViewById(R.id.cpw_Reg);\n assertThat(viewById5,nullValue());\n\n //View viewById3 = activity.findViewById(R.id.bussubmit);\n\n\n\n }", "title": "" } ]
0f968715e73c180fc8860caa45440031
Change player velocity, direction and size(crouch)
[ { "docid": "1794c61cf99204d1423508dd37dcc2bb", "score": "0.0", "text": "@Override\n public void keyPressed(KeyEvent e) {\n if (paused) return;\n if (p1.getYOrd() == jjm.GAME_HEIGHT1 - p1.getPlayerHeight()) updatePlayer(e, p1);\n if (multiplayer && p2.getYOrd() == jjm.GAME_HEIGHT2 - p2.getPlayerHeight()) updatePlayer(e, p2);\n }", "title": "" } ]
[ { "docid": "30a2fd8f5b37e9217e8c2635ae1404e0", "score": "0.6702331", "text": "@Override\n public void apply(){\n setVelocity(0,0);\n }", "title": "" }, { "docid": "2d24a6fd910cc2dc16ff851dba0060c1", "score": "0.66954273", "text": "public void setVelocity() {\n Random rand = new Random();\n int angle = rand.nextInt(DEGREES);\n int r = this.getSize();\n int proportionalV;\n\n //default of big balls\n if (r > BIG_BALL) {\n proportionalV = SLOW_BALL;\n } else {\n proportionalV = (int) ((INCLINE * r) + INTERSECTION);\n }\n this.velocity = Velocity.fromAngleAndSpeed((double) angle,\n proportionalV);\n }", "title": "" }, { "docid": "45205c44d6666f7d5b3472050ce1fb99", "score": "0.6661972", "text": "@Override\n public void apply(){\n setVelocity(0, 0);\n }", "title": "" }, { "docid": "79ff077277cc29b1e31f5ed2a2b495ff", "score": "0.66440684", "text": "private void setVelocity(int direction) {\n this.velY = (int)(direction*getVelocityY());\n super.setVelocity(0,velY);\n}", "title": "" }, { "docid": "2d218f72fa18dd28a8f21a6e98aa7f7e", "score": "0.6522946", "text": "@Override\n public void increaseGameStage() {\n setVelocity(getVelocity() + SHARK_SPEED_INCREASE);\n }", "title": "" }, { "docid": "af10317a86fc7fa634ff23c3c8a38662", "score": "0.64633536", "text": "private void setVelocity() {\r\n\t\tvy = 0;\r\n\t\tvx = 0;\r\n\t\tvx = rgen.nextDouble(1.0, 5.0);\r\n\t\tif (rgen.nextBoolean(0.5)) vx = -vx;\r\n\t}", "title": "" }, { "docid": "ce7ac6e58f919e91b9c51451f97f9393", "score": "0.643691", "text": "void setVelocity(Vector _v) { \n\t\t v = new Vector(_v); \n\t}", "title": "" }, { "docid": "a2718d5410b4e138fc562645915aa457", "score": "0.64263487", "text": "public void setVelocity(Vect newVelocity){\n this.velocity = newVelocity;\n }", "title": "" }, { "docid": "f280ee736880e84572e5604b6a7f67c9", "score": "0.6347066", "text": "public void setVelocity(Velocity v) {\r\n this.velocity = v;\r\n }", "title": "" }, { "docid": "f280ee736880e84572e5604b6a7f67c9", "score": "0.6347066", "text": "public void setVelocity(Velocity v) {\r\n this.velocity = v;\r\n }", "title": "" }, { "docid": "c1effe4002ce9a3feadf3cd661902066", "score": "0.63408494", "text": "@Override\n\tpublic void execute()\n\t{\n\t\tshooter.setVelocity(velocity);\n\t}", "title": "" }, { "docid": "d39cfb1c430071f4d64656de9dc6a69b", "score": "0.6319577", "text": "public void setVelocity(Velocity velocity) {\r\n v = velocity;\r\n }", "title": "" }, { "docid": "1fd46f7e02f862bd182540f34ba68aab", "score": "0.63175744", "text": "public void update(){\r\n view.setTranslateX(view.getTranslateX() + velocity.getX());\r\n view.setTranslateY(view.getTranslateY() + velocity.getY());\r\n }", "title": "" }, { "docid": "dbc35d631135d128b9dd90d80d91f87b", "score": "0.6245973", "text": "public void updatePosition()\r\n {\r\n pos.x = pos.x + vel.x;\r\n pos.y = pos.y + vel.y;\r\n }", "title": "" }, { "docid": "d1e00cb85e3e38b41974ac8b7cbde615", "score": "0.62053484", "text": "public void updateVelocity() {\n this.velocity = this.maxVelocity;\n }", "title": "" }, { "docid": "bcb33b37a974c23b0ce82511c1ae0737", "score": "0.62006205", "text": "void update() {\n setX(getX() + horSpeed);\n setY(getY() + verSpeed);\n }", "title": "" }, { "docid": "0f8f4d04798d876801d8c7446147e88f", "score": "0.61754775", "text": "StateChangingVec2d velocity();", "title": "" }, { "docid": "de6e802e67a110ae1ee40d368f70257b", "score": "0.61171126", "text": "public void velocityChangeHero(int a){\n hero.startWalking(a);\n }", "title": "" }, { "docid": "0bdf26e198264ff5e004c60554883b1d", "score": "0.6102886", "text": "public void setVelocity(Vector3D v) {\n\tthis.velocity = new Vector3D(v);\n }", "title": "" }, { "docid": "36b7ab9f3868ce03cd1b6666faad5b20", "score": "0.60681176", "text": "void scaleCars() {\n\t\tplayer.scaleTo(0.5);\n\t}", "title": "" }, { "docid": "a7e914a15de09857c66a7757bac1ef7e", "score": "0.60659057", "text": "public Player(){\n\t\tx = 300;\n\t\ty = 600;\n\t\tlength = 10;\n\t\twidth = 40;\n\t\tc = Color.black;\n\t\tspeed = 0;\n\t\tspeedSet = 4;\n\t}", "title": "" }, { "docid": "5c36502e55b936fee38235338b1ea33f", "score": "0.60658234", "text": "public void changeSpeed(){\n\t\tdouble error = target_velocity - velocity;\n\t\tif(Math.abs(error) < 0.5){\n\t\t\terror = 0;\n\t\t\tvelocity = target_velocity;\n\t\t}\n\t\tdouble control = error * Kp;\n\t\t//Update delayed states\n\t\tvelocity_delayed = velocity;\n\t\tacceleration_delayed = acceleration;\n\t\t//Calculate the new acceleration based on the control\n\t\tif(control == 0) {\n\t\t\tacceleration = 0;\n\t\t}\n\t\telse {\n\t\t\tacceleration = (control-damping*velocity)/mass;\n\t\t}\n\t\t//Integrate acceleration to get velocity and position\n\t\tvelocity = velocity + step / 2 * (acceleration + acceleration_delayed);\n\t\tif(velocity < 0) {\n\t\t\tvelocity = 0;\n\t\t}\n\t\tposition = position + step / 2 * (velocity + velocity_delayed);\n\t\tthis.energy_used += Math.abs(step / 2 * (velocity + velocity_delayed) * control);\n\t\tassert velocity >= 0 : \"we don't go in reverse... target_velocity = \" + this.target_velocity + \" acceleration=\" + acceleration ;\n\t}", "title": "" }, { "docid": "84b808e4953d3887b3265268dab1e84b", "score": "0.60609925", "text": "public abstract void setDesiredVelocity(int axis, float value);", "title": "" }, { "docid": "558d007c4ea460b1d56e09ce57ee4fd7", "score": "0.60524666", "text": "public void doVel() //moves the ship based on current x and y velocity\n {\n addPosition(state.get(2), state.get(3));\n }", "title": "" }, { "docid": "2ad3236ae04d1bfb1fb332ed82aaa04f", "score": "0.60446155", "text": "void setVelocity(double[] vel);", "title": "" }, { "docid": "c1c7cfc5882233ac90ab74d565863bed", "score": "0.6023993", "text": "public void moveNorth(int velocity);", "title": "" }, { "docid": "b6e930e32258c28eff1f7f0af0778beb", "score": "0.6016449", "text": "private void steerVelocity() {\n\n acceleration = destination.sub(position, new Vector3f());\n acceleration.normalize();\n acceleration.mul((float)Engine.timer.getDT() * 4);\n velocity.add(acceleration);\n }", "title": "" }, { "docid": "e21f714fa607f9d98805b7f51ce5fb6c", "score": "0.60001135", "text": "@Override\r\n\tpublic void tick() {\n\t\tx += velX;\r\n\t\ty += velY;\r\n\t\r\n\t\tx = Main.clamp(x, 0, Main.WIDTH - 40);\r\n\t\ty = Main.clamp(y, 100, Main.HEIGHT - 105);\r\n\r\n\t}", "title": "" }, { "docid": "795db99620275dadc59079d97533bebd", "score": "0.5979744", "text": "public void move() {\n\n\t\t// set velocity depending on acceleration\n\t\tvelocity.add(acceleration);\n\n\t\t// limit velocity to max speed\n\t\tvelocity.limit(maxSpeed);\n\n\t\t// change location depending on velocity\n\t\tlocation.add(velocity);\n\n\t\t// angle: towards velocity (ie target)\n\t\tangle = velocity.angle();\n\n\t\t// clear acceleration\n\t\tacceleration.multiply(0);\n\t}", "title": "" }, { "docid": "ebd48ba84887485a3814483d97945e9c", "score": "0.59728396", "text": "public void move(){\n\t\tdouble v0 = velocity; // get current velocity\n\t\tdouble v = v0 - g*t; // calculate v after t unit time\n\t\tvelocity = v; \t\t // set current velocity to v\n\t\ts = v0*t - 0.5 * g * t * t; // calculate the vertical displacement\n\t\ty = y - (int)s; // calculate y coordinate \n\t\tangle = -Math.atan(s/8); // calculate the flying angle\n\t\tif(y>=480){\n\t\t\ty=480;\n\t\t\tv=0;\n\t\t\tangle = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "a55d1630f86e7c1b8c2d44c1cf0c8c4e", "score": "0.5971627", "text": "protected void setVelocity(PlayerState.Direction direction)\n\t{\n\t\tif (direction == PlayerState.Direction.LEFT)\n\t\t{\n\t\t\tPhysicsHelper.setLinearVelocity(getPlayer(), -getPlayer().getStep(),\n\t\t\t PhysicsHelper.getLinearVelocity(getPlayer())[1]);\n\t\t}\n\t\telse if (direction == PlayerState.Direction.RIGHT)\n\t\t{\n\t\t\tPhysicsHelper\n\t\t\t\t.setLinearVelocity(getPlayer(), getPlayer().getStep(), PhysicsHelper.getLinearVelocity(getPlayer())[1]);\n\t\t}\n\t\t//Possibly could add option of direction UP later, but my design works in the opposite way\n\t}", "title": "" }, { "docid": "4211f88e688c6a407b43b1968426465d", "score": "0.5970023", "text": "public void move(){\n this.setxCoordinate(xCoordinate + xVelocity);\n this.setyCoordinate(yCoordinate + yVelocity);\n this.setHitbox(new Rectangle(xCoordinate, yCoordinate, PLAYER_WIDTH, PLAYER_HEIGHT));\n }", "title": "" }, { "docid": "fcb35d0e5b679c77b0b5d654a3322cee", "score": "0.59304804", "text": "private void updateSpeed(){\n\t\tthis.speed=this.gear*this.cadence;\n\t}", "title": "" }, { "docid": "b955fdbe53657885abbdff661a2d54b1", "score": "0.5930439", "text": "ChangeSpeedCommand(Ship ship,double delta){\n\t\tthis.ship=ship;\n\t\tthis.delta=delta;\n\t}", "title": "" }, { "docid": "d1a56e750c1292c3a3b8b3073624730a", "score": "0.59240043", "text": "public void setVelocity(Velocity v) {\n this.setVelocity(v.getDx(), v.getDy());\n }", "title": "" }, { "docid": "1af67412aa8ef8f5713ea4c9bc0d0db6", "score": "0.5916673", "text": "@Override\r\n\tpublic void update() {\r\n\t\t// Setting up the variables.\r\n\t\tfloat xa = 0;\r\n\t\tfloat ya = 0;\r\n\t\tfloat speed = 0;\r\n\r\n\t\t// Getting the moving speed for the player.\r\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) speed = getSpeed(true);\r\n\t\telse speed = getSpeed(false);\r\n\r\n\t\t// Where is the player going to move.\r\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_W) || Keyboard.isKeyDown(Keyboard.KEY_UP)) ya -= speed;\r\n\t\telse if (Keyboard.isKeyDown(Keyboard.KEY_S) || Keyboard.isKeyDown(Keyboard.KEY_DOWN)) ya += speed;\r\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_A) || Keyboard.isKeyDown(Keyboard.KEY_LEFT)) xa -= speed;\r\n\t\telse if (Keyboard.isKeyDown(Keyboard.KEY_D) || Keyboard.isKeyDown(Keyboard.KEY_RIGHT)) xa += speed;\r\n\r\n\t\t// Updating the player facing side.\r\n\t\tgetSide(xa, ya);\r\n\r\n\t\t// Moving the player to the final destination.\r\n\t\tthis.x += xa;\r\n\t\tthis.y += ya;\r\n\r\n\t\t// Update the Offset of the world.\r\n\t\tthis.world.setOffset((int) ((this.x + (this.width / 2)) - GeneralSettings.WIDTH / 2), (int) (this.y + (this.height / 2) - GeneralSettings.HEIGHT / 2));\r\n\t}", "title": "" }, { "docid": "e936235ffd05c58fc2292aeade1eab2f", "score": "0.5900651", "text": "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t\tfloat w = mLength * (mCurrentHp / mMaxHp);\r\n\t\tmHpFlow.setWidth(w);\r\n\t}", "title": "" }, { "docid": "96f2cf3464b1cef27d2cd6c1585d0e19", "score": "0.5895596", "text": "public void update(){\n\t\tif(player.getX() < 4262){\n\t\t\tplayer.setLeft(false);\n\t\t\tplayer.setRight(true);\n\t\t\treturn;\n\n\t\t}\n\t\tif(player.getX() > 4315){\n\t\t\tplayer.setRight(false);\n\t\t\tplayer.setLeft(true);\n\t\t\treturn;\n\t\t}\n\t\tplayer.setRight(false);\n\t\tplayer.setLeft(false);\n\n\t}", "title": "" }, { "docid": "95dd452775c1be1a3075b937831fe764", "score": "0.5879741", "text": "public void changeDirection() {\n xVelocity *= -1;\n }", "title": "" }, { "docid": "40674e90b2d6b087c899751b401737c3", "score": "0.5869859", "text": "public void move() {\r\n\t\tthis.x += this.velocityX;\r\n\t\tthis.y += this.velocityY;\r\n\t}", "title": "" }, { "docid": "86f30db5fa6a6b1d01aa60f1cb3a992e", "score": "0.58685434", "text": "@Override\n public void update(double deltaTime){\n this.position.add(this.velocity.x * deltaTime, this.velocity.y * deltaTime);\n this.wrap(1600,900);\n }", "title": "" }, { "docid": "49607c4b69bb36b775df646be0c9b7d1", "score": "0.5852691", "text": "public void setVelocity(Point2D velocity) {\r\n this.velocity = velocity;\r\n }", "title": "" }, { "docid": "2879c2479f733b974e67e417b6aae5e3", "score": "0.58492196", "text": "public void setSpeedY(double speed){ballSpeedY = speed;}", "title": "" }, { "docid": "a6ae9f123a606ef89e4f5fa1fc051ac1", "score": "0.58411634", "text": "public void setSpeedY(double v){\n\t\t\tspeedY = v;\n\t}", "title": "" }, { "docid": "d4aa682400cfb79fe4832e9c7dbd8bb8", "score": "0.58377117", "text": "@Override\n public void update() {\n //if the object is not removed, change the coordinates as per the speed in X and Y direction\n //allows the bullets to be shot\n if(this.getRemoval()) { }\n else {\n x_coordinate += speedX;\n y_coordinate += speedY;\n }\n }", "title": "" }, { "docid": "70e6f23f5b83b61585b4c5d2c58cec9b", "score": "0.58325416", "text": "public Spaceship(double v) {\n\tvelocity = v;\n }", "title": "" }, { "docid": "f836d66313723e287ff00c0a6d96e4b9", "score": "0.5827005", "text": "public void update(){\n veloController.setTargetVelocity(targetVelo);\n veloController.setTargetAcceleration((targetVelo - lastTargetVelo) / veloTimer.seconds());\n veloTimer.reset();\n\n lastTargetVelo = targetVelo;\n\n // Get the velocity from the motor with the encoder\n double motorPos = left.getCurrentPosition();\n double motorVelo = left.getVelocity();\n\n // Update the controller and set the power for each motor\n double power = veloController.update(motorPos, motorVelo);\n left.setPower(power);\n right.setPower(power);\n }", "title": "" }, { "docid": "13acd72317440b0e4a292a6b2160a11a", "score": "0.5826226", "text": "public Weapon() {\n\t\tthis.isCollided = false;\n\t\tthis.isExploded = false;\n//\t\tthis.timeBeforeExplosion = 3f;\n\t\tthis.size = new Vector2(10, 10);\n\t\tthis.centre = new Vector2(this.getX() + this.getSize().x / 2f, this.getY() + this.getSize().y / 2f);\n\t}", "title": "" }, { "docid": "6f7f4191cd66e68cf905c566a59de660", "score": "0.58212507", "text": "private void updatePlayer(KeyEvent e, Player p) {\n // player jumped\n if (e.getKeyCode() == KeyEvent.VK_UP) {\n setOriginalHeight(p);\n p.setVelY(-jjm.getPlayerVel());\n }\n // player crouched\n else if (e.getKeyCode() == KeyEvent.VK_DOWN) {\n if (p.getPlayerHeight() == jjm.PLAYER_HEIGHT) {\n p.setPlayerHeight(p.getPlayerHeight() / 2);\n p.setYOrd(p.getYOrd() + p.getPlayerHeight());\n }\n }\n }", "title": "" }, { "docid": "5280446de6c885ff200c44ac7cc658e1", "score": "0.58194625", "text": "private void updatePlayer() {\r\n mPlayer.setHealth(Math.max(0.0, mPlayer.getHealth() - 5.0 - (mPlayer.getEquipmentMass() / 2.0)));\r\n }", "title": "" }, { "docid": "6a471bfda458521cb58e6f6eb2df50c0", "score": "0.58159745", "text": "public void move() {\r\n if (this.pos.x < 0) {\r\n this.pos.x = 420;\r\n } else if (this.pos.x > 420) {\r\n this.pos.x = 0;\r\n } else {\r\n this.pos.x += this.velocity;\r\n }\r\n }", "title": "" }, { "docid": "2ea9fd1a4c43714b585e379219da37f7", "score": "0.581331", "text": "void changeSpeed(int speed) {\n if (verSpeed < 0) {\n verSpeed -= speed;\n } else {\n verSpeed += speed;\n }\n if (horSpeed < 0) {\n horSpeed -= speed;\n } else {\n horSpeed += speed;\n }\n }", "title": "" }, { "docid": "82c39b68dabd0ea22d039db39caeaac8", "score": "0.58132166", "text": "public void update() {\n\t\tthis.x += this.xVelocity;\n\t\tthis.y += this.yVelocity;\n\t}", "title": "" }, { "docid": "59ab5ba35d299250991d693e6b590782", "score": "0.5804858", "text": "public void setVelocity(Vector2 velocity) {\n this.velocity = velocity;\n }", "title": "" }, { "docid": "defec42934a18c8779e6599b45f2a23b", "score": "0.57966524", "text": "public void update(){\n\t\toldPosition = position.clone();\n\t\tmotion.y += gravity;\n\t\tsuper.update();\n\t}", "title": "" }, { "docid": "3a7fee1d28eeee6cff8e0d711263be07", "score": "0.5792342", "text": "default void move() {\r\n\t\tgetVelocity()[0] = getVelocity()[0]\r\n\t\t\t\t- Config.getInstance().getAirDrag() * Functions.mathOperator.SignumFunction(getVelocity()[0]);\r\n\t\tif (getPosition()[0] > Config.getInstance().getRightWall() - (float) getRadius()) {\r\n\t\t\tgetVelocity()[0]\t= -Config.getInstance().getLossOfEnergyAtTheWall() * getVelocity()[0];\r\n\t\t\tgetPosition()[0]\t= Config.getInstance().getRightWall() - (float) getRadius();\r\n\t\t} else {\r\n\t\t\tif (getPosition()[0] < Config.getInstance().getLeftWall() + (float) getRadius()) {\r\n\t\t\t\tgetVelocity()[0]\t= -Config.getInstance().getLossOfEnergyAtTheWall() * getVelocity()[0];\r\n\t\t\t\tgetPosition()[0]\t= Config.getInstance().getLeftWall() + (float) getRadius();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getPosition()[1] + getVelocity()[1] >= Config.getInstance().getBottom() - getRadius()) {\r\n\t\t\tgetPosition()[1] = Config.getInstance().getBottom() - getRadius();// 0.5*(Position[1]+Bottom-Radius);\r\n\t\t\tif (Functions.mathOperator.Abs(getVelocity()[1]) < Config.getInstance().getMinVerVel()) {\r\n\t\t\t\tgetVelocity()[1] = 0;\r\n\t\t\t} else {\r\n\t\t\t\tif (getVelocity()[1] >= 0) {\r\n\t\t\t\t\tgetVelocity()[1] = -Config.getInstance().getLossOfEnergyAtTheWallByDrag() * getVelocity()[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgetVelocity()[1] = Config.getInstance().getLossOfEnergyAtTheWallByDrag() * getVelocity()[1]\r\n\t\t\t\t\t\t\t- Config.getInstance().getAirDrag()\r\n\t\t\t\t\t\t\t\t\t* Functions.mathOperator.SignumFunction(getVelocity()[1])\r\n\t\t\t\t\t\t\t+ getMass() * Config.getInstance().getGravitationalConstant();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tgetVelocity()[1] = getVelocity()[1]\r\n\t\t\t\t\t- Config.getInstance().getAirDrag() * Functions.mathOperator.SignumFunction(getVelocity()[1])\r\n\t\t\t\t\t+ Config.getInstance().getGravitationalConstant();\r\n\t\t}\r\n\t\tsetPosition(Functions.mathOperator.AdditionOfVectors(getPosition(), getVelocity()));\r\n\t}", "title": "" }, { "docid": "fcfb09d6ef7b77b8bee760da1d70008a", "score": "0.57773", "text": "public static void update(){\n /*if(getVel() == 0){\n setPos(0,0);\n } */\n }", "title": "" }, { "docid": "40cecbeab2f259c4738e86434df2a42a", "score": "0.5767454", "text": "void setYVel(double yVel);", "title": "" }, { "docid": "979d717977851639368a766093ad5a88", "score": "0.575175", "text": "public void updatePosition() {\n float vx = map(noise(xoff),0,1,-vMax,vMax);\n float vy = map(noise(yoff),0,1,-vMax,vMax);\n velocityNoise = new PVector(vx,vy);\n xoff += step;\n yoff += step;\n velocity = PVector.lerp(velocityLinear, velocityNoise, noisePercent); //<>// //<>// //<>//\n float screwAngle = map(maturity, 0, 1, 0, spiral * TWO_PI);\n if (dna.genes[11] >= 0.5f) {screwAngle *= -1;}\n velocity.rotate(screwAngle);\n position.add(velocity);\n }", "title": "" }, { "docid": "76371a1d981c816611b5ee7da7d70137", "score": "0.5743837", "text": "public void update() {\r\n\t\tif (lockOnHero == true) {\r\n\t\t\tup = false;\r\n\t\t\tdown = false;\r\n\t\t\tleft = false;\r\n\t\t\tright = false;\r\n\t\t}\r\n\t\tif (up) {\r\n\t\t\tthis.setY(this.getY() - SPEED);\r\n\t\t} else if (down) {\r\n\t\t\tthis.setY(this.getY() + SPEED);\r\n\t\t} else if (left) {\r\n\t\t\tthis.setX(this.getX() - SPEED);\r\n\t\t} else if (right) {\r\n\t\t\tthis.setX(this.getX() + SPEED);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6b5ef933f5d96f5449b5f38c676e78f8", "score": "0.573998", "text": "private void updateVelocity(double velocity) {\n labelVelocity.setText(\"Velocity relative to \" + centerBodyName + \" \" + DFNODEC.format(velocity) + \" m/s\");\n }", "title": "" }, { "docid": "91e8ef867925ffa04c4f2ad49e0770c0", "score": "0.57398444", "text": "public void setVelocity(double value) {\n lastVelocity = velocity;\n velocity = value;\n }", "title": "" }, { "docid": "7cc80961817ec8ef6222a009fd1253f2", "score": "0.5733233", "text": "public void setShipSpeed(double speed) {\r\n \r\n\t\tthis.speed = speed; \r\n \r\n\t}", "title": "" }, { "docid": "8c40d402e57fab33a2ec0066b1a0d256", "score": "0.5732567", "text": "public void update() {\n if(Globals.started && !Globals.paused) {\n // Calculate the player's angle based on the mouse position.\n double cX = player.getCenterX();\n double cY = player.getCenterY();\n double pAngle = Math.atan2((cY - Globals.mousePos.y), (cX - Globals.mousePos.x)) - Math.PI / 2;\n player.rotate(pAngle);\n \n // Move the player according to which keys are being held down.\n for(int i = 0; i < Globals.keys.length; i++) {\n if(Globals.keys[i]) player.move(i);\n }\n \n // If the left mouse button is held down, create a new projectile.\n if(Globals.buttons[0]) {\n Point target = new Point(Globals.mousePos);\n Point2D.Double pos = new Point2D.Double((player.x + 28), (player.y - 8));\n AffineTransform.getRotateInstance(pAngle, player.getCenterX(), player.getCenterY()).transform(pos, pos);\n double theta = Math.atan2((target.x - pos.x), (target.y - pos.y));\n player.getWeapon().fire(theta, pos);\n }\n \n // Update zombie vectors and positions.\n if(!zombies.isEmpty()) {\n for(Zombie z : zombies) {\n // Update the zombie animation.\n z.getImage().update();\n \n // Update the zombie's movement vector.\n Vector2D v_ = new Vector2D((player.getCenterX() - z.getCenterX()), \n (player.getCenterY() - z.getCenterY()));\n Vector2D n_ = v_.normalize();\n if(v_.getLength() >= 5) {\n // Update the zombie's position on the screen.\n z.x += n_.x;\n z.y += n_.y;\n z.getImage().move((int)z.x, (int)z.y);\n \n // Update the zombie's rotation toward the player.\n double angle = Math.atan2((z.getCenterY() - player.getCenterY()), \n (z.getCenterX() - player.getCenterX())) - Math.PI / 2;\n z.rotate(angle);\n }\n }\n }\n \n // If the zombie spawn counter has reached 0, spawn a new zombie.\n if(zSpawn == 0) {\n createZombie();\n zSpawn = Globals.SPAWN_TIME;\n } else zSpawn--;\n \n // If the player is touching a zombie, damage him according to the zombie's damage.\n if(!zombies.isEmpty()) {\n for(Zombie z : zombies) {\n if(player.intersects(z)) player.takeDamage(z.getDamage());\n }\n }\n \n { // Check to see if the player has collected any items.\n Iterator<Item> it = this.items.iterator();\n while(it.hasNext()) {\n Item i = it.next();\n if(this.player.contains(i)) {\n i.applyEffect(this.player);\n it.remove();\n }\n }\n } // End checking for item collisions.\n \n // Check to see if the player is still alive. If not, take away a life and reset.\n if(!player.isAlive()) {\n player.die();\n if(player.getLives() == 0) {\n // Reset the game.\n Globals.started = false;\n player.reset();\n zombies = new ArrayList<Zombie>();\n items = new ArrayList<Item>();\n Iterator<Weapon> it = player.getAllWeapons().iterator();\n while(it.hasNext()) {\n Weapon w = it.next();\n w.resetAmmo();\n }\n }\n loadout.setCurrentWeapon(1);\n }\n\n { // Begin weapon updates.\n Iterator<Weapon> it = this.player.getAllWeapons().iterator();\n while(it.hasNext()) {\n Weapon w = it.next();\n w.updateWeapon();\n }\n } // End weapon updates.\n\n { // Do zombie updates.\n // Check for collisions between zombies and ammo.\n Iterator<Zombie> it = this.zombies.iterator();\n while(it.hasNext()) {\n Zombie z = it.next();\n int damage = player.getWeapon().checkForDamage(z);\n if(damage > 0) {\n z.takeDamage(damage);\n if(z.isDead()) {\n score += z.getScore();\n it.remove();\n }\n }\n }\n } // End zombie updates.\n }\n }", "title": "" }, { "docid": "24b72c3d5bc1eb2cf394781a73f93f71", "score": "0.57245034", "text": "public void move() {\n setX(getX() - getVelocity());\n }", "title": "" }, { "docid": "f07e4adbf7e5768d328f03e049319c66", "score": "0.5721437", "text": "public void setVelocity(int velocity) {\r\n\t\tnoteVelocity = velocity;\r\n\t}", "title": "" }, { "docid": "7dcee7bedb2dc494e065700ba47bcae2", "score": "0.5712706", "text": "public void setSpeed(double speed) {\n\r\n differentialDrive.tankDrive(speed, speed); // Move\r\n\r\n }", "title": "" }, { "docid": "59776946a7140f881604585bc063d2c3", "score": "0.5708781", "text": "private void go(){\n\t\tchangeSpeed();\n\t}", "title": "" }, { "docid": "6abe4b791de8f258982b22d1ffae5d43", "score": "0.57085365", "text": "protected abstract void updateVelocity(float tpf);", "title": "" }, { "docid": "25cb4748e536ebf3e54c2cd1b102ab7a", "score": "0.57040983", "text": "public void giveChangeSpeedCommand(double target, Command command){\n\t\tthis.command = command;\n\t\ttarget_velocity = target;\n\t\t//calculateEnergyUsed(velocity, target_velocity);\n//\t\tchangeSpeed(); //should this be commented out?\n\t}", "title": "" }, { "docid": "32ca43cdc43f8bb853158f649a41150c", "score": "0.5699911", "text": "public void Delta(Player player)\n {\n \n player.xDelta();\n player.yDelta();\n }", "title": "" }, { "docid": "8ebc15c0225d55f7db17fc5d8fa1a0ef", "score": "0.5695493", "text": "private void move(){\n RectF temp = getDimensions();\n //Use indicate if helicopter is fully on the screen\n boolean heliReady = false;\n if(myType != EnemyType.Helicopter){\n moveVertical(myVelocity.y);\n }else{\n //Stops the helicopter from making random movement until the helicopter is full on the\n // game screen\n if(temp.top >= 0){\n heliReady = true;\n }\n //Randomly picks the helicopter next movement pattern\n if(changeMovement <= 0 && heliReady){\n int velocity = GameGlobals.getInstance().getImageResources().getInteger(R.integer.EnemyYVelocity);\n int rand = random.nextInt(8);\n switch (rand){\n //Stop\n case 0:\n myVelocity.set(0,0);\n break;\n //Move Right\n case 1:\n myVelocity.set(velocity, 0);\n break;\n //Move Left\n case 2:\n myVelocity.set(-velocity, 0);\n break;\n //Move Up\n case 3:\n myVelocity.set(0, -velocity);\n break;\n //Move Down\n case 4:\n myVelocity.set(0, velocity);\n break;\n //Move Up Right\n case 5:\n myVelocity.set(velocity,-velocity);\n break;\n //Move Up Left\n case 6:\n myVelocity.set(-velocity,-velocity);\n break;\n //Move Down Right\n case 7:\n myVelocity.set(velocity,velocity);\n break;\n //Move Down Left\n case 8:\n myVelocity.set(-velocity,velocity);\n break;\n }\n changeMovement = changeMovementMax;\n }\n changeMovement--;\n //Checks to make sure helicopter isn't going to run from the screen anywhere\n if(temp.right+myVelocity.x > GameGlobals.getInstance().getScreenWidth() ||\n temp.left+myVelocity.x < 0){\n int vel = myVelocity.y;\n myVelocity.set(0,vel);\n }\n if((temp.bottom+myVelocity.y > GameGlobals.getInstance().getScreenWidth() ||\n temp.top+myVelocity.y < 0) && heliReady){\n int vel = myVelocity.x;\n myVelocity.set(vel,0);\n }\n\n moveHorizontal(myVelocity.x);\n moveVertical(myVelocity.y);\n }\n }", "title": "" }, { "docid": "4c472213312b4448c7ab49a807d365ba", "score": "0.56953055", "text": "@Override\n public void update(double deltaTime){\n rad += 2*Math.PI*deltaTime;\n setPosX(getPosX() + getVitX()*deltaTime);\n setPosY(Math.max(posYinit + 50*Math.sin(rad), 0));\n }", "title": "" }, { "docid": "538249adef1e95485c5a5f3f58c23f67", "score": "0.567032", "text": "public void move(double t) {\r\n double cool = velocity * t;\r\n friction(1);\r\n setY(getY() - cool);\r\n center.setY(center.getY() - cool);\r\n }", "title": "" }, { "docid": "610f54ab2e18da4f6d42df07d93b4154", "score": "0.5669281", "text": "private void updatePlayer(float deltaTime) {\n\t\tplayer.stateTime += deltaTime;\n\n\t\t// check input and apply to velocity & state\n\t\tif (Gdx.input.isKeyPressed(Keys.SPACE)) {\n\t\t\tif (player.grounded) {\n\t\t\t\tplayer.velocity.y += Player.JUMP_VELOCITY;\n\t\t\t\tplayer.state = PlayerState.Jumping;\n\t\t\t\tplayer.grounded = false;\n\t\t\t}\n\t\t}\n\n\t\tplayer.gun.updateReloadState(TimeUtils.millis());\n\t\tif (Gdx.input.isKeyPressed(Keys.R)) {\n\t\t\tplayer.gun.reload(TimeUtils.millis());\n\t\t}\n\n\t\tfloat playerCenterX = player.position.x + (Player.WIDTH / 2);\n\t\tfloat playerCenterY = player.position.y + (Player.HEIGHT / 2);\n\t\tVector2 src = new Vector2(playerCenterX, playerCenterY);\n\t\tVector3 literalDest = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);\n\t\tcamera.unproject(literalDest);\n\t\tVector2 dest = new Vector2(literalDest.x + (player.position.x - player.position.x), literalDest.y);\n\t\tfloat theta = (float) (180.0 / Math.PI * Math.atan2(playerCenterX - dest.x, playerCenterY - dest.y));\n\t\tplayer.lookAngle = (-theta - 90);\n\n\t\tfor (Shot shot : shots) {\n\t\t\tif (shot.getAlphaModifier() > 0f) {\n\t\t\t\tshot.setAlphaModifier(shot.getAlphaModifier() - 0.03f);\n\t\t\t\tshapeRenderer.begin(ShapeType.Line);\n\t\t\t\tfor (float i = -(level.mapWidth * 2); i <= (level.mapWidth * 2); i += level.mapWidth) {\n\t\t\t\t\tshapeRenderer.line(shot.getSource().x + i, shot.getSource().y, shot.getDest().x + i,\n\t\t\t\t\t\t\tshot.getDest().y, new Color(255f, 255f, 255f, 0.0f),\n\t\t\t\t\t\t\tnew Color(255f, 255f, 255f, shot.getAlphaModifier()));\n\t\t\t\t}\n\t\t\t\tshapeRenderer.end();\n\t\t\t}\n\t\t}\n\n\t\tint index = 0;\n\t\tfor (Shot shot : shots) {\n\t\t\tif (shot.getAlphaModifier() < 0.05f) {\n\t\t\t\tshots.removeIndex(index);\n\t\t\t}\n\t\t\tindex += 1;\n\t\t}\n\n\t\tShot shot = null;\n\t\tShot tempShot = null;\n\t\tboolean gunFired = false;\n\t\tif (Gdx.input.isTouched()) {\n\t\t\tfor (Vector2 position : player.getPositions()) {\n\t\t\t\tplayerCenterX = position.x + (Player.WIDTH / 2);\n\t\t\t\tplayerCenterY = player.position.y + (Player.HEIGHT / 2);\n\t\t\t\tsrc = new Vector2(playerCenterX, playerCenterY);\n\t\t\t\tliteralDest = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);\n\t\t\t\tcamera.unproject(literalDest);\n\t\t\t\tdest = new Vector2(literalDest.x + (player.position.x - player.position.x), literalDest.y);\n\t\t\t\tplayer.lookAngle = (-theta - 90);\n\t\t\t\tdest = new Vector2(playerCenterX, playerCenterY)\n\t\t\t\t\t\t.add(new Vector2(player.gun.RANGE, 0).rotate(-theta - 90));\n\n\t\t\t\tif ((gunFired || player.gun.fireGun(TimeUtils.millis()))) {\n\t\t\t\t\tgunFired = true;\n\t\t\t\t\ttempShot = rayCastHelper.rayTest(player.stateTime, src, dest, getCollideables());\n\t\t\t\t\tif (tempShot != null && (shot == null || tempShot.getDistance() < shot.getDistance())) {\n\t\t\t\t\t\tshot = tempShot;\n\t\t\t\t\t}\n\t\t\t\t\tif (shot.getCollideableObject() != null) {\n\t\t\t\t\t\tdebugTiles.add(shot.getCollideableObject().rectangle);\n\t\t\t\t\t\tif (shot.getCollideableObject().player != null) {\n\t\t\t\t\t\t\tshot.getCollideableObject().player.takeDamage(player.gun.DAMAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (shot != null) {\n\t\t\t\tshots.add(shot);\n\t\t\t\tshapeRenderer.begin(ShapeType.Line);\n\t\t\t\tfor (float i = -(level.mapWidth * 2); i <= (level.mapWidth * 2); i += level.mapWidth) {\n\t\t\t\t\tshapeRenderer.line(shot.getSource().x + i, shot.getSource().y, shot.getDest().x + i,\n\t\t\t\t\t\t\tshot.getDest().y, new Color(255f, 255f, 255f, 0.0f),\n\t\t\t\t\t\t\tnew Color(255f, 255f, 255f, shot.getAlphaModifier()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tshapeRenderer.end();\n\n\t\t}\n\n\t\tfloat speedMultiplier = 1f;\n\t\tif (Gdx.input.isKeyPressed(Keys.SHIFT_LEFT) && (player.grounded || !player.onLadder)) {\n\t\t\tspeedMultiplier = 1.6f;\n\t\t}\n\n\t\tif (Gdx.input.isKeyPressed(Keys.A)) {\n\t\t\tplayer.velocity.x -= 1 * speedMultiplier;\n\t\t\tif (player.velocity.x < -Player.MAX_VELOCITY * speedMultiplier) {\n\t\t\t\tplayer.velocity.x = -Player.MAX_VELOCITY * speedMultiplier;\n\t\t\t}\n\t\t\tif (player.grounded)\n\t\t\t\tplayer.state = PlayerState.Walking;\n\t\t\t// player.facesRight = false;\n\t\t}\n\n\t\tif (Gdx.input.isKeyPressed(Keys.D)) {\n\t\t\tplayer.velocity.x += 1 * speedMultiplier;\n\t\t\tif (player.velocity.x > Player.MAX_VELOCITY * speedMultiplier) {\n\t\t\t\tplayer.velocity.x = Player.MAX_VELOCITY * speedMultiplier;\n\t\t\t}\n\t\t\tif (player.grounded)\n\t\t\t\tplayer.state = PlayerState.Walking;\n\t\t\t// player.facesRight = true;\n\t\t}\n\n\t\tif (Gdx.input.isKeyJustPressed(Keys.B)) {\n\t\t\tdebug = !debug;\n\t\t}\n\n\t\t// apply gravity if we are falling\n\t\tplayer.velocity.add(0, GRAVITY * deltaTime);\n\t\t// set max falling speed\n\t\tif (player.velocity.y < -Player.MAX_VELOCITY * 5f) {\n\t\t\tplayer.velocity.y = -Player.MAX_VELOCITY * 5f;\n\t\t}\n\n\t\t// clamp the velocity to the maximum, x-axis only\n\t\tplayer.velocity.x = MathUtils.clamp(player.velocity.x, -Player.MAX_VELOCITY * speedMultiplier,\n\t\t\t\tPlayer.MAX_VELOCITY * speedMultiplier);\n\n\t\t// If the velocity is < 1, set it to 0 and set state to Standing\n\t\tif (Math.abs(player.velocity.x) < 1) {\n\t\t\tplayer.velocity.x = 0;\n\t\t\tif (player.grounded)\n\t\t\t\tplayer.state = PlayerState.Standing;\n\t\t}\n\n\t\t// multiply by delta time so we know how far we go\n\t\t// in this frame\n\t\tplayer.velocity.scl(deltaTime);\n\n\t\t// perform collision detection & response, on each axis, separately\n\t\t// if the player is moving right, check the tiles to the right of it's\n\t\t// right bounding box edge, otherwise check the ones to the left\n\t\tRectangle playerRect = new Rectangle();\n\t\tplayerRect.set(player.position.x, player.position.y, Player.WIDTH, Player.HEIGHT);\n\t\tint startY, endX, endY;\n\t\tif (player.velocity.x > 0) {\n\t\t\tendX = (int) (player.position.x + Player.WIDTH + player.velocity.x);\n\t\t} else {\n\t\t\tendX = (int) (player.position.x + player.velocity.x);\n\t\t}\n\t\tstartY = (int) (player.position.y);\n\t\tendY = (int) (player.position.y + Player.HEIGHT);\n\n\t\tplayerRect.x += player.velocity.x;\n\n\t\tfor (Collidable wall : level.walls) {\n\t\t\tif (playerRect.overlaps(wall.rectangle)) {\n\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tplayerRect.x = player.position.x;\n\n\t\tendX = (int) (player.position.x + Player.WIDTH);\n\n\t\t// ladderTiles = getTiles(\"ladders\", startX, (int) (player.position.y +\n\t\t// player.velocity.y), endX,\n\t\t// (int) (player.position.y + Player.HEIGHT + player.velocity.y));\n\n\t\tplayer.onLadder = false;\n\t\tfor (Rectangle tile : level.ladders) {\n\t\t\tif (playerRect.overlaps(tile)) {\n\t\t\t\tplayer.onLadder = true;\n\t\t\t\tplayer.state = PlayerState.Standing;\n\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (player.onLadder) {\n\t\t\tif (Gdx.input.isKeyPressed(Keys.W)) {\n\t\t\t\tplayer.velocity.y += 5 * deltaTime;\n\t\t\t\tif (player.velocity.y > Player.MAX_VELOCITY) {\n\t\t\t\t\tplayer.velocity.y = Player.MAX_VELOCITY;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Gdx.input.isKeyPressed(Keys.S)) {\n\t\t\t\tplayer.velocity.y -= 5 * deltaTime;\n\t\t\t\tif (player.velocity.y < -Player.MAX_VELOCITY) {\n\t\t\t\t\tplayer.velocity.y = -Player.MAX_VELOCITY;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player.velocity.y > 0) {\n\t\t\tstartY = endY = (int) (player.position.y + Player.HEIGHT + player.velocity.y);\n\t\t} else {\n\t\t\tstartY = endY = (int) (player.position.y + player.velocity.y);\n\t\t}\n\n\t\tplayerRect.y += player.velocity.y;\n\t\tfor (Collidable wall : level.walls) {\n\t\t\tif (playerRect.overlaps(wall.rectangle)) {\n\t\t\t\t// we actually reset the player y-position here\n\t\t\t\t// so it is just below/above the tile we collided with\n\t\t\t\t// this removes bouncing :)\n\t\t\t\tif (player.velocity.y <= 0) {\n\t\t\t\t\tplayer.position.y = wall.rectangle.y + wall.rectangle.height;\n\t\t\t\t\t// if we hit the ground, mark us as grounded so we can jump\n\t\t\t\t\tplayer.grounded = true;\n\t\t\t\t}\n\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// unscale the velocity by the inverse delta time and set\n\t\t// the latest position\n\t\tplayer.position.add(player.velocity);\n\t\tplayer.velocity.scl(1 / deltaTime);\n\n\t\t// Apply damping to the velocity on the x-axis so we don't\n\t\t// walk infinitely once a key was pressed\n\t\tplayer.velocity.x *= Player.DAMPING;\n\n\t\t// update the players alternate positions\n\t\tif (player.position.x < 0) {\n\t\t\tplayer.position.x = player.rightPosition.x;\n\t\t} else if (player.position.x > level.mapWidth) {\n\t\t\tplayer.position.x = player.leftPosition.x;\n\t\t}\n\n\t\tplayer.updateLeftRightPositions(level.mapWidth);\n\t}", "title": "" }, { "docid": "34fb77ff7eccfa7b9ad434fbc9754776", "score": "0.5669225", "text": "@Override\n public void setGameDefault() {\n setVelocity(SHARK_SPEED_DEFAULT);\n }", "title": "" }, { "docid": "90765cc2848cecbbd35ac1036fc1470d", "score": "0.56592613", "text": "@Override\r\n\tpublic void fly() {\r\n\t\tif (this.keyMap.get(\"up\")) {\r\n\r\n\t\t\tthis.setYAccel(-this.thrust);\r\n\t\t} else {\r\n\t\t\tthis.setYAccel(this.gravity);\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "c1c20cb7592d4eb9c9c93342bdf8b776", "score": "0.56579983", "text": "private void movePlayerY(Node player, Point2D playervelocity) {\n int value = (int)playerVelocity.getY();\n boolean movingDown = value > 0;\n\n //Loops once for each unit of velocity. This is the reason that we cannot have floating speeds.\n for (int i = 0; i < Math.abs(value); i++) { \n \n //We change the position of the character here.\n player.setTranslateY(player.getTranslateY() + (movingDown ? 1 : -1));\n }\n }", "title": "" }, { "docid": "15168c758356712f7c67f83105910e17", "score": "0.56536865", "text": "public void setVY(double yVel) { vy = yVel; }", "title": "" }, { "docid": "3a96ce039589990b6db8b205cbf21293", "score": "0.5653009", "text": "public void adjustPosition() {\n posX = -player.getPosX() + GameController.WIDTH/2 - 18;\n }", "title": "" }, { "docid": "92ed609c6fd2f8f66f4dd9367647cb99", "score": "0.56511784", "text": "public Point2D velocity() { return vel; }", "title": "" }, { "docid": "ef79f6de9ff565093ad89714a8aba2c1", "score": "0.5646866", "text": "@EventHandler(priority = EventPriority.HIGHEST)\n public void onVelocityChange(PlayerVelocityEvent e) {\n\n if (overrideVelocity) {\n // Only override the velocity if it has been set in this class\n e.setVelocity(lastVelocity);\n\n overrideVelocity = false;\n }\n }", "title": "" }, { "docid": "3369bc2b95b4592847266276338a5bcd", "score": "0.5646137", "text": "public void move () {\n setX(getX() + getXVelocity() * getDirection());\n setY(getY() + getYVelocity() * getDirectionY());\n if(getX() >= Main.WIDTH - getWidth()) {\n setDirection(-1);\n }else if(getX() <= 0) {\n setDirection(1);\n }\n if(getY() >= Main.HEIGHT - getHeight()) {\n setDirectionY(-1);\n }else if(getY() <= 0) {\n setDirectionY(1);\n }\n }", "title": "" }, { "docid": "90c2487fc06d8705dbdbea54d08bcd21", "score": "0.56440437", "text": "public void velocitySolver()\r\n {\r\n fluid.c_velocitySolver(u, uOld, v, vOld, curl, d, visc, dt, n, size);\r\n }", "title": "" }, { "docid": "f37a6b82e03355ef1400caea5e46b3eb", "score": "0.56423664", "text": "public void setVelocity(Vector newVelocity) {\n\t\tvelocity = newVelocity;\n\t}", "title": "" }, { "docid": "704e784e5c30421ec943833b9c75f15f", "score": "0.56413484", "text": "void setSpeed(double speed);", "title": "" }, { "docid": "704e784e5c30421ec943833b9c75f15f", "score": "0.56413484", "text": "void setSpeed(double speed);", "title": "" }, { "docid": "704e784e5c30421ec943833b9c75f15f", "score": "0.56413484", "text": "void setSpeed(double speed);", "title": "" }, { "docid": "6920c1fb69df2f65b7bb68c5ca377932", "score": "0.5641294", "text": "public void move (int screenSize) {}", "title": "" }, { "docid": "167ce60af445be32b76b40fd91d46f48", "score": "0.56398267", "text": "void setSpeedOverGround(gov.ucore.ucore._2_0.VelocityMeasureType speedOverGround);", "title": "" }, { "docid": "11f20d751f93ba4a11b4136a6d26c18d", "score": "0.56326103", "text": "public void move() {\n this.px += this.vx;\n this.py += this.vy;\n }", "title": "" }, { "docid": "9145f2a0eeddcfa82eb37751ba589cb1", "score": "0.56251717", "text": "@Override\npublic void setSpeed(double speed) {\nthis.speed = speed / 2;\n}", "title": "" }, { "docid": "742cf42039e1a382e2a38943ce9dce87", "score": "0.56251174", "text": "public void update(int playerX, int playerY){\n super.update();\n if(movement)move();\n if(getHealth() > 0) {\n if (myType == EnemyType.MachineGunCar || myType == EnemyType.DronePickup ||\n myType == EnemyType.SpikeVan)\n fire(playerX, playerY);\n }else{\n if(myVelocity.y < 0)myVelocity.y *= -1;\n }\n movement = true;\n }", "title": "" }, { "docid": "064ea37e2ce82270e15fd11f8513c1ee", "score": "0.56208444", "text": "public void updatePosition(double delta)\r\n {\r\n pos.x = pos.x + (vel.x * delta);\r\n pos.y = pos.y + (vel.y * delta);\r\n }", "title": "" }, { "docid": "23070e0a1b60cc32e59bec2adeeb6fdc", "score": "0.5620362", "text": "public static void initVelocity() {\n\t}", "title": "" }, { "docid": "459e404905d895c1649b1a78363e5bb4", "score": "0.56146485", "text": "public void changeDirection() {\n this.speed *= -1;\n }", "title": "" }, { "docid": "8b74479c2333281b622b42a8faa0b249", "score": "0.56111073", "text": "public PlayerMoveBehaviour(float horSpeed, float verSpeed) {\n this.horSpeed = horSpeed;\n this.verSpeed = verSpeed;\n }", "title": "" }, { "docid": "f205c9ed28c9ae3b32c048e4a8987eb4", "score": "0.560455", "text": "public void mueve() {\r\n posY += 3;\r\n\r\n }", "title": "" }, { "docid": "3f474ef545950c5639d9dff285bf0083", "score": "0.56035364", "text": "public void move(double time) {\n xPos = xPosHero + velocity * (this.time - time) * Math.cos(angle);\n yPos = yPosHero + velocity * (this.time - time) * Math.sin(angle);\n // Set new collider's position\n collider = new Polygon(\n xPos - h_d_2cos + w_d_2cosAnlePlusPI_d_2,\n yPos - h_d_2sin + w_d_2sinAnlePlusPI_d_2,\n xPos - h_d_2cos + w_d_2cosAnleMinusPI_d_2,\n yPos - h_d_2sin + w_d_2sinAnleMinusPI_d_2,\n xPos + h_d_2cos + w_d_2cosAnleMinusPI_d_2,\n yPos + h_d_2sin + w_d_2sinAnleMinusPI_d_2,\n xPos + h_d_2cos + w_d_2cosAnlePlusPI_d_2,\n yPos + h_d_2sin + w_d_2sinAnlePlusPI_d_2 );\n }", "title": "" }, { "docid": "b390e442942dd11ea6f21b453dcca9d7", "score": "0.5599755", "text": "public void update() {\n\t\tif (speedX < 0) {\n\t\t\tcenterX += speedX;\n\t\t\tcolumn = (centerX - 32)/64;\n\t\t} \n\n\t\tcenterX += speedX;\n\t\tcolumn = (centerX - 32)/64;\n\t\t// Updates Y Position\n\t\tcenterY += speedY;\n\t\trow = (centerY - 32)/64;\n\t\t\n\t\trect.setRect(centerX - 32, centerY - 32, 64, 64);\n\t\n\t}", "title": "" }, { "docid": "519a8fec8417318d46f3b926de0053db", "score": "0.55939734", "text": "public Enemy(int x, int y, int width, int height, int velocity, Game game) {\n super(x, y, width, height);\n this.game = game;\n direction = 1; \n this.velocity = velocity; \n shoot = false; \n }", "title": "" } ]
8f05bc9d57eb50fbbcf5e526c6e5ef70
change view while click menu icon
[ { "docid": "1425ed140dd3735baafd5ac742688c00", "score": "0.0", "text": "private void setActionDisPlayMenu() { \n JPanel sub_menu_icon_panel = frame.getMenu_display_icon_panel();\n sub_menu_icon_panel.addMouseListener(new MenuColorListener(sub_menu_icon_panel));\n sub_menu_icon_panel.addMouseListener(new MouseAdapter() { \n @Override\n public void mouseClicked(MouseEvent e){\n if (isSmallMenu()) \n setMediumMenu(); \n else\n setSmallMenu(); \n }\n }); \n }", "title": "" } ]
[ { "docid": "3ae748dcae642bab51ab4461e01b93ca", "score": "0.7402334", "text": "void OnMenuClicked(int position, View view);", "title": "" }, { "docid": "455d3a133cf88489fa435f20fe9b822d", "score": "0.7170047", "text": "public void toMenu() {\n myGame.setMenuView();\n }", "title": "" }, { "docid": "42d813d6df6f88e7a3e6aa16891c8527", "score": "0.70612484", "text": "@Override\r\n\tpublic void onMenuClick(View view, int id) {\n\t}", "title": "" }, { "docid": "20a22a8981cba23333c219d499c9a7c0", "score": "0.7025279", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tMenuView menu=new MenuView();\n\t\t\tMenuController contmenu=new MenuController(menu,theModel);\n\t\t\tmenu.setVisible(true);\n\t\t\ttheView.setVisible(false);\n\t\t}", "title": "" }, { "docid": "4e155d7c8e0b04fba59738c2f01989fb", "score": "0.70063204", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmenu.toggle();\n\t\t\t}", "title": "" }, { "docid": "7652683dcfe8b5cd9436f24323f624e7", "score": "0.69389427", "text": "@FXML\r\n protected void gotoMenu(javafx.event.ActionEvent event) throws Exception {\n ViewSwap.getIstance().swap(event,ViewSwap.MENU);\r\n }", "title": "" }, { "docid": "ca07941e9f8cdc9ff6d7aa80cfdeaaf0", "score": "0.6856216", "text": "public void switchToMenu() {\n currentPane = new MenuPanel(new MenuModel(this));\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "42a04ad5e80b50bcf91bd34dd29c4219", "score": "0.6822712", "text": "private void changeMenu(){\n setHot(!isHot());\n// mMenu.findItem(R.id.choose).setTitle(isHot() ? \"精华\" : \"最新\");\n loadData();\n }", "title": "" }, { "docid": "114520a6aa4188c29b38408970c8038d", "score": "0.6818559", "text": "public void Clickmenu(View view){\n openDrawer(drawerLayout);\n }", "title": "" }, { "docid": "5ce7905309d4fa38a34ab6e02d89ef19", "score": "0.68062973", "text": "private void jMenu2MenuSelected(javax.swing.event.MenuEvent evt) {//GEN-FIRST:event_jMenu2MenuSelected\n home new_view = new home();\n new_view.setVisible(true);\n this.dispose();\n }", "title": "" }, { "docid": "b316455d34330a4ab1ec5a05e7065633", "score": "0.67802936", "text": "public void ClickMenu(View view){\n //Abrir drawer\n openDrawer(drawerLayout);\n }", "title": "" }, { "docid": "0b7a8e677c55fbb74bd7a970ae80cf31", "score": "0.67793643", "text": "public void onMenuClick() {\n\n\t}", "title": "" }, { "docid": "2b55ca60a28078b76b4bb1aeb7d1acdc", "score": "0.6750633", "text": "public void mainMenuButton(View view) {\n\t\tIntent intent = new Intent(this, MainMenuActivity.class);\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "8668e1ec4a90005bd1d8d2abd337b845", "score": "0.6681944", "text": "private void viewButtonClicked() {\n\t\r\n }", "title": "" }, { "docid": "3807eabfecb71ced59508d791eea5bcb", "score": "0.6630257", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmenuView = getLayoutInflater().inflate(R.layout.skan_ana_pop, null);\r\n\t\t\t\tinitSettingLayout(menuView, false);\r\n\t\t\t\tPopSettingMenu(menuView, v);\r\n\t\t\t}", "title": "" }, { "docid": "8001f85a73be53e3d8c3f6053980a771", "score": "0.65925014", "text": "@Override\n public void onClick(View view) {\n changeHeadIcon();\n }", "title": "" }, { "docid": "09012dcea9efb01635dc437640eeac4d", "score": "0.6578652", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tchangeTo(item);\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "66ed7a1379b0ab47c529ae8be4fd52f1", "score": "0.65709054", "text": "@Override\n\t\tpublic void doAction()\n\t\t{\n\t\t\tsideBar.switchComponentView(view, id);\n\t\t}", "title": "" }, { "docid": "f36c99a46efe72a2c8045a66c062f1ad", "score": "0.6534137", "text": "public void showmenu(View view) {\n\n buttonsbm9=(ImageButton)findViewById(R.id.imageButton2);\n buttonsbm9.setOnClickListener(\n\n new View.OnClickListener(){\n @Override\n\n public void onClick(View V)\n {\n\n\n Intent intent = new Intent (ScrollingActivity.this,p4.class);\n ScrollingActivity.this.startActivity(intent);\n\n }\n\n\n }\n );\n }", "title": "" }, { "docid": "3231b6f9495e55635e642b9322837d44", "score": "0.65340257", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n Log.d(\"logclicmenu\",\"entro aqui\");\n displayView(position);\n }", "title": "" }, { "docid": "a69b8f37df15111a538cf69eaa16f678", "score": "0.6523897", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(((SlidingActivity) getActivity())\n\t\t\t\t\t\t.getFlag()!=(\"activity_latest_info\")){\n\t\t\t\t((SlidingActivity) getActivity())\n\t\t\t\t\t\t.setContentView(R.layout.activity_latest_info);\n\t\t\t\t((SlidingActivity) getActivity()).fragmentTransaction = getFragmentManager()\n\t\t\t\t\t\t.beginTransaction();\n\t\t\t\tMainFragment mainFragment = new MainFragment();\n\t\t\t\t((SlidingActivity) getActivity()).fragmentTransaction.replace(\n\t\t\t\t\t\tR.id.main, mainFragment);\n\t\t\t\t((SlidingActivity) getActivity()).fragmentTransaction.commit();\n\t\t\t\n\t\t\t\t((SlidingActivity) getActivity()).setFlag(\"activity_latest_info\");\n\t\t\t\t}\n\t\t\t\t((SlidingActivity) getActivity()).getSlidingMenu()\n\t\t\t\t.showContent();\n\t\t\t}", "title": "" }, { "docid": "9aab133f69259cdcb6a86a95e96dae36", "score": "0.6520892", "text": "public void ClickMenu(View view){\n // Open drawer\n MainActivity.openDrawer(drawerLayout);\n }", "title": "" }, { "docid": "5f5b39719a5430a107f1c4a57bea903e", "score": "0.6470055", "text": "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tchangeImage();\t\n\t\t\t}", "title": "" }, { "docid": "cd13313ffd94af13de04c85123ae2be0", "score": "0.64535975", "text": "public void onClick(View v)\n {\n Intent viewMenuScreenIntent = new Intent(getBaseContext(), menu_screen_activity.class);\n startActivity(viewMenuScreenIntent);\n\n }", "title": "" }, { "docid": "5c81eb8e6a28bf9f791f7f1b0c31a1c3", "score": "0.6443402", "text": "private void showViewMenu()\n {\n Menu aMenu = menuManager.createContextMenu( control );\n Point topLeft = new Point( 0, 0 );\n topLeft.y += menuToolBar.getBounds().height;\n topLeft = menuToolBar.toDisplay( topLeft );\n aMenu.setLocation( topLeft.x, topLeft.y );\n aMenu.setVisible( true );\n }", "title": "" }, { "docid": "8ad4a0e98c44dd6e97547a11bf8a7714", "score": "0.6424864", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case R.id.btn_logout:\n profilo.logout();\n return true;\n\n case R.id.btn_refresh_bacheca:\n // effettua l'animazione\n refreshView= findViewById(R.id.btn_refresh_bacheca);\n Animation animation= AnimationUtils.loadAnimation(this, R.anim.update_rotation);\n animation.setRepeatCount(Animation.INFINITE);\n refreshView.startAnimation(animation);\n item.setActionView(refreshView);\n\n bacheca.getWall();\n\n return true;\n\n case R.id.btn_refresh_profilo:\n // effettua l'animazione\n refreshView= findViewById(R.id.btn_refresh_profilo);\n Animation animation1= AnimationUtils.loadAnimation(this, R.anim.update_rotation);\n animation1.setRepeatCount(Animation.INFINITE);\n refreshView.startAnimation(animation1);\n item.setActionView(refreshView);\n\n profilo.getUserInfo();\n\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "8196defb9ef7847c6c9f84245d645942", "score": "0.64203274", "text": "public static void openMenu() {\n ViewInteraction imageButton = onView(\n allOf(withContentDescription(R.string.openDrawer),\n withParent(withId(R.id.my_toolbar)),\n isDisplayed()));\n imageButton.perform(click());\n }", "title": "" }, { "docid": "1530002f718237c48782f3270ca19583", "score": "0.6417332", "text": "public void backToMenu(View view) {\n Intent intent = new Intent(this, MainMenu.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "41c6ede1ba30ab6979b5a865afb17a3a", "score": "0.6413939", "text": "public void gotoMainMenu(ActionEvent event) {\n changeScreen(new MainView(currentLocation));\n }", "title": "" }, { "docid": "c67f7a4677124f15fb32c019a10a50ea", "score": "0.64124197", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tjumptolayoutmain();\n\t\t\t}", "title": "" }, { "docid": "c67f7a4677124f15fb32c019a10a50ea", "score": "0.64124197", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tjumptolayoutmain();\n\t\t\t}", "title": "" }, { "docid": "c67f7a4677124f15fb32c019a10a50ea", "score": "0.64124197", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tjumptolayoutmain();\n\t\t\t}", "title": "" }, { "docid": "c67f7a4677124f15fb32c019a10a50ea", "score": "0.64124197", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tjumptolayoutmain();\n\t\t\t}", "title": "" }, { "docid": "c67f7a4677124f15fb32c019a10a50ea", "score": "0.64124197", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tjumptolayoutmain();\n\t\t\t}", "title": "" }, { "docid": "8b73ab7a1c3eb3bac11f9dcd1e995a22", "score": "0.63965845", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tView view1 = findViewById(R.id.title_tt);\n\t\t\t\tshowWindow(view1); // popuWindow 下拉菜单显示\n\t\t\t}", "title": "" }, { "docid": "b8a9d81fa9da1ae250b6f30a32c05a73", "score": "0.6368806", "text": "private void menuScreen()\n\t{\n\t\tMenu menu = new Menu(this);\n\t\tmenu.setController(this);\t\n\t}", "title": "" }, { "docid": "77bcdaaeb62b688567478329f82aba6f", "score": "0.6367263", "text": "public void mainMenuNavigation(View iJust){\n Intent i;\n\n switch (iJust.getId()) {\n case R.id.ate_tvb:\n i = new Intent(this, MealsList.class);\n startActivity(i);\n break;\n case R.id.worked_tvb:\n i = new Intent(this, ActivityList.class);\n startActivity(i);\n break;\n case R.id.steps_static_tv:\n i = new Intent(this, Pedometer.class);\n startActivity(i);\n break;\n }\n }", "title": "" }, { "docid": "ce308220f317f46ffe135838ff15df3a", "score": "0.6363997", "text": "@Event(value = R.id.icon_item_fragment_hot)\n private void onClick(View view) {\n }", "title": "" }, { "docid": "e60f771f1f26eecbae00311475061faa", "score": "0.636316", "text": "public void openMenu();", "title": "" }, { "docid": "5e4da1df828970bf14213755f3a333ac", "score": "0.6353617", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.show_menu:\n\t\t\tswitch (menuContent.getVisibility()) {\n\t\t\tcase View.GONE:\n\t\t\t\t// show menu panel\n\t\t\t\tmenuContent.setVisibility(View.VISIBLE);\n\t\t\t\tshowMenu.setBackgroundResource(R.drawable.btn_hidemenu);\n\t\t\t\tmanage();\n\t\t\t\tbreak;\n\t\t\tcase View.VISIBLE:\n\t\t\t\t// hide menu panel\n\t\t\t\tmenuContent.setVisibility(View.GONE);\n\t\t\t\tshowMenu.setBackgroundResource(R.drawable.btn_showmenu);\n\t\t\t\tcancel();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase R.id.add:\n\t\t\tpickerAction();\n\t\t\tbreak;\n\t\tcase R.id.unhide:\n\t\t\tunHide();\n\t\t\tbreak;\n\t\tcase R.id.delete:\n//\t\t\tdelete();\n\t\t\tshowDeleteConfirmDialog();\n\t\t\tbreak;\n\t\tcase R.id.backup:\n\t\t\t if (Utils.isSDCardExist()) {\n\t\t\t\t startBackupProgress();\n } else {\n ConfirmDialogFragment.show(getActivity(), getString(R.string.unmount_sdcard));\n }\n\t\t\tbreak;\n\t\tcase R.id.restore:\n\t\t\t if (Utils.isSDCardExist()) {\n\t\t\t\t startRestoreFilesProgress();\n } else {\n ConfirmDialogFragment.show(getActivity(), getString(R.string.unmount_sdcard));\n }\n\t\t\tbreak;\n\t\tcase R.id.selectAll:\n\t\t\t if (isAllSelected()) {\n deselectAll();\n ((ImageView)view.findViewById(R.id.base_check_icon)).setBackgroundResource(R.drawable.selector_deselected);\n \n } else {\n selectAll();\n ((ImageView)view.findViewById(R.id.base_check_icon)).setBackgroundResource(R.drawable.selector_check_items);\n }\n\t\t\tbreak;\n\t\tcase R.id.mode_view:\n\t\t\tboolean isShowGrid=modeView.isChecked();\n\t\t\tif (isShowGrid) {\n\t\t\t\t//turn grid to list\n\t\t\t\tshowListMode();\n\t\t\t} else {\n\t\t\t\t//turn list to grid\n\t\t\t\tshowGridMode();\n\t\t\t}\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "fe5e778f4ec3cb3460a59d7f3f14f360", "score": "0.6352201", "text": "public void ReturnOnAction(Event e) {\r\n\t\tViewManager.getInstance().switchViews(\"/View/Menu.fxml\", e, new MenuController());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bfc50829bac0702299d5cad133e11868", "score": "0.6348735", "text": "@Override\r\n\tprotected void onViewClick(View v) {\n\t\t\r\n\t}", "title": "" }, { "docid": "29b98884efeb876fd30fdc5ec57bcb53", "score": "0.6333351", "text": "public void showMenu(View view){\r\n CustomTitleBar.showMenu(this, view);\r\n }", "title": "" }, { "docid": "740b3469b441210a3269c1031d391807", "score": "0.6330066", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t case R.id.news_home:\n\t\t currentIndex=0;\n\t\t llManagerMainLayout.setVisibility(View.GONE);\n\t\t home_layout.setVisibility(View.VISIBLE);\n\t\t break;\n\t case R.id.news_video:\n\t\t currentIndex=1;\n//\t\t llManagerMainLayout.setVisibility(View.VISIBLE);\n//\t\t home_layout.setVisibility(View.GONE);\n//\t\t if (null != mVideoMainLayout) {\n//\t\t\t\tnowLayout = mVideoMainLayout;\n//\t\t\t\t// ɾ�����е��Ӳ���\n//\t\t\t\tllManagerMainLayout.removeAllViews();\n//\t\t\t\t// ����µIJ���\n//\t\t\t\tllManagerMainLayout.addView((View) nowLayout);\n//\t\t\t\tnowLayout.initData();\n//\t\t\t} else {\n//\t\t\t\t// ��ͨ����¼Ĭ��װ�����ǵ���������\n//\t\t\t\tnowLayout = new VideoMainLayout(this);\n//\t\t\t\t// ɾ�����е��Ӳ���\n//\t\t\t\tllManagerMainLayout.removeAllViews();\n//\t\t\t\t// ����µIJ���\n//\t\t\t\tllManagerMainLayout.addView((View) nowLayout);\n//\n//\t\t\t}\n\t\t break;\n\t case R.id.news_mine:\n\t\t currentIndex=2;\n\t\t before=PreferenceUtils.getPrefBoolean(this, \"isLogin\", false);\n\t\t setMineView(before);\n\t\t break;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tupdateLayoutTextColor();\n\t}", "title": "" }, { "docid": "73c3f066faae81cb9b14a944dc525ac8", "score": "0.63260937", "text": "private void menu_status() {\n menu_open_layout.setVisibility(View.GONE);\n menu_click_view.setVisibility(View.VISIBLE);\n\n }", "title": "" }, { "docid": "11a5f1787a0b4536b3034ff0eb808dcc", "score": "0.63238937", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(((SlidingActivity) getActivity())\n\t\t\t\t\t\t.getFlag()!=(\"activity_friends_list\")){\n\t\t\t\t((SlidingActivity) getActivity())\n\t\t\t\t\t\t.setContentView(R.layout.activity_friends_list);\n\t\t\t\t((SlidingActivity) getActivity()).fragmentTransaction = getFragmentManager()\n\t\t\t\t\t\t.beginTransaction();\n\t\t\t\tFriendsListFragment friendsListFragment = new FriendsListFragment();\n\t\t\t\t((SlidingActivity) getActivity()).fragmentTransaction.replace(\n\t\t\t\t\t\tR.id.friend, friendsListFragment);\n\t\t\t\t((SlidingActivity) getActivity()).fragmentTransaction.commit();\n\t\t\n\t\t\t\t((SlidingActivity) getActivity()).setFlag(\"activity_friends_list\");\n\t\t\t\t}\n\t\t\t\t((SlidingActivity) getActivity()).getSlidingMenu()\n\t\t\t\t.showContent();\n\t\t\t}", "title": "" }, { "docid": "203e5967df0cd0b3517f297b4f076f2b", "score": "0.63105196", "text": "private void menuAbout() {\n\n saveCurrentZoom();\n saveCurrentColorEffect();\n setFlagLoadSecondActivity();\n Intent intent = new Intent(this, AboutScrollingActivity.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "9ef0c0be18f99b0c4de792a30e2e61f5", "score": "0.63011384", "text": "public void onClick(View v) {\n Intent i = new Intent(myActivity, MainMenu.class);\n startActivity(i);\n }", "title": "" }, { "docid": "25cdb7be2979b837e9ddca53c89c9920", "score": "0.6295432", "text": "@Override\n public void onClick(View view) {\n switch (view.getId()) {\n case R.id.mapButton:\n showMap();\n break;\n case R.id.aboutButton:\n scanTree();\n break;\n case R.id.photoButton:\n viewPhoto();\n break;\n case R.id.commentButton:\n showComment();\n break;\n case R.id.shareButton:\n viewShare();\n break;\n case R.id.interactButton:\n viewInteract();\n break;\n\n\n }\n }", "title": "" }, { "docid": "1bf1515d0172cdfb7dc22b8169109e56", "score": "0.6290651", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tcheck=!check;\n\t\t\t\tif(check)\n\t\t\t\thome_btn.setBackgroundResource(R.drawable.title_with_arrow);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\thome_btn.setBackgroundResource(R.drawable.title_withot_arrow);\n\t\t\t\t}\n\t\t\t\trbmView.toggleMenu();\n\t\t\t}", "title": "" }, { "docid": "d28edc41501ea84c2be6d575cf0b3b4f", "score": "0.6285545", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d28edc41501ea84c2be6d575cf0b3b4f", "score": "0.6285545", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d28edc41501ea84c2be6d575cf0b3b4f", "score": "0.6285545", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d28edc41501ea84c2be6d575cf0b3b4f", "score": "0.6285545", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "366636fdb9bc4566fcdb72537e65083a", "score": "0.6285054", "text": "public void ClickButtonTwo()\n {\n accessFAQ = new FAQGuiMenu();\n faqControl = new FAQGuiInteraction(accessFAQ);\n viewClass.enterFAQView();\n }", "title": "" }, { "docid": "54c15fdbc36e1ac77aa9edb0ac9cbf3d", "score": "0.6278086", "text": "@Override\n public void onClick(View v) {\n startActivity(new Intent(MainMenu.this, HHIdentity_list.class));\n }", "title": "" }, { "docid": "78f25f438b5dbfcbef2aea0ca70ea2b2", "score": "0.6275721", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\tIntent i = new Intent(MainMenu.this, MyRecipeMainMenu.class);\n\t\t\tstartActivity(i);\n\t\t\t\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b95d93db7747871faf307dfe4c6fac00", "score": "0.6275499", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(((SlidingActivity) getActivity()),\n\t\t\t\t\t\tMyInfoActivity.class);\n\t\t\t\tintent.putExtra(\"editable\", false);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "c250f8481b85042216075142e1bf9b81", "score": "0.6270359", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.menu_switch_layout) {\n switchLayout();\n switchIcon(item);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "c250f8481b85042216075142e1bf9b81", "score": "0.6270359", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.menu_switch_layout) {\n switchLayout();\n switchIcon(item);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "f1946f780ceec1ea94ee88e3c847f854", "score": "0.62683624", "text": "@FXML private void transitionView() {\n\t\tNavigationController.WINNERMSG = \"You Lose!\";\n\t\tNavigationController.loadView(NavigationController.MAINMENU);\n\t}", "title": "" }, { "docid": "de7a8700bf8aad6ba376f0917cfb8843", "score": "0.62649775", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tinflatinglayout3.removeAllViews();\r\n\t\t\t\tviewprofile.setBackgroundResource(R.drawable.highlightedtopmenuitem);\r\n\t\t\t\teditprofile.setBackgroundResource(R.drawable.toprightmenu);\r\n\t\t\t\teditpwd.setBackgroundResource(R.drawable.toprightmenu);\r\n\t\t\t\tviewprofile.setTextColor(Color.BLACK);\r\n\t\t\t\teditprofile.setTextColor(Color.WHITE);\r\n\t\t\t\teditpwd.setTextColor(Color.WHITE);\r\n\t\t\t\tLayoutInflater inflater = getLayoutInflater();\r\n\t\t\t\tfinal View layout = inflater.inflate(R.layout.view_details,\r\n\t\t\t\t\t\t(ViewGroup) v.findViewById(R.id.inflatingLayoutfor3));\r\n\t\t\t\tlist = (ListView)layout.findViewById(R.id.listView1);\r\n\t\t\t\tupdatedata();\r\n\t\t\t\tinflatinglayout3.addView(layout);\r\n\t\t\t}", "title": "" }, { "docid": "9c411e4003cec0d2f076b19667967925", "score": "0.62626415", "text": "private void menu_status() {\n menu_open_layout.setVisibility(View.GONE);\n menu_click_view.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "9c411e4003cec0d2f076b19667967925", "score": "0.62626415", "text": "private void menu_status() {\n menu_open_layout.setVisibility(View.GONE);\n menu_click_view.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "0a0957c6ded61ab0067c79c7c2a8b9d4", "score": "0.6261031", "text": "void onPipShowMenu();", "title": "" }, { "docid": "da7aa760869588dbdec22d796ec6a195", "score": "0.6259665", "text": "private void findView(){\n mListView = view.findViewById(R.id.lv_main);\n mTextViewCurrentFolder = view.findViewById(R.id.tv_current_folder);\n mImageViewPopupMenu = view.findViewById(R.id.imv_popup_menu);\n\n mImageViewPopupMenu.setOnClickListener(this);\n mTextViewCurrentFolder.setOnClickListener(this);\n }", "title": "" }, { "docid": "52e6f4e83544f5115eaddd5dbcf040a7", "score": "0.6259036", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case R.id.about:\n Aboutoss myfragment = Aboutoss.newInstance();\n myfragment.show(getFragmentManager(), \"issues\");\n break;\n case R.id.setting:\n Intent intent = new Intent(this,SettingMenu.class);\n startActivity(intent);\n //Toast.makeText(getApplicationContext(), \"Setting will come..\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.logout:\n logoutUser();\n Toast.makeText(getApplicationContext(), \"Logged out..\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.privacy_policy:\n privacypolicy pfragment= privacypolicy.newInstance();\n pfragment.show(getFragmentManager(), \"issues\");\n break;\n case R.id.terms:\n Legal newFragment = Legal.newInstance();\n newFragment.show(getFragmentManager(), \"issues\");\n break;\n\n case R.id.cancel_service:\n cancel_subs();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "878f1520d3b0827f5f812bc378c420ac", "score": "0.6254113", "text": "@Override\n public android.view.MenuItem setActionView(int resId) {\n return null;\n }", "title": "" }, { "docid": "19bd103a20a3b4c8618a956add95cea4", "score": "0.62486535", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n record_view = (TextView) findViewById(R.id.record_view);\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "c5b2e1510b56ce14ee97d7f4c0e11fcd", "score": "0.6246753", "text": "public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n ItemListView item = menuAdapter.getItem(position);\r\n \r\n switch (position) {\r\n\t\tcase 0:\r\n\t\t\tstartActivity(new Intent(Menu.this, PedidoView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tstartActivity(new Intent(Menu.this, ClienteView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tstartActivity(new Intent(Menu.this, ItemView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tstartActivity(new Intent(Menu.this, TituloView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tstartActivity(new Intent(Menu.this, HistoricoView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\tbreak;\t\t\r\n\t\t/*case 5:\r\n\t\t\tstartActivity(new Intent(Menu.this, ConfigView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\tbreak;*/\r\n\t\tcase 5:\r\n\t\t\tstartActivity(new Intent(Menu.this, SincronizarView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);\r\n\t\t\t/*startActivity(new Intent(Menu.this, SincronizacaoItensView.class));\r\n\t\t\toverridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);*/\r\n\t\t\t\r\n/*\t\t\tIntegration it = new Integration(Menu.this);\r\n\t\t\tit.atualizar();*/\r\n\t\t\t\r\n\t\t\tbreak;\t\r\n\t\tcase 6:\r\n\t\t\tfinish();\r\n\t\t\toverridePendingTransition(R.anim.slide_left_in, R.anim.slide_right_out);\r\n\t\t\tbreak;\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d0319153f2d2a3c3d47038636c4fdbc2", "score": "0.6243247", "text": "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.left_direction_icons:\r\n\t\t\t\tonFragmentBackClick();\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.right_direction_icons:\r\n\t\t\t\tstartPearViewFragment();\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.glass_public_home_layout:\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9553d186ccc02c47ba323b6fb9b11491", "score": "0.62388057", "text": "@Override\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tfor (View view : getInstance().getViews()) {\n\t\t\t\t\tJMenuItem item = new JMenuItem(view.getName());\n\t\t\t\t\titem.addActionListener(new ActionListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tif (!RenderManager.isGood()) {\n\t\t\t\t\t\t\t\tif (RenderManager.canInitialize()) {\n\t\t\t\t\t\t\t\t\tRenderManager.initialize(SAFE_GRAPHICS);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// A fatal error has occurred, don't try to initialize again\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tKeywordIndex kw = InputAgent.formatBoolean(\"ShowWindow\", true);\n\t\t\t\t\t\t\tInputAgent.storeAndExecute(new KeywordCommand(view, kw));\n\t\t\t\t\t\t\tFrameBox.setSelectedEntity(view, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tviewsMenu.add(item);\n\t\t\t\t}\n\n\t\t\t\t// 2) \"Define New View\" menu item\n\t\t\t\tJMenuItem defineItem = new JMenuItem(\"Define New View\");\n\t\t\t\tdefineItem.addActionListener(new ActionListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tif (!RenderManager.isGood()) {\n\t\t\t\t\t\t\tif (RenderManager.canInitialize()) {\n\t\t\t\t\t\t\t\tRenderManager.initialize(SAFE_GRAPHICS);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// A fatal error has occurred, don't try to initialize again\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tJaamSimModel sim = getJaamSimModel();\n\t\t\t\t\t\tString name = InputAgent.getUniqueName(sim, \"View\", \"\");\n\t\t\t\t\t\tIntegerVector winPos = null;\n\t\t\t\t\t\tVec3d pos = null;\n\t\t\t\t\t\tVec3d center = null;\n\t\t\t\t\t\tArrayList<View> viewList = getInstance().getViews();\n\t\t\t\t\t\tif (!viewList.isEmpty()) {\n\t\t\t\t\t\t\tView lastView = viewList.get(viewList.size() - 1);\n\t\t\t\t\t\t\twinPos = (IntegerVector) lastView.getInput(\"WindowPosition\").getValue();\n\t\t\t\t\t\t\twinPos = new IntegerVector(winPos);\n\t\t\t\t\t\t\twinPos.set(0, winPos.get(0) + VIEW_OFFSET);\n\t\t\t\t\t\t\tpos = lastView.getViewPosition();\n\t\t\t\t\t\t\tcenter = lastView.getViewCenter();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tInputAgent.storeAndExecute(new DefineViewCommand(sim, name, pos, center, winPos));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tviewsMenu.addSeparator();\n\t\t\t\tviewsMenu.add(defineItem);\n\n\t\t\t\t// 3) \"Reset Positions and Sizes\" menu item\n\t\t\t\tJMenuItem resetItem = new JMenuItem( \"Reset Positions and Sizes\" );\n\t\t\t\tresetItem.setMnemonic(KeyEvent.VK_R);\n\t\t\t\tresetItem.addActionListener(new ActionListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed( ActionEvent e ) {\n\t\t\t\t\t\tfor (View v : getInstance().getViews()) {\n\t\t\t\t\t\t\tKeywordIndex posKw = InputAgent.formatArgs(\"WindowPosition\");\n\t\t\t\t\t\t\tKeywordIndex sizeKw = InputAgent.formatArgs(\"WindowSize\");\n\t\t\t\t\t\t\tInputAgent.storeAndExecute(new KeywordCommand(v, posKw, sizeKw));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tviewsMenu.addSeparator();\n\t\t\t\tviewsMenu.add(resetItem);\n\t\t\t}", "title": "" }, { "docid": "1934e8e7437546be61d6191aebcdc97e", "score": "0.6237731", "text": "@Override\n public android.view.MenuItem setActionView(View view) {\n return null;\n }", "title": "" }, { "docid": "be5e733a3294b033352be5aefabd499c", "score": "0.6232813", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\tIntent i = new Intent(MainMenu.this, PantryMainMenu.class);\n\t\t\tstartActivity(i);\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b8a2bd1066b2c3f8be21ce24c370bb6b", "score": "0.623247", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n\n setContentView(R.layout.activity_main);\n // for about and help action.\n // Refer back to previouse activity .\n return true;\n }\n if (id == R.id.action_about) {\n\n ShowAbout();\n return true;\n }\n if (id == R.id.action_help){\n ShowHelp();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "1fd463bc259f97df2720a691e2587c41", "score": "0.6231968", "text": "private void switchToMenu() {\n Intent tmp = new Intent(this, PlayerMenuActivity.class);\n startActivity(tmp);\n }", "title": "" }, { "docid": "efda081988ff579c27422fa99cf98186", "score": "0.6231018", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == com.akoscz.youtube.R.id.action_listview) {\n Intent intent=new Intent(YouTubeActivity.this,Twitter.class);\n startActivity(intent);\n return true;\n }else if (id == com.akoscz.youtube.R.id.action_recyclerview) {\n getSupportFragmentManager().beginTransaction()\n .replace(com.akoscz.youtube.R.id.container, YouTubeRecyclerViewFragment.newInstance(YOUTUBE_PLAYLIST))\n .commit();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "212f4c2b4fca14c89d1c37d26e754b34", "score": "0.62305", "text": "@Override\n\tpublic void OnClick(View view) {\n\t\tLog.e(Tag, \"click\");\n\t\tswitch(view.getId())\n\t\t{\n\t\t\tcase R.id.action_back:\n\t\t\t\tLog.e(Tag, \"返回\");\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase R.id.action_bar_right :\n\t\t\t\tsendNews();\n\t\t\t\tbreak;\n\t\t\tcase R.id.add_pic:\n\t\t\t\tselectPic();\n\t\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "71e679f49a17b2f5d33dfda0b069f081", "score": "0.6220071", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n\n if (id==R.id.mnuLogout)\n {\n startActivity(new Intent(this, MainActivity.class));\n Toast.makeText(this, \"Logout is Clicked\", Toast.LENGTH_SHORT).show();\n\n }\n else if (id==R.id.mnuExploraEstilos)\n {\n Toast.makeText(this, \"ExploraEstilos menu is Clicked\", Toast.LENGTH_SHORT).show();\n\n startActivity(new Intent(this, Buscar.class));\n }\n else if (id==R.id.mnuInicio)\n {\n Toast.makeText(this, \"Inicio menu is Clicked\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, Buscar.class));\n\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b1e9e9dd47bef89577711d3e24e97302", "score": "0.62103295", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n super.onOptionsItemSelected(item);\r\n\r\n // per ora c'è solo un'opzione\r\n switch (item.getItemId()) {\r\n\r\n case R.id.stats:\r\n\r\n Intent openStatsPage = new Intent(this, StatsViewer.class);\r\n startActivity(openStatsPage);\r\n\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "54ff13026c71856117aed19fc0b7f0e5", "score": "0.6205992", "text": "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.menuBtn:\n /*\n TextView tv = getActivity().findViewById(R.id.home_title);\n tv.setText(\"h\");\n\n */\n MenuBottomSheetDialog bottomSheet = new MenuBottomSheetDialog();\n bottomSheet.show(getActivity().getSupportFragmentManager(),\"menuBottomSheet\");\n break;\n\n }\n\n\n }", "title": "" }, { "docid": "508138d148fbdaa70c1a55e573af2143", "score": "0.62044406", "text": "@Override\n\t\tpublic void onClick(View v)\n\t\t{\n\t\t\tIntent push_intent=new Intent(Single_View.this,View_menu.class);\n\t\t\tpush_intent.putExtra(\"counter_name\", counter_name);\n\t\t\tstartActivity(push_intent);\n\t\t}", "title": "" }, { "docid": "7393ce3a3d26e58548d2a529c6e9e718", "score": "0.6200719", "text": "private void showOpenMenuRelative(){\n setViewPadding();\n down_menu.start();\n down_activity.start();\n // remove self if has not remove\n if (getParent() != null) view_decor.removeView(this);\n view_decor.addView(this, 0);\n\n maskView.setBackgroundColor(getResources().getColor(R.color.text_black));\n ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n maskView.setLayoutParams(layoutParams);\n maskView.setAlpha(0);\n maskView.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n closeMenu();\n }\n });\n\n view_decor.addView(maskView);\n down_mask.start();\n }", "title": "" }, { "docid": "29235bc44ea656cab515b3b10db13f4e", "score": "0.6197091", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home, menu);\n View view=menu.findItem(R.id.cart).getActionView();\n // badge=(NotificationBadge)view.findViewById(R.id.badge);\n return true;\n }", "title": "" }, { "docid": "b4d9065bfabe8029a33c757b31da70c6", "score": "0.6196496", "text": "void click(View view);", "title": "" }, { "docid": "eb18e6923d8684418627e56168cfe6ad", "score": "0.61959475", "text": "@Override\n public boolean onOptionsItemSelected (MenuItem item)//메뉴 선택\n {\n int state=3;\n switch(item.getItemId())\n {\n case R.id.menu1:\n state=0;\n break;\n case R.id.menu2:\n state=1;\n break;\n\n }\n if(state==0){\n Intent intent = new Intent(// 다음 화면으로 전환\n PreviousPathBoundary.this,\n MyPageSelectMenu.class); // ?ㅼ쓬 ?섏뼱媛??대옒??吏€??\n intent.putExtra(\"id\",id);\n intent.putExtra(\"pw\",pw);\n\n startActivity(intent);\n }\n else if(state==1){\n Toast.makeText(PreviousPathBoundary.this,\"로그아웃되었습니다.\",Toast.LENGTH_LONG).show();\n Intent intent = new Intent(// 다음 화면으로 전환\n PreviousPathBoundary.this,\n MainActivity.class);\n\n startActivity(intent);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d50cb1bf8e4a9efadf869dbab10ce8a9", "score": "0.61936605", "text": "@Override\r\n public boolean onMenuItemClick(MenuItem item) {\n \t \r\n \t Intent intent = new Intent();\r\n \t intent.putExtra(\"PATHKEY\",mCurrPicPath );//\r\n \t\t intent.setClass(GridViewActivity.this, AndroidGeKey.class);\r\n \t\t startActivity(intent);\r\n return false; \r\n \r\n }", "title": "" }, { "docid": "4ddfe6681d29b3bde5bbd1b7ea4c2b9c", "score": "0.6191747", "text": "@Override\n public void onClickOfHeaderRightView() {\n }", "title": "" }, { "docid": "7337bd4e008eeca6bb3ae4fc2da24a38", "score": "0.6190223", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent Intent1 = new Intent();\n\t\t\t\tIntent1.setClass(RestaurantActivity.this, MenuActivity.class);\n\t\t\t\tBundle Bundle1 = new Bundle();\n\t\t\t\tBundle1.putString(\"tg\", \"0\");\n\t\t\t\tIntent1.putExtras(Bundle1);\n\t\t\t\tstartActivity(Intent1);\n\t\t\t\toverridePendingTransition(R.anim.in_from_right,\n\t\t\t\t\t\tR.anim.out_to_left);\n\t\t\t}", "title": "" }, { "docid": "76fff06097c6b42b13d70b16ecf24db1", "score": "0.61826694", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == R.id.dataType) {\n\n if(type == 0) {\n item.setIcon(R.drawable.grid);\n\n type = 1;\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position, nameBackground,sensor, type, value, brightness, date, humidity, temperature, pressure, people, noise, wifiSpeed))\n .commit();\n\n }else {\n item.setIcon(R.drawable.chart);\n type = 0;\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position, nameBackground,sensor, type, value, brightness, date, humidity, temperature, pressure, people, noise, wifiSpeed))\n .commit();\n\n }\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "7070ff7005bd338a6ffecba9a98230c8", "score": "0.6181045", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t//TextView display = (TextView) findViewById(R.id.display);\n // Handle item selection\n switch (item.getItemId()) {\n //firstcase is for the main homescreen with all information display\n case R.id.start:\n \tsetContentView(R.layout.main);\n \t//GoAccel() is a continuous running function of sub functions\n \tGoAccel();\n return true;\n //server case is to configure a socket\n case R.id.server:\n setContentView(R.layout.serverconfigure);\n ConnectToServer();\n return true;\n //just a test case, if protocol not used, this page is used to send random information\n case R.id.talk:\n \tsetContentView(R.layout.communicator);\n \tServerTalk();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "593e9fd3b627537c3bc65163618147df", "score": "0.6178435", "text": "public void storeMenu(View view){\n Intent intent = new Intent(this, storeList.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "3bc82fb23f9860ecad764c6909ae92fb", "score": "0.6173529", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(MainActivity.this, GirdLayoutActivity.class);\n\t\t\t\tstartActivity(i);\n\n\t\t\t}", "title": "" }, { "docid": "d464e5a3349c8efef8b5024eb8088fd8", "score": "0.6171858", "text": "@Override\n public void onShowAClick() {\n }", "title": "" }, { "docid": "7e24dba9a7b9a0785075545b0d5640f8", "score": "0.6171106", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();;\n switch (id){\n case R.id.home:\n Intent intent = new Intent(getApplicationContext(), Menuoption.class);\n startActivity(intent);\n overridePendingTransition(R.anim.left_in, R.anim.right_out);\n finish();\n break;\n case R.id.close:\n verify_close();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9512842f436381af32a62a926101786e", "score": "0.61696327", "text": "@Override\r\n public void onClick(View v) {\n if( changeViewNavigator.getVisibility() == View.GONE ){\r\n changeViewNavigator.setVisibility( View.VISIBLE );\r\n }\r\n else{\r\n changeViewNavigator.setVisibility( View.GONE );\r\n }\r\n }", "title": "" }, { "docid": "f0d84e993fa66995e51d14a8860d6676", "score": "0.6167702", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\n\t\t\tcase R.id.back_to_main:\n\t\t\t\tif(backFlag == 0){\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbackFlag = 0;\n\t\t\t\t\tmTextView.setText(\"设置\");\n\t\t\t\t\tmSettingListView.setVisibility(View.VISIBLE);\n\t\t\t\t\tmAppIconImageView.setVisibility(View.GONE);\n\t\t\t\t\tmAboutTextView.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "5eb767e4eed84a49283df272e80e712e", "score": "0.61629564", "text": "private void menuClick(int position) {\n\n // Update the main content by replacing fragments\n currentFragment = getFragmentByPosition(position);\n\n setTitleByPosition(NavigationManager.SCREENS.values()[position]);\n\n NavigationManager.lastViewPosition = NavigationManager.currentViewPosition;\n NavigationManager.currentViewPosition = position;\n\n Log.v(NavigationManager.LOG_TAG, \"Position to go: \" + position);\n Log.v(NavigationManager.LOG_TAG, \"NavigationManager.lastViewPosition: \" + NavigationManager.lastViewPosition);\n Log.v(NavigationManager.LOG_TAG, \"NavigationManager.currentViewPosition: \" + NavigationManager.currentViewPosition);\n\n if (currentFragment != null) {\n\n if (lastFragment != null && lastFragment == currentFragment) {\n currentFragment = refreshFragment(position);\n } else {\n loadFragment(currentFragment);\n }\n\n lastFragment = currentFragment;\n\n setTitle(currentFragment.getTag());\n\n // Select menu item\n menuFragment.setSelectedMenuPosition(position);\n\n } else {\n currentFragment = lastFragment;\n switch (NavigationManager.SCREENS.values()[position]) {\n case POSITION_2:\n Intent intent = new Intent(this, TutorialActivity.class);\n startActivityForResult(intent, TutorialActivity.REQUEST_CODE);\n break;\n }\n }\n }", "title": "" }, { "docid": "c82b7595a2e9098ac7f0345d2bc39441", "score": "0.6159185", "text": "@Override\n public void onMenuClicked(FABsMenu fabsMenu) {\n super.onMenuClicked(fabsMenu); // Default implementation opens the menu on click\n // showToast(\"You pressed the menu!\");\n\n }", "title": "" }, { "docid": "20c5d5b379dcbe899a98807f03491e6f", "score": "0.6156508", "text": "@Override\n\t\t\tpublic void clicked(InputEvent event, float x, float y){\n\t\t\t\t\ttoggleOptionsMenu();\n\t\t\t\t}", "title": "" }, { "docid": "8f3ba694b4371ba8ab3f9e39aa0a56f0", "score": "0.6152872", "text": "@Override\n public void onClick(View v) {\n int pos = getLayoutPosition();\n HomeOption cur = homeOptions.get(pos);\n context.startActivity(cur.getIntent());\n\n }", "title": "" } ]
8fcdafe7bf04dad587e6cf2b17088306
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
[ { "docid": "149cedb321f6df164ecefdf68005132e", "score": "0.0", "text": "@Override\n public long cancelRequest(int n) {\n if (this.mLegacyDevice.isClosed()) {\n Log.e(TAG, \"Cannot cancel request, device has been closed.\");\n throw new ServiceSpecificException(4, \"Cannot cancel request, device has been closed.\");\n }\n Object object = this.mConfigureLock;\n synchronized (object) {\n if (!this.mConfiguring) {\n return this.mLegacyDevice.cancelRequest(n);\n }\n Log.e(TAG, \"Cannot cancel request, configuration change in progress.\");\n ServiceSpecificException serviceSpecificException = new ServiceSpecificException(10, \"Cannot cancel request, configuration change in progress.\");\n throw serviceSpecificException;\n }\n }", "title": "" } ]
[ { "docid": "8862bb37cfc75bf8be0fcadb4e78ec46", "score": "0.5742954", "text": "@Override\r\n public boolean shouldSort() {\r\n return false;\r\n }", "title": "" }, { "docid": "f6e6ab9a68d19d3551da496d9d06a35a", "score": "0.5652064", "text": "@Test\n public void queueOrderedByOptimisticTxn() throws Exception {\n queueOrderedByTransaction(TransactionType.OPTIMISTIC);\n }", "title": "" }, { "docid": "156afeb1707ea097cf42a25dacdc3a9a", "score": "0.5626933", "text": "@Override\n public void optimize() {\n return;\n }", "title": "" }, { "docid": "6d64e190c12c419a89eba3a2b26d6207", "score": "0.5592624", "text": "@Override\r\n\tprotected void sort() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1c49e5d9f5fc47f1c58b2d75e8e9f9e1", "score": "0.55359936", "text": "@Override\n protected void updateEliminations() {\n\n }", "title": "" }, { "docid": "b441a95249cf9aef353b8e1a16e08bd3", "score": "0.5520534", "text": "public void optimize(){\n // enable lock\n lock.writeLock().lock();\n try{\n logger.warn(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - This May Result In Data Loss\");\n // create hashmap with <datasetkey, long>\n HashMap<String, Long> unsorted = new HashMap<>();\n statisticsPool.forEach((key, value) -> unsorted.put(key, value.getCountFor(UsageStatistics.Usage.any)));\n // sort\n HashMap<String, Long> sorted = unsorted.entrySet().stream().sorted(Collections.reverseOrder(Map.Entry.comparingByValue())).collect(toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2, LinkedHashMap::new));\n // check if both the index size & sorted list match in size\n if(!(sorted.keySet().containsAll(Collections.list(indexPool.keys())) && sorted.size() == indexPool.size())){\n throw new Exception(\"Meta Data Does Not Match Objects From Index\");\n }\n // load all datasets (this is scary)\n HashMap<String, DataSet> datasetTransferCache = new HashMap<>();\n for(String key : sorted.keySet()){ // we do not get the dataset pool from each shard as they may not be loaded\n // load dataset\n DataShard ds = shardPool.get(indexPool.get(key));\n if(ds == null){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Error Optimizing Shards - DataShard \"+indexPool.get(key)+\" Not Found For \"+key+\", Dropping DataSet\");\n continue;\n }\n DataSet dataSet = ds.getDataSet(key);\n if(dataSet == null){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Error Optimizing Shards - DataShard \"+indexPool.get(key)+\" Does Not Contain\"+key+\", Dropping DataSet\");\n continue;\n }\n datasetTransferCache.put(key, dataSet);\n }\n // clear all references\n logger.warn(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Clearing All DataShards & Index\");\n shardPool.forEach((k,v)->{\n try {\n v.getDataPool().clear(); // we clear it here so that those objects dont know they get moved\n v.unloadData(false, false, true); // as this would signal them that they got unloaded\n } catch (DataStorageException e) {\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Failed To Delete Shard \"+v.getShardID());\n }\n });\n shardPool.clear();\n indexPool.clear();\n logger.warn(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Rebuilding Index & Restoring DataSets\");\n int processed = 0;\n int dsc = DataShard.getMaxDataSetCountStatic();\n DataShard dataShard = null;\n for(String selection : sorted.keySet()){\n processed++;\n if(dataShard == null || (processed % (dsc+1) == 0)){\n dataShard = new DataShard(dataBase, this);\n shardPool.put(dataShard.getShardID(), dataShard);\n }\n // get the dataset\n DataSet dataSet = datasetTransferCache.get(selection);\n if(dataSet == null){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Failed To Get DataSet From Transfer Cache \");\n continue;\n }\n // remove it from the transfer cache\n datasetTransferCache.remove(selection);\n // insert it into the new DataShard\n try{\n dataShard.insertDataSet(dataSet);\n // add to index\n indexPool.put(dataSet.getIdentifier(), dataShard.getShardID());\n }catch (DataStorageException e){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Failed To Insert DataSet Into New Shard, Dropping DataSet\");\n }\n }\n // check if we have any datasets left over (we shouldn't as we checked before)\n if(datasetTransferCache.size() > 0){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Not All DataSet Have Been Inserted, Trying To Insert Them\");\n for(Map.Entry<String, DataSet> entry : datasetTransferCache.entrySet()){\n processed++;\n if(dataShard == null || (processed % (dsc+1) == 0)){\n dataShard = new DataShard(dataBase, this);\n shardPool.put(dataShard.getShardID(), dataShard);\n }\n try{\n dataShard.insertDataSet(entry.getValue());\n indexPool.put(entry.getValue().getIdentifier(), dataShard.getShardID());\n }catch (DataStorageException e){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Failed To Insert DataSet Into New Shard, Dropping DataSet\");\n }\n }\n }\n // clean up\n datasetTransferCache.clear();\n unsorted.clear();\n sorted.clear();\n logger.info(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Optimizing Shards - Finished\");\n }catch (DataStorageException e){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Error Optimizing Shards\", e);\n }catch (Exception e){\n logger.error(\"Table ( Chain \"+this.dataBase.getIdentifier()+\", \"+this.identifier+\"; Hash \"+hashCode()+\") Error Optimizing Shards\", e);\n }\n // unlock\n lock.writeLock().unlock();\n }", "title": "" }, { "docid": "368d23b3fc852948e5c4f2c345be9f41", "score": "0.54380137", "text": "public void finalPass() throws Exception {\n if (_SortExpression != null)\n _SortExpression.finalPass();\n \n return ;\n }", "title": "" }, { "docid": "f0456c67f0da52c98552a7687cdacc1e", "score": "0.54100394", "text": "public void optimize() {\r\n\t\t//TODO\r\n\t}", "title": "" }, { "docid": "40eb084c28562d7b8aa33ab21be2a174", "score": "0.53324705", "text": "@Override\n public void optimizeAll() {\n\n }", "title": "" }, { "docid": "4399410f2d1337e06e83e7507c02b206", "score": "0.5270102", "text": "@Override\n public int getOrder() {\n return -500;\n }", "title": "" }, { "docid": "0392f0f0a286e218272007749878f704", "score": "0.5188566", "text": "protected boolean isApplyPostQuerySorting()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "13b09602cf8e6a9931e15f55acbcf951", "score": "0.51788104", "text": "boolean shouldContinueOnPrimingFailures() {\n return true;\n }", "title": "" }, { "docid": "ced2eb82acebd33b9995bd5dc56f31bc", "score": "0.5172193", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator();\n int int0 = fixedOrderComparator0.getUnknownObjectBehavior();\n assertFalse(fixedOrderComparator0.isLocked());\n assertEquals(2, int0);\n }", "title": "" }, { "docid": "b3ce064f32a543ac43a05e1f30f43242", "score": "0.51613545", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 900;\n\t}", "title": "" }, { "docid": "6e08010e52b9994b7ae9b1c58ee63ff3", "score": "0.5108431", "text": "@Override\n public void setSortEnabled(boolean enabled)\n {\n }", "title": "" }, { "docid": "909342ec9584538d719359f4f9c66bab", "score": "0.506839", "text": "private void boundryConditions() {\n long sum=0;\n for(int i=0;i<slaves.size();i++){\n sum=sum+slaves.get(i).node_mem_high;\n }\n if(sum<volume_bigdata){\n System.out.println(\"Not Enough Number to slaves to Process Sorting\");\n System.exit(1);\n }\n \n }", "title": "" }, { "docid": "56e078bb413509dbe9a4a7523a588f5f", "score": "0.5053747", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Object[] objectArray0 = new Object[14];\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator(objectArray0);\n fixedOrderComparator0.setUnknownObjectBehavior(2);\n assertEquals(2, fixedOrderComparator0.getUnknownObjectBehavior());\n }", "title": "" }, { "docid": "b8fa8d2f7996933d01d775bbd964f640", "score": "0.5045149", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 10;\n\t}", "title": "" }, { "docid": "a4aec175c6cc45117ab932249a9f6569", "score": "0.50345695", "text": "private SortException(String message, Collection unsortedNodes) {\n super(message);\n \n this.unsortedNodes = unsortedNodes;\n }", "title": "" }, { "docid": "b116b86e9f119d0ac97f1f25c0edf6a2", "score": "0.5011446", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator();\n // Undeclared exception!\n try { \n fixedOrderComparator0.setUnknownObjectBehavior(1198);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Unrecognised value for unknown behaviour flag\n //\n assertThrownBy(\"collections.comparators.FixedOrderComparator\", e);\n }\n }", "title": "" }, { "docid": "c3931abe140723f36614b7ac1ad5a974", "score": "0.5011064", "text": "private void computeOrderConflicts() {\n\t\t\t// Consider all annotated nodes, i.e. all sources and sinks\n\t\t\tCollection<SecurityNode> annotatedNodes = new HashSet<SecurityNode>();\n\t\t\tannotatedNodes.addAll(sources);\n\t\t\tannotatedNodes.addAll(sinks);\n\n\t\t\tfor (SecurityNode m : annotatedNodes) {\n\t\t\t\tfor (SecurityNode n : annotatedNodes) {\n\t\t\t\t\tif (mhp.isParallel(m, n)) {\n\t\t\t\t\t\tSDGEdge edge = new SDGEdge(m, n,\n\t\t\t\t\t\t\t\tSDGEdge.Kind.CONFLICT_ORDER);\n\t\t\t\t\t\torderConflictEdges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a79ef03c2b183e17adf16d3dc2e9aad2", "score": "0.5006895", "text": "public void testPass() {\n try {\n for (int i = 0; i < 1000; i++)\n for (int j = i; j < 1000; j++)\n throwsNothing();\n throw new Exception();\n } catch (Exception e) {\n dontTriggerEmptyExceptionHandler();\n }\n }", "title": "" }, { "docid": "96d36b3734f387ad89dcc9907c865a78", "score": "0.5004849", "text": "static void checkSort(int arr[]) throws Exception {\n int last = arr[0];\n for (int i = 0; i < arr.length; i++)\n {\n // Skip the first index as there is no last to compare with\n if (i == 0)\n {\n continue;\n }\n\n if (arr[i] < last)\n {\n throw new Exception(\n String.format(\"Sort error at index %d: %d is smaller than last index %d\", i, arr[i], last)\n );\n }\n last = arr[i];\n }\n }", "title": "" }, { "docid": "af98f52991522e4c4d1b9be08e3c4f41", "score": "0.5002036", "text": "public static void main(String[] args) {\n CostPerformanceDatabase db = new CostPerformanceDatabase();\n db.add(3, 10);\n printEntry(db.best(5)); // 3 10\n db.add(4, 3); // skip\n db.add(6, 5); // skip\n db.add(8, 15); // dont skip\n printEntry(db.best(10)); // 8 15\n printEntry(db.best(6)); // 3 10\n db.add(14, 100); // dont skip\n db.add(1, 2); // dont skip\n db.add(2,0); // skip\n printEntry(db.best(20)); // 14 100\n printEntry(db.best(2)); // 1 2\n\n }", "title": "" }, { "docid": "063649c53e0da52fca853938124f6a4e", "score": "0.49857792", "text": "public void testPass2() {\n try {\n for (int i = 0; i < 1000; i++)\n for (int j = i; j < 1000; j++)\n throwsNothing();\n throw anException;\n } catch (Exception e) {\n dontTriggerEmptyExceptionHandler();\n }\n }", "title": "" }, { "docid": "17cd11524ead126cd5e82aa68be71177", "score": "0.49819115", "text": "@Override\r\n public Collection<CS16Edge<V>> genMinSpanForest(Graph<V> g, CS16GraphVisualizer<V> visualizer) {\r\n \t\r\n \t//All decorators handled here\r\n \t//store the cost of a vertex\r\n \tMyDecorator<CS16Vertex<V>, Integer> costDecorator = new MyDecorator<CS16Vertex<V>, Integer>();\r\n \t//stores the previous edge of a vertex\r\n \tMyDecorator<CS16Vertex<V>, CS16Edge<V>> previousDecorator = new MyDecorator<CS16Vertex<V>, CS16Edge<V>>(); \r\n \t//stores if the edge is already included in MST\r\n \tMyDecorator<CS16Edge<V>, Boolean> inMST = new MyDecorator<CS16Edge<V>, Boolean>();\r\n \t//stores each entry as int and Vertex\r\n \tMyDecorator<CS16Vertex<V>, Entry<Integer, CS16Vertex<V>>> entryDecorator = new MyDecorator<CS16Vertex<V>, Entry<Integer, CS16Vertex<V>>>();\r\n \t\r\n \t//Setting the HeapPriorityQueue and filling the HPQ with each vertex using the g.ierator() \r\n \tIterator<CS16Vertex<V>> iterator = g.vertices();\r\n \tCS16AdaptableHeapPriorityQueue<Integer, CS16Vertex<V>> HPQ = new CS16AdaptableHeapPriorityQueue<Integer, CS16Vertex<V>>();\r\n \t//while there is another vertex in the iterator\r\n \twhile (iterator.hasNext()) {\r\n \t\tCS16Vertex<V> next = iterator.next(); //store the vertex\r\n \t\tcostDecorator.setDecoration(next, Integer.MAX_VALUE); //set the decoration of the vertex to max(inf)\r\n \t\tHPQ.insert(0, next); //insert the vertex in the HPQ with the key 0\r\n \t\tentryDecorator.setDecoration(next, HPQ.min()); //set the entry decoration to the minimum in the HPQ\r\n \t\tHPQ.replaceKey(entryDecorator.getDecoration(next), Integer.MAX_VALUE); //replace HPQ decoration key to max(inf)\r\n \t}\r\n \t\r\n \t//loop while the HPQ is not empty\r\n \twhile(HPQ.size() != 0) {\r\n \t\tCS16Vertex<V> v = HPQ.removeMin().getValue(); //take the minimum vertex from HPQ\r\n \t\tentryDecorator.removeDecoration(v); //remove the entry decoration from vertex \r\n \t\t\r\n \t\tif(previousDecorator.hasDecoration(v)) { //check if previous decorator exists\r\n \t\t\tinMST.setDecoration(previousDecorator.getDecoration(v), true); //if so, set that edge exists in MST\r\n \t\t}\r\n \t\tIterator<CS16Edge<V>> incomingEdges = g.incomingEdges(v); //iterator to store all incoming edges at the specific vertex removed\r\n \t\t\r\n \t\twhile(incomingEdges.hasNext()) { //iterate through incomingEdges\r\n \t\t\tCS16Edge<V> edge = incomingEdges.next(); //store the incoming edge\r\n \t\t\tCS16Vertex<V> u = g.opposite(v, edge); //find the opposite edge and store in variable\r\n \t\t\t\t\r\n \t\t\tif(costDecorator.getDecoration(u) > edge.element()) { //if opposite's cost is greater than the edge\r\n \t\t\t\tcostDecorator.setDecoration(u, edge.element()); //set the decoration to the edge\r\n \t\t\t\t\tpreviousDecorator.setDecoration(u, edge); //previous edge is not edge\r\n \t\t\t\t\r\n \t\t\t\t\tif(entryDecorator.hasDecoration(u)) { //if entry has a decoration\r\n \t\t\t\tHPQ.replaceKey(entryDecorator.getDecoration(u), edge.element()); //replace the HPQ entry with the edge\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\t\r\n \t\t}\r\n \t}\r\n \r\n \tVector<CS16Edge<V>> MST = new Vector<>(); //create an MST\r\n \tIterator<CS16Edge<V>> edge = g.edges(); //store all edges of graph\r\n \t\r\n \twhile(edge.hasNext()) { //iterate through edges\r\n \t\tCS16Edge<V> e = edge.next(); //store next edge e\r\n \t\t\r\n \t\tif(inMST.hasDecoration(e) && inMST.getDecoration(e)) { //check if edge in MST and its decoration is edge e\r\n \t\t\tMST.add(e); //add to MST\r\n \t\t}\r\n \t}\r\n \t\r\n return MST; \r\n \r\n }", "title": "" }, { "docid": "491a6ba949e842eb311d50096809618d", "score": "0.4979322", "text": "@Override\n public int getPriority(){\n return 4;\n }", "title": "" }, { "docid": "a9fe1916c0a1a2ef7d61f0a50a004093", "score": "0.4978072", "text": "public synchronized void updateLogPriority(java.util.List<? extends com.ta.audid.db.Entity> r15) {\n /*\n r14 = this;\n monitor-enter(r14)\n if (r15 == 0) goto L_0x0142\n int r0 = r15.size() // Catch:{ all -> 0x013f }\n if (r0 != 0) goto L_0x000b\n goto L_0x0142\n L_0x000b:\n r0 = 0\n java.lang.Object r1 = r15.get(r0) // Catch:{ all -> 0x013f }\n com.ta.audid.db.Entity r1 = (com.ta.audid.db.Entity) r1 // Catch:{ all -> 0x013f }\n java.lang.Class r1 = r1.getClass() // Catch:{ all -> 0x013f }\n java.lang.String r1 = r14.getTablename(r1) // Catch:{ all -> 0x013f }\n java.lang.Object r2 = r15.get(r0) // Catch:{ all -> 0x013f }\n com.ta.audid.db.Entity r2 = (com.ta.audid.db.Entity) r2 // Catch:{ all -> 0x013f }\n java.lang.Class r2 = r2.getClass() // Catch:{ all -> 0x013f }\n android.database.sqlite.SQLiteDatabase r2 = r14.checkTableAvailable(r2, r1) // Catch:{ all -> 0x013f }\n r3 = 1\n if (r2 != 0) goto L_0x0038\n java.lang.String r15 = \"DBMgr\"\n java.lang.Object[] r1 = new java.lang.Object[r3] // Catch:{ all -> 0x013f }\n java.lang.String r2 = \"[update] db is null\"\n r1[r0] = r2 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r15, r1) // Catch:{ all -> 0x013f }\n monitor-exit(r14)\n return\n L_0x0038:\n r4 = 2\n r2.beginTransaction() // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n java.lang.Object r5 = r15.get(r0) // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n com.ta.audid.db.Entity r5 = (com.ta.audid.db.Entity) r5 // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n java.lang.Class r5 = r5.getClass() // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n java.util.List r5 = r14.getAllFields(r5) // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n r6 = 0\n L_0x004b:\n int r7 = r15.size() // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n if (r6 >= r7) goto L_0x00c1\n android.content.ContentValues r7 = new android.content.ContentValues // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n r7.<init>() // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n r8 = 0\n L_0x0057:\n int r9 = r5.size() // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n if (r8 >= r9) goto L_0x00be\n java.lang.Object r9 = r5.get(r8) // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n java.lang.reflect.Field r9 = (java.lang.reflect.Field) r9 // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n java.lang.String r10 = r14.getColumnName(r9) // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n if (r10 == 0) goto L_0x00bb\n java.lang.String r11 = \"priority\"\n boolean r11 = r10.equalsIgnoreCase(r11) // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n if (r11 == 0) goto L_0x00bb\n r9.setAccessible(r3) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.StringBuilder r11 = new java.lang.StringBuilder // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r11.<init>() // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.Object r12 = r15.get(r6) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.Object r9 = r9.get(r12) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r11.append(r9) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.String r9 = \"\"\n r11.append(r9) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.String r9 = r11.toString() // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r7.put(r10, r9) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.String r9 = \"_id=?\"\n java.lang.String[] r10 = new java.lang.String[r3] // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.StringBuilder r11 = new java.lang.StringBuilder // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r11.<init>() // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.Object r12 = r15.get(r6) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n com.ta.audid.db.Entity r12 = (com.ta.audid.db.Entity) r12 // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n long r12 = r12._id // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r11.append(r12) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.String r12 = \"\"\n r11.append(r12) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n java.lang.String r11 = r11.toString() // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r10[r0] = r11 // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n r2.update(r1, r7, r9, r10) // Catch:{ Exception -> 0x00b3, all -> 0x00eb }\n goto L_0x00be\n L_0x00b3:\n r9 = move-exception\n java.lang.String r10 = \"\"\n java.lang.Object[] r11 = new java.lang.Object[r0] // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n com.ta.audid.utils.UtdidLogger.e(r10, r9, r11) // Catch:{ Exception -> 0x0116, all -> 0x00eb }\n L_0x00bb:\n int r8 = r8 + 1\n goto L_0x0057\n L_0x00be:\n int r6 = r6 + 1\n goto L_0x004b\n L_0x00c1:\n r2.setTransactionSuccessful() // Catch:{ Exception -> 0x00c5 }\n goto L_0x00d3\n L_0x00c5:\n r15 = move-exception\n java.lang.String r1 = \"DBMgr\"\n java.lang.Object[] r5 = new java.lang.Object[r4] // Catch:{ all -> 0x013f }\n java.lang.String r6 = \"setTransactionSuccessful\"\n r5[r0] = r6 // Catch:{ all -> 0x013f }\n r5[r3] = r15 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r1, r5) // Catch:{ all -> 0x013f }\n L_0x00d3:\n r2.endTransaction() // Catch:{ Exception -> 0x00d7 }\n goto L_0x00e5\n L_0x00d7:\n r15 = move-exception\n java.lang.String r1 = \"DBMgr\"\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ all -> 0x013f }\n java.lang.String r5 = \"endTransaction\"\n r4[r0] = r5 // Catch:{ all -> 0x013f }\n r4[r3] = r15 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r1, r4) // Catch:{ all -> 0x013f }\n L_0x00e5:\n com.ta.audid.db.SqliteHelper r15 = r14.mHelper // Catch:{ all -> 0x013f }\n L_0x00e7:\n r15.closeWritableDatabase(r2) // Catch:{ all -> 0x013f }\n goto L_0x013d\n L_0x00eb:\n r15 = move-exception\n r2.setTransactionSuccessful() // Catch:{ Exception -> 0x00f0 }\n goto L_0x00fe\n L_0x00f0:\n r1 = move-exception\n java.lang.String r5 = \"DBMgr\"\n java.lang.Object[] r6 = new java.lang.Object[r4] // Catch:{ all -> 0x013f }\n java.lang.String r7 = \"setTransactionSuccessful\"\n r6[r0] = r7 // Catch:{ all -> 0x013f }\n r6[r3] = r1 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r5, r6) // Catch:{ all -> 0x013f }\n L_0x00fe:\n r2.endTransaction() // Catch:{ Exception -> 0x0102 }\n goto L_0x0110\n L_0x0102:\n r1 = move-exception\n java.lang.String r5 = \"DBMgr\"\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ all -> 0x013f }\n java.lang.String r6 = \"endTransaction\"\n r4[r0] = r6 // Catch:{ all -> 0x013f }\n r4[r3] = r1 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r5, r4) // Catch:{ all -> 0x013f }\n L_0x0110:\n com.ta.audid.db.SqliteHelper r0 = r14.mHelper // Catch:{ all -> 0x013f }\n r0.closeWritableDatabase(r2) // Catch:{ all -> 0x013f }\n throw r15 // Catch:{ all -> 0x013f }\n L_0x0116:\n r2.setTransactionSuccessful() // Catch:{ Exception -> 0x011a }\n goto L_0x0128\n L_0x011a:\n r15 = move-exception\n java.lang.String r1 = \"DBMgr\"\n java.lang.Object[] r5 = new java.lang.Object[r4] // Catch:{ all -> 0x013f }\n java.lang.String r6 = \"setTransactionSuccessful\"\n r5[r0] = r6 // Catch:{ all -> 0x013f }\n r5[r3] = r15 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r1, r5) // Catch:{ all -> 0x013f }\n L_0x0128:\n r2.endTransaction() // Catch:{ Exception -> 0x012c }\n goto L_0x013a\n L_0x012c:\n r15 = move-exception\n java.lang.String r1 = \"DBMgr\"\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ all -> 0x013f }\n java.lang.String r5 = \"endTransaction\"\n r4[r0] = r5 // Catch:{ all -> 0x013f }\n r4[r3] = r15 // Catch:{ all -> 0x013f }\n com.ta.audid.utils.UtdidLogger.w(r1, r4) // Catch:{ all -> 0x013f }\n L_0x013a:\n com.ta.audid.db.SqliteHelper r15 = r14.mHelper // Catch:{ all -> 0x013f }\n goto L_0x00e7\n L_0x013d:\n monitor-exit(r14)\n return\n L_0x013f:\n r15 = move-exception\n monitor-exit(r14)\n throw r15\n L_0x0142:\n monitor-exit(r14)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ta.audid.db.DBMgr.updateLogPriority(java.util.List):void\");\n }", "title": "" }, { "docid": "a7832f065fd4838ff83394a2fa7b46b4", "score": "0.4976741", "text": "@Override public int getPriority()\t\t\t{ return 20; }", "title": "" }, { "docid": "bd15b88267d0aac9175616ff7b392857", "score": "0.4965885", "text": "private void b1HitAdaption() {\n\t\tint _b1Size = b1Hash.size() + 1;\n\t\tint _b2Size = b2Hash.size();\n\t\tint _delta = _b1Size >= _b2Size ? 1 : _b2Size / _b1Size;\n\t\tarcP = Math.min(arcP + _delta, getCapacity());\n\t\tb2HitPreferenceForEviction = false;\n\t\t// replace(); postpone\n\t}", "title": "" }, { "docid": "7d9adfbef43898520ed9e4ab0e7d2ab9", "score": "0.49639207", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n LinkedList<Object> linkedList0 = new LinkedList<Object>();\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator((List) linkedList0);\n // Undeclared exception!\n try { \n fixedOrderComparator0.setUnknownObjectBehavior((-1870));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Unrecognised value for unknown behaviour flag\n //\n assertThrownBy(\"collections.comparators.FixedOrderComparator\", e);\n }\n }", "title": "" }, { "docid": "22a27af3dd78e543e2c6fa10fd61264f", "score": "0.4950717", "text": "private void prepareAndLogOrphans() {\n if (!hasWritten) {\n return;\n }\n hasWritten = false;\n\n List<Map<String, Object>> output = new ArrayList<Map<String, Object>>();\n\n if (!kvSet.isEmpty()) {\n output.add(convertThresholdSet(kvSet, kvCount, SERVICE_KV));\n kvSet.clear();\n kvCount = 0;\n }\n if (!n1qlSet.isEmpty()) {\n output.add(convertThresholdSet(n1qlSet, n1qlCount, SERVICE_N1QL));\n n1qlSet.clear();\n n1qlCount = 0;\n }\n if (!viewSet.isEmpty()) {\n output.add(convertThresholdSet(viewSet, viewCount, SERVICE_VIEW));\n viewSet.clear();\n viewCount = 0;\n }\n if (!ftsSet.isEmpty()) {\n output.add(convertThresholdSet(ftsSet, ftsCount, SERVICE_FTS));\n ftsSet.clear();\n ftsCount = 0;\n }\n if (!analyticsSet.isEmpty()) {\n output.add(convertThresholdSet(analyticsSet, analyticsCount, SERVICE_ANALYTICS));\n analyticsSet.clear();\n analyticsCount = 0;\n }\n\n logOrphans(output);\n }", "title": "" }, { "docid": "b816047f0cab09e7000a77279e8da34d", "score": "0.4950623", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Object[] objectArray0 = new Object[6];\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator(objectArray0);\n fixedOrderComparator0.setUnknownObjectBehavior(0);\n Integer integer0 = new Integer(0);\n int int0 = fixedOrderComparator0.compare(integer0, objectArray0[1]);\n assertTrue(fixedOrderComparator0.isLocked());\n assertEquals((-1), int0);\n }", "title": "" }, { "docid": "428d0516709a45c5fc51b4abdb99d48e", "score": "0.49479678", "text": "@Test(timeout = 4000)\n public void test54() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"HuI)L44;vn \", arrayList0, 1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = 3800.84988;\n SparseInstance sparseInstance0 = new SparseInstance(3800.84988, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (double) 1);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n binarySparseInstance0.isMissing(attribute0);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.calculateCutPoints();\n }", "title": "" }, { "docid": "e988e33f899f286118a7241ec31b64c3", "score": "0.4945806", "text": "@Test\n void removeNegativesSortAsc() {\n }", "title": "" }, { "docid": "7b01fac4705e96af761391c9f9344817", "score": "0.4944288", "text": "public void testPass3() {\n try {\n for (int i = 0; i < 1000; i++)\n for (int j = i; j < 1000; j++)\n throwsNothing();\n throwsException();\n } catch (Exception e) {\n dontTriggerEmptyExceptionHandler();\n }\n }", "title": "" }, { "docid": "a85478cb11959a90b47f137d432c5fc1", "score": "0.49304637", "text": "private void m5097b() {\n /*\n r2 = this;\n android.database.sqlite.SQLiteDatabase r0 = r2.getWritableDatabase() // Catch:{ Exception -> 0x0030, all -> 0x002e }\n java.lang.String r1 = \"aggregated\"\n boolean r1 = r2.mo8410a(r1, r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n if (r1 == 0) goto L_0x0014\n java.lang.String r1 = \"aggregated_cache\"\n boolean r1 = r2.mo8410a(r1, r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n if (r1 != 0) goto L_0x0017\n L_0x0014:\n r2.m5099c(r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n L_0x0017:\n java.lang.String r1 = \"system\"\n boolean r1 = r2.mo8410a(r1, r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n if (r1 != 0) goto L_0x0022\n r2.m5098b(r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n L_0x0022:\n java.lang.String r1 = \"limitedck\"\n boolean r1 = r2.mo8410a(r1, r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n if (r1 != 0) goto L_0x002d\n r2.m5096a(r0) // Catch:{ Exception -> 0x0030, all -> 0x002e }\n L_0x002d:\n return\n L_0x002e:\n r0 = move-exception\n throw r0\n L_0x0030:\n r0 = move-exception\n goto L_0x002d\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.analytics.p086a.p087a.C1373c.m5097b():void\");\n }", "title": "" }, { "docid": "775a8f778f818bd710c570a6da6dbf6b", "score": "0.49293348", "text": "void optimizeExcitations(){\n\t\tbestconditionnumber_exc=1e10;\n\t\tnemn=nemnpivots;\n\t\t//initialize intensities, calculate Q, S and the inverse\n\t\tinitIntensities();\n\t\tinitQtrial();\n\t\tcalc_Sfull();\n\t\tcalc_pinv();\n\t\t//use as best if the setting is non-singular\n\t\tif (!Double.isNaN(conditionnumber)) \n\t\t{\n\t\t\tbestconditionnumber_exc=conditionnumber;\n\t\t\tsaveexcitations();\n\t\t}\n\t\t//Loop over all possible\n\t\t//while loop terminates if next_excitation return false, indicating last setting\n\t\twhile(next_excitationsetting()){\n\t\t\t//score new setting\n\t\t\tinitQtrial();\n\t\t\tcalc_Sfull();\n\t\t\tcalc_pinv();\n\t\t\tif (conditionnumber<bestconditionnumber_exc && !Double.isNaN(conditionnumber)){\n\t\t\t\tbestconditionnumber_exc=conditionnumber;\n\t\t\t\tsaveexcitations();\n\t\t\t}\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\t//determine for each excitation the first channel that is on the red side of the \n\t\t//reddest excitation\n\t\tif (measure_blue)\n\t\t{\n\t\t\tfor (int exc=0; exc<nexc; exc++) first_channel[exc]=0;\t\t\t\n\t\t}\n\t\telse{\n\t\t\tint exc, laser,emn;\n\t\t\tfor (exc=0; exc<nexc; exc++)\n\t\t\t{\n\t\t\t\tdouble maxwl=0;\n\t\t\t\tfor (laser=0; laser<nlaser; laser++)\n\t\t\t\t{\n\t\t\t\t\tif (optimalintensities[exc][laser]>intensitynothing && laserwavelength[laser]>maxwl) maxwl=laserwavelength[laser];\n\t\t\t\t}\n\t\t\t\temn=0;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\temn++;\n\t\t\t\t}\n\t\t\t\twhile (emnpivots[emn-1]<maxwl);\n\t\t\t\tfirst_channel[exc]=emn-1;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b3b46b565ba12783336add6ca66e4a10", "score": "0.49289504", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n Object[] objectArray0 = new Object[3];\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator(objectArray0);\n fixedOrderComparator0.compare(objectArray0[0], objectArray0[0]);\n // Undeclared exception!\n try { \n fixedOrderComparator0.setUnknownObjectBehavior(2);\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // Cannot modify a FixedOrderComparator after a comparison\n //\n assertThrownBy(\"collections.comparators.FixedOrderComparator\", e);\n }\n }", "title": "" }, { "docid": "2ec3c7ef263a0f4299cf099c18cb4b4c", "score": "0.4927791", "text": "void processUnusedValues();", "title": "" }, { "docid": "d353bb9f97cbaaf62c8003831ad48d34", "score": "0.4927659", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected void bulkLoadIndex() {\n\t}", "title": "" }, { "docid": "a778a143b05e6e40cf04833ca2ae8129", "score": "0.4926735", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n LinkedList<String> linkedList0 = new LinkedList<String>();\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator((List) linkedList0);\n fixedOrderComparator0.setUnknownObjectBehavior(0);\n fixedOrderComparator0.compare(linkedList0, fixedOrderComparator0);\n // Undeclared exception!\n try { \n fixedOrderComparator0.checkLocked();\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // Cannot modify a FixedOrderComparator after a comparison\n //\n assertThrownBy(\"collections.comparators.FixedOrderComparator\", e);\n }\n }", "title": "" }, { "docid": "cbdf0acd0a4714c956c90f1e98de4ee2", "score": "0.4926676", "text": "public void testPass5() {\n try {\n for (int i = 0; i < 1000; i++)\n for (int j = i; j < 1000; j++)\n throwsNothing();\n throwsIOException();\n } catch (RuntimeException e) {\n dontTriggerEmptyExceptionHandler();\n } catch (Exception e) {\n dontTriggerEmptyExceptionHandler();\n }\n }", "title": "" }, { "docid": "6370dce976c84ab1e51ae0c5d8c85013", "score": "0.49265996", "text": "private void preReadItemsHouseKeeping()\n {\n\n }", "title": "" }, { "docid": "65c064137ab8e2d0f34ec79f4ff840fd", "score": "0.49262267", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"relational\", arrayList0, 1);\n String[] stringArray0 = new String[7];\n SparseInstance sparseInstance0 = new SparseInstance(2);\n instances0.add((Instance) sparseInstance0);\n stringArray0[0] = \"@data\";\n stringArray0[2] = \"relational\";\n stringArray0[3] = \"relational\";\n stringArray0[4] = \"integer\";\n stringArray0[5] = \"real\";\n stringArray0[6] = \"date\";\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n SparseInstance sparseInstance1 = new SparseInstance(527.34601, doubleArray0);\n instances0.add((Instance) sparseInstance1);\n sparseInstance1.setValue(attribute0, (-2393.229239409172));\n SparseInstance sparseInstance2 = new SparseInstance(sparseInstance1);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n instances0.add((Instance) sparseInstance2);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis((-2594L));\n }", "title": "" }, { "docid": "6e27715bbca6d78a07510c39cddd9885", "score": "0.49211994", "text": "static double hv(FRONT ps)\n// returns the hypervolume of ps[0 ..] \n{\n switch (ps.nPoints)\n {case 1: return inclhv (ps.points[0]); \n case 2: {\n double regreso=inclhv2(ps.points[0], ps.points[1]);\n return regreso;\n } \n case 3: return inclhv3(ps.points[0], ps.points[1], ps.points[2]); \n case 4: return inclhv4(ps.points[0], ps.points[1], ps.points[2], ps.points[3]);\n default: break;\n }\n\n // these points need sorting\n //FROM INDEX INCLUSIVE TO INDEX EXCLUSIVE POR LO TANTO ES CORRECTO\n Arrays.sort(ps.points, 0, ps.nPoints, new ComparadorGreater()); //ASI FUNCIONO EXCELENTE NO MOVER!!! Arrays.sort(ps.points, 0, ps.nPoints , new ComparadorGreater());\n\n // n = 2 implies that safe = 0 \n if (n == 2) return hv2(ps, ps.nPoints); \n \n if (n == 3 && safe > 0) \n {\n double volume = ps.points[0].objectives[2] * hv2(ps, safe); \n n--;\n for (int i = safe; i < ps.nPoints; i++)\n {// we can ditch dominated points here, but they will be ditched anyway in makeDominatedBit \n\tvolume += ps.points[i].objectives[n] * exclhv(ps, i);\n }\n n++; \n return volume;\n }\n else\n {\n double volume = inclhv4(ps.points[0], ps.points[1], ps.points[2], ps.points[3]);\n n--;\n for (int i = 4; i < ps.nPoints; i++)\n {// we can ditch dominated points here, but they will be ditched anyway in makeDominatedBit\n double a=ps.points[i].objectives[n];\n double b=exclhv(ps, i);\n\tvolume += a*b;\n }\n n++; \n return volume;\n }\n}", "title": "" }, { "docid": "6f5c860f3a2796dc965b5358f87aa031", "score": "0.49154672", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"1]ucba&\\\"wjW~2a\");\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"HuI)L44;vn \", arrayList0, 1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = 3800.84988;\n SparseInstance sparseInstance0 = new SparseInstance(3800.84988, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (double) 1);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis(2);\n discretize0.convertInstance(sparseInstance1);\n System.setCurrentTimeMillis(1);\n // Undeclared exception!\n try { \n discretize0.findNumBins(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "a4c7dc6d3e16a03c156c23706fda403e", "score": "0.490822", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "41f6e69bb329a3963365206efbd9bd5d", "score": "0.49075836", "text": "public boolean canOptimize() {\n return false;\n }", "title": "" }, { "docid": "e96727552211ce0875defbaf13d5e65c", "score": "0.4905276", "text": "public void testPass4() {\n try {\n for (int i = 0; i < 1000; i++)\n for (int j = i; j < 1000; j++)\n throwsNothing();\n staticThrowsException();\n } catch (Exception e) {\n dontTriggerEmptyExceptionHandler();\n }\n }", "title": "" }, { "docid": "5c0cb7717856b211e0eed0e36d89a75d", "score": "0.4887857", "text": "private static void preRenderDamagedBlocks() {\n }", "title": "" }, { "docid": "75c5ab5501bc83906cc0dc0dd443b1e9", "score": "0.4885068", "text": "public ArrayList buildGroup(AbstractEntityInterface theSystem) {\n/* 32 */ FilteringRule extDup = new FilteringRule(\"EDUPCLS\", \">\", \"class\", 0.0D);\n/* 33 */ this.heavyCoupledMethods = theSystem.contains(\"method group\").applyFilter(\"model function\").applyFilter(\"Intensive Coupling\");\n/* 34 */ this.heavyCoupledMethods = this.heavyCoupledMethods.union(theSystem.contains(\"method group\").applyFilter(\"model function\").applyFilter(\"Extensive Coupling\"));\n/* 35 */ this.heavyCoupledMethods = this.heavyCoupledMethods.union(theSystem.contains(\"method group\").applyFilter(\"model function\").applyFilter(\"Shotgun Surgery\"));\n/* */ \n/* 37 */ this.classesOfHeavyCoupledMth = ((GroupEntity)this.heavyCoupledMethods.belongsTo(\"class\")).distinct();\n/* 38 */ this.classesOfHeavyCoupledMth = this.classesOfHeavyCoupledMth.union(theSystem.contains(\"class group\").applyFilter(extDup)).distinct();\n/* */ \n/* 40 */ annotateClassWithOtherFlaws();\n/* */ \n/* 42 */ for (Iterator it = this.classesOfHeavyCoupledMth.iterator(); it.hasNext(); ) {\n/* 43 */ AbstractEntity crtClass = (AbstractEntity)it.next();\n/* 44 */ printClass(crtClass);\n/* */ } \n/* */ \n/* */ \n/* 48 */ return this.classesOfHeavyCoupledMth.getElements();\n/* */ }", "title": "" }, { "docid": "77e80babd39e4cb77f499fa073cf555b", "score": "0.48823458", "text": "@Override\r\n\tpublic void beforeAnalyze() {\n\r\n\t}", "title": "" }, { "docid": "48f7cf486d43daa3024a0842590066ea", "score": "0.48812288", "text": "private void recomputeStatitics() {\n\n Run[] runs = contest.getRuns();\n\n if (runs.length == 0 || contest.getProblems().length == 0) {\n return;\n }\n\n // sort by elapsed then by run number\n Arrays.sort(runs, new RunCompartorByElapsed());\n\n for (Run run : runs) {\n if (run.isSolved() && (!run.isDeleted())) {\n ElementId problemId = run.getProblemId();\n if (solvedMap.get(problemId) == null) {\n // first solved for this problem.\n solvedMap.put(problemId, run);\n }\n }\n }\n }", "title": "" }, { "docid": "33852b8178da5a02c984642fcb13cbb8", "score": "0.48765016", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n LinkedList<String> linkedList0 = new LinkedList<String>();\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator((List) linkedList0);\n fixedOrderComparator0.setUnknownObjectBehavior(1);\n int int0 = fixedOrderComparator0.compare(linkedList0, fixedOrderComparator0);\n assertTrue(fixedOrderComparator0.isLocked());\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "d66524d7627d5cb97d1089d2d20ffb92", "score": "0.48753503", "text": "private void warmup() {\n MergeSort mergeSort = new MergeSort(Runtime.getRuntime().availableProcessors());\n for (int i = 0; i < 1000; i++) {\n mergeSort.sort(generateArray(1000));\n }\n }", "title": "" }, { "docid": "fc427c48a84a56d77fbdc624b587058e", "score": "0.48706388", "text": "@Override\n\tpublic void onSortRx(boolean flg) {\n\t\t\n\t}", "title": "" }, { "docid": "08f82b63ce37f2566ede654b4057dc37", "score": "0.48662204", "text": "public boolean enoughToFilter() {\n/* 86 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "8b9037ed9c31519f2c6e07a41321e405", "score": "0.48617068", "text": "public static void main(String[] args) throws IOException {\n\n sorting ms = new sorting();\n\n Random r= new Random(System.currentTimeMillis());\n\n long t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0;\n\n for(int j = 0; j<100; j++)\n {\n\n int[] numb = new int[10000];\n\n for(int k = 0; k < 10000; k++)\n {\n int l = r.nextInt((int)Math.pow(2, 19));\n\n numb[k] = l;\n }\n \n long start = System.currentTimeMillis();\n\n int[] numb1 = ms.mergeSort(numb);\n\n long finish = System.currentTimeMillis();\n\n t1 += (finish-start);\n \n start = System.currentTimeMillis();\n\n int[] numb2 = ms.intSort(numb, 10);\n\n finish = System.currentTimeMillis();\n\n t2 += (finish-start);\n\n start = System.currentTimeMillis();\n\n int[] numb3 = ms.bucketSort(numb, 52429);\n\n finish = System.currentTimeMillis();\n\n t3 += (finish-start);\n \n int[] b = Arrays.copyOf(numb, numb.length);\n\n start = System.currentTimeMillis();\n\n Arrays.sort(b);\n \n finish = System.currentTimeMillis();\n\n t4 += (finish-start);\n \n start = System.currentTimeMillis();\n\n ms.countSort(numb, (int)Math.pow(2, 19));\n \n finish = System.currentTimeMillis();\n \n t5 += (finish-start);\n \n }\n \n System.out.println(\"Average time (t1): \" + t1/100.0);\n System.out.println(\"Average time (t2): \" + t2/100.0);\n System.out.println(\"Average time (t3): \" + t3/100.0);\n System.out.println(\"Average time (t4): \" + t4/100.0); \n System.out.println(\"Average time (t5): \" + t5/100.0);\n\n /* Random r= new Random(System.currentTimeMillis());\n\n long t1 = 0, t2 = 0, t3 = 0;\n\n for(int j = 0; j<50; j++)\n {\n\n String[] st = new String[10000];\n\n for(int k = 0; k < 10000; k++)\n {\n String s = \"\";\n\n int l = r.nextInt(10) + 1;\n\n for(int m = 0; m < l; m++)\n {\n int c = r.nextInt(26);\n\n s = s + (char)('a'+ c);\n }\n st[k] = s+'`';\n }\n\n long start = System.currentTimeMillis();\n\n String[] st1 = ms.ABCsort(st, st.length, 0);\n\n long finish = System.currentTimeMillis();\n\n t1 += (finish-start);\n \n start = System.currentTimeMillis();\n\n String[] st2 = ms.mergeWordSort(st);\n\n finish = System.currentTimeMillis();\n\n t2 += (finish-start);\n \n start = System.currentTimeMillis();\n\n Arrays.sort(st);\n\n finish = System.currentTimeMillis();\n\n t3 += (finish-start);\n }\n System.out.println(\"Average time (t1): \" + t1/50.0);\n System.out.println(\"Average time (t2): \" + t2/50.0);\n System.out.println(\"Average time (t3): \" + t3/50.0); */\n }", "title": "" }, { "docid": "848d4ced3b87df1027c32c1c3295006f", "score": "0.48608288", "text": "void beforeExecute(int executionIndex, boolean explainReOptimization);", "title": "" }, { "docid": "61c303dff56d544a134491674e7adb34", "score": "0.4859069", "text": "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"vjsx8!w\");\n LinkedList<Locale.LanguageRange> linkedList0 = new LinkedList<Locale.LanguageRange>();\n ArrayList<String> arrayList1 = new ArrayList<String>();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) arrayList1);\n List<String> list1 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) list0);\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute1 = new Attribute(\"@attribute\", list1, protectedProperties0);\n arrayList0.add(attribute1);\n Instances instances0 = new Instances(\"string\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(3);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "8e1c03f56a516d20d4c2b2c3ce3fa9a8", "score": "0.4857072", "text": "Priority mo3582b();", "title": "" }, { "docid": "101680ecbc0ea907287366aa5113318c", "score": "0.48543766", "text": "private void noMoreBagsToCollect() {\n bcp.setNoMoreBags(true);\n }", "title": "" }, { "docid": "3b175e4e4ec906c95b0678435f9e491f", "score": "0.4852072", "text": "@Override\n public int priority(){ return -1; }", "title": "" }, { "docid": "3ced0bd4efb246e975cfc134ace1b1e2", "score": "0.48518407", "text": "abstract public int filterOrder();", "title": "" }, { "docid": "7cf1cab345d512ca51e3343ea2ecc43f", "score": "0.48506787", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Object[] objectArray0 = new Object[3];\n Object object0 = new Object();\n objectArray0[0] = object0;\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator(objectArray0);\n fixedOrderComparator0.compare(object0, object0);\n // Undeclared exception!\n try { \n fixedOrderComparator0.addAsEqual(objectArray0[0], objectArray0[0]);\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // Cannot modify a FixedOrderComparator after a comparison\n //\n assertThrownBy(\"collections.comparators.FixedOrderComparator\", e);\n }\n }", "title": "" }, { "docid": "4ca5c3f7809e32c2d0c05635fa868cb0", "score": "0.48435736", "text": "private void execution(BasicGraphStoreInterface graphStore, PartitionStats partitionStats) throws Exception{\n\t\t /* process the deleted edge<R,R> message, and initialize the queue */\n\t\t HashMap<Long, Boolean> isInQueue = new HashMap<Long, Boolean>();\n\t\t IntWritable id = new IntWritable();\n\t\t queue.clear();\n\t\t for(BasicVertex gv : graphStore.getLocalVertex()){\n\t\t\t /* process message, generate induced subgraph */\n\t\t\t id.set(gv.getId());\n\t\t Iterable<M> messages = messageStore.getVertexMessages((I)id);\n\t\t if (!Iterables.isEmpty(messages)) {\n\t\t \t for(M msg : messages){\n\t\t \t\t \n\t\t \t\t TripleWritable tmsg = (TripleWritable)msg;\n//\t\t \t\t LOG.info(\"msg =\"+msg.toString()+\" exist=\"+graphStore.edgeExist(tmsg.getThird(), tmsg.getSecond()));\n\t\t \t\t long idx = BasicEdge.constructEdgeId(tmsg.getSecond(), tmsg.getThird());\n\t\t \t\t if(graphStore.edgeExist(tmsg.getSecond(), tmsg.getThird()) \n\t\t \t\t\t\t && (isInQueue.get(idx) == null)){\n\t\t \t\t\t isInQueue.put(idx, true);\n\t\t \t\t\t this.independedExternalRemoval++;\n//\t\t \t\t\t if(!graphStore.getEdge(tmsg.getSecond(), tmsg.getThird()).isExternal()){\n//\t\t \t\t\t\t LOG.info(\"The second FUCK thing!!!!!!!!!\");\n//\t\t \t\t\t }\n\t\t \t\t\t queue.add(graphStore.getEdge(tmsg.getSecond(), tmsg.getThird()));\n\t\t \t\t }\n\t\t \t }\n\t\t }\n\t\t }\n//\t\t LOG.info(\"After removing edges queue size =\"+queue.size());\n//\t\t LOG.info(\"Initial Edge Size=\"+graphStore.getEdges().size()+\" \"+graphStore.getVertexCount());\n\t\t lktruss.clearMessageCount();\n\t\t /*NOTE: process the subgraph, and send message */\n\t\t if(!lktruss.iterativelyPrune(graphStore, queue)){\n\t\t\t partitionStats.addFinishedVertexCount(graphStore.getVertexCount());\n\t\t }\n\n//\t\t LOG.info(\"After Pruning Edge Size=\"+graphStore.getEdges().size()+\" \"+graphStore.getVertexCount()+\" msg=\"+lktruss.getMessageCount());\n\t\t this.msgDetectionCounter += lktruss.getMessageCount();\n//\t\t graphStore.dump();\n\n\n//\t\t LOG.info(\"Delete Edge after prune = \"+lktruss.getDeletedEdge()+\" vsize=\"+graphStore.getVertexCount());\n\t\t /* set partition stats here */\n\t\t partitionStats.addVertexCount(graphStore.getVertexCount());\n\t\t partitionStats.addEdgeCount(graphStore.getEdgeCount());\n\t }", "title": "" }, { "docid": "f661917b27a1d67833d79aa7e5881e26", "score": "0.483751", "text": "private final synchronized void evaluateLoadMore() {\n /*\n r2 = this;\n monitor-enter(r2);\n r0 = r2.isPaused;\t Catch:{ all -> 0x005e }\n if (r0 != 0) goto L_0x005c;\n L_0x0005:\n r0 = r2.isLowOnRecs;\t Catch:{ all -> 0x005e }\n if (r0 != 0) goto L_0x000a;\n L_0x0009:\n goto L_0x005c;\n L_0x000a:\n r0 = r2.recsLoadingStatusUpdatesSubject;\t Catch:{ all -> 0x005e }\n r0 = r0.A();\t Catch:{ all -> 0x005e }\n r0 = (com.tinder.domain.recs.model.RecsLoadingStatus) r0;\t Catch:{ all -> 0x005e }\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.Uninitialized;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x0017;\n L_0x0016:\n goto L_0x0020;\n L_0x0017:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.RecsAvailable;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x001c;\n L_0x001b:\n goto L_0x0020;\n L_0x001c:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.FetchFailedNoConnection;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x0026;\n L_0x0020:\n r2.loadMoreRecs();\t Catch:{ all -> 0x005e }\n r0 = kotlin.C15813i.f49016a;\t Catch:{ all -> 0x005e }\n goto L_0x0054;\n L_0x0026:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.RetryingUnknownLocation;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x0030;\n L_0x002a:\n r2.retryMissingLocation();\t Catch:{ all -> 0x005e }\n r0 = kotlin.C15813i.f49016a;\t Catch:{ all -> 0x005e }\n goto L_0x0054;\n L_0x0030:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.Loading;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x0035;\n L_0x0034:\n goto L_0x0052;\n L_0x0035:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.LoadingMore;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x003a;\n L_0x0039:\n goto L_0x0052;\n L_0x003a:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.NoMoreRecs;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x003f;\n L_0x003e:\n goto L_0x0052;\n L_0x003f:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.NoMoreRecsDupesOnly;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x0044;\n L_0x0043:\n goto L_0x0052;\n L_0x0044:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.FetchFailedUnknownLocation;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x0049;\n L_0x0048:\n goto L_0x0052;\n L_0x0049:\n r1 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.FetchFailedExpectedError;\t Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x004e;\n L_0x004d:\n goto L_0x0052;\n L_0x004e:\n r0 = r0 instanceof com.tinder.domain.recs.model.RecsLoadingStatus.FetchFailedUnexpectedError;\t Catch:{ all -> 0x005e }\n if (r0 == 0) goto L_0x0056;\n L_0x0052:\n r0 = kotlin.C15813i.f49016a;\t Catch:{ all -> 0x005e }\n L_0x0054:\n monitor-exit(r2);\n return;\n L_0x0056:\n r0 = new kotlin.NoWhenBranchMatchedException;\t Catch:{ all -> 0x005e }\n r0.<init>();\t Catch:{ all -> 0x005e }\n throw r0;\t Catch:{ all -> 0x005e }\n L_0x005c:\n monitor-exit(r2);\n return;\n L_0x005e:\n r0 = move-exception;\n monitor-exit(r2);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tinder.domain.recs.engine.cardstack.CardStackRecsLoader.evaluateLoadMore():void\");\n }", "title": "" }, { "docid": "10771f8abc7d1374ea749b394f6e6f5d", "score": "0.48365155", "text": "public static void main(String[] args) throws Exception {\n int[] dataSizes = {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000};\n BenchmarkSorts benchmark = new BenchmarkSorts(dataSizes);\n\n // Do a warmp up\n benchmark.runSorts(true);\n\n // Now we do the actual sorting and measuring\n benchmark.runSorts(false);\n }", "title": "" }, { "docid": "5b7fdc2473194d81668e568bbfa2df5a", "score": "0.48344538", "text": "@Override\n protected void ensureIndexes() {\n }", "title": "" }, { "docid": "97e4e64afdb73a656bd068599ce0ef35", "score": "0.48328397", "text": "void testSort(){\n\t\tfor (int i = 0; i< n-1; i++) {\n\t\t if (a[i] > a[i+1]){\n\t\t System.out.println(\"SorteringsFEIL på plass: \"+i +\" a[\"+i+\"]:\"+a[i]+\" > a[\"+(i+1)+\"]:\"+a[i+1]);\n\t\t return;\n\t\t }\n\t }\n\t }", "title": "" }, { "docid": "7e09b202a41c56bb79d7b138bdc375db", "score": "0.48308763", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "7e09b202a41c56bb79d7b138bdc375db", "score": "0.48308763", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "7e09b202a41c56bb79d7b138bdc375db", "score": "0.48308763", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "fcd97a03752b6296939fbdc0a24c2b1a", "score": "0.48237163", "text": "private void sortAndDisplayAxioms(int param) {\r\n\t\t\r\n\t\tint numAxioms = currAxioms.size();\r\n\t\tOWLObject[] sorted = new OWLObject[numAxioms];\r\n\t\tHashMap sourceMap = null;\r\n\t\tboolean increase = false;\r\n\t\tswitch (param) {\r\n\t\t\tcase ARITY:\r\n\t\t\t\tsourceMap = axiomUnsatClaMap;\r\n\t\t\t\tincrease = false;\r\n\t\t\t\tbreak;\r\n\t\t\tcase IMPACT:\r\n\t\t\t\tincrease = true;\r\n\t\t\t\tsourceMap = axiomSOSMap;\r\n\t\t\t\tbreak;\r\n\t\t\tcase USAGE:\r\n\t\t\t\tincrease = true;\r\n\t\t\t\tsourceMap = axiomUsageMap;\r\n\t\t\t\tbreak;\r\n\t\t\tcase RANK:\r\n\t\t\t\tincrease = true;\r\n\t\t\t\tsourceMap = axiomRanksMap;\r\n\t\t}\r\n\t\t\r\n\t\t// sort based on sourceMap selected\r\n\t\tfor (Iterator iter = currAxioms.iterator(); iter.hasNext();) {\r\n\t\t\tOWLObject axiom = (OWLObject) iter.next();\r\n\t\t\tdouble metric = 0;\r\n\t\t\tif (sourceMap.containsKey(axiom)) {\r\n\t\t\t\tif (!sourceMap.equals(axiomRanksMap)) metric = ((HashSet) sourceMap.get(axiom)).size();\r\n\t\t\t\telse {\r\n\t\t\t\t\tString m = sourceMap.get(axiom).toString();\r\n\t\t\t\t\tmetric = Double.parseDouble(m);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int ctr=0; ctr<numAxioms; ctr++) {\r\n\t\t\t\tOWLObject ax = sorted[ctr];\r\n\t\t\t\tif (ax!=null) {\r\n\t\t\t\t\tdouble metric2 = 0;\r\n\t\t\t\t\tif (sourceMap.containsKey(ax)) {\r\n\t\t\t\t\t\tif (!sourceMap.equals(axiomRanksMap)) metric2 = ((HashSet) sourceMap.get(ax)).size();\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmetric2 = Double.parseDouble(sourceMap.get(ax).toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((increase && metric<metric2) || (!increase && metric>metric2)) {\r\n\t\t\t\t\t\tinsert(sorted, axiom, ctr);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tinsert(sorted, axiom, ctr);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// refresh repair table after sorting\r\n\t\tList order = new ArrayList();\r\n\t\tfor (int ctr=0; ctr<numAxioms; ctr++) order.add(sorted[ctr]);\r\n\t\tthis.refreshTable(order);\r\n\t}", "title": "" }, { "docid": "d9e82a09f51eb7d1b13beb776a504f2f", "score": "0.4823184", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 2);\n instances0.toString();\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n discretize0.isNewBatch();\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 3;\n doubleArray0[6] = (double) 0;\n doubleArray0[7] = (double) 0;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4, doubleArray0);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n discretize0.convertInstance(sparseInstance0);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(68);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 68\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "5090baf92a14f22d15a12c122f7ebfaa", "score": "0.4820013", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Object[] objectArray0 = new Object[6];\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator(objectArray0);\n assertEquals(2, fixedOrderComparator0.getUnknownObjectBehavior());\n \n fixedOrderComparator0.setUnknownObjectBehavior(0);\n int int0 = fixedOrderComparator0.getUnknownObjectBehavior();\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "4fa830255d1ce03d8dbdc06824af7214", "score": "0.481885", "text": "private synchronized void b(int r6) {\r\n /*\r\n r5 = this;\r\n monitor-enter(r5);\r\n r0 = r5.b;\t Catch:{ Throwable -> 0x009d }\r\n if (r0 <= 0) goto L_0x0099;\r\n L_0x0005:\r\n if (r6 > 0) goto L_0x0009;\r\n L_0x0007:\r\n goto L_0x0099;\r\n L_0x0009:\r\n r0 = e;\t Catch:{ Throwable -> 0x009d }\r\n r1 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x009d }\r\n r1.<init>();\t Catch:{ Throwable -> 0x009d }\r\n r2 = \"Load \";\r\n r1.append(r2);\t Catch:{ Throwable -> 0x009d }\r\n r2 = r5.b;\t Catch:{ Throwable -> 0x009d }\r\n r2 = java.lang.Integer.toString(r2);\t Catch:{ Throwable -> 0x009d }\r\n r1.append(r2);\t Catch:{ Throwable -> 0x009d }\r\n r2 = \" unsent events\";\r\n r1.append(r2);\t Catch:{ Throwable -> 0x009d }\r\n r1 = r1.toString();\t Catch:{ Throwable -> 0x009d }\r\n r0.i(r1);\t Catch:{ Throwable -> 0x009d }\r\n r0 = new java.util.ArrayList;\t Catch:{ Throwable -> 0x009d }\r\n r0.<init>();\t Catch:{ Throwable -> 0x009d }\r\n r1 = new java.util.ArrayList;\t Catch:{ Throwable -> 0x009d }\r\n r1.<init>();\t Catch:{ Throwable -> 0x009d }\r\n r2 = -1;\r\n if (r6 == r2) goto L_0x003d;\r\n L_0x0037:\r\n r2 = com.tencent.stat.StatConfig.a();\t Catch:{ Throwable -> 0x009d }\r\n if (r6 <= r2) goto L_0x0041;\r\n L_0x003d:\r\n r6 = com.tencent.stat.StatConfig.a();\t Catch:{ Throwable -> 0x009d }\r\n L_0x0041:\r\n r2 = r5.b;\t Catch:{ Throwable -> 0x009d }\r\n r2 = r2 - r6;\r\n r5.b = r2;\t Catch:{ Throwable -> 0x009d }\r\n r5.c(r1, r6);\t Catch:{ Throwable -> 0x009d }\r\n r2 = e;\t Catch:{ Throwable -> 0x009d }\r\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x009d }\r\n r3.<init>();\t Catch:{ Throwable -> 0x009d }\r\n r4 = \"Peek \";\r\n r3.append(r4);\t Catch:{ Throwable -> 0x009d }\r\n r4 = r1.size();\t Catch:{ Throwable -> 0x009d }\r\n r4 = java.lang.Integer.toString(r4);\t Catch:{ Throwable -> 0x009d }\r\n r3.append(r4);\t Catch:{ Throwable -> 0x009d }\r\n r4 = \" unsent events.\";\r\n r3.append(r4);\t Catch:{ Throwable -> 0x009d }\r\n r3 = r3.toString();\t Catch:{ Throwable -> 0x009d }\r\n r2.i(r3);\t Catch:{ Throwable -> 0x009d }\r\n r2 = r1.isEmpty();\t Catch:{ Throwable -> 0x009d }\r\n if (r2 != 0) goto L_0x00a3;\r\n L_0x0072:\r\n r2 = 2;\r\n r5.b(r1, r2);\t Catch:{ Throwable -> 0x009d }\r\n r2 = r1.iterator();\t Catch:{ Throwable -> 0x009d }\r\n L_0x007a:\r\n r3 = r2.hasNext();\t Catch:{ Throwable -> 0x009d }\r\n if (r3 == 0) goto L_0x008c;\r\n L_0x0080:\r\n r3 = r2.next();\t Catch:{ Throwable -> 0x009d }\r\n r3 = (com.tencent.stat.x) r3;\t Catch:{ Throwable -> 0x009d }\r\n r3 = r3.b;\t Catch:{ Throwable -> 0x009d }\r\n r0.add(r3);\t Catch:{ Throwable -> 0x009d }\r\n goto L_0x007a;\r\n L_0x008c:\r\n r2 = com.tencent.stat.d.b();\t Catch:{ Throwable -> 0x009d }\r\n r3 = new com.tencent.stat.u;\t Catch:{ Throwable -> 0x009d }\r\n r3.<init>(r5, r1, r6);\t Catch:{ Throwable -> 0x009d }\r\n r2.b(r0, r3);\t Catch:{ Throwable -> 0x009d }\r\n goto L_0x00a3;\r\n L_0x0099:\r\n monitor-exit(r5);\r\n return;\r\n L_0x009b:\r\n r6 = move-exception;\r\n goto L_0x00a5;\r\n L_0x009d:\r\n r6 = move-exception;\r\n r0 = e;\t Catch:{ all -> 0x009b }\r\n r0.e(r6);\t Catch:{ all -> 0x009b }\r\n L_0x00a3:\r\n monitor-exit(r5);\r\n return;\r\n L_0x00a5:\r\n monitor-exit(r5);\r\n throw r6;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.stat.n.b(int):void\");\r\n }", "title": "" }, { "docid": "88dc4b505cd035b3a9766eb6a71a4f4e", "score": "0.48118672", "text": "@Override\n public int[] report() {\n \n return sort();\n }", "title": "" }, { "docid": "06a5c8e9a6369c7ed4ec3243b3d360ac", "score": "0.48107448", "text": "private synchronized void b(com.tencent.stat.a.e r8, com.tencent.stat.c r9) {\r\n /*\r\n r7 = this;\r\n monitor-enter(r7);\r\n r0 = com.tencent.stat.StatConfig.getMaxStoreEventCount();\t Catch:{ all -> 0x00c6 }\r\n if (r0 > 0) goto L_0x0009;\r\n L_0x0007:\r\n monitor-exit(r7);\r\n return;\r\n L_0x0009:\r\n r0 = r7.d;\t Catch:{ Throwable -> 0x00ad }\r\n r0 = r0.getWritableDatabase();\t Catch:{ Throwable -> 0x00ad }\r\n r0.beginTransaction();\t Catch:{ Throwable -> 0x00ad }\r\n r0 = r7.b;\t Catch:{ Throwable -> 0x00ad }\r\n r1 = com.tencent.stat.StatConfig.getMaxStoreEventCount();\t Catch:{ Throwable -> 0x00ad }\r\n r2 = 0;\r\n if (r0 <= r1) goto L_0x0035;\r\n L_0x001b:\r\n r0 = e;\t Catch:{ Throwable -> 0x00ad }\r\n r1 = \"Too many events stored in db.\";\r\n r0.warn(r1);\t Catch:{ Throwable -> 0x00ad }\r\n r0 = r7.b;\t Catch:{ Throwable -> 0x00ad }\r\n r1 = r7.d;\t Catch:{ Throwable -> 0x00ad }\r\n r1 = r1.getWritableDatabase();\t Catch:{ Throwable -> 0x00ad }\r\n r3 = \"events\";\r\n r4 = \"event_id in (select event_id from events where timestamp in (select min(timestamp) from events) limit 1)\";\r\n r1 = r1.delete(r3, r4, r2);\t Catch:{ Throwable -> 0x00ad }\r\n r0 = r0 - r1;\r\n r7.b = r0;\t Catch:{ Throwable -> 0x00ad }\r\n L_0x0035:\r\n r0 = new android.content.ContentValues;\t Catch:{ Throwable -> 0x00ad }\r\n r0.<init>();\t Catch:{ Throwable -> 0x00ad }\r\n r1 = r8.d();\t Catch:{ Throwable -> 0x00ad }\r\n r1 = com.tencent.stat.common.k.c(r1);\t Catch:{ Throwable -> 0x00ad }\r\n r3 = \"content\";\r\n r0.put(r3, r1);\t Catch:{ Throwable -> 0x00ad }\r\n r3 = \"send_count\";\r\n r4 = \"0\";\r\n r0.put(r3, r4);\t Catch:{ Throwable -> 0x00ad }\r\n r3 = \"status\";\r\n r4 = 1;\r\n r5 = java.lang.Integer.toString(r4);\t Catch:{ Throwable -> 0x00ad }\r\n r0.put(r3, r5);\t Catch:{ Throwable -> 0x00ad }\r\n r3 = \"timestamp\";\r\n r5 = r8.b();\t Catch:{ Throwable -> 0x00ad }\r\n r8 = java.lang.Long.valueOf(r5);\t Catch:{ Throwable -> 0x00ad }\r\n r0.put(r3, r8);\t Catch:{ Throwable -> 0x00ad }\r\n r8 = r7.d;\t Catch:{ Throwable -> 0x00ad }\r\n r8 = r8.getWritableDatabase();\t Catch:{ Throwable -> 0x00ad }\r\n r3 = \"events\";\r\n r2 = r8.insert(r3, r2, r0);\t Catch:{ Throwable -> 0x00ad }\r\n r5 = -1;\r\n r8 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1));\r\n if (r8 != 0) goto L_0x008e;\r\n L_0x0077:\r\n r8 = e;\t Catch:{ Throwable -> 0x00ad }\r\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x00ad }\r\n r9.<init>();\t Catch:{ Throwable -> 0x00ad }\r\n r0 = \"Failed to store event:\";\r\n r9.append(r0);\t Catch:{ Throwable -> 0x00ad }\r\n r9.append(r1);\t Catch:{ Throwable -> 0x00ad }\r\n r9 = r9.toString();\t Catch:{ Throwable -> 0x00ad }\r\n r8.error(r9);\t Catch:{ Throwable -> 0x00ad }\r\n goto L_0x00a1;\r\n L_0x008e:\r\n r8 = r7.b;\t Catch:{ Throwable -> 0x00ad }\r\n r8 = r8 + r4;\r\n r7.b = r8;\t Catch:{ Throwable -> 0x00ad }\r\n r8 = r7.d;\t Catch:{ Throwable -> 0x00ad }\r\n r8 = r8.getWritableDatabase();\t Catch:{ Throwable -> 0x00ad }\r\n r8.setTransactionSuccessful();\t Catch:{ Throwable -> 0x00ad }\r\n if (r9 == 0) goto L_0x00a1;\r\n L_0x009e:\r\n r9.a();\t Catch:{ Throwable -> 0x00ad }\r\n L_0x00a1:\r\n r8 = r7.d;\t Catch:{ Throwable -> 0x00ba }\r\n r8 = r8.getWritableDatabase();\t Catch:{ Throwable -> 0x00ba }\r\n L_0x00a7:\r\n r8.endTransaction();\t Catch:{ Throwable -> 0x00ba }\r\n goto L_0x00ba;\r\n L_0x00ab:\r\n r8 = move-exception;\r\n goto L_0x00bc;\r\n L_0x00ad:\r\n r8 = move-exception;\r\n r9 = e;\t Catch:{ all -> 0x00ab }\r\n r9.e(r8);\t Catch:{ all -> 0x00ab }\r\n r8 = r7.d;\t Catch:{ Throwable -> 0x00ba }\r\n r8 = r8.getWritableDatabase();\t Catch:{ Throwable -> 0x00ba }\r\n goto L_0x00a7;\r\n L_0x00ba:\r\n monitor-exit(r7);\r\n return;\r\n L_0x00bc:\r\n r9 = r7.d;\t Catch:{ Throwable -> 0x00c5 }\r\n r9 = r9.getWritableDatabase();\t Catch:{ Throwable -> 0x00c5 }\r\n r9.endTransaction();\t Catch:{ Throwable -> 0x00c5 }\r\n L_0x00c5:\r\n throw r8;\t Catch:{ all -> 0x00c6 }\r\n L_0x00c6:\r\n r8 = move-exception;\r\n monitor-exit(r7);\r\n throw r8;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.stat.n.b(com.tencent.stat.a.e, com.tencent.stat.c):void\");\r\n }", "title": "" }, { "docid": "5c571e92ef67b0736e9ca82039479473", "score": "0.48083988", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"relational\", arrayList0, 1);\n String[] stringArray0 = new String[7];\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n stringArray0[0] = \"@data\";\n stringArray0[2] = \"relational\";\n stringArray0[3] = \"relational\";\n stringArray0[4] = \"integer\";\n stringArray0[5] = \"real\";\n stringArray0[6] = \"date\";\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n SparseInstance sparseInstance0 = new SparseInstance(527.34601, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (-2393.229239409172));\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance0.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis((-2594L));\n discretize0.convertInstance(sparseInstance0);\n assertTrue(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "b32d79e021555bee30913add33c5bbb0", "score": "0.48016107", "text": "@Override\r\n\tprotected boolean hasLegs() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2b654ef098d32b9acfd7e237807c806e", "score": "0.48010826", "text": "@Override\n public int getPriority()\n {\n return 65;\n }", "title": "" }, { "docid": "0387efba5c1f6b170c1538a77190689a", "score": "0.47815868", "text": "public static void sortingFunction(){\n \n final int NUM_ELEMENTS = 50000;\n\n //create lists! \n Integer[] list1 = new Integer[NUM_ELEMENTS];\n Integer[] list2 = new Integer[NUM_ELEMENTS];\n Integer[] list3 = new Integer[NUM_ELEMENTS];\n \n \n for(int sort = 0; sort < 3; sort++){\n int run = 0;\n \n System.out.println();\n System.out.println(\"Starting Sort# \" + (sort +1) );\n //creates random generation function\n java.util.Random random = new java.util.Random();\n \n //intialize lists\n for(int i = 0; i < NUM_ELEMENTS; i++){\n list1[i]=list2[i]=list3[i] = random.nextInt(100000);\n }\n \n //SELECTION SORT BLOCK\n long start1 = System.currentTimeMillis();\n sortingAlgorithmImpl.selectionSort(list1);\n long end1 = System.currentTimeMillis();\n long diff1 = end1 - start1;\n //double secondsDiff1 = diff1 * 0.001;\n //resultsArray[sort][run] = diff1;\n sortingAlgorithmImpl.addToResultsArray(run, sort, diff1);\n System.out.print(\" Selection Sort Time: \");\n System.out.println(diff1 + \" milliseconds\");\n run++;\n \n //verifies list is ordered\n if(verifyOrder(list1) == true){\n System.out.println(\"Sort validated!\");\n }\n else{\n System.out.println(\"ERROR: Sort could not be validated.\");\n System.exit(99);\n }\n \n \n \n //INSERTION SORT BLOCK\n long start2 = System.currentTimeMillis();\n sortingAlgorithmImpl.insertionSort(list2);\n long end2 = System.currentTimeMillis();\n long diff2 = end2 - start2;\n //double secondsDiff2 = diff2 * 0.001;\n //resultsArray[sort][run] = diff2;\n sortingAlgorithmImpl.addToResultsArray(run, sort, diff2);\n System.out.print(\" Insertion Sort Time: \");\n System.out.println(diff2 + \" milliseconds\");\n run++;\n //verifies list is ordered\n if(verifyOrder(list2) == true){\n System.out.println(\"Sort validated!\");\n }\n else{\n System.out.println(\"ERROR: Sort could not be validated.\");\n System.exit(99);\n }\n \n //QUICK SORT BLOCK\n long start3 = System.currentTimeMillis();\n sortingAlgorithmImpl.quickSort(list3, 0 , NUM_ELEMENTS - 1);\n long end3 = System.currentTimeMillis();\n long diff3 = end3 - start3;\n //double secondsDiff3 = diff3 * 0.001;\n //resultsArray[sort][run] = diff3;\n sortingAlgorithmImpl.addToResultsArray(run, sort, diff3);\n System.out.print(\" Quick Sort Time: \");\n System.out.println(diff3 + \" milliseconds\");\n //verifies list is ordered\n if(verifyOrder(list3) == true){\n System.out.println(\"Sort validated!\");\n }\n else{\n System.out.println(\"ERROR: Sort could not be validated.\");\n System.exit(99);\n }\n \n }\n }", "title": "" }, { "docid": "537c3fd51a1a38db966481b321db8803", "score": "0.47807103", "text": "protected void extraProcessing() {}", "title": "" }, { "docid": "0e665211ab367523d6dcac245204384e", "score": "0.47802854", "text": "@Test\r\npublic void testEliminateLowest() throws SizeException {\r\nDropFilterImpl dropFilterImpl = new DropFilterImpl(true,false);\r\nList<Grade> grades;\r\ngrades = new ArrayList<Grade>();\r\nGrade grade;\r\ndouble[] arr = new double[] {10.0,2.0,3.0,6.0,8.0,9.0};\r\nfor (int i=0; i<6; i++)\r\n{\r\ngrade = new Grade(\"PA\"+i, arr[i]);\r\ngrades.add(grade);\r\n}\r\nassertEquals(\"[PA0: 10.0, PA2: 3.0, PA3: 6.0, PA4: 8.0, PA5: 9.0]\", dropFilterImpl.apply(grades).toString());\r\n}", "title": "" }, { "docid": "c203d52d8ceca7e815fb82907cfc535a", "score": "0.4775189", "text": "public final void fetchWithoutQualify(DataValueDescriptor[] result)\n\t\tthrows StandardException\n\t{\n throw StandardException.newException(\n SQLState.SORT_IMPROPER_SCAN_METHOD);\n\n }", "title": "" }, { "docid": "43b354650e2f6e42d29c8697f2f600a0", "score": "0.47660092", "text": "public void setupBreaking()\r\n/* 49: */ {\r\n/* 50: 43 */ if (methodNames == null)\r\n/* 51: */ {\r\n/* 52: 44 */ methodNames = new HashSet();\r\n/* 53: 46 */ for (Method m : BlockDummy.class.getDeclaredMethods()) {\r\n/* 54: 47 */ methodNames.add(m.getName());\r\n/* 55: */ }\r\n/* 56: */ }\r\n/* 57: */ else\r\n/* 58: */ {\r\n/* 59: 50 */ return;\r\n/* 60: */ }\r\n/* 61: 53 */ for (Object aBlockRegistry : Block.blockRegistry) {\r\n/* 62: 54 */ entries.put((Block)aBlockRegistry, new entry());\r\n/* 63: */ }\r\n/* 64: 57 */ ((entry)entries.get(Blocks.torch)).blackList = true;\r\n/* 65: 59 */ for (Object aBlockRegistry : Block.blockRegistry)\r\n/* 66: */ {\r\n/* 67: 60 */ Block block = (Block)aBlockRegistry;\r\n/* 68: 61 */ entry e = (entry)entries.get(block);\r\n/* 69: 62 */ String name = block.getClass().getName();\r\n/* 70: 64 */ if (block.getUnlocalizedName() != null) {\r\n/* 71: 65 */ name = block.getUnlocalizedName();\r\n/* 72: */ }\r\n/* 73: */ try\r\n/* 74: */ {\r\n/* 75: 68 */ name = Block.blockRegistry.getNameForObject(block);\r\n/* 76: */ }\r\n/* 77: */ catch (Exception err)\r\n/* 78: */ {\r\n/* 79: 71 */ LogHelper.error(\"Error getting name for block \" + name, new Object[0]);\r\n/* 80: 72 */ err.printStackTrace();\r\n/* 81: */ }\r\n/* 82: 75 */ e.isFence = false;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85: 78 */ e.isFence = (block.getRenderType() == 11);\r\n/* 86: */ }\r\n/* 87: */ catch (Exception err)\r\n/* 88: */ {\r\n/* 89: 80 */ LogHelper.error(\"Error checking block class code: Exception calling getRenderType() on block \" + name, new Object[0]);\r\n/* 90: 81 */ err.printStackTrace();\r\n/* 91: */ }\r\n/* 92: */ catch (NoClassDefFoundError err)\r\n/* 93: */ {\r\n/* 94: 83 */ throw new RuntimeException(\"Serious error calling getRenderType() on block \" + name + \" : Likely cause is client-side code is being called server-side\", err);\r\n/* 95: */ }\r\n/* 96: */ catch (Throwable err)\r\n/* 97: */ {\r\n/* 98: 85 */ throw new RuntimeException(\"Serious error calling getRenderType() on block \" + name, err);\r\n/* 99: */ }\r\n/* 100: 88 */ e.isFence = ((e.isFence) || ((block instanceof BlockFence)));\r\n/* 101: 90 */ if (((block instanceof BlockLiquid)) || ((block instanceof IFluidBlock)))\r\n/* 102: */ {\r\n/* 103: 91 */ e.blackList = true;\r\n/* 104: 92 */ e.isFluid = true;\r\n/* 105: */ }\r\n/* 106: 95 */ e.isSpecial = hasSpecialBreaking(block.getClass());\r\n/* 107: */ }\r\n/* 108: */ }", "title": "" }, { "docid": "a88788e21984b8b58d6a258c8cf56dc3", "score": "0.47640347", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n LinkedList<String> linkedList0 = new LinkedList<String>();\n FixedOrderComparator fixedOrderComparator0 = new FixedOrderComparator((List) linkedList0);\n fixedOrderComparator0.setUnknownObjectBehavior(0);\n fixedOrderComparator0.add(linkedList0);\n Object object0 = new Object();\n int int0 = fixedOrderComparator0.compare(linkedList0, object0);\n assertTrue(fixedOrderComparator0.isLocked());\n assertEquals(1, int0);\n }", "title": "" }, { "docid": "524b0924697ca6a46635ff42c9f2af27", "score": "0.47626704", "text": "private void handlexception() {\n for(int p=0;p<10;p++){\n for(int q=0;q<6;q++){\n if(a[p][q]==1||a[p][q]==2)\n a[p][q]=-1;\n }\n }\n }", "title": "" }, { "docid": "573434417e523115a2218c09f5214c98", "score": "0.47607836", "text": "private void sortLuggage() {\n final ArrayList<LuggageTub> fullTubs = new ArrayList<>();//TODO get list of full tubs from checkin (CheckInDesk.getLuggageTubList())\n\n LuggageTub l;\n while (!fullTubs.isEmpty()) {\n l = fullTubs.remove(0);\n final Baggage toCheck = l.getBaggage();\n\n if (toCheck instanceof NormalBaggage) {\n if (((NormalBaggage) toCheck).getBaggageIdentificationTag().getBoardingPass().getTicketClass() == TicketClass.First) {\n numberOfBaggageFirstClass++;\n } else if (((NormalBaggage) toCheck).getBaggageIdentificationTag().getBoardingPass().getTicketClass() == TicketClass.Business) {\n numberOfBaggageBusinessClass++;\n } else if (((NormalBaggage) toCheck).getBaggageIdentificationTag().getBoardingPass().getTicketClass() == TicketClass.Economy) {\n numberOfBaggageEconomyClass++;\n }\n }\n toCheck.setSecurityStatus(BaggageSecurityStatus.clean);\n for (String pattern : scanPatternList) {\n if (!scan(toCheck, pattern)) {\n toCheck.setSecurityStatus(BaggageSecurityStatus.dangerous);\n numberOfDangerousBaggage++;\n }\n }\n if (toCheck.getSecurityStatus() == BaggageSecurityStatus.clean) {\n throwOff(l, destinationBox);\n } else {\n handOverToCustoms(l.getBaggage());\n emptyLuggageTubList.add(l);\n l.setBaggage(null);\n }\n if (destinationBox.isFull()) {\n emptyDestinationBox();\n }\n }\n\n if (!destinationBox.isempty()) {\n emptyDestinationBox();\n }\n }", "title": "" }, { "docid": "b610c661531b8900acc9868a2cbd2433", "score": "0.47566947", "text": "public void testFail4() {\n try {\n for (int i = 0; i < 1000; i++)\n for (int j = i; j < 1000; j++)\n throwsNothing();\n throwsIOException();\n } catch (Exception e) {\n dontTriggerEmptyExceptionHandler();\n }\n }", "title": "" }, { "docid": "7eebc584beb91b628ce0dc65d688f1a1", "score": "0.4753631", "text": "public void killSort() { bRunning = false; }", "title": "" }, { "docid": "a5fda7e2f99f0b732c710fb23db621d1", "score": "0.47532156", "text": "@Override\n public SortAndFormats sort() {\n return null;\n }", "title": "" }, { "docid": "ee9ce452587890eaf5a50e64347323fa", "score": "0.47527176", "text": "public static void main(String [] args) throws Exception{\n \tlong time1,time2,time;\n MergeSort1 ms = new MergeSort1(); \n \n CutData cut = new CutData();\n time1 = System.currentTimeMillis();\n cut.main(args);\n time2 = System.currentTimeMillis(); \n\t\ttime = time2 - time1;\n System.out.println(\"分割内存块,耗时\"+time+\"ms\");\n \n QuickSort qs = new QuickSort();\n qs.main(args);\n \n ms.mergeSort(); \n \n \n }", "title": "" }, { "docid": "fad99891a6a92fbe5975e905d06f8bb3", "score": "0.47506487", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testSortAfterPetrify1()\r\n {\r\n PETRIFIED_LIST.sort();\r\n }", "title": "" }, { "docid": "505bd4ae2bb4f4f78fb6f92eb050b060", "score": "0.47458297", "text": "@Test\n\tpublic void validSortItem1ToItem7() throws InterruptedException {\n\t\tassertTrue(SortableLogic.validSortItem1ToItem7());\n\t}", "title": "" }, { "docid": "59446d920d55ccb913d6e261b7e2360a", "score": "0.4745006", "text": "public void inorder() {\n\t\t\n\t}", "title": "" }, { "docid": "08566a2ea91cfdbaa868ef3f451b66d3", "score": "0.47437716", "text": "public ComposableRandomWalkColisionAvoidance() {\r\n\t}", "title": "" }, { "docid": "1cfa2267027967a109fe212dc66f36d1", "score": "0.47403502", "text": "public void d(Priority object, d$a object2) {\n Throwable throwable2222222;\n int n10;\n long l10;\n String string2;\n block9: {\n block10: {\n block11: {\n object = \"Finished http url fetcher fetch in \";\n string2 = g;\n l10 = d.c.a.u.g.b();\n n10 = 2;\n Object object3 = this.a;\n object3 = ((g)object3).i();\n boolean bl2 = false;\n Object var9_11 = null;\n Object object4 = this.a;\n object4 = ((g)object4).e();\n object3 = this.g((URL)object3, 0, null, (Map)object4);\n object2.e(object3);\n {\n catch (Throwable throwable2222222) {\n break block9;\n }\n catch (IOException iOException) {}\n int n11 = 3;\n {\n n11 = (int)(Log.isLoggable((String)string2, (int)n11) ? 1 : 0);\n if (n11 != 0) {\n String string3 = \"Failed to load data for url\";\n Log.d((String)string2, (String)string3, (Throwable)iOException);\n }\n object2.c(iOException);\n }\n boolean bl3 = Log.isLoggable((String)string2, (int)n10);\n if (!bl3) break block10;\n object2 = new StringBuilder();\n break block11;\n }\n boolean bl4 = Log.isLoggable((String)string2, (int)n10);\n if (!bl4) break block10;\n object2 = new StringBuilder();\n }\n ((StringBuilder)object2).append((String)object);\n double d10 = d.c.a.u.g.a(l10);\n ((StringBuilder)object2).append(d10);\n object = ((StringBuilder)object2).toString();\n Log.v((String)string2, (String)object);\n }\n return;\n }\n n10 = (int)(Log.isLoggable((String)string2, (int)n10) ? 1 : 0);\n if (n10 != 0) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append((String)object);\n double d11 = d.c.a.u.g.a(l10);\n stringBuilder.append(d11);\n object = stringBuilder.toString();\n Log.v((String)string2, (String)object);\n }\n throw throwable2222222;\n }", "title": "" }, { "docid": "3e1e4a1482a3d9ef3a4aeee14de91a07", "score": "0.4734688", "text": "@Test(timeout = 4000)\n public void test47() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"real\", arrayList0, 1);\n arrayList0.add(attribute0);\n discretize0.m_UseBinNumbers = true;\n arrayList0.add(attribute0);\n discretize0.setInputFormat(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0);\n MockRandom mockRandom0 = new MockRandom(0);\n instances0.randomize(mockRandom0);\n binarySparseInstance0.insertAttributeAt(0);\n discretize0.m_MakeBinary = true;\n instances0.add((Instance) binarySparseInstance0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(0);\n boolean boolean0 = discretize0.m_FindNumBins;\n System.setCurrentTimeMillis(0L);\n instances0.add((Instance) binarySparseInstance1);\n try { \n Filter.useFilter(instances0, discretize0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Attribute names are not unique! Causes: '\\\"position\\\" has unknown type' \n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" } ]
aacb2948eb65a54d9783c60e50dad6f4
Get the file for cached data.
[ { "docid": "cb51e1cb7eed6614033d1efa4b585d7c", "score": "0.0", "text": "public double[] getThresholds(DataType dataType) {\n PGMConfiguration config = PlugInObjectManager.getManager().getPathwayPGMConfig();\n Map<DataType, double[]> typeToThreshold = config.getTypeToThreshold();\n if (typeToThreshold == null)\n return null;\n return typeToThreshold.get(dataType);\n }", "title": "" } ]
[ { "docid": "e1c0d9e80874033954af6d8a91addaed", "score": "0.8302934", "text": "File getCacheFile();", "title": "" }, { "docid": "e6439381ee2ac26b765f0d22e3db0a38", "score": "0.7159669", "text": "@Nullable\n private Path getCacheFile(@NotNull Project project, @NotNull VirtualFile resourceDir) {\n if (!isValid()) {\n return null;\n }\n // Make up filename with hash codes. Try to tolerate hash collisions:\n // The cache file contents will list the original resourceDir as data source, so a potential\n // hash collision will be detected during loading and the cache file will be ignored.\n Path projectComponent = getProjectDir(project);\n if (projectComponent == null) {\n return null;\n }\n String dirComponent =\n FileUtil.sanitizeFileName(resourceDir.getParent().getName()) + '_' + Integer.toHexString(resourceDir.hashCode()) + \".dat\";\n return projectComponent.resolve(dirComponent);\n }", "title": "" }, { "docid": "a702d7a27ce3b1b87aff3259a639a338", "score": "0.6895883", "text": "public File getFile(String url){\n String filename=String.valueOf(url.hashCode());\n File f = new File(cacheDir, filename);\n return f;\n \n }", "title": "" }, { "docid": "5107fbcb5c4665497a48c1c8bb123d0b", "score": "0.6711347", "text": "public abstract File getCacheDir();", "title": "" }, { "docid": "6531d89a115a7650271cb508740ff7b4", "score": "0.665652", "text": "private File getCacheFile(String fileName) {\n\t\treturn new File(getContext().getCacheDir(), fileName);\n\t}", "title": "" }, { "docid": "74f9101ac6314aff5da1ec90535e0979", "score": "0.66307664", "text": "public String getContents(String filename) {\n return cache.get(filename);\n }", "title": "" }, { "docid": "e3328ba64da3536c48734483e5c94891", "score": "0.65362495", "text": "public byte[] get()\n\t{\n\t\tif (dfos.isInMemory())\n\t\t{\n\t\t\tif (cachedContent == null)\n\t\t\t{\n\t\t\t\tcachedContent = dfos.getData();\n\t\t\t}\n\n\t\t\treturn cachedContent;\n\t\t}\n\n\t\tbyte[] fileData = new byte[(int) getSize()];\n\t\tFileInputStream fis = null;\n\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(dfos.getFile());\n\t\t\tfis.read(fileData);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tfileData = null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif (fis != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn fileData;\n\t}", "title": "" }, { "docid": "931c829b2e239ec28ae95dea8ecd7265", "score": "0.6520757", "text": "String getCacheDirectory();", "title": "" }, { "docid": "2391ef1858a17b745e446963d295ac62", "score": "0.6422807", "text": "private static Cache provideCache() {\n Cache cache = null;\n try {\n cache = new Cache(new File(MyApplication.getInstance().getCacheDir(), \"http-cache\"),\n 20 * 1024 * 1024); // 20 MB\n } catch (Exception e) {\n Log.d(MyApplication.getInstance().getPackageName() + \": \", e.getMessage());\n }\n return cache;\n }", "title": "" }, { "docid": "257c397dbf9f399486c4774c5be53349", "score": "0.64012706", "text": "private DownloadFileInfo getDownloadFile() {\n if (mDownloadRecorder == null) {\n return null;\n }\n return mDownloadRecorder.getDownloadFile(getUrl());\n }", "title": "" }, { "docid": "7ae5e45441c8cefb0def793b09ba6936", "score": "0.6397127", "text": "static public File getFileOrCache(String fileLocation) {\n File result = getExistingFileOrCache(fileLocation);\n if (result != null) return result;\n return getDiskCache2().getFile(fileLocation);\n }", "title": "" }, { "docid": "27a02cec00dc6757940cb09f6da64be7", "score": "0.63878936", "text": "private static String getFromCacheFile( String strId )\n {\n String strContent = null;\n String strFilePath = AppPathService.getPath( PROPERTY_CACHE_DIRECTORY, strId + FILE_EXT );\n File file = new File( strFilePath );\n BufferedReader input = null;\n\n StringBuffer sbContent = new StringBuffer( );\n\n try\n {\n //use buffering\n //this implementation reads one line at a time\n //FileReader always assumes default encoding is OK!\n input = new BufferedReader( new FileReader( file ) );\n\n String strLine = null;\n\n while ( ( strLine = input.readLine( ) ) != null )\n {\n sbContent.append( strLine );\n }\n\n strContent = sbContent.toString( );\n }\n catch ( FileNotFoundException e )\n {\n AppLogService.error( e.getMessage( ), e );\n }\n catch ( IOException e )\n {\n AppLogService.error( e.getMessage( ), e );\n }\n finally\n {\n try\n {\n if ( input != null )\n {\n //flush and close both \"input\" and its underlying FileReader\n input.close( );\n }\n }\n catch ( IOException e )\n {\n AppLogService.error( e.getMessage( ), e );\n }\n }\n\n return strContent;\n }", "title": "" }, { "docid": "7f579236a720525cb049577983eac946", "score": "0.63748544", "text": "public abstract File getCodeCacheDir();", "title": "" }, { "docid": "f1077dd1833c034d87863a90d0b926c4", "score": "0.6352143", "text": "public String getCache()\r\n {\r\n return m_cache;\r\n }", "title": "" }, { "docid": "c5a620988a3fa5effdcdeab3ce46c248", "score": "0.6331058", "text": "private void openCacheFile() throws FileNotFoundException\n\t{\n\t\tm_dataFile.getParentFile().mkdirs();\n\t\tm_randomAccessFile = new RandomAccessFile(m_dataFile, \"rw\");\n\t\tm_dataOutputStream = BufferedDataOutputStream.create(m_randomAccessFile, 0L);\n\t}", "title": "" }, { "docid": "7039c62d088b134c3bc92252c853a01f", "score": "0.63244975", "text": "public File getCachedTile(String albumName) throws IOException {\n File file = new File(context.getExternalCacheDir(), albumName);\n \n if(!file.getParentFile().exists()){\n \tif (!file.getParentFile().mkdirs()) {\n \t\treturn null;\n \t}\n }\n \n if(!file.exists()){\n \tif (!file.createNewFile()) {\n \t\treturn null;\n \t}\n }\n return file;\n }", "title": "" }, { "docid": "58e5f0de9d2a02b4ff6fd61e61d813c9", "score": "0.6318676", "text": "public RandomAccessFile getFile()\n {\n return m_file;\n }", "title": "" }, { "docid": "896958d1465b16d0e6db3599f1d0d007", "score": "0.6279686", "text": "public boolean isCachedFile() {\n/* 225 */ return true;\n/* */ }", "title": "" }, { "docid": "651a3debe0221a65b07fdf48dae311e0", "score": "0.62786883", "text": "public static String getFileCacheDirectory()\n {\n\treturn config.getPluginCacheDirectory() + File.separator + \"file\";\n }", "title": "" }, { "docid": "527a9ff40f193b0cc3315f7da9977891", "score": "0.62747544", "text": "ICrawlData getCached(String cacheReference);", "title": "" }, { "docid": "1f522fa6e58aca1321132bdca97643d0", "score": "0.62568057", "text": "public File getFile(String url){\n String filename=String.valueOf(url.hashCode());\n //Another possible solution (thanks to grantland)\n// String filename = URLEncoder.encode(url);\n File f = new File(cacheDir, filename);\n return f;\n }", "title": "" }, { "docid": "982fdc6ee83c24617d50acbd52e7527c", "score": "0.62553716", "text": "public RandomAccessFile getFile() {\n return file;\n }", "title": "" }, { "docid": "6f1b10f7b1ed3cad9c0c530f9fa3ec80", "score": "0.62493235", "text": "public File getFile() {\r\n if (!isLocalFile()) {\r\n throw new RuntimeException(\"This reference does not reference a File\");\r\n }\r\n\r\n return new File(this.path);\r\n }", "title": "" }, { "docid": "87e37ab32ee66ee1f089adf61bda111b", "score": "0.6215273", "text": "private static File getImportCachePath()\n {\n return new File(Config.getUserConfigDir(), \"import-cache.xml\");\n }", "title": "" }, { "docid": "6296580639755c5d3212b83a858fd763", "score": "0.6208542", "text": "File get(String key) throws IOException;", "title": "" }, { "docid": "3d692c41d0ce4d09978f69917f9f9c70", "score": "0.62081355", "text": "@RecentlyNullable\n/* */ public abstract File getExternalCacheDir();", "title": "" }, { "docid": "5fe8e253978d952f27345e759bcade27", "score": "0.61893624", "text": "private File getFile(String key) {\r\n // key is used as a filename\r\n return new File(dataDir, key + \".tmp\");\r\n }", "title": "" }, { "docid": "aa2c571bae5c59e85fa86e4e7036cb50", "score": "0.6188523", "text": "public boolean isCachedFile() {\n/* 155 */ return false;\n/* */ }", "title": "" }, { "docid": "defde206a70594a9804ad99548676ada", "score": "0.6177349", "text": "public static File getCacheDir(Context ctx, FsVersion resource) {\n return getCacheDir(ctx, resource, true);\n }", "title": "" }, { "docid": "df880cee4f08c077c1551ca554f23ab9", "score": "0.61648047", "text": "@Override\n public String getCacheLocation()\n {\n return null;\n }", "title": "" }, { "docid": "fee645f0e49884e29f43bc0c1da0afbe", "score": "0.6131718", "text": "public File getFile() {\n // some code goes here\n return file;\n }", "title": "" }, { "docid": "99c755cb5ab05689b8b71446e395b995", "score": "0.6077812", "text": "private File getMetricsStorageFile() {\n return new File(omMetaDir, OM_METRICS_FILE);\n }", "title": "" }, { "docid": "16765b23ed2f1be9fc4b4692db8570a6", "score": "0.6050502", "text": "public File getFile();", "title": "" }, { "docid": "d9dc79da191a31569b019eaec06e844e", "score": "0.6030184", "text": "public Set<Entry<String, DistributedCacheEntry>> getCachedFiles() {\n return this.cacheFile.entrySet();\n }", "title": "" }, { "docid": "b4b32734dfaf9f725bb12c7fff1aab63", "score": "0.59796196", "text": "public String getFile(){\n\t\tFileGetter fileIn=new FileGetter();\n\t\tlblFilename.setText(fileIn.getFilename());\n\t\treturn(fileIn.getOutput());\n\t}", "title": "" }, { "docid": "e65b2c66ae7c48a67761766d6d4ef294", "score": "0.5965511", "text": "public CacheRecord getCacheRecord (String pathOfGeneric)\n {\n return this.cache.get(pathOfGeneric);\n }", "title": "" }, { "docid": "1f94b611719e7e44746cfaaee8543f54", "score": "0.5950289", "text": "public Path getFile() {\r\n\t\treturn file;\r\n\t}", "title": "" }, { "docid": "1055a1ef7c0ed44547d532577a0885c2", "score": "0.5949846", "text": "public String getStickyStorageFile();", "title": "" }, { "docid": "2b6ec8c20199150a61381454b9a718f7", "score": "0.5945733", "text": "public static String getCacheDirectory() {\n\t\treturn cacheDir;\n\t}", "title": "" }, { "docid": "fdbd9ff94de3ac820933af7da53d3ac0", "score": "0.59456253", "text": "private static File findCacheFile(File baseDir, ChunkCoord coord)\n\t{\n\t\t\n\t\tString first = Util.toBase36(coord.x);\n\t\tString second = Util.toBase36(coord.z);\n\t\t\n\t\tFile firstDir = new File(baseDir, first);\n\t\tFile secondDir = new File(firstDir, second);\n\t\tFile actual = new File(secondDir, \"biomeData_\"+first+\"_\"+second+\".dat\");\n\t\t\n\t\treturn actual;\n\t}", "title": "" }, { "docid": "f469c0e8b30d134cf05f454dc767c76f", "score": "0.5939857", "text": "public String getFile()\r\n {\r\n return file;\r\n }", "title": "" }, { "docid": "603f53c3fbc9ce1a36333b60d7d52493", "score": "0.5939314", "text": "private File getFile(){\n String p = System.getProperty(\"user.dir\")+\"/rrf.csv\";\n try{\n InputStream is = is = this.getClass().getResourceAsStream(\"/assets/files/csv.csv\");\n OutputStream stream = new BufferedOutputStream(new FileOutputStream(p));\n int bufferSize = 1024;\n byte[] buffer = new byte[bufferSize];\n int len = 0;\n while ((len = is.read(buffer)) != -1) {\n stream.write(buffer, 0, len);\n }\n if(stream!=null){\n stream.close();\n }\n }catch(IOException e){}\n return new File(p);\n }", "title": "" }, { "docid": "a958bc6a0da10f25fd0947a503552233", "score": "0.593931", "text": "public java.lang.String getFile(){\n return localFile;\n }", "title": "" }, { "docid": "ffda6a008600b7b8691f78ef7d35cd55", "score": "0.5926785", "text": "public File getFile(){\n\t\tif(this.file_asfile==null) this.file_asfile=new File(path);\n\t\treturn this.file_asfile;\n\t}", "title": "" }, { "docid": "f3884d51bd916d25b89ca742e6c7c1f2", "score": "0.591291", "text": "public final File getFile()\n {\n return file;\n }", "title": "" }, { "docid": "02f7120ede25c461410ca6e6d45724a6", "score": "0.59125036", "text": "private File getExternalCacheDir(Context context) {\n\n return context.getExternalCacheDir();\n }", "title": "" }, { "docid": "45f43958cf0472e6b367412afb3246ee", "score": "0.5904538", "text": "public File getFile() {\n\t\treturn userDataFile;\n\t}", "title": "" }, { "docid": "d1ea428226adbc1662ea5ce0e8a7f925", "score": "0.5902679", "text": "public String getFile() {\n return file;\n }", "title": "" }, { "docid": "b08eab8e10ff5c50b7aa39a0589ac556", "score": "0.5896302", "text": "public final File getFile() {\n return this.f;\n }", "title": "" }, { "docid": "2952756ac13e715a797c5ca35539d583", "score": "0.5863107", "text": "public File read() throws IOException {\r\n\t\tURLConnection conn = url.openConnection();\r\n\r\n\t\tconn.setConnectTimeout(5000);\r\n\t\tconn.setReadTimeout(5000);\r\n\r\n\t\t// Send the request.\r\n\t\tconn.connect();\r\n\r\n\t\tint length = conn.getContentLength();\r\n\r\n\t\tString tempDir = System.getProperty(\"java.io.tmpdir\");\r\n\t\tif (tempDir == null) {\r\n\t\t\ttempDir = \".\";\r\n\t\t}\r\n\t\tFile tempFile = new File(tempDir + \"/\" + new GUID() + \".dat\");\r\n\t\ttempFile.deleteOnExit();\r\n\r\n\t\tInputStream in = null;\r\n\t\tOutputStream out = null;\r\n\r\n\t\tProgressMonitor monitor = new ProgressMonitor(parentComponent, \"Downloading \" + url, null, 0, length);\r\n\t\ttry {\r\n\t\t\tin = conn.getInputStream();\r\n\t\t\tout = new BufferedOutputStream(new FileOutputStream(tempFile));\r\n\r\n\t\t\tint buflen = 1024 * 30;\r\n\t\t\tint bytesRead = 0;\r\n\t\t\tbyte[] buf = new byte[buflen];\r\n\r\n\t\t\tlong start = System.currentTimeMillis();\r\n\t\t\tfor (int nRead = in.read(buf); nRead != -1; nRead = in.read(buf)) {\r\n\t\t\t\tif (monitor.isCanceled()) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tbytesRead += nRead;\r\n\t\t\t\tout.write(buf, 0, nRead);\r\n\t\t\t\tmonitor.setProgress(bytesRead);\r\n\t\t\t\t// monitor.setNote(\"Elapsed: \" + ((System.currentTimeMillis() - start) / 1000) + \" seconds\");\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (in != null) {\r\n\t\t\t\tin.close();\r\n\t\t\t}\r\n\t\t\tif (out != null) {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t\tmonitor.close();\r\n\t\t}\r\n\t\treturn tempFile;\r\n\t}", "title": "" }, { "docid": "edaa7ed70090a2d257aeba55727f9782", "score": "0.5862643", "text": "public CPointer<CacheFile> __io__addressof() {\n\t\treturn new CPointer<CacheFile>(__io__address, new Class[]{CacheFile.class}, __io__block, __io__blockTable);\n\t}", "title": "" }, { "docid": "96a301b6a95126dfdc8533905b3b61b7", "score": "0.5853454", "text": "public String getFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "869220730fdc8675b1c30b96f07aaed0", "score": "0.58508086", "text": "public String getFile()\r\n\t\t{\r\n\t\t\treturn file;\r\n\t\t}", "title": "" }, { "docid": "8eca45a43fa40c9177a61f4d4a7f92ac", "score": "0.58498687", "text": "public static File getCachedFile(final String fileName, final String path) {\r\n File file = new File(path, fileName);\r\n if (!file.exists()) {\r\n throw new IllegalArgumentException(\"O arquivo n�o existe: \" + path + \"/\" + fileName);\r\n }\r\n return file;\r\n }", "title": "" }, { "docid": "934acb28c19fc0bf6e8dc8aeb8bfd27d", "score": "0.5837924", "text": "public File getTempCacheFile(URL url, String versionId) throws IOException {\n\tString base = keyToFileLocation(TEMP_TYPE, MAIN_FILE_TAG, url, versionId);\n\tFile cacheFile = null;\n\tint count = 0;\n\tdo {\n\t String tempname = base + (new Date().getTime());\n\t // Create path\n\t cacheFile = new File(tempname);\n\t cacheFile.getParentFile().mkdirs();\n\t try {\n\t\tcacheFile.createNewFile();\n\t } catch(IOException ioe) {\n\t\tcacheFile = null;\n\t }\n\t Thread.yield(); // Just to improve scheduling.\n\t} while(cacheFile == null && ++count < 50); // max 50 attempts\n\tif (cacheFile == null) {\n\t throw new IOException(\"Unable to create temp. file for: \" + url);\n\t}\n\treturn cacheFile;\n }", "title": "" }, { "docid": "3aac04ef9670c7e10e60c56c8558db8a", "score": "0.58269274", "text": "public File getFile() {\n\n\t\t// Return the path in the \"Saved\" or \"Incomplete\" folder\n\t\tif (_torrent.isComplete()) return _info.getCompleteFile();\n\t\treturn _info.getBaseFile();\n\t}", "title": "" }, { "docid": "7015f9b2eef5abc336623c6851da440a", "score": "0.58218896", "text": "public abstract T getCached(Context context);", "title": "" }, { "docid": "926a6f1ea3489b7721a0bf52cfd4184d", "score": "0.5820623", "text": "String getFile();", "title": "" }, { "docid": "c40fc49760f8e81bb1965c610fd46bd6", "score": "0.58192825", "text": "public String getFile() {\r\n\t\treturn attribute.attribute();\r\n\t}", "title": "" }, { "docid": "b270d20af5a40c4e2d6f197ac905bcbb", "score": "0.5818437", "text": "public File getFile()\n {\n if (file == null)\n file = EscolherArquivo();\n \n return file;\n }", "title": "" }, { "docid": "94e00155bb61e05a6e5fcb4f7a437a37", "score": "0.58002967", "text": "public static Object getCache(String key) {\r\n\t\treturn getCache(key, null);\r\n\t}", "title": "" }, { "docid": "cbc864bac0d560b37ee367f7c810cde6", "score": "0.5792463", "text": "public String getFile(){\n\t\treturn this.file;\n\t}", "title": "" }, { "docid": "5ab2a4ef486d3217ccd487dd04941f5c", "score": "0.57821685", "text": "private File getTempMetricsStorageFile() {\n return new File(omMetaDir, OM_METRICS_TEMP_FILE);\n }", "title": "" }, { "docid": "2f8da1b00b498dbb4235b922c80c7fea", "score": "0.577986", "text": "synchronized Path getPathFromCache(String pathKey) {\n return pathCache.get(pathKey);\n }", "title": "" }, { "docid": "1688d1e9ea0347f558ae22f04264e841", "score": "0.5766667", "text": "public String getFile() {\n String value=getattrvalue(\"File\");\n return value;\n }", "title": "" }, { "docid": "44642f9551b8cf70ab2f08789b2d0550", "score": "0.5759684", "text": "public static Object getCache(String key) {\n\t\treturn getCache(key, null);\n\t}", "title": "" }, { "docid": "71bf7e37b24e5d3c15f0b1ba1f361862", "score": "0.5759355", "text": "public File getFile() {\n\t\treturn EdgarFileService.getFile(fileName);\n\t}", "title": "" }, { "docid": "a1edc042fa3022a16dba2e976a428dbd", "score": "0.57544833", "text": "public static File getCacheDir() {\n return Places.getCacheSubfile(\"java-server\"); // NOI18N\n }", "title": "" }, { "docid": "35f6acafbfc43f6a3cbd6ff94b6a1dbf", "score": "0.5727711", "text": "public long getFile() {\r\n return file;\r\n }", "title": "" }, { "docid": "d2f1eb7b4850b1faa83a9af1f97a9ccc", "score": "0.5726427", "text": "private byte[] loadData() throws CacheException {\n\t\tlog.debug(\"getName() = \" + getName());\n\t\tlog.debug(\"getResourceName() = \" + getResourceName());\n\t\tlog.debug(\"getLocalFileName() = \" + getAbsoluteFileName());\n\t\tFile file = getFile();\n\n\t\tif (file == null || !file.exists()) {\n\t\t\tlog.debug(\"File is null or does not exist\");\n\t\t\tthrow new CacheException(\"File for \" + getName()\n\t\t\t\t\t+ \" is null or does not exist\");\n\t\t}\n\n\t\tlong size = file.length();\n\n\t\tif (size > Integer.MAX_VALUE) {\n\t\t\t// XXX this could be bad for large datasets\n\t\t\tlog.debug(\"loadData - Too Much Data for byte array:\");\n\t\t\tthrow new CacheException(\"Too much data for byte array\");\n\t\t}\n\t\tif (size <= 0) {\n\t\t\tlog.debug(\"loadData - File empty:\");\n\t\t\treturn new byte[0];\n\t\t}\n\n\t\tint iSize = (int) size;\n\n\t\ttry {\n\t\t\tbyte[] mData = new byte[iSize];\n\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tBufferedInputStream bis = new BufferedInputStream(fis);\n\n\t\t\tint retSize = bis.read(mData, 0, iSize);\n\n\t\t\tif (retSize != iSize) {\n\t\t\t\tlog.debug(\"loadData - Wrong amount of data read:\");\n\t\t\t\tthrow new CacheException(\"Wrong amount of data read\");\n\t\t\t}\n\n\t\t\tbis.close();\n\t\t\tlog.debug(\"DataCacheObject - Data was loaded:\");\n\t\t\treturn mData;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new CacheException(\"File for \" + getName()\n\t\t\t\t\t+ \" does not exist\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new CacheException(\"File for \" + getName() + \" io exception\");\n\t\t}\n\t}", "title": "" }, { "docid": "1ed0406bf99d9719d737891a60b7caf3", "score": "0.5706881", "text": "public File getFile() {\n return _file;\n }", "title": "" }, { "docid": "f3a298e3d01d88ef1bd188411838cac5", "score": "0.57026273", "text": "public FileInputStream getFile() {\n\t\treturn this.file;\n\t}", "title": "" }, { "docid": "60bd81c7b9584faecd5702dc34468d07", "score": "0.570051", "text": "public String getsFile() {\n return sFile;\n }", "title": "" }, { "docid": "518b446461bbbea8f681cc0752bc2f24", "score": "0.5700319", "text": "public String getFile() \r\n {\r\n return this.file;\r\n }", "title": "" }, { "docid": "7649c563f645f5fff30b0dc8b1729f66", "score": "0.5696494", "text": "public File getFile() {\n return file;\n }", "title": "" }, { "docid": "7649c563f645f5fff30b0dc8b1729f66", "score": "0.5696494", "text": "public File getFile() {\n return file;\n }", "title": "" }, { "docid": "7649c563f645f5fff30b0dc8b1729f66", "score": "0.5696494", "text": "public File getFile() {\n return file;\n }", "title": "" }, { "docid": "6a5ebb8b91bd3a7eccaae179b2e4ce50", "score": "0.5685494", "text": "private File getFile(String name)\n {\n URL url = getClass().getResource(\"/bluej/parser/ast/data/\" + name);\n \n if (url == null || url.getFile().equals(\"\"))\n return null;\n else\n return new File(url.getFile());\n }", "title": "" }, { "docid": "0724a2ea1eb38d2f9f5395b09957c787", "score": "0.56695294", "text": "Object getFromCache (String cache, String key);", "title": "" }, { "docid": "976870926aade7e271cbdc884476753c", "score": "0.5669308", "text": "CacheResult getCache(String url) {\n if (url == null || mCacheDatabase == null) {\n return null;\n }\n\n Cursor cursor = null;\n final String query = \"SELECT filepath, lastmodify, etag, expires, \"\n + \"expiresstring, mimetype, encoding, httpstatus, location, contentlength, \"\n + \"contentdisposition, crossdomain FROM cache WHERE url = ?\";\n try {\n cursor = mCacheDatabase.rawQuery(query, new String[] { url });\n if (cursor.moveToFirst()) {\n CacheResult ret = new CacheResult();\n ret.localPath = cursor.getString(0);\n ret.lastModified = cursor.getString(1);\n ret.etag = cursor.getString(2);\n ret.expires = cursor.getLong(3);\n ret.expiresString = cursor.getString(4);\n ret.mimeType = cursor.getString(5);\n ret.encoding = cursor.getString(6);\n ret.httpStatusCode = cursor.getInt(7);\n ret.location = cursor.getString(8);\n ret.contentLength = cursor.getLong(9);\n ret.contentdisposition = cursor.getString(10);\n ret.crossDomain = cursor.getString(11);\n return ret;\n }\n } catch (IllegalStateException e) {\n Log.e(LOGTAG, \"getCache\", e);\n } finally {\n if (cursor != null) cursor.close();\n }\n return null;\n }", "title": "" }, { "docid": "0b49f335a57c54686c8c4e398675c01e", "score": "0.5665074", "text": "@SuppressLint(\"NewApi\")\n public static File getExternalCacheDir() {\n Context context = BaseApplication.getInstance();\n if (VersionUtils.hasFroyo()) {\n if (context != null && context.getExternalCacheDir() != null) {\n return context.getExternalCacheDir();\n }\n\n }\n // Before Froyo we need to construct the external cache dir ourselves\n\n final String cacheDir = \"/Android/data/\" + context.getPackageName() + \"/cache/\";\n\n File file = new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);\n if (!file.exists())\n file.mkdirs();\n return file;\n }", "title": "" }, { "docid": "028499ef531c3aa30616ef424697a82c", "score": "0.56627053", "text": "abstract Object getCacheableData(ByteArrayOutputStream os);", "title": "" }, { "docid": "8af0323c5aeba127b84d891183461929", "score": "0.5659923", "text": "public static File getCacheDir(Context ctx, FsVersion resource, boolean inDataDirIfNeeded) {\n return getCacheDir(ctx, resource.toString(), inDataDirIfNeeded);\n }", "title": "" }, { "docid": "de31d6065c6d95081dff42ee89678dd7", "score": "0.56503516", "text": "public File getLocalFile() {\n return mFile;\n }", "title": "" }, { "docid": "3a0db2cadacdb8690adfedd59929f5a4", "score": "0.56496406", "text": "public CacheRepository getCache() {\n if (cache == null) {\n cache = new CacheRepository(\"ReportSource\");\n }\n return cache;\n }", "title": "" }, { "docid": "1b5e7dce6e403d46ee0a3667e185f755", "score": "0.56461483", "text": "public boolean isUseFileCaching() {\n return useFileCaching;\n }", "title": "" }, { "docid": "06ad38d6a68f76b681a715867eef442a", "score": "0.5633013", "text": "public File getFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "06ad38d6a68f76b681a715867eef442a", "score": "0.5633013", "text": "public File getFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "46ade4f6e34aa838c56e9b938b24be1c", "score": "0.56077546", "text": "public FileInputStream obtain(String filename) {\n FileInputStream is = null;\n\n try {\n is = new FileInputStream(SHARED_DIR + filename); // Open file and grab stream\n } catch (Exception e){\n e.printStackTrace(); // An error occurred\n }\n\n return is;\n }", "title": "" }, { "docid": "e40dd5d208d1af6b20f2c3765274f83e", "score": "0.56065816", "text": "public CacheableItem getCacheableItem()\n {\n CacheableItem item=null;\n if (list.getSelectedIndex()>=0)\n {\n int index=list.getSelectedIndex();\n item=fileList.get(index).getCachedItem();\n } \n return item;\n }", "title": "" }, { "docid": "b5e952d03c849fa0726cb5f114852aff", "score": "0.5601885", "text": "protected File getFileBypass() {\n return super.getFile();\n }", "title": "" }, { "docid": "ae0b60e09bfc247d983e3bf0e1cb161a", "score": "0.5596515", "text": "public File file()\n {\n return _file;\n }", "title": "" }, { "docid": "a619ec611828a25ca6b76b84d482d5a9", "score": "0.5593222", "text": "String getFilePath();", "title": "" }, { "docid": "a619ec611828a25ca6b76b84d482d5a9", "score": "0.5593222", "text": "String getFilePath();", "title": "" }, { "docid": "b2923765261e8bc08eea3e72022da2a2", "score": "0.55895805", "text": "protected String getFile(String name) {\n\t\tif(inputFiles.get(name) == null){\n\t\t\tlogger.warning(\"Requested file or variable for key '\"+name+\"' does not exist.\");\n\t\t}\n\t\tlogger.finest(\"Requested file for key '\"+name+\"' = \"+inputFiles.get(name).getFileOnly());\n\t\treturn inputFiles.get(name).getFileOnly();\n\t}", "title": "" }, { "docid": "3284ddb5b3baa6f983314e99d7cbf1b2", "score": "0.55890024", "text": "public File getFile() throws IOException {\n\t\tString realPath = this.servletContext.getRealPath(this.path);\n\t\tif (realPath == null) {\n\t\t\tthrow new FileNotFoundException(getDescription() + \" cannot be resolved to absolute file path - \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"web application archive not expanded?\");\n\t\t}\n\t\treturn new File(realPath);\n\t}", "title": "" }, { "docid": "a06f626bed11f3c5b07d457360f53bf2", "score": "0.55848724", "text": "private File m15710a(String str) {\n File file = new File(this.f12905a.getCacheDir(), m15711a(str, FileExtension.Json, false));\n if (file.exists()) {\n return file;\n }\n File file2 = new File(this.f12905a.getCacheDir(), m15711a(str, FileExtension.Zip, false));\n if (file2.exists()) {\n return file2;\n }\n return null;\n }", "title": "" }, { "docid": "6e25c2aea30c6b1d6888ce9a9b94b7e5", "score": "0.5582334", "text": "private File buildFile(String id) {\n final StringBuilder fileNameBuilder = new StringBuilder();\n fileNameBuilder.append(mCacheDir.getPath());\n fileNameBuilder.append(File.separator);\n fileNameBuilder.append(DEFAULT_FILE_NAME);\n fileNameBuilder.append(id);\n\n return new File(fileNameBuilder.toString());\n }", "title": "" }, { "docid": "ced6ca695e9d76b1fada1a5713e4a78b", "score": "0.55578756", "text": "public static File readFile() \n\t{\n\t\treturn file;\n\t}", "title": "" }, { "docid": "438b232992f1db8cf9d76b945d5683b1", "score": "0.55556375", "text": "public static String getSharedObjectsFile() {\n return getKettleDirectory() + FILE_SEPARATOR + SHARED_DATA_FILE;\n }", "title": "" }, { "docid": "4395a06745a65881b068ad2b05a58e4e", "score": "0.55538315", "text": "public File getFile() {\n return this.file;\n }", "title": "" } ]
bbad12eafcfb222a01f90f7c93770f1e
find the view objects needed to make this work
[ { "docid": "986b64f02d393165ec4e1000bf4ef9ae", "score": "0.0", "text": "public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.factor_matrix);\n mv0 = (MatrixView)findViewById(R.id.mat0);\n ml = (PartitionGroup)findViewById(R.id.pg_ml);\n mu = (PartitionGroup)findViewById(R.id.pg_mu);\n mp = (PartitionGroup)findViewById(R.id.pg_mp);\n hasRun = false;\n }", "title": "" } ]
[ { "docid": "480c4721e181aeaddf268cfa47b217dc", "score": "0.8323697", "text": "private void findViews() {\n \n }", "title": "" }, { "docid": "a763ff730e45e8b5d76ac7ecd1a14671", "score": "0.7511613", "text": "private void findViews() {\n if (getView() != null) {\n civAccountPic = getView().findViewById(R.id.civ_account_pic);\n tvAccountName = getView().findViewById(R.id.tv_account_name);\n ivMineSetting = getView().findViewById(R.id.iv_mine_setting);\n ivMineMessage = getView().findViewById(R.id.iv_mine_message);\n tvFindAll = getView().findViewById(R.id.tv_find_all);\n// ivPendingPayment = getView().findViewById(R.id.iv_pending_payment);\n// tvPendingPayment = getView().findViewById(R.id.tv_pending_payment);\n ivUsable = getView().findViewById(R.id.iv_usable);\n// tvUsable = getView().findViewById(R.id.tv_usable);\n// ivRefund = getView().findViewById(R.id.iv_refund);\n// tvRefund = getView().findViewById(R.id.tv_refund);\n rvMine = getView().findViewById(R.id.rv_mine);\n llPendingPayment = getView().findViewById(R.id.ll_pending_payment);\n llUsable = getView().findViewById(R.id.ll_usable);\n llRefund = getView().findViewById(R.id.ll_refund);\n }\n }", "title": "" }, { "docid": "7823263c39c97b3328bfe2121cddc7e8", "score": "0.74720293", "text": "@Override\n\tpublic void findViews() {\n\n\t}", "title": "" }, { "docid": "84bd075b8587c5a42029a3af6a4b0ffe", "score": "0.7393685", "text": "private void findViews() {\n mCover = (ImageView) findViewById(R.id.cover);\n mAvatar = (CircleImageView) findViewById(R.id.avatar);\n mNickname = (TextView) findViewById(R.id.nickname);\n mImagePanel = findViewById(R.id.image_panel);\n mTweetList = (ObservableRecyclerView) findViewById(R.id.tweet_list);\n }", "title": "" }, { "docid": "ed98d0616e061440f9bfbcca6c2d3893", "score": "0.7267989", "text": "private void findViews() {\n tv_emptyList = (TextView) findViewById(R.id.jobs_empty_list);\n lv_jobsListView = (ListView) findViewById(R.id.jobs_list_view);\n fab = (FloatingActionButton) findViewById(R.id.FAB);\n }", "title": "" }, { "docid": "178db99dc68c8e0293427a03b26cbe4d", "score": "0.7213691", "text": "private void findViews(View view) {\n mPreview = view.findViewById(R.id.preview);\n flBar = view.findViewById(R.id.fl_bar);\n ivQrSquare = view.findViewById(R.id.iv_qr_square);\n ivTourch = view.findViewById(R.id.iv_qr_tourch);\n ivGallery = view.findViewById(R.id.iv_qr_gallery);\n bar = view.findViewById(R.id.bar);\n viewRectErrorr = view.findViewById(R.id.view_rect_rrror);\n qrOverlay = view.findViewById(R.id.qr_overlay);\n ivLoader = view.findViewById(R.id.iv_loader);\n btnEnablePermission = view.findViewById(R.id.btn_enable_permission);\n consRootCameraPermission = view.findViewById(R.id.cons_root_camera_permission);\n }", "title": "" }, { "docid": "bf51023b570ed8ecbef8d22728d40b73", "score": "0.7029046", "text": "@Override\n protected void findViews() {\n pullDownListView = (PullDownListView) findViewById(R.id.pullDownListView);\n eyeView = (EyeView) findViewById(R.id.eyeView);\n progressView = (YProgressView) findViewById(R.id.progressView);\n }", "title": "" }, { "docid": "46b7251bfa879cd694ccda9bf3367c48", "score": "0.7003383", "text": "private void findViews() {\n tvResult = findViewById(R.id.tv_result);\n btnConnect = findViewById(R.id.btn_server_connect);\n editTextTextPersonName = findViewById(R.id.editTextTextPersonName);\n }", "title": "" }, { "docid": "4a49563fb186560c4e83b52d6573604b", "score": "0.6978263", "text": "private void findViews() {\n tvMainPrizeWon = findViewById(R.id.tvMainPrizeWon);\n tvBankName = findViewById(R.id.tvBankName);\n tvBankAccountNumber = findViewById(R.id.tvBankAccountNumber);\n btnDeposit = findViewById(R.id.btnDeposit);\n }", "title": "" }, { "docid": "994df538f1efd05efcf758e10a2840c7", "score": "0.6968119", "text": "private void findViews() {\n title = (RelativeLayout) findViewById(R.id.title);\n et_user = findViewById(R.id.et_user);\n laBackUser = (ImageView) findViewById(R.id.la_back_user);\n tvDoorName = (TextView) findViewById(R.id.tv_door_name);\n et_time = findViewById(R.id.et_time);\n editText = (EditText) findViewById(R.id.editText);\n btGen = (Button) findViewById(R.id.bt_gen);\n\n btGen.setOnClickListener(this);\n laBackUser.setOnClickListener(this);\n }", "title": "" }, { "docid": "00a8a9ab38858923a64077c0e086576f", "score": "0.6954686", "text": "private void findViews() {\n\t\tlivMainCategories = (ListView) findViewById(R.id.livMainCategories);\r\n\t}", "title": "" }, { "docid": "d0c99bf5ef2e8f28b6d5b5131349920d", "score": "0.69512796", "text": "private void findView() {\n\t\ttitlebar=(TextView)findViewById(R.id.title_talk);\n\t\ttalktitle=(TextView)findViewById(R.id.talk_title);\n\t\tprotitle=(TextView)findViewById(R.id.project_title);\n\t\tmTalkListView=(ListView) findViewById(R.id.listview_talk);\n\t\tet=(EditText) findViewById(R.id.work_fragment_note);\n\t\tbt=(Button) findViewById(R.id.publish_btn);\n\t\tback=(ImageView) findViewById(R.id.common_title_back);\n\t\n\t}", "title": "" }, { "docid": "52b190754002f94cae020b4ea093884c", "score": "0.6919851", "text": "private void findviews(){\n\t \tmf=(ImageView)findViewById(R.id.mf);\n\t \t eva=(ImageView)findViewById(R.id.eva);\n\t }", "title": "" }, { "docid": "7ef539cb6b6e8651fc3c04ae166e413e", "score": "0.6892401", "text": "private void initViews() {\n this.findViewByID();\n this.setOnListener();\n\n }", "title": "" }, { "docid": "a69bfa151664af43ec56bc0b45854be0", "score": "0.68572396", "text": "private void findViews() {\n cardLeftImage = findViewById(R.id.main_IMG_leftCard);\n cardRightImage = findViewById(R.id.main_IMG_rightCard);\n scoreLeft = findViewById(R.id.main_LBL_scoreLeft);\n scoreRight = findViewById(R.id.main_LBL_scoreRight);\n buttonBattle = findViewById(R.id.main_BTN_play);\n manLeftImage = findViewById(R.id.main_IMG_man);\n ladyLeftImage = findViewById(R.id.main_IMG_lady);\n\n }", "title": "" }, { "docid": "311646f6057dfebb0e504526d5ffb255", "score": "0.6839101", "text": "public Collection<View> views();", "title": "" }, { "docid": "97915013c5e6f3ae052638036a984946", "score": "0.6827137", "text": "private void findViews(View itemView) {\n // Buttons first\n closeBtn = (ImageButton) itemView.findViewById(getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()));\n progressBar1 = (ProgressBar) itemView.findViewById(getApplication().getResources().getIdentifier(\"progressBar1\", \"id\", getApplication().getPackageName()));\n shareBtn = (ImageButton) itemView.findViewById(getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()));\n shareBtn.setVisibility(View.INVISIBLE);\n // Photo Container\n photo = (ImageView) itemView.findViewById(getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()));\n mAttacher = new PhotoViewAttacher(photo);\n\n // Title TextView\n titleTxt = (TextView) itemView.findViewById(getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()));\n }", "title": "" }, { "docid": "02bf6f2d7025a4923bceee874e0c95a4", "score": "0.6804569", "text": "private void initializeViews() {\n }", "title": "" }, { "docid": "6bd93a5cabecf9eeb1fa31de3b191685", "score": "0.67892337", "text": "private void initializeViews() {\n\n }", "title": "" }, { "docid": "925555b0d2116dab93a63306b448a258", "score": "0.674263", "text": "private void findViews() {\n addCarButton = (Button)findViewById( R.id.addCarButton );\n addCarModelButton = (Button)findViewById( R.id.addCarModelButton );\n addCustomerButton = (Button)findViewById( R.id.addCustomerButton );\n addOrderButton = (Button)findViewById( R.id.addOrderButton );\n branchListButton = (Button)findViewById( R.id.branchListButton );\n carListButton = (Button)findViewById( R.id.carListButton );\n carModelListButton = (Button)findViewById( R.id.carModelListButton );\n customerListButton = (Button)findViewById( R.id.customerListButton );\n orderListButton = (Button)findViewById( R.id.orderListButton );\n addBranchButton = (Button)findViewById( R.id.addBranchButton );\n\n addCarButton.setOnClickListener( this );\n addCarModelButton.setOnClickListener( this );\n addCustomerButton.setOnClickListener( this );\n addOrderButton.setOnClickListener( this );\n branchListButton.setOnClickListener( this );\n carListButton.setOnClickListener( this );\n carModelListButton.setOnClickListener( this );\n customerListButton.setOnClickListener( this );\n orderListButton.setOnClickListener( this );\n addBranchButton.setOnClickListener( this );\n }", "title": "" }, { "docid": "0312323141c45c0df9d31e7b3d73b5e1", "score": "0.6705481", "text": "private void getViews() {\n\t\ttxtview = (TextView) findViewById(R.id.textView1);\n\t\tlstview = (ListView) findViewById(R.id.listView1);\n\t\tedtext=(EditText) findViewById(R.id.editText1);\n\t}", "title": "" }, { "docid": "82cce4bc1647b3a259c4fe7a7fb31a18", "score": "0.6703779", "text": "private void findViews() {\n this.mLoading = findViewById(R.id.imageView);\n }", "title": "" }, { "docid": "4672394e49a785c86180f2f18bd2b852", "score": "0.6698566", "text": "private void initViews(){\n\n }", "title": "" }, { "docid": "056da94478796754a96c63d3bc06ee99", "score": "0.6685913", "text": "private void ensureViews() {\n View view = getView();\n if (listView == null) listView = (ListView) view.findViewById(R.id.ricebook_listview);\n if (emptyContainer == null) {\n emptyContainer = (ViewGroup) view.findViewById(R.id.empty_container);\n }\n if (errorContainer == null) {\n errorContainer = (ViewGroup) view.findViewById(R.id.error_container);\n }\n if (progressBar == null) {\n progressBar = view.findViewById(R.id.ricebook_progressbar);\n }\n }", "title": "" }, { "docid": "e59c3f374e1e6a14a7a743d03bc36f81", "score": "0.66433424", "text": "private void findViews() {\n back = (ImageView) findViewById(R.id.back);\n kind = (TextView) findViewById(R.id.kind);\n location = (TextView) findViewById(R.id.location);\n reason = (EditText) findViewById(R.id.reason);\n back.setOnClickListener(this);\n }", "title": "" }, { "docid": "7ecff6a5b66151db07118c1033207558", "score": "0.6592065", "text": "@Override\n\tpublic void initFindViews() {\n\t\tmPageWidget=(PageWidget) findViewById(R.id.pw_page);\n\t\tzoomControls = (ZoomControls) findViewById(R.id.zc_tool);\n\t\tseekbar = (SeekBar) findViewById(R.id.pageSeekBar);\n\t\trl_menu=findViewById(R.id.rl_memu);\n\t}", "title": "" }, { "docid": "551dfbbbc392af9311d99f9ee52b6197", "score": "0.65311533", "text": "private void createViewObjects() {\n\t\tmainFrame = new MainFrame((AnchorPane)mainScene.getRoot());\n\t\tnavigationMenu = new NavigationMenu((AnchorPane) sceneList.get(0).getRoot());\n\t\tuserProfileGUI = new UserProfileGUI((AnchorPane) sceneList.get(1).getRoot());\n\t\tproblemGUI = new ProblemGUI((AnchorPane) sceneList.get(2).getRoot());\n\t\tcustomParametersGUI = new CustomParametersGUI((AnchorPane) sceneList.get(3).getRoot());\n\t\tsettingsGUI = new SettingsGUI((AnchorPane) sceneList.get(4).getRoot());\n\t\tdiffGUI = new DifficultyGUI((AnchorPane) sceneList.get(5).getRoot());\n\t\tdialogMenuGUI = new DialogMenuGUI((AnchorPane) sceneList.get(6).getRoot());\n\t}", "title": "" }, { "docid": "c0605b7b437a7a150e8d5098a8e96cf1", "score": "0.6508943", "text": "@Override\n\tprotected void initViews() {\n\t\t\n\t}", "title": "" }, { "docid": "fb6189eacf7860c5630930e54b98e9ae", "score": "0.64611393", "text": "@Override\r\n\tprotected void initViews() {\n\r\n\t}", "title": "" }, { "docid": "577209a6f9a40f78d6aa4318b0240f82", "score": "0.64471084", "text": "private void findViews() {\n rbLike = (RadioButton) findViewById(R.id.rb_like);\n rbDislike = (RadioButton) findViewById(R.id.rb_dislike);\n tvNew = (TextView) findViewById(R.id.tv_new);\n etNewText = (EditText) findViewById(R.id.et_newText);\n ivImg = (ImageView) findViewById(R.id.iv_img);\n btCancel = (Button) findViewById(R.id.bt_cancel);\n btValid = (Button) findViewById(R.id.bt_valid);\n rg_radio = (RadioGroup) findViewById(R.id.rg_radio);\n\n btCancel.setOnClickListener(this);\n btValid.setOnClickListener(this);\n }", "title": "" }, { "docid": "2244779af1613355aec26d32bbdcc2d7", "score": "0.6445636", "text": "@Override\n\tprotected void initViews() {\n\n\t}", "title": "" }, { "docid": "d7fdd38ac96af733c5751db96c99235f", "score": "0.64398414", "text": "@Override\n protected void initViews() {\n\n }", "title": "" }, { "docid": "a179f4184009d3864ed09fff74a9e5dd", "score": "0.64370257", "text": "private void findViews() {\n mVvContent = findViewById(R.id.vv_content);\n mTvVideoName = (TextView) findViewById(R.id.tv_video_name);\n mIvBattery = (ImageView) findViewById(R.id.iv_battery);\n mTvSystemTime = (TextView) findViewById(R.id.tv_system_time);\n mBtnVoice = findViewById(R.id.btn_voice);\n mSeekbarVoice = (SeekBar) findViewById(R.id.seekbar_voice);\n mTvCurrentTime = (TextView) findViewById(R.id.tv_current_time);\n mSeekbarVideo = (SeekBar) findViewById(R.id.seekbar_video);\n mTvTotalTime = (TextView) findViewById(R.id.tv_total_time);\n mBtnExit = findViewById(R.id.btn_exit);\n mBtnPre = findViewById(R.id.btn_pre);\n banner = findViewById(R.id.banner);\n mBtnStartPause = findViewById(R.id.btn_start_pause);\n mBtnNext = findViewById(R.id.btn_next);\n mBtnSwitchScreenFull = findViewById(R.id.btn_switch_screen_full);\n mRelaMediaController = findViewById(R.id.rela_media_controller);\n mBtnVoice.setOnClickListener(this);\n mBtnExit.setOnClickListener(this);\n mBtnPre.setOnClickListener(this);\n mBtnStartPause.setOnClickListener(this);\n mBtnNext.setOnClickListener(this);\n mBtnSwitchScreenFull.setOnClickListener(this);\n mSeekbarVideo.setOnSeekBarChangeListener(new VideoSeekBarListener());\n mSeekbarVoice.setOnSeekBarChangeListener(new VoiceSeekBarListener());\n\n mVvContent.setOnCompletionListener(this);\n mVvContent.setOnErrorListener(this);\n mVvContent.setOnPreparedListener(this);\n }", "title": "" }, { "docid": "2c4cabf269696cbfa1351bf9d965b1d4", "score": "0.64327544", "text": "protected void setupView() {\n\n\t}", "title": "" }, { "docid": "e488c88b7c015e3c8ab356982c9cc34f", "score": "0.6413017", "text": "private void initViews() {\n iconImageView = (ImageView)getView().findViewById(R.id.itemImg);\n\n titleTextView = (TextView)getView().findViewById(R.id.itemTxt);\n\n }", "title": "" }, { "docid": "9a50146d56a03f975eddd545ef0a05a6", "score": "0.6355249", "text": "private void GetViewELements() {\n\n userAgreement_expandablelistview = findViewById(R.id.userAgreement_expandablelistview);\n userAgreement_checkbox = findViewById(R.id.userAgreement_checkbox);\n sign_btn = findViewById(R.id.sign_btn);\n\n }", "title": "" }, { "docid": "98108e1d561d62e254277cdca01264e6", "score": "0.63481385", "text": "public void getViewPointers()\n {\n zoomOut = (Button) findViewById(R.id.zoom_out);\n zoomIn = (Button) findViewById (R.id.zoom_in);\n up = (Button) findViewById(R.id.up);\n down = (Button) findViewById(R.id.down); \n left = (Button) findViewById(R.id.left);\n right = (Button) findViewById(R.id.right); \n debugTextView = (TextView) findViewById(R.id.debugTextView); \n graphics = (Graphics) findViewById(R.id.graphics); \n load = (Button) findViewById(R.id.loadBtn);\n newGame = (Button) findViewById(R.id.newGameBtn);\n saveMenuItem = (MenuItem) findViewById(R.id.saveMenuItem);\n }", "title": "" }, { "docid": "0a7430f57de5b52ca65cf1deb0338f7e", "score": "0.63473314", "text": "public void displayViews(){\n view.display();\n }", "title": "" }, { "docid": "850d3571f095fad4133f571bf2cac15a", "score": "0.6344467", "text": "Views createViews();", "title": "" }, { "docid": "2120a7a76a711806e0b5864cc19eab96", "score": "0.63436884", "text": "private void findViews() {\n setContentView(R.layout.activity_pulltorefresh_main);\n listview = (Button)findViewById( R.id.listview );\n gridview = (Button)findViewById( R.id.gridview );\n fragment = (Button)findViewById( R.id.fragment );\n viewpager = (Button)findViewById( R.id.viewpager );\n viewpager2 = (Button)findViewById( R.id.viewpager2 );\n webview = (Button)findViewById( R.id.webview );\n tv_title = (TextView) findViewById(R.id.tv_title);\n tv_title.setText(\"Android-PullToRefresh\");\n\n listview.setOnClickListener( this );\n gridview.setOnClickListener( this );\n fragment.setOnClickListener( this );\n viewpager.setOnClickListener( this );\n viewpager2.setOnClickListener( this );\n webview.setOnClickListener( this );\n }", "title": "" }, { "docid": "16b49c72c838f52c155c2832bfb5ea51", "score": "0.63392425", "text": "public void setUpviews()\n {\n\n mylistview=(ListView)myview.findViewById(R.id.listviewTpg);\n myLoadinglayout=(View)myview.findViewById(R.id.Timetable_pg_loadingview);\n parentLayout=(FrameLayout)myview.findViewById(R.id.parentlayout_pg_timetable);\n\n }", "title": "" }, { "docid": "11a1be23007e617d37f4a87bf42a74ba", "score": "0.63132244", "text": "void getDataFromViews();", "title": "" }, { "docid": "6f8551c84e317740c66b391d026eb775", "score": "0.62912863", "text": "@Override\n protected void findViews() {\n videoSwitchPager = (VideoSwitchPager2) rootView.findViewById(R.id.rv_a_play_video_list);\n }", "title": "" }, { "docid": "f15b4dd093e0d462f740149aa4e7f9fa", "score": "0.6273734", "text": "private void addViews() {\n\n IFolderLayout left = factory.createFolder(\"left\", IPageLayout.LEFT, 0.25f, factory.getEditorArea());\n left.addView(IPageLayout.ID_PROJECT_EXPLORER);\n\n IFolderLayout rightBottom = factory.createFolder(\"rightBottom\", IPageLayout.BOTTOM, 0.75f, factory.getEditorArea());// NON-NLS-1\n // remove over Bug 478249 - [terminal][regression] Launching Terminal freezes Eclipse forever ; activating Terminal freezes UI for 13s\n // https://bugs.eclipse.org/bugs/show_bug.cgi?id=478249\n// if (viewRegistry.find(ID_TERMINALS_VIEW) != null){\n// \trightBottom.addView(ID_TERMINALS_VIEW); \n// }\n rightBottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);\n rightBottom.addView(ID_DEBUG_VIEW);\n if (viewRegistry.find(ID_MARKDOWN_VIEW) != null){\n \trightBottom.addView(ID_MARKDOWN_VIEW); \n }\n if (viewRegistry.find(ID_GFM_VIEW) != null){\n \trightBottom.addView(ID_GFM_VIEW); \n }\n rightBottom.addView(IPageLayout.ID_PROBLEM_VIEW);\n if (viewRegistry.find(ID_LOG_VIEW) != null){\n \trightBottom.addView(ID_LOG_VIEW); \n }\n\n IFolderLayout rightTopRight = factory.createFolder(\"rightTopRight\", IPageLayout.RIGHT, 0.75f, factory.getEditorArea());\n rightTopRight.addView(IPageLayout.ID_OUTLINE);\n rightTopRight.addView(ID_TERN_OUTLINE_VIEW);\n rightTopRight.addView(ID_TERN_EXPLORER_VIEW);\n rightTopRight.addView(IPageLayout.ID_TASK_LIST);\n }", "title": "" }, { "docid": "94184101245cd1789c2c5636c2347b43", "score": "0.62656313", "text": "@Override\n\tprotected void findViews() {\n\t\tsetContentView(R.layout.activity_clock_search);\n\t\tgroupSearchInput = (EditText) findViewById(R.id.groupSearchInput);\n\t\ttitle_item_leftText = (TextView) findViewById(R.id.title_item_leftText);\n\t\tgroupSearchListView = (ListView) findViewById(R.id.groupSearchListView);\n\t\tloadingView = (RelativeLayout) findViewById(R.id.loadingView);\n\t\tconnRecommendFollow();\n\n\t}", "title": "" }, { "docid": "e1f751045e207b1601bea2fce923c39d", "score": "0.62274885", "text": "@Override\r\n\tpublic void prepareViews() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0aaff320fde27965df1eb804ab52912a", "score": "0.6216176", "text": "private void initViews() {\n mDrawer = findViewById(R.id.main_dl);\n mProgress = findViewById(R.id.progress_overlay_white);\n Log.d(TAG, \"Views initialized.\");\n }", "title": "" }, { "docid": "7aa242876f6d50b1d7fa24e333b2e408", "score": "0.62133336", "text": "private void initViews() {\n tabLayout = findViewById(R.id.tab_layout);\n viewPager = findViewById(R.id.view_pager);\n google = findViewById(R.id.fab_google);\n }", "title": "" }, { "docid": "243408157498550df6ae90b376ff2c7b", "score": "0.62097126", "text": "private void assignViews() {\n mNameHeaderTextView = findViewById(R.id.name_header_tv);\n mNameEditText = findViewById(R.id.name_input_et);\n mFormulaEditText = findViewById(R.id.formula_input_et);\n mDKeyboard = (DKeyboard) findViewById(R.id.d_keyboard);\n mAdView = findViewById(R.id.banner_ad);\n }", "title": "" }, { "docid": "96b30087fe65c042aae27d8afacb3b13", "score": "0.62068045", "text": "@SuppressWarnings(\"deprecation\")\n\tprivate void addViews() {\n\n\t\tIFolderLayout topLeft = factory.createFolder(\"topLeft\", // NON-NLS-1\n\t\t\t\tIPageLayout.LEFT, 0.25f, factory.getEditorArea());\n\t\ttopLeft.addView(IPageLayout.ID_RES_NAV);\n\n\t\tIFolderLayout bottomRight = factory.createFolder(\"bottomRight\", // NON-NLS-1\n\t\t\t\tIPageLayout.BOTTOM, 0.75f, factory.getEditorArea());\n\n\t\tIFolderLayout bottomLeft = factory.createFolder(\"bottomLeft\", // NON-NLS-1\n\t\t\t\tIPageLayout.LEFT, 0.75f, \"bottomRight\");\n\n\t\tbottomLeft.addView(\"org.but4reuse.input.inputdropview\"); // NON-NLS-1\n\n\t\tbottomLeft.addView(\"org.eclipse.ui.views.PropertySheet\");// NON-NLS-1\n\t\tbottomLeft.addView(IPageLayout.ID_PROBLEM_VIEW);\n\n\t\tbottomRight.addView(\"org.eclipse.contribution.visualiser.views.Menu\");// NON-NLS-1\n\t\tbottomLeft.addView(\"org.eclipse.contribution.visualiser.views.Visualiser\");// NON-NLS-1\n\n\t\tbottomLeft.addView(\"org.but4reuse.feature.constraints.ui.view\");// NON-NLS-1\n\t\tbottomLeft.addView(\"org.but4reuse.visualisation.metrics\");\n\t\tbottomLeft.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);\n\t}", "title": "" }, { "docid": "738d493236f8d6ac342c41d59762b861", "score": "0.62064934", "text": "public void setViewElements(){\n tvScreenName = (TextView) findViewById(R.id.tvScreenName);\n tvBody = (TextView) findViewById(R.id.tvBody);\n tvRelativeTime = (TextView) findViewById(R.id.tvRelativeTime);\n ivProfileImage = (ImageView) findViewById(R.id.ivProfileImage);\n ivOuterLayout = findViewById(R.id.ivOuterLayout);\n ivMedia = (ImageView) findViewById(R.id.ivMedia);\n }", "title": "" }, { "docid": "6723116897a2c8a32ae4daa03d50994f", "score": "0.62041026", "text": "@SuppressWarnings({\"deprecation\", \"ResourceType\"})\n protected void createViews() {\n //Why are we setting a constant as the ID? This should be investigated\n// appView.getView().setId(100);\n// appView.getView().setLayoutParams(new FrameLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT,\n// ViewGroup.LayoutParams.MATCH_PARENT));\n//\n setContentView(getInflaterView());\n appView.getView().requestFocusFromTouch();\n\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.61893976", "text": "private void initView() {\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.61893976", "text": "private void initView() {\n }", "title": "" }, { "docid": "8072a85069def1f0fb2ace76fa8791ce", "score": "0.61810374", "text": "public void initViews(android.view.View view, Bundle bundle) {\n boolean[] h = m47069h();\n super.initViews(view, bundle);\n h[10] = true;\n this.f26881N = (TextView) view.findViewById(C10049R.C10053id.instabug_text_view_question);\n h[11] = true;\n this.f26922V = (GridView) view.findViewById(C10049R.C10053id.instabug_survey_mcq_grid_view);\n h[12] = true;\n mo36270g();\n h[13] = true;\n }", "title": "" }, { "docid": "8bae98ad07787ee96bc84f6c19e25f04", "score": "0.61745244", "text": "public void findViews() {\n textViewTrips = (CustomTextView) findViewById(R.id.textViewTrips);\n\n textViewKm = (CustomTextView) findViewById(R.id.textViewKm);\n textViewMinute = (CustomTextView) findViewById(R.id.textViewMinute);\n\n textViewBonusKm = (CustomTextView) findViewById(R.id.textViewBonusKm);\n textViewBonusMinute = (CustomTextView) findViewById(R.id.textViewBonusMinute);\n\n textViewAverageKm = (CustomTextView) findViewById(R.id.textViewAverageKm);\n textViewAverageMinute = (CustomTextView) findViewById(R.id.textViewAverageMinute);\n\n textViewSpeed = (CustomTextView) findViewById(R.id.textViewSpeed);\n\n textViewTripsTitle = (CustomTextView) findViewById(R.id.textViewTripsTitle);\n textViewKmTitle = (CustomTextView) findViewById(R.id.textViewKmTitle);\n textViewMinuteTitle = (CustomTextView) findViewById(R.id.textViewMinuteTitle);\n textViewBonusKmTitle = (CustomTextView) findViewById(R.id.textViewBonusKmTitle);\n textViewBonusMinuteTitle = (CustomTextView) findViewById(R.id.textViewBonusMinuteTitle);\n textViewAverageKmTitle = (CustomTextView) findViewById(R.id.textViewAverageKmTitle);\n textViewAverageMinuteTitle = (CustomTextView) findViewById(R.id.textViewAverageMinuteTitle);\n\n textViewSumAvgPrice = (CustomTextView) findViewById(R.id.textViewSumAvgPrice);\n textViewSumBonusPrice = (CustomTextView) findViewById(R.id.textViewSumBonusPrice);\n textViewSumPrice = (CustomTextView) findViewById(R.id.textViewSumPrice);\n\n if(CMApplication.hasNavigationBar(StatisticsActivity.this)) {\n findViewById(R.id.container_statistics).setPadding(0, 0, 0, CMApplication.dpToPx(48));\n\n }\n\n }", "title": "" }, { "docid": "966db025018bb9693741d1be06640e2e", "score": "0.61642486", "text": "private void createAndInitViewProvider() {\n\t\tcreateAndInitUserTaskFormContainer();\n\t\tviewProvider = new DefaultViewProvider();\n\t\tviewProvider.addPreinitializedView(new MyTasksViewImpl(this),\n\t\t\t\tMyTasksView.VIEW_ID);\n\t\tURItoView.put(\"myTasks\", MyTasksView.VIEW_ID);\n\t\t\n\t\tviewProvider.addPreinitializedView(new UnassignedTasksViewImpl(this),\n\t\t\t\tUnassignedTasksView.VIEW_ID);\n\t\tURItoView.put(\"unassignedTasks\", UnassignedTasksView.VIEW_ID );\n\t\t\n\t\tviewProvider.addPreinitializedView(new ProcessViewImpl(),\n\t\t\t\tProcessView.VIEW_ID);\n\t\tURItoView.put(\"processes\", ProcessView.VIEW_ID );\n\t\t\n\t\tviewProvider.addPreinitializedView(new HistoryViewImpl(),\n\t\t\t\tHistoryView.VIEW_ID);\n\t\tURItoView.put(\"history\", HistoryView.VIEW_ID );\n\t\t\n\t\t//not used in the application due to LDAP replacement\n\t\tviewProvider.addPreinitializedView(new IdentityManagementViewImpl(),\n\t\t\t\tIdentityManagementView.VIEW_ID);\n\t\t\n\t\tviewProvider.addPreinitializedView(new UserFormViewImpl(\n\t\t\t\tuserTaskFormContainer), UserFormView.VIEW_ID);\n\t\t\n\t\tviewProvider.addPreinitializedView(new HistoryDataViewImpl(),\n\t\t\t\tHistoryDataView.VIEW_ID);\n\t\t\n\t\tviewProvider.addPreinitializedView(new ActiveProcessInstanceViewImpl(),\n\t\t\t\tActiveProcessInstanceView.VIEW_ID);\n\t\tURItoView.put(\"activeProcesses\", ActiveProcessInstanceView.VIEW_ID );\n\t\t\n\t\tviewProvider.addPreinitializedView(new ProcessStatusViewImpl(this),\n\t\t\t\tProcessStatusView.VIEW_ID);\n\t\t\n\t\tviewProvider.addPreinitializedView(new DiagramViewImpl(this),\n\t\t\t\tDiagramView.VIEW_ID);\n\t\t\n\t\tviewProvider.addPreinitializedView(new ReportViewImpl(),\n\t\t\t\tReportView.VIEW_ID);\n\t\tURItoView.put(\"reports\", ReportView.VIEW_ID );\n\t\t\n\t\tviewProvider.addPreinitializedView(new CancelProcessViewImpl(),\n\t\t\t\tCancelProcessView.VIEW_ID);\n\t\tURItoView.put(\"cancel\", CancelProcessView.VIEW_ID );\n\t\t\n\t}", "title": "" }, { "docid": "52085deedc688d854e5287a988a2e6e1", "score": "0.61409676", "text": "private void findView(){\n\t\tbtnOk = (TextView)findViewById(R.id.button_accept);\n\t\tbtnCancel = (TextView)findViewById(R.id.button_cancel);\n\t\ttxtCommon =(TextView)findViewById(R.id.message);\n\t\ttxtCommon.setTypeface(roboto);\n\t\theading =(TextView)findViewById(R.id.heading);\n\t\theading.setTypeface(roboto);\n\t}", "title": "" }, { "docid": "a34a7d5bdb50ab5dbeb2a320ff994c62", "score": "0.6123722", "text": "private void initializeViews() {\n _modelName = findViewById(R.id.modelName);\n _imeiNumber = findViewById(R.id.imeiNumber);\n _startTest = findViewById(R.id.startTestButton);\n _marketPlace = findViewById(R.id.marketPlaceButton);\n _ramUsage = findViewById(R.id.ramUsage);\n _batteryPercentage = findViewById(R.id.batteryPercentageShowValue);\n }", "title": "" }, { "docid": "15813740d389b6c26a5cf0fc3e43ee6e", "score": "0.6122704", "text": "private void initViews() {\n mainScrollView = findViewById(R.id.details_main_sv);\n wallImage = findViewById(R.id.details_wall_picture);\n userProfileImage = findViewById(R.id.details_user_picture);\n userName = findViewById(R.id.user_details_name);\n userEmail = findViewById(R.id.user_details_email);\n userNationality = findViewById(R.id.user_details_nationality);\n userMemberSince = findViewById(R.id.user_details_member_since);\n actionCallUser = findViewById(R.id.user_details_action_call);\n actionEmailUser = findViewById(R.id.user_details_action_send_email);\n locationHint = findViewById(R.id.user_location_hint);\n }", "title": "" }, { "docid": "5249624c9fe5bb97ecd9b6d12ac086be", "score": "0.61190856", "text": "private void initView() {\n\n }", "title": "" }, { "docid": "4ad3992f7b79ce6441639d770755ee28", "score": "0.61184", "text": "private void initializeViews( ) {\n\n\t\ttry {\n\t\t\tfetchSections();\n\n\t\t\t\n\t\t\tif ( content_layout == null ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( content_layout == null ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\n\t\t\tsectionBase = (LinearLayout) content_layout.findViewById(R.id.section_base);\n\t\t\tprogressBar = (RelativeLayout) content_layout.findViewById(R.id.progressBar);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n//\t\t\tLogs.show(e);\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "53223d197f972634d7ec2c17dca22edc", "score": "0.61016095", "text": "private void initView()\n {\n\n\n }", "title": "" }, { "docid": "e08f04c188d8f9ddfd15a702d92a3c16", "score": "0.60774064", "text": "private void findViews() {\n setContentView(R.layout.activity_info);\n toolbarInfo = (Toolbar) findViewById(R.id.toolbar_info);\n\n setSupportActionBar(toolbarInfo);\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setHomeAsUpIndicator(R.drawable.back_home);\n }\n\n tvInfoTitle = (TextView) findViewById(R.id.tv_info_title);\n ivInfoHeader = (ImageView) findViewById(R.id.iv_info_header);\n tvInfoNickname = (TextView) findViewById(R.id.tv_info_nickname);\n tvInfoUsername = (TextView) findViewById(R.id.tv_info_username);\n tvInfoEmail = (TextView) findViewById(R.id.tv_info_email);\n tvInfoPhotos = (ImageView) findViewById(R.id.tv_info_photos);\n rlInfoBlackMenu = (RelativeLayout) findViewById(R.id.rl_info_black_menu);\n switchInfoBlackMenu = (Switch) findViewById(R.id.switch_info_black_menu);\n btnLogout = (Button) findViewById(R.id.btn_logout);\n btnSendMessage = (Button) findViewById(R.id.btn_send_message);\n btnDeleteFriend = (Button) findViewById(R.id.btn_delete_friend);\n btn_add_friend = (Button) findViewById(R.id.btn_add_friend);\n btn_agree_add_friend = (Button) findViewById(R.id.btn_agree_add_friend);\n\n btnLogout.setOnClickListener(this);\n btnSendMessage.setOnClickListener(this);\n btnDeleteFriend.setOnClickListener(this);\n btn_add_friend.setOnClickListener(this);\n btn_agree_add_friend.setOnClickListener(this);\n\n ivInfoHeader.setOnClickListener(this);\n tvInfoNickname.setOnClickListener(this);\n tvInfoPhotos.setOnClickListener(this);\n }", "title": "" }, { "docid": "1ba1c377781186d31d78223e2b95011e", "score": "0.6065313", "text": "public List<View> getViews() {\n if (!isLoaded()) {\n throw new IllegalStateException(\"Error: Project must be loaded first\");\n }\n\n return new ArrayList<View>(m_views);\n }", "title": "" }, { "docid": "0ecc4e0dfa3a11030fe339202d376898", "score": "0.60594654", "text": "private void findViews() {\n ibShopcartBack = (ImageButton) findViewById(R.id.ib_shopcart_back);\n tvShopcartEdit = (TextView) findViewById(R.id.tv_shopcart_edit);\n recyclerview = (RecyclerView) findViewById(R.id.recyclerview);\n checkboxAll = (CheckBox) findViewById(R.id.checkbox_all);\n tvShopcartTotal = (TextView) findViewById(R.id.tv_shopcart_total);\n btnCheckOut = (Button) findViewById(R.id.btn_check_out);\n ll_check_all = (LinearLayout) findViewById(R.id.ll_check_all);\n ll_delete = (LinearLayout) findViewById(R.id.ll_delete);\n cb_all = (CheckBox) findViewById(R.id.cb_all);\n btn_delete = (Button) findViewById(R.id.btn_delete);\n btn_collection = (Button) findViewById(R.id.btn_collection);\n ll_empty_shopcart = (LinearLayout) findViewById(R.id.ll_empty_shopcart);\n tv_empty_cart_tobuy = (TextView) findViewById(R.id.tv_empty_cart_tobuy);\n\n //设置点击监听\n ibShopcartBack.setOnClickListener(this);\n btnCheckOut.setOnClickListener(this);\n tvShopcartEdit.setOnClickListener(this);\n btn_delete.setOnClickListener(this);\n tv_empty_cart_tobuy.setClickable(true);\n tv_empty_cart_tobuy.setOnClickListener(this);\n }", "title": "" }, { "docid": "75ad84ed9213f4057ec44d0f52a62393", "score": "0.6059271", "text": "private void findAll(View view) {\n doctor_RCV = view.findViewById(R.id.doctor_RCV);\n doctor_SWT = view.findViewById(R.id.doctor_SWT);\n doctor_PGB = view.findViewById(R.id.doctor_PGB);\n }", "title": "" }, { "docid": "19d89ba0fd91c05e43dcec266a0435d9", "score": "0.60389763", "text": "abstract public void initView();", "title": "" }, { "docid": "89c6f3872ebc3bb8cf4af967223aef6e", "score": "0.60304236", "text": "private void findViewsById() {\n etPrice = (EditText) findViewById(R.id.etPrice);\n etQuantity = (EditText) findViewById(R.id.etQuantity);\n etNote = (EditText) findViewById(R.id.etNote);\n spColor = (Spinner) findViewById(R.id.spColor);\n }", "title": "" }, { "docid": "7b13a86068fb8848ca7cc4c5d8248d43", "score": "0.6029127", "text": "public anywheresoftware.b4a.objects.ConcreteViewWrapper _asview() throws Exception{\nif (true) return (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_screenpnl.getObject()));\n //BA.debugLineNum = 75;BA.debugLine=\"End Sub\";\nreturn null;\n}", "title": "" }, { "docid": "ed89024f29f00bc0837007d8aa278c86", "score": "0.60250354", "text": "private void initViews() {\n if (view != null) {\n questionImageLayout = view.findViewById(R.id.layout_question_image);\n pb_load_profile = view.findViewById(R.id.pb_load_profile);\n quesitonImage = view.findViewById(R.id.iv_question_image);\n tvHint = view.findViewById(R.id.tv_hint);\n tv_user_coin = view.findViewById(R.id.tv_usercoin);\n btn_next = view.findViewById(R.id.btn_next);\n tv_user_point = view.findViewById(R.id.tv_user_point);\n catStatus = view.findViewById(R.id.img_cat_status);\n tv_quiz_time = view.findViewById(R.id.tv_quiz_time);\n tvQuizCount = view.findViewById(R.id.tv_quiz_count);\n tvQuizPosition = view.findViewById(R.id.tv_quiz_position);\n iv_stopwatch = view.findViewById(R.id.iv_stopwatch);\n tv_question_name = view.findViewById(R.id.tv_question_name);\n optionRecyclerView = view.findViewById(R.id.recyclerview_quiz_option);\n btnSkip = view.findViewById(R.id.btn_skip);\n }\n }", "title": "" }, { "docid": "da677efb7450967151a917815df76f1a", "score": "0.60069954", "text": "public java.util.List getViews () {\r\n\t\treturn views;\r\n\t}", "title": "" }, { "docid": "a18bd13510642737b9f1f572c1cc2014", "score": "0.6006427", "text": "@Nullable\n private List<ElementDescriptor> getCustomViews() {\n IProject project = mEditor.getProject();\n CustomViewFinder finder = CustomViewFinder.get(project);\n Collection<String> views = finder.getAllViews();\n if (views == null) {\n finder.refresh();\n views = finder.getAllViews();\n }\n if (views != null && !views.isEmpty()) {\n List<ElementDescriptor> descriptors = Lists.newArrayListWithExpectedSize(views.size());\n CustomViewDescriptorService customViews = CustomViewDescriptorService.getInstance();\n for (String fqcn : views) {\n ViewElementDescriptor descriptor = customViews.getDescriptor(project, fqcn);\n if (descriptor != null) {\n descriptors.add(descriptor);\n }\n }\n\n return descriptors;\n }\n\n return null;\n }", "title": "" }, { "docid": "c361072e17bcc1bede468d7864615a1a", "score": "0.60048723", "text": "private void setUpViewInstances() {\n this.finalScoreView = findViewById(R.id.final_score_value);\n this.newGameBtn = findViewById(R.id.new_game_btn);\n this.turnViews.add(findViewById(R.id.turn_1));\n this.turnViews.add(findViewById(R.id.turn_2));\n this.turnViews.add(findViewById(R.id.turn_3));\n this.turnViews.add(findViewById(R.id.turn_4));\n this.turnViews.add(findViewById(R.id.turn_5));\n this.turnViews.add(findViewById(R.id.turn_6));\n this.turnViews.add(findViewById(R.id.turn_7));\n this.turnViews.add(findViewById(R.id.turn_8));\n this.turnViews.add(findViewById(R.id.turn_9));\n this.turnViews.add(findViewById(R.id.turn_10));\n }", "title": "" }, { "docid": "ddb0f1149727d670dd03c81f73215304", "score": "0.6003628", "text": "private void buildViews() {\n\t\tif( mNavigationView == null ) {\n\t\t\tmNavigationView = (NavigationView) findViewById( R.id.nav_view );\n\t\t\tmNavigationView.addHeaderView( getLayoutInflater().inflate(\n\t\t\t\t\tR.layout.nav_header,\n\t\t\t\t\tmNavigationView,\n\t\t\t\t\tfalse\n\t\t\t) );\n\t\t}\n\t\tbuildMenu();\n\t\t//Init pagers, bind the tabs to the ViewPager\n\t\tTabLayout tabs = (TabLayout) findViewById( R.id.tabs );\n\t\tViewGroup singleContainer = (ViewGroup) findViewById( R.id.single_page_container );\n\t\tif( mWifiOn ) {\n\t\t\tint viewMode = Prefs.getInstance()\n\t\t\t\t\t\t\t\t.getViewMode();\n\t\t\tswitch( viewMode ) {\n\t\t\t\tcase Prefs.VIEW_MODE_MULTI:\n\t\t\t\t\tchangeToMultiPagesMode(\n\t\t\t\t\t\t\ttabs,\n\t\t\t\t\t\t\tsingleContainer\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Prefs.VIEW_MODE_SINGLE:\n\t\t\t\t\tchangeToSinglePageMode(\n\t\t\t\t\t\t\ttabs,\n\t\t\t\t\t\t\tsingleContainer\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tchangeToSinglePageMode(\n\t\t\t\t\ttabs,\n\t\t\t\t\tsingleContainer\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "f77b3f323efd98144c37767730df3a81", "score": "0.59962904", "text": "public List<INaviView> getViews() {\n Preconditions.checkState(isLoaded(), \"IE00249: Project must be loaded first\");\n return new ArrayList<INaviView>(m_views);\n }", "title": "" }, { "docid": "83fa8db19f122908adfc899c6c5c88f1", "score": "0.5995488", "text": "protected abstract void initViews(View rootView);", "title": "" }, { "docid": "eda2c3a1896718b718b6f528be1911d2", "score": "0.5993939", "text": "public void gatherView() {\n profileLayout = findViewById(R.id.profileLayout);\n emptyRecommendList = findViewById(R.id.emptyRecommendList);\n recyclerViewJobAdvert = findViewById(R.id.recommendedList);\n suggestListProgress = findViewById(R.id.suggestListProgress);\n mSlidingPanelLayout = findViewById(R.id.main_sliding_panel);\n scrollableView = findViewById(R.id.scrollableView2);\n companyLogo1 = findViewById(R.id.companyLogo1);\n companyname = findViewById(R.id.companyname);\n sector = findViewById(R.id.sector);\n tvbasvuru_count = findViewById(R.id.tvbasvuru_count2);\n tvjobname = findViewById(R.id.tvjobname);\n publishdate = findViewById(R.id.publishdate);\n tvdistance = findViewById(R.id.tvdistance);\n actionToolbar = findViewById(R.id.userIntro_toolbar);\n // settings = findViewById(R.id.settings);\n init();\n }", "title": "" }, { "docid": "c454e2cb1edb68f676ce01586bd17db7", "score": "0.5993694", "text": "private void inicializateView() {\n\n this.originListNavigation = findViewById(R.id.origin_list_nav);\n this.originListDrawer = findViewById(R.id.origin_list_drawer);\n\n this.originListLinear = findViewById(R.id.origin_list_linear);\n this.originListProgress = findViewById(R.id.origin_list_progress);\n\n this.originListRecycler = findViewById(R.id.origin_list_recycler);\n }", "title": "" }, { "docid": "066a9b83bc0d328452203874c8e60487", "score": "0.59782153", "text": "private void initViews() {\n textViewName = (AppCompatTextView) findViewById(R.id.textViewName);\n }", "title": "" }, { "docid": "8a71fbdec6a3f5c995bb2e399b38fb21", "score": "0.59669644", "text": "private void initViews() {\n\t\tedittext_email_address = (EditText) findViewById(R.id.edittext_emailaddress);\n\t\tedittext_first_name = (EditText) findViewById(R.id.edittext_firstname);\n\t\tedittext_last_name = (EditText) findViewById(R.id.edittext_last_name);\n\t\tedittext_companyname = (EditText) findViewById(R.id.edittext_companyname);\n\t\tpassword = (EditText) findViewById(R.id.edittext_password);\n\t\tnext_button = (Button) findViewById(R.id.button_next);\n\t\tclose = (ImageView) findViewById(R.id.image_close);\n\t\tavatar = (ImageView) findViewById(R.id.image_avatar);\n\t\thelp_underline = (TextView) findViewById(R.id.help_underline);\n\t\tmerchant_underline = (TextView) findViewById(R.id.merchant_underline);\n\t}", "title": "" }, { "docid": "d420add18bc4704c23b3e1455d11e92d", "score": "0.5962899", "text": "private void getLayoutElementViewsById() {\n textView10thCharacter = (TextView) findViewById(R.id.text_view);\n textViewEvery10thCharacter = (TextView) findViewById(R.id.text_view_every_10th_character);\n textViewWordCounter = (TextView) findViewById(R.id.text_view_word_counter);\n AssignmentButton = (Button) findViewById(R.id.assignment_button);\n }", "title": "" }, { "docid": "8c43fd61e7b8a40cde4dad714061c16c", "score": "0.5958861", "text": "private void findView() {\n mUserName = (com.rey.material.widget.EditText) findViewById(R.id.et_register_name);\n\n mLoginFormView = findViewById(R.id.login_form);\n mProgressView = findViewById(R.id.login_progress);\n bt_next_step = (Button) findViewById(R.id.bt_next_step);\n assert bt_next_step != null;\n bt_next_step.setOnClickListener(this);\n bt_get_verification = (Button) findViewById(R.id.bt_get_verification);\n assert bt_get_verification != null;\n bt_get_verification.setOnClickListener(this);\n\n et_register_name = (EditText) findViewById(R.id.et_register_name);\n et_register_police_id = (EditText) findViewById(R.id.et_register_police_id);\n et_register_phone = (EditText) findViewById(R.id.et_register_phone);\n et_register_verification = (EditText) findViewById(R.id.et_register_verification);\n\n }", "title": "" }, { "docid": "a4ea4d8d34f252d1067cbe3fa4163348", "score": "0.59526473", "text": "@Override\n public void getViews() {\n mToolBar = (Toolbar) findViewById(R.id.toolbar);\n// mShareBtn = (ImageView) mToolBar.findViewById(R.id.iv_share);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n mTabLayout = (PagerSlidingTabStrip) findViewById(R.id.tabs);\n mViewPager = (ViewPager) findViewById(R.id.pager);\n\n mMenuBtn = (ImageView) findViewById(R.id.iv_menu);\n mCollectionLayout = (RelativeLayout) findViewById(R.id.rl_my_collection);\n mFeedbackLayout = (RelativeLayout) findViewById(R.id.rl_feedback);\n mClearCacheLayout = (RelativeLayout) findViewById(R.id.rl_clear_cache);\n rl_map = (RelativeLayout) findViewById(R.id.rl_map);\n rl_favourable = (RelativeLayout) findViewById(R.id.rl_favourable);\n size = (TextView)findViewById(R.id.size);\n version_code = (TextView)findViewById(R.id.version_code);\n mHelpLayout = (RelativeLayout) findViewById(R.id.rl_help);\n mCheckUpLayout = (RelativeLayout) findViewById(R.id.rl_checkup);\n recommend_la = (RelativeLayout) findViewById(R.id.recommend_la);\n logo_la = (RelativeLayout) findViewById(R.id.logo_la);\n la = (RelativeLayout) findViewById(R.id.la);\n mParentLayout = (CoordinatorLayout) findViewById(R.id.parent_layout);\n mCategoryNameLabel = (TextView) findViewById(R.id.tv_category_name);\n\n// mShadeLayout = (RelativeLayout) findViewById(R.id.shade);\n mShadeViewPager = (ViewPager) findViewById(R.id.pager_shade);\n mShadeTabContainer = (PagerSlidingTabStrip) findViewById(R.id.tabs_shade);\n }", "title": "" }, { "docid": "957e8f02162fc230cd34b6543dcdb0b9", "score": "0.59482837", "text": "private void InitializeViews() {\n //mNavigationView = (NavigationView) findViewById(R.id.menuDrawer);\n //mNavigationView.inflateMenu(R.menu.navigation_items);\n //mNavigationView.bringToFront();\n\n mDrawer = (DrawerLayout) findViewById(R.id.overviewLayout);\n mDrawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN); //Always keep side navigation displayed\n mGridView = (GridView) findViewById(R.id.gridView);\n\n //Navigation panel views\n mTvTitle = (TextView) findViewById(R.id.navPanelTitle);\n mTvDuration = (TextView) findViewById(R.id.navPanelDuration);\n mTvGenre = (TextView) findViewById(R.id.navPanelGenre);\n mTvRating = (TextView) findViewById(R.id.navPanelRating);\n mTvPrice = (TextView) findViewById(R.id.navPanelPrice);\n }", "title": "" }, { "docid": "1d25974f34dbc4a0c8ade4150be3e49c", "score": "0.59478056", "text": "public View getActiveView();", "title": "" }, { "docid": "10449198009929fe7772ffd0035dfaa6", "score": "0.593712", "text": "private void initializeViews() {\n mToolbar = findViewById(R.id.view_profile_toolbar);\n mProfileImageView = findViewById(R.id.view_profile_circleImage);\n mUsernameTextView = findViewById(R.id.view_profile_username_textView);\n mAboutTextView = findViewById(R.id.view_profile_about_textView);\n mWorkTextView = findViewById(R.id.view_profile_work_textView);\n mAddressTextView = findViewById(R.id.view_profile_address_textView);\n\n mRequestButton = findViewById(R.id.view_profile_request_button);\n mCancelButton = findViewById(R.id.view_profile_cancel_button);\n }", "title": "" }, { "docid": "283d8828fe9117eda37607e132c2c6d1", "score": "0.59050983", "text": "private void initViews(Context context) {\n View view = inflate(getContext(), R.layout.qr_code_reader_view, null);\n addView(view);\n findViews(view);\n setClickListners();\n extractQRInstance = new ExtractQRRedirectUrl(this);\n animUtil = new QRCodeAnimUtil();\n }", "title": "" }, { "docid": "91e69fc8c90e5922924aab0723a55fd3", "score": "0.590231", "text": "private void initViews(View view) {\n rvFriends = (RecyclerView) view.findViewById(R.id.rv_friends);\n floatingCreateGroup=view.findViewById(R.id.create_group);\n }", "title": "" }, { "docid": "c62de2765034305da1ab4e8c8b722428", "score": "0.5898106", "text": "private void setUpView() {\n }", "title": "" }, { "docid": "c1ae917fd2b0ac5149d7e86e89b614f8", "score": "0.58973706", "text": "private void initViews(View view)\n {\n //step 3.2: initialising the UI elements\n edtTxtMinutes = view.findViewById(R.id.edtTxtMinutes);\n spinner = view.findViewById(R.id.spinnerDays);\n\n btnDismiss = view.findViewById(R.id.btnDismiss);\n btnAdd = view.findViewById(R.id.btnAdd);\n\n txtName = view.findViewById(R.id.txtName);\n }", "title": "" }, { "docid": "bd1d792c32749c7eec5b997287a9044e", "score": "0.58927464", "text": "public void inflateContentView() {\n this.f19596a = (TextView) findViewById(C5961R.C5963id.ysf_tv_bot_list_title);\n this.f19597b = (ListView) findViewById(C5961R.C5963id.ysf_lv_bot_list);\n this.f19598c = findViewById(C5961R.C5963id.ysf_bot_footer_layout);\n this.f19599d = (TextView) findViewById(C5961R.C5963id.ysf_bot_footer_text);\n this.f19600e = new C6288a(0);\n }", "title": "" }, { "docid": "8493294e38dfdec9821b90c2b09f50fe", "score": "0.5888938", "text": "public void declareView() {\n _viewPager = (ViewPager) findViewById(R.id.pager);\n llDots = (LinearLayout) findViewById(R.id.llDots);\n }", "title": "" }, { "docid": "426f693a287e8e1e9f89515470849f68", "score": "0.58814996", "text": "protected UISWTView[] getPluginViews() {\r\n \tItem[] items;\r\n\r\n\t\tif (folder instanceof CTabFolder)\r\n\t\t\titems = ((CTabFolder) folder).getItems();\r\n\t\telse if (folder instanceof TabFolder)\r\n\t\t\titems = ((TabFolder) folder).getItems();\r\n\t\telse\r\n\t\t\treturn new UISWTView[0];\r\n\r\n\t\tArrayList views = new ArrayList();\r\n\t\t\r\n\t\tfor (int i = 0; i < items.length; i++) {\r\n\t\t\tIView view = Tab.getView(items[i]);\r\n\t\t\tif (view instanceof UISWTViewImpl) {\r\n\t\t\t\tviews.add(view);\r\n\t\t\t}\r\n\t\t} // for\r\n\t\t\r\n\t\treturn (UISWTView[])views.toArray(new UISWTView[0]);\r\n }", "title": "" }, { "docid": "926c496e2ab702876356ebaafdb9169e", "score": "0.58795184", "text": "private void instanciateObjects(View view){\n\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\n\n // use this setting to improve performance if you know that changes\n // in content do not change the layout size of the RecyclerView\n mRecyclerView.setHasFixedSize(true);\n\n mDataset = new ArrayList<String>();\n\n mAdapter = new AdapterPlanes(mDataset, getContext());\n mRecyclerView.setAdapter(mAdapter);\n mSwipeRefreshLayout=view.findViewById(R.id.swipeRefreshLayout);\n mSwipeRefreshLayout.setOnRefreshListener(PlanesFrag.this);\n\n // use a linear layout manager\n mLayoutManager = new LinearLayoutManager(getActivity());\n mRecyclerView.setLayoutManager(mLayoutManager);\n\n labelNoHayPlanes = view.findViewById(R.id.planes_label_nohay);\n }", "title": "" }, { "docid": "7143ed8219a94984c39dd2702256ed58", "score": "0.58762395", "text": "public ArrayList<View> getViews()\n {\n return views;\n }", "title": "" }, { "docid": "6eab18d28f0fac7b2b92537cdad8c141", "score": "0.58753383", "text": "private void initInstances(View rootView) {\n\n lvUnit = (ListView) rootView.findViewById(R.id.lvUnit);\n btn_add_unit = (android.widget.Button) rootView.findViewById(R.id.btn_add_unit);\n btn_add_unit.setOnClickListener(this);\n lvaddunit = (ListView)rootView.findViewById(R.id.lvaddunit);\n edit_search = (EditText) rootView.findViewById(R.id.edit_search);\n searchUnit = (SearchView) rootView.findViewById(R.id.searchUnit);\n\n btn_search = (Button)rootView.findViewById(R.id.btn_search);\n\n\n }", "title": "" }, { "docid": "f57c89881dc553dad0f162f82b966298", "score": "0.58729327", "text": "private void setupViews() {\n\t\tspnSize = (Spinner) findViewById(R.id.spnSize);\n\t\tspnColor = (Spinner) findViewById(R.id.spnColor);\n\t\tspnType = (Spinner) findViewById(R.id.spnType);\n\t\tetSiteFilter = (EditText) findViewById(R.id.etSiteFilter);\n\t}", "title": "" }, { "docid": "a0f4a5d7213d7713f90d5a5a7a6a48a6", "score": "0.58649164", "text": "public void scrapActiveViews() {\n final int count=mActiveViews.length;\n SparseArray<View> scrapViews=mCurrentScrapViews;\n for (int i=count-1;i>=0;i--){\n View view=mActiveViews[i];\n if (view!=null){\n int scrapType=mActiveViewTypes[i];\n mActiveViews[i]=null;\n mActiveViewTypes[i]=-1;\n if (shouldRecycleViewType(scrapType)){\n continue;\n }\n if (mViewTypeCount>1){\n scrapViews=this.mScrapViews[scrapType];\n }\n scrapViews.put(i,view);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n view.setAccessibilityDelegate(null);\n }\n }\n }\n pruneScrapViews();\n }", "title": "" }, { "docid": "6b4576f77a221db997204f04f911200c", "score": "0.58587694", "text": "private void initViews() {\n likesRV = getActivity().findViewById(R.id.fml_likes_rv);\n }", "title": "" }, { "docid": "4979b7def0c98a051385b161081fbb4b", "score": "0.58569086", "text": "@Override\n\tprotected void createViewsAndObject() {\n\t\tmTvewTemp = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_current_temp);\n\t\tmTvewText = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_current_text);\n\t\tmTvewHighTemp = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_high_temp);\n\t\tmTvewLowTemp = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_low_temp);\n\t\tmIvewWeather = (ImageView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_ivew_weather);\n\t\t// detail information view\n\t\tmTvewSunrise = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_sunrise);\n\t\tmTvewSunset = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_sunset);\n\t\tmTvewHumidity = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_humidity);\n\t\tmTvewPressure = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_pressure);\n\t\tmTvewPubDate = (TextView) mRootView\n\t\t\t\t.findViewById(R.id.temperature_tvew_pubdate);\n\t\t// create instance\n\t\tmDb = new DBService(getActivity());\n\t}", "title": "" } ]
6c1b70d1ca905525d22ee581b315b7a2
Gets a readonly view of the custom error HTTP status code to exception type mapping.
[ { "docid": "c73d86bf546ea733587048603c7b0116", "score": "0.66655254", "text": "public Map<Integer, String> getHttpStatusCodeToExceptionTypeMapping() {\n return httpStatusCodeToExceptionTypeMapping == null\n ? null : Collections.unmodifiableMap(httpStatusCodeToExceptionTypeMapping);\n }", "title": "" } ]
[ { "docid": "59317a8920540a169741a182e300dbdf", "score": "0.6802127", "text": "public Map<Integer, Class<? extends StatusCodeException>> getStatusCodeExceptionMap()\n\t{\n\t\treturn statusCodeExceptionMap;\n\t}", "title": "" }, { "docid": "7dcce358bba80316fbeeb4d09dd0ee0d", "score": "0.6376708", "text": "@ExceptionHandler(CustomException.class)\n public ResponseEntity<?> handleCustomException(CustomException exception) {\n ErrorDetails errorDetails = new ErrorDetails(exception.getErrorCode(), exception.getMessage(), Instant.now());\n //Return error details and map http status from exception\n return new ResponseEntity<>(errorDetails, exception.getHttpStatus());\n }", "title": "" }, { "docid": "29c6d90c2a574687cda359b9a0c6b735", "score": "0.6221846", "text": "HTTPException(String message,int code){\n this.message = message;\n this.code = code;\n System.out.println(message);\n defaultResponse = NotFoundResponse.class;\n }", "title": "" }, { "docid": "c3694a18d1ac5720aaf7d58953a2ad54", "score": "0.613271", "text": "public CustomNotFoundException() {\n super( Response.Status.NOT_FOUND);\n }", "title": "" }, { "docid": "5c18408da96e78d4b81607dfdc447c84", "score": "0.6010649", "text": "int getErrorCode();", "title": "" }, { "docid": "8785be3ab3b366d298049382ccec129a", "score": "0.59905446", "text": "<T> Effect<T> error(String description, StatusCode.ErrorCode httpErrorCode);", "title": "" }, { "docid": "041c9a386198749813660d067645dab6", "score": "0.5966148", "text": "public abstract int getStatusCode();", "title": "" }, { "docid": "041c9a386198749813660d067645dab6", "score": "0.5966148", "text": "public abstract int getStatusCode();", "title": "" }, { "docid": "9fb20b305ba346aab96d9ad044c8038e", "score": "0.59518313", "text": "String getErrorCode();", "title": "" }, { "docid": "9fb20b305ba346aab96d9ad044c8038e", "score": "0.59518313", "text": "String getErrorCode();", "title": "" }, { "docid": "9fb20b305ba346aab96d9ad044c8038e", "score": "0.59518313", "text": "String getErrorCode();", "title": "" }, { "docid": "9fb20b305ba346aab96d9ad044c8038e", "score": "0.59518313", "text": "String getErrorCode();", "title": "" }, { "docid": "76577d7bd4a78e8ee8ab745afd8d1e08", "score": "0.59013903", "text": "@Ignore // We now use ApiProblemExceptionMapper!\n @Test\n public void getExceptionMapped() {\n Response r = target(\"/myrest/getExceptionMapped\").request().get(Response.class);\n assertEquals(INTERNAL_SERVER_ERROR.getStatusCode(), r.getStatus());\n assertEquals(APPLICATION_API_PROBLEM_JSON_TYPE, r.getMediaType());\n ApiProblem ap = r.readEntity(ApiProblem.class);\n assertEquals(\"urn:java.lang.IllegalStateException\", ap.getProblemType());\n assertEquals(\"Wrong state!\", ap.getTitle());\n }", "title": "" }, { "docid": "b736dd61ce8a9172ee25ba9c4c0009ab", "score": "0.5889658", "text": "public <T> T error(int statusCode, Class<T> type,Exception exception) throws InstantiationException, IllegalAccessException {\n return type.newInstance();\r\n }", "title": "" }, { "docid": "e07a1dd52897f87117235dc890d2a671", "score": "0.58851093", "text": "@Ignore // We now use ApiProblemExceptionMapper!\n @Test\n public void getExceptionUnmapped() {\n Response r = target(\"/myrest/getExceptionMapped\").request().get(Response.class);\n // header\n assertEquals(INTERNAL_SERVER_ERROR.getStatusCode(), r.getStatus());\n assertEquals(\"Wrong state!\", r.getStatusInfo().getReasonPhrase());\n assertNull(r.getMediaType());\n assertEquals(0, r.getLength());\n }", "title": "" }, { "docid": "c19c03a782f195e5abe79e9f1790755d", "score": "0.5825442", "text": "public int getErrorCode() {\n return status;\n }", "title": "" }, { "docid": "f57d9ea1cb0da250298e4191bf850556", "score": "0.5745244", "text": "private String getExceptionEstatus(int errorCode) {\n\t\tString estatus = null;\n\t\tswitch (errorCode) {\n\t\t\tcase -100:\n\t\t\t\testatus = NO_CONTACT_INFO;\n\t\t\t\tbreak;\n\t\t\tcase -200:\n\t\t\t\testatus = NOT_SUPPORTED_CHANNEL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\treturn estatus;\n\t}", "title": "" }, { "docid": "64a30524f663ec9f1fca2975aea5afe5", "score": "0.57251865", "text": "byte getErrorCode();", "title": "" }, { "docid": "9746df7fc04240fb48723fb5b0656fc8", "score": "0.5724665", "text": "StatusCode createStatusCode();", "title": "" }, { "docid": "1bef18b47d24627050fafdf51b3df03b", "score": "0.5708096", "text": "public String getExceptionCode()\r\n {\r\n return exceptionCode;\r\n }", "title": "" }, { "docid": "a085fc445039f6d3e9d1d86e4900b5d2", "score": "0.56949943", "text": "public static ResponseEntity<ApiResponse> errorResponse(CPException ex, HttpStatus httpStatus) {\n\t\t\n\t\tErrorStatus errorStatus = ex.getStatus();\n\t\tString message;\n\t\tString errorCode = null;\n\t\t\n\t\t//If there is field validation error else exception is thrown\n\t\tif(ex.getFieldError() != null) {\n\t\t\t\n\t\t\terrorStatus = getErrorStatus(ex.getFieldError().getDefaultMessage());\n\t\t\t\n\t\t\t//If error status is null then return default error message provided by validation framework\n\t\t\tif(errorStatus == null) {\n\t\t\t\tmessage = ex.getFieldError().getDefaultMessage();\n\t\t\t} else {\n\t\t\t\tmessage = PropertyMessageReader.getMessage(errorStatus.getErrorKey(), ex.getData());\n\t\t\t\terrorCode = errorStatus.getErrorCode();\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tmessage = PropertyMessageReader.getMessage(errorStatus.getErrorKey(), ex.getData());\n\t\t\terrorCode = errorStatus.getErrorCode();\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<ApiResponse>(\n\t\t\tnew ApiResponse(\n\t\t\t\t\tERROR_STATUS,\n\t\t\t\t\terrorCode, \n\t\t\t\t\tmessage, \n\t\t\t\t\tnull),\n\t\t\thttpStatus);\n\t}", "title": "" }, { "docid": "c494d219a6d5c0f1f3c57ccf0dff5de2", "score": "0.56667525", "text": "Type getExceptionType();", "title": "" }, { "docid": "eeee4f65a8dff99afa639819ce85221c", "score": "0.56650716", "text": "public Integer getErrorCode() {\n return this.errorCode;\n }", "title": "" }, { "docid": "9d109ffaf927c34f70a479369212872c", "score": "0.563673", "text": "private HttpStatus getHttpStatus(ExceptionKey exceptionKey) {\n switch (exceptionKey) {\n case NOT_FOUND:\n return HttpStatus.UNPROCESSABLE_ENTITY;\n case INVALID_REQUEST:\n return HttpStatus.BAD_REQUEST;\n case ENTITY_CONFLICT:\n return HttpStatus.CONFLICT;\n case INVALID_PROPERTY:\n return HttpStatus.UNPROCESSABLE_ENTITY;\n case RESOURCE_TYPE_NOT_MATCH:\n return HttpStatus.UNPROCESSABLE_ENTITY;\n case AUTH_METHOD_NOT_SUPPORTED:\n return HttpStatus.UNPROCESSABLE_ENTITY;\n case NOT_AUTHORIZED:\n return HttpStatus.FORBIDDEN;\n case NO_ACCESS:\n return HttpStatus.FORBIDDEN;\n case NOT_CAPABLE_GENERATE_SECRET_KEY:\n return HttpStatus.PRECONDITION_FAILED;\n case INVALID_STATUS_TRANSITION:\n return HttpStatus.NOT_ACCEPTABLE;\n default:\n return HttpStatus.INTERNAL_SERVER_ERROR;\n }\n }", "title": "" }, { "docid": "65c075ba299633ee76f027e7acd2f10c", "score": "0.56348747", "text": "void setErrorStatusMap(Map<Class<? extends ResultType>, HttpStatus> m);", "title": "" }, { "docid": "7290d98134e888715546084bb6258ec8", "score": "0.56106395", "text": "com.google.protobuf.Any getError(int index);", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.56058973", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.56058973", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.56058973", "text": "int getStatusCode();", "title": "" }, { "docid": "7c2642f8cda97b497022b453614c51e0", "score": "0.5603827", "text": "ResponseCode getCode();", "title": "" }, { "docid": "6e509cb948b7e1b23275dc93e02d3ec0", "score": "0.5585993", "text": "public String getErrorCode()\n {\n return code;\n }", "title": "" }, { "docid": "6c8cc36001752c88f8385a385bbe80f7", "score": "0.55755717", "text": "private static RestApiException restApiException() {\n RestApiException restApiException = new RestApiException();\n restApiException.setApplication(\"test\");\n restApiException.setClassName(ServiceException.class.getName());\n restApiException.setErrorCode(\"TEST:4711\");\n restApiException.setErrorCodeInherited(false);\n restApiException.setId(UUID.randomUUID().toString());\n restApiException.setMessage(\"Something failed.\");\n restApiException.setPath(\"/api/something\");\n restApiException.setTimestamp(OffsetDateTime.now(ZoneId.of(\"UTC\")));\n return restApiException;\n }", "title": "" }, { "docid": "aca78393a78f9ca68b5496dcfdca4aa1", "score": "0.5551735", "text": "public static HttpStatusCode valueOf(int integer)\n\t{\n\t\tfor (HttpStatusCode c : HttpStatusCode.values())\n\t\t\tif (c.getCode() == integer)\n\t\t\t\treturn c;\n\t\treturn UNKNOWN_ERROR;\n\t}", "title": "" }, { "docid": "b0174d1867d1f6f835e9ce285bb93750", "score": "0.5542289", "text": "public interface IErrorCode {\n\n long getCode();\n\n String getMessage();\n}", "title": "" }, { "docid": "7b8345870597f739907078ed5cac85e3", "score": "0.553103", "text": "@ExceptionHandler\n @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n @ResponseBody\n public ErrorElementType handleException(final RuntimeException ex) {\n LOGGER.error(\"Error occured during request.\", ex);\n ErrorElementType element = new ErrorElementType();\n element.setErrorcode(BigInteger.valueOf(HttpStatus.INTERNAL_SERVER_ERROR.value()));\n element.setMessage(\"Application error. Send mail to datahjelp@imr.no.\");\n return element;\n }", "title": "" }, { "docid": "b972f585f17cfb2767d25498f678692b", "score": "0.55168873", "text": "public StatusCodeException determineException(final int statusCode, final Object errorEntity)\n\t{\n\t\tStatusCodeException exception;\n\t\t\n\t\tswitch (statusCode)\n\t\t{\n\t\t\tcase 401:\n\t\t\t\texception = new UnauthorizedException();\n\t\t\t\tbreak;\n\t\t\tcase 403:\n\t\t\t\texception = new ForbiddenException();\n\t\t\t\tbreak;\n\t\t\tcase 400:\n\t\t\t\texception = new BadRequestException();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\texception = new StatusCodeException(statusCode);\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\texception.setErrorEntity(errorEntity);\n\t\t\n\t\treturn exception;\n\t}", "title": "" }, { "docid": "83a02344ef4f2834e557429379f53704", "score": "0.5513299", "text": "public CustomNotFoundException(String message) {\n super( Response.status( Response.Status.NOT_FOUND).\n entity(message).type(\"text/plain\").build());\n }", "title": "" }, { "docid": "1b81dc8a612fec1b425471889db1cc3b", "score": "0.55086726", "text": "@RequestMapping(value = ERROR_PATH)\n @ResponseBody\n public ResponseEntity<Map<String, Object>> error(HttpServletRequest request) {\n Map<String, Object> body = getErrorAttributes(request, getTraceParameter(request));\n HttpStatus status = getStatus(request);\n return new ResponseEntity<Map<String, Object>>(body, status);\n }", "title": "" }, { "docid": "c8bfaf3137bda7f190633f3ee6b9b8bc", "score": "0.5507394", "text": "public String getDefaultHttpExceptionType() {\n return defaultHttpExceptionType;\n }", "title": "" }, { "docid": "6a19c7e1ca3d363d3268432b03f4311c", "score": "0.5503422", "text": "@RequestMapping(\"/error-{code}.html\")\n\tpublic String redirectError(@PathVariable(\"code\") String code, ModelMap model) {\n\t\tint codeInt;\n\t\ttry {\n\t\t\tcodeInt = Integer.parseInt(code);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn \"error-404\";\n\t\t}\n\t\tif (codeInt == 403 || codeInt == 404 || codeInt == 500 || codeInt == 400) return \"error-\" + codeInt;\n\t\treturn \"error-404\";\n\t}", "title": "" }, { "docid": "af2ae8eb294269401decd3d021824b6e", "score": "0.55008686", "text": "public interface IErrorCode{\n int getCode();\n String getMessage();\n}", "title": "" }, { "docid": "c7a2ae30d3625775d703e256846240d9", "score": "0.54958516", "text": "public int getErrorCode() {\n return errorCode;\n }", "title": "" }, { "docid": "567ea871e630759463e7dafdc3bd444c", "score": "0.5485871", "text": "@Override\r\n public ModelAndView resolveException(final HttpServletRequest req,\r\n final HttpServletResponse res, final Object handler, final Exception ex) {\r\n ModelAndView mv = null;\r\n mv = new ModelAndView(\"/common/error/error.jsp\");\r\n\r\n logger.error(ex.getMessage(), ex);\r\n\r\n if (ex instanceof QARuntimeException) {\r\n final QARuntimeException ere = (QARuntimeException) ex;\r\n mv.addObject(\"errorCode\", ere.getErrorCode());\r\n } else {\r\n if (ex instanceof NullPointerException) {\r\n mv.addObject(\"errorCode\", \"0001\");\r\n } else if (ex instanceof ArrayIndexOutOfBoundsException) {\r\n mv.addObject(\"errorCode\", \"0006\");\r\n } else if (ex instanceof IndexOutOfBoundsException) {\r\n mv.addObject(\"errorCode\", \"0002\");\r\n } else if (ex instanceof UncategorizedSQLException) {\r\n mv.addObject(\"errorCode\", \"0004\");\r\n } else if (ex instanceof SQLException) {\r\n mv.addObject(\"errorCode\", \"0005\");\r\n } else {\r\n mv.addObject(\"errorCode\", \"0000\");\r\n }\r\n }\r\n\r\n return mv;\r\n }", "title": "" }, { "docid": "f76509dc337421c5aaf77c06cf3328e6", "score": "0.54830796", "text": "public int getErrorCode() {\r\n return errorCode;\r\n }", "title": "" }, { "docid": "9df1fa48d7df4d9ef1a388868c78eaa3", "score": "0.546864", "text": "<T> Effect<T> error(String description, Status.Code grpcErrorCode);", "title": "" }, { "docid": "5434dadf0c5113680d933bb53ce607a8", "score": "0.5457185", "text": "@Override\n public int getStatusCode() {\n return code;\n }", "title": "" }, { "docid": "4e19ef472c0270b3285ae41af49289ef", "score": "0.54569155", "text": "default int getStatusCode() {\n return getStatus().value();\n }", "title": "" }, { "docid": "d76e5d83981fae051dcb7d0c5f61b0af", "score": "0.5447598", "text": "public interface ICustomizeErrorCode {\n String getMessage();\n}", "title": "" }, { "docid": "a2e7c721e36c8df23ccdd30199dd1867", "score": "0.5439183", "text": "public ErrorCode getErrorCode()\r\n {\r\n return ErrorCode.fromInteger(m_errorCodeId);\r\n }", "title": "" }, { "docid": "1d1c3af645fad35e96763a6cac06a170", "score": "0.54376614", "text": "private HttpResponse errorResponse(HttpStatusCode statusCode) {\n\t\tfinal HttpResponse response = genericResponse(statusCode);\n\t\t/* Create a simple html page that clearly displays the error message */\n\t\tfinal String htmlBody = \"<html><body>\" + statusCode.getMessage() + \"</body></html>\";\n\t\tresponse.setContentLength(htmlBody.getBytes().length);\n\t\tresponse.setContentType(ContentType.HTML);\n\t\tresponse.setBody(htmlBody.getBytes());\n\t\treturn response;\n\t}", "title": "" }, { "docid": "8a18d83b29c24c585d5dc65aa19c13e0", "score": "0.54349065", "text": "public int getErrorCode() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "166bd3e5c42aac2c4b3bbd641e08a658", "score": "0.5411121", "text": "private static String errorResponse(int errorStatusCode) {\n \t\tswitch(errorStatusCode) {\n \t\t\tcase 403:\n \t\t\t\treturn \"403 Forbidden\";\n \t\t\tcase 404:\n \t\t\t\treturn \"404 Not Found\";\n \t\t\tdefault:\n \t\t\t\treturn \"400 Bad Request\";\t\t\t\t\n \t\t}\t\t\t\n \t}", "title": "" }, { "docid": "19030f33112c48ad05f2b182cb30a7b5", "score": "0.54108256", "text": "public ErrorCodeEnum getErrorCodeEnum() {\n\t\treturn errorCodeEnum;\n\t}", "title": "" }, { "docid": "f7e2f2dc3c6535c7bf388da4628860d0", "score": "0.5405048", "text": "public int getErrorCode() {\n return errorCode_;\n }", "title": "" }, { "docid": "4ece82a27cf0c8f2c68f85a111081547", "score": "0.5395867", "text": "@Override\n protected ZoweApiRestException createException(JsonObject jsonResponse, int statusCode) {\n return new ZoweApiRestException(org.springframework.http.HttpStatus.resolve(statusCode),\n jsonResponse.toString());\n }", "title": "" }, { "docid": "a11bf9a01a7e03a5d7469088eeb2f527", "score": "0.5394558", "text": "public int getExceptionCode() {\n return m_ExceptionCode;\n }", "title": "" }, { "docid": "fc574b95933654ef1e4f4eb743b838eb", "score": "0.5392922", "text": "public @ValidationFailureType int getErrorCode() {\n return mErrorCode;\n }", "title": "" }, { "docid": "dc400f286a56003d3aca79e4dafb1d09", "score": "0.53750736", "text": "public int getErrorCode() {\n return this.mErrorCode;\n }", "title": "" }, { "docid": "9132647d12f942f9aa1835d139c553d2", "score": "0.5372825", "text": "public java.lang.Integer getHttpStatusCode() {\n return httpStatusCode;\n }", "title": "" }, { "docid": "4b295771b7dca4171062fd92ce80be89", "score": "0.53660065", "text": "public com.google.protobuf.Any getError(int index) {\n return error_.get(index);\n }", "title": "" }, { "docid": "505160b77b9860acb870f66a9f9c6d49", "score": "0.5363264", "text": "@RequestMapping(produces = \"application/json\")\n @ExceptionHandler(Exception.class)\n @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)\n public @ResponseBody Map<String, Object> handleOtherException(Exception ex) {\n log.error(\"Internal server error:\", ex);\n return XpertUtil.mapOf(\"status\", HttpStatus.INTERNAL_SERVER_ERROR.value(),\n \"exception\", ex.getClass().getSimpleName(), \"message\", ex.getMessage());\n }", "title": "" }, { "docid": "b7d808e99cda70130366b68e82edec83", "score": "0.5354593", "text": "public int getStatusCode() {\r\n return _code;\r\n }", "title": "" }, { "docid": "3533e7ca01244cd1f0a630e38c24bfb6", "score": "0.5350058", "text": "public int getErrorCode()\n {\n return errorCode;\n }", "title": "" }, { "docid": "cebf7e02b9ff7a7240898b64533dc9bb", "score": "0.5348142", "text": "private void setErrorStatusClass() {\n statusClass = STATUS_CLASS_ERROR;\n }", "title": "" }, { "docid": "f76b2ad8298ac81556940848a1981798", "score": "0.5345142", "text": "public int getErrorCode() {\n return errorCode_;\n }", "title": "" }, { "docid": "1e920bd80fc69605a2923188b878ee86", "score": "0.5343729", "text": "public java.lang.Integer getHttpStatusCode() {\n return httpStatusCode;\n }", "title": "" }, { "docid": "97a7e7746ebfe4b171d5277a0c768e85", "score": "0.5337875", "text": "@JsonGetter(\"httpStatusCode\")\r\n public int getHttpStatusCode ( ) { \r\n return this.httpStatusCode;\r\n }", "title": "" }, { "docid": "f12ceb422afe55df42eb5a288973a182", "score": "0.53366214", "text": "public String getErrorCode() {\n return this.errorCode;\n }", "title": "" }, { "docid": "9d9465001d554d204fb8898735488b37", "score": "0.53360546", "text": "com.google.protobuf.AnyOrBuilder getErrorOrBuilder(\n int index);", "title": "" }, { "docid": "72afa51c9eb4d4779080c26d9ac90dab", "score": "0.5328571", "text": "public int getStatusCode() {\n return this.code;\n }", "title": "" }, { "docid": "77732baa4f3b211b799cc0a68d359daf", "score": "0.53264505", "text": "com.google.rpc.StatusOrBuilder getErrorOrBuilder();", "title": "" }, { "docid": "454b13452d1517fc42960c69c90c2349", "score": "0.53203773", "text": "public static HttpStatus code2HttpStatus(Integer code) {\n HttpStatus status = HttpStatus.NOT_FOUND;\n for (HttpStatus httpStatus : HttpStatus.values()) {\n boolean b = code == httpStatus.value();\n if (b) {\n return httpStatus;\n }\n }\n return status;\n }", "title": "" }, { "docid": "eeaec64d8e14923867b60c76e8259f46", "score": "0.5320026", "text": "HttpStatusType getStatus();", "title": "" }, { "docid": "adebbbd065069a9608af4166292cdffe", "score": "0.530678", "text": "public String getErrorType() {\n return errorType;\n }", "title": "" }, { "docid": "aecbdc3711949dec273311d0b079f198", "score": "0.5304261", "text": "public int getErrorCode() {\n return error.getErrorCode();\n }", "title": "" }, { "docid": "197b98f57b906c1933023f95353e787b", "score": "0.5301023", "text": "@Override\n\tpublic ModelAndView resolveException(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex) {\n\t\t\n\t\tItemsCustomException CustomException=null;\n\t\t//解析异常\n\t\t//该异常是自定义异常,直接取出异常信息,在错误页面显示\n\t\t//不是自定义的异常,则构造一个自定义的异常类型,在错误页面显示\n\t\tif (ex instanceof ItemsCustomException) {\n\t\t\tCustomException = (ItemsCustomException) ex;\n\t\t}else {\n\t\t\tCustomException=new ItemsCustomException(\"unknown error\");\n\t\t}\n\t\t\n\t\tString messageString=CustomException.getMessage();\n\t\tModelAndView modelAndView=new ModelAndView();\n\t\tmodelAndView.addObject(\"errmessage\", messageString);\n\t\tmodelAndView.setViewName(\"error\");\n\t\t\n\t\treturn modelAndView;\n\t}", "title": "" }, { "docid": "3e2265051bff184d688d8df3637d3cf0", "score": "0.5294052", "text": "public void setErrorCode(StockTxErrors unmappedTxType) {\n\n\t}", "title": "" }, { "docid": "91f9ac1c9b15aabeff5ea10ac08ec81f", "score": "0.5284821", "text": "public ErrorCode getErrorCode() {\n return errorCode;\n }", "title": "" }, { "docid": "115c73c2407d3e6a28f4d3cc16ba656f", "score": "0.5283548", "text": "@ExceptionHandler(Exception.class)\n\tpublic ResponseEntity<?> uncheckedException(Exception exception){\n\t\tMap<String, Object> mapResponse = new HashMap<String, Object>();\n\t\tmapResponse.put(\"statusMessage\", EmployeeConstant.UNEXPECTED_ERROR.getMessage());\n\t\tmapResponse.put(\"statusCode\", EmployeeConstant.UNEXPECTED_ERROR.getCode());\n\t\t\n\t\tlogger.error(\"uncheckedException\", exception);\n\t\treturn new ResponseEntity<>(mapResponse, HttpStatus.INTERNAL_SERVER_ERROR);\n\t}", "title": "" }, { "docid": "d7bf4430b61038daaf255d941272684e", "score": "0.5278034", "text": "public static LdcpResponse ERROR() {\n ResponseMessage responseMessage = new ResponseMessage(ResponseMessage.ResponseCode.ERROR);\n return new LdcpResponse(responseMessage);\n }", "title": "" }, { "docid": "0de1c01235fae2051425cb1717b74e21", "score": "0.52695334", "text": "@JsonIgnore\n public Integer getStatusCode() {\n if (this.status instanceof HttpStatus) {\n return ((HttpStatus) this.status).value();\n }\n else {\n return Integer.valueOf(this.status.toString());\n }\n }", "title": "" }, { "docid": "5b28f7336e01857fb9081225dce7dbfe", "score": "0.52609074", "text": "public interface ExceptionMapper {\n /*\n * This method provides the root cause of the Throwable thrown by the application,\n * which can be used to modify the response (Status code, response body etc).\n * If the response has been modified, then the method should return true, false otherwise.\n */\n boolean map(Throwable e, HttpServletResponse response) throws IOException;\n}", "title": "" }, { "docid": "70fe05eda56c9865d2c140ce226eed4d", "score": "0.52594346", "text": "public ServiceOperationParamDesc getErrorType();", "title": "" }, { "docid": "5f42fbf39ebc06b8551d94cfe5ba783b", "score": "0.5253693", "text": "public short getErrorCode() {\n\t\treturn code;\n\t}", "title": "" }, { "docid": "1dd70797dd197793f0a7130ec7022fb7", "score": "0.52534235", "text": "com.google.protobuf.ByteString\n getErrorCodeBytes();", "title": "" }, { "docid": "1dd70797dd197793f0a7130ec7022fb7", "score": "0.52534235", "text": "com.google.protobuf.ByteString\n getErrorCodeBytes();", "title": "" }, { "docid": "1dd70797dd197793f0a7130ec7022fb7", "score": "0.52534235", "text": "com.google.protobuf.ByteString\n getErrorCodeBytes();", "title": "" }, { "docid": "1dd70797dd197793f0a7130ec7022fb7", "score": "0.52534235", "text": "com.google.protobuf.ByteString\n getErrorCodeBytes();", "title": "" }, { "docid": "0a8b5ec835ea4ea45ad5916ec2477e72", "score": "0.52501863", "text": "@Override\n protected ElasticsearchStatusException parseToError(HttpActionContext<IndicesExistsRequest, IndicesExistsResponse> httpActionContext, String content) {\n return new ElasticsearchStatusException(\"not found\", RestStatus.NOT_FOUND);\n }", "title": "" }, { "docid": "9f5051199fb75405aeff8009c4e66748", "score": "0.5245518", "text": "public V withErrorCode(String code) throws IllegalStateException {\n\t\ttry {\n\t\t\tPropertyValidator<T> validator = validators.getLast();\n\t\t\tvalidator.setErrorCode(code);\n\n\t\t\treturn (V) this;\n\t\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\tthrow new IllegalStateException(\"You can't specify custom error code without first specifying a PropertyValidator!\");\n\t\t}\n\t}", "title": "" }, { "docid": "b13e68a56db12ff58013d477e6ed4a58", "score": "0.52399397", "text": "protected abstract Enum<?> getErrorMessagePathPropertyKey();", "title": "" }, { "docid": "d7899f8371f7bfc23a4acdd02a1279e4", "score": "0.5232534", "text": "@Override\n public void onError(Throwable e) {\n if (e instanceof HttpException) {\n HttpException response = (HttpException) e;\n int code = response.code();\n }\n }", "title": "" }, { "docid": "6d3beabfb8c93cad78193528da18b399", "score": "0.52321947", "text": "public static ResponseEntity<String> generateError(HttpStatus status, String message) {\n return generate(\"error\", status, message);\n }", "title": "" }, { "docid": "dcb1b02a388b913d39736dceb5139192", "score": "0.5225321", "text": "public int getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}", "title": "" }, { "docid": "dcb1b02a388b913d39736dceb5139192", "score": "0.5225321", "text": "public int getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}", "title": "" }, { "docid": "dcb1b02a388b913d39736dceb5139192", "score": "0.5225321", "text": "public int getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}", "title": "" }, { "docid": "7c697f2f5e03d8db171b5f56fe9ff19a", "score": "0.5221636", "text": "@ExceptionHandler(value = Exception.class)\n public ResponseEntity<RestMessageDTO> handleExceptions(Exception ex) {\n String errorMessage = messageSource.getMessage(UNEXPECTED_ERROR, null, LocaleContextHolder.getLocale());\n LOGGER.log(Level.ALL, ex.toString(), ex);\n return new ResponseEntity<>(new RestMessageDTO(errorMessage), HttpStatus.INTERNAL_SERVER_ERROR);\n }", "title": "" }, { "docid": "f9a1f20bdb9ae75898d357812d416850", "score": "0.52211463", "text": "public abstract java.lang.Integer getCodigo_error();", "title": "" }, { "docid": "ef215e8aa18d58726d55d1ae2b6becd8", "score": "0.5218546", "text": "public static <T> Resource<T> m137531a(Exception exc) {\n return new Resource<>(Status.ERROR, null, exc);\n }", "title": "" }, { "docid": "3e532db94f1c752b5b90dcd7f63bf6e6", "score": "0.52166706", "text": "public String getErrorType() {\r\n\t\treturn errorType;\r\n\t}", "title": "" } ]
880396fc25c8a8b84018d9b67e5f6352
Created by wjt on 2018/6/17.
[ { "docid": "1936b84d4562ae5c3dd20cbfd1f04438", "score": "0.0", "text": "public interface ApplicationContext extends BeanFactory {\n\n}", "title": "" } ]
[ { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.64534336", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6331273", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6323427", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.6192558", "text": "Grensesnitt(){}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.6035024", "text": "User mo18615e();", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.58941543", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.58541834", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.5845785", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.5841397", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.5829945", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5797164", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5797164", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.57216775", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.56826293", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "434e4a5ff222046d0f614414fae44211", "score": "0.5671081", "text": "private Reflexion() {\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.56397694", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.56191266", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.5616122", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.5599704", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.55951124", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.55855525", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.55799884", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55613965", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5552145", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.55514544", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.55514544", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "edf377f03250c28c266b873c577d54a5", "score": "0.5547431", "text": "private VyhozeniVyjimky() {}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.55268395", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55218047", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.5519476", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.5502661", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.549297", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.5473903", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5470783", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5467395", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.54493797", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.544034", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.544034", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.544034", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8df2860821597c6966a39b685d85efbd", "score": "0.54380685", "text": "private FahrzeugVerwaltung() {\n\t}", "title": "" }, { "docid": "46923a895d39ec93033b2729c129cb5e", "score": "0.5436241", "text": "@Override\n\tpublic void init() {\n\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5431296", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5431296", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5431296", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5418839", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5418839", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5418839", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5418839", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.541417", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.5413823", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5404904", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.5395212", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.5380645", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53769606", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.537547", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.537547", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.53754276", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.53717005", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.5370676", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5362969", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5362969", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5353333", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5343671", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5343671", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5343671", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.53416145", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "1b2b14182c814ea12be48fa3ab499e9d", "score": "0.53388834", "text": "@Override\r\n\tprotected void initialize() {\r\n\t}", "title": "" }, { "docid": "5c3c2acd34655753ed5c66be62776bb2", "score": "0.5335309", "text": "@Override\n public void initialize() {\n\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.53303677", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.53303677", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.53246903", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.53246903", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.53031224", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "c8db52361360fd080039c29409b9588c", "score": "0.52966833", "text": "public final void mo71376b() {\n }", "title": "" }, { "docid": "a4a8b7469ea9ee5b218cdc6e6d1bfc4b", "score": "0.52900606", "text": "public Es1_1_13(){}", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.5281144", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "7920c09db3c9e00c50166ff7173e38da", "score": "0.5277824", "text": "@Override \n public boolean purelyLogic(){ return true ; }", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.527694", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.527694", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.527694", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d35a212b6a1fe33b7d2d465d6f220fc4", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tN=sc.nextInt();\r\n\t\tK=sc.nextInt();\r\n\t\tarr=new int[N];\r\n\t\tG=new ArrayList<ArrayList<Integer>>();\r\n\t\tfor(int i=0;i<N;i++)\r\n\t\t\tG.add(new ArrayList<Integer>());\r\n\t\tfor(int i=0;i<N;i++)\r\n\t\t\tarr[i]=sc.nextInt();\r\n\t\tfor(int i=0;i<N-1;i++) {\r\n\t\t\tfor(int j=i+1;j<N;j++) {\r\n\t\t\t\tif(arr[i]>arr[j]) {\r\n\t\t\t\t\tG.get(arr[i]-1).add(arr[j]-1);\r\n\t\t\t\t\tG.get(arr[j]-1).add(arr[i]-1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(check())\r\n\t\t\tSystem.out.println(\"YES\");\r\n\t\telse System.out.println(\"NO\");\r\n\t}", "title": "" } ]
[ { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.65706384", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64830863", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.63142073", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.6233861", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.62156105", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.61959624", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.6177264", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.609503", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.60708153", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.60667324", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.6050197", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.600875", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.599773", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5978821", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5975817", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935147", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.59062445", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5878679", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.58643967", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5853753", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5835419", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.5823172", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5779682", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.57708335", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1717024d52ad1ad5517c9f135ea71904", "score": "0.57634485", "text": "@Override\r\n\tprotected void initValue()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5756299", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5737521", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.57351506", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5717778", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57160354", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.57140064", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5712678", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.5709881", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.570341", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "9b197585ec90d98a2e41d154a1678e4a", "score": "0.57023877", "text": "@Override\n protected void refreshInit() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "a3060192856bd2663b96bd0ef31d99fd", "score": "0.56853366", "text": "@Override\n\t\t\t\tpublic void refresh() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c13ae19df69e3abfecf963fdcf9a29ee", "score": "0.568208", "text": "@Override\n\tpublic void c12() {\n\t\t\n\t}", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.5679023", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.5665557", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "8c203fbc4b35fbc9b64bf6b47d67d29a", "score": "0.56584716", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.56479424", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "4701bace660096d78c2bf92bfe4b6dd4", "score": "0.5643848", "text": "@Override\n\t\t\t\t\tpublic Sequence sequence() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.56376165", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.5629117", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.5621647", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.56150234", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" } ]
341bf24f6e8f3c817dc4d4ffacb15aa3
/parantez ici carpma ve bolmeler.onceki soldaki islem yapilir toplama ve cikarma yapilir. onceki soldaki
[ { "docid": "b1ed045215998de0e72794de405899aa", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tint i1 = 12;\n\t\tint i2 = 13;\n\t\tint i3 = 14;\n\t\tint i4 = 15;\n\t\t\n\t\tSystem.out.println(i1 + i2 * i3);//13*14=182 ve 12+182=194\n\t\tSystem.out.println(i1*i2 + i3*i4);//12*13=156 14*15=210...156+2100366\n\t\tSystem.out.println((i1+i2) /i4);//12+13=25....25/15=1.6\n\t\tSystem.out.println(i4 * (i2 + i1 / 3));//12/3=4...13+4= 17....15*17=255\n\t\t\n\n\t}", "title": "" } ]
[ { "docid": "ccb859420fd8187cd6a5ac0905b01243", "score": "0.6845925", "text": "private int sonHeceHarfSayisi(HarfDizisi kelime) {\r\n\r\n final int boy = kelime.length();\r\n TurkceHarf harf = kelime.harf(boy - 1);\r\n TurkceHarf oncekiHarf = kelime.harf(boy - 2);\r\n\r\n if (boy == 0)\r\n return -1;\r\n\r\n if (harf.sesliMi()) {\r\n //kelime sadece sesli.\r\n if (boy == 1)\r\n return 1;\r\n //onceki harf sesli kelime=\"saa\" ise son ek \"a\"\r\n if (oncekiHarf.sesliMi())\r\n return 1;\r\n //onceki harf sessiz ise ve kelime sadece 2 harf ise hece tum kelime. \"ya\"\r\n if (boy == 2)\r\n return 2;\r\n\r\n TurkceHarf ikiOncekiHarf = kelime.harf(boy - 3);\r\n\r\n //ste-tos-kop -> ste\r\n if (!ikiOncekiHarf.sesliMi() && boy == 3) {\r\n return 3;\r\n }\r\n return 2;\r\n } else {\r\n\r\n // tek sessiz ile hece olmaz.\r\n if (boy == 1)\r\n return -1;\r\n\r\n TurkceHarf ikiOncekiHarf = kelime.harf(boy - 3);\r\n if (oncekiHarf.sesliMi()) {\r\n\r\n //kelime iki harfli (el, al) ya da iki onceki harf sesli (saat)\r\n if (boy == 2 || ikiOncekiHarf.sesliMi())\r\n return 2;\r\n\r\n TurkceHarf ucOncekiHarf = kelime.harf(boy - 4);\r\n // kelime uc harfli (kal, sel) ya da uc onceki harf sesli (kanat),\r\n if (boy == 3 || ucOncekiHarf.sesliMi())\r\n return 3;\r\n\r\n //kelime dort harfli ise yukaridaki kurallari gecmesi nedeniyle hecelenemez sayiyoruz.\r\n // tren, strateji, krank, angstrom gibi kelimeler henuz hecelenmiyor.\r\n if (boy == 4)\r\n return -1;\r\n\r\n TurkceHarf dortOncekiHarf = kelime.harf(boy - 5);\r\n if (!dortOncekiHarf.sesliMi())\r\n return 3;\r\n return 3;\r\n\r\n } else {\r\n\r\n if (boy == 2 || !ikiOncekiHarf.sesliMi())\r\n return -1;\r\n TurkceHarf ucOncekiHarf = kelime.harf(boy - 4);\r\n if (boy > 3 && !ucOncekiHarf.sesliMi())\r\n return 4;\r\n return 3;\r\n }\r\n\r\n }\r\n }", "title": "" }, { "docid": "e5a72b3c9cf2e2a99c9cd9523a8dee49", "score": "0.6712528", "text": "private void izracunajSledecuPoziciju() {\r\n\t\tfor(int i = 1; i<5; i++){\r\n\t\t\tif(i != poslednjaPozicija){\r\n\t\t\t\t//gore\r\n\t\t\t\tif(i == gore && yPozicija > 0){\r\n\t\t\t\t\tif(nivo.mapa[xPozicija][yPozicija - 1] == 1){\r\n\t\t\t\t\t\tposlednjaPozicija = dole;\r\n\t\t\t\t\t\tputanja[xPozicija][yPozicija] = gore;\r\n\t\t\t\t\t\tyPozicija-- ;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else if(nivo.mapa[xPozicija][yPozicija-1] == bazaBlok){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbaza = new Baza(xPozicija, yPozicija);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//desno\r\n\t\t\t\tif(i == desno && xPozicija < 21){\r\n\t\t\t\t\tif(nivo.mapa[xPozicija+1][yPozicija] == 1){\r\n\t\t\t\t\t\tposlednjaPozicija = levo;\r\n\t\t\t\t\t\tputanja[xPozicija][yPozicija] = desno;\r\n\t\t\t\t\t\txPozicija++ ;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else if(nivo.mapa[xPozicija+1][yPozicija] == bazaBlok){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.baza = new Baza(xPozicija, yPozicija);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//levo\r\n\t\t\t\tif(i == levo && xPozicija > 0){\r\n\t\t\t\t\tif(nivo.mapa[xPozicija-1][yPozicija] == 1){\r\n\t\t\t\t\t\tposlednjaPozicija = desno;\r\n\t\t\t\t\t\tputanja[xPozicija][yPozicija] = levo;\r\n\t\t\t\t\t\txPozicija-- ;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else if(nivo.mapa[xPozicija-1][yPozicija] == bazaBlok){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbaza = new Baza(xPozicija, yPozicija);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//gore\r\n\t\t\t\tif(i == dole && yPozicija < 11){\r\n\t\t\t\t\tif(nivo.mapa[xPozicija][yPozicija + 1] == 1){\r\n\t\t\t\t\t\tposlednjaPozicija = gore;\r\n\t\t\t\t\t\tputanja[xPozicija][yPozicija] = dole;\r\n\t\t\t\t\t\tyPozicija++ ;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else if(nivo.mapa[xPozicija][yPozicija + 1] == bazaBlok){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbaza = new Baza(xPozicija, yPozicija);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "97e4b604e4c136734a6deb108f050a70", "score": "0.64565355", "text": "public static void main(String[] args) {\n \r\n IMuhendis muhendis1 = new PcMuhendisi(false,false);\r\n \r\n /*muhendis1.askerlik_durumu_sorgula();\r\n muhendis1.adli_sicil_sorgula();\r\n System.out.println(muhendis1.mezuniyet_ortalamasi(3.07));\r\n String[] tecrube = {\"Vestel\",\"Havelsan\",\"Turksat\"};\r\n \r\n muhendis1.is_tecrubesi(tecrube);*/\r\n \r\n MakineMuhendisi muhendis2 = new MakineMuhendisi(true,false);\r\n \r\n String[] tecrube = {};\r\n String[] referans = {\"Mustafa Murat Coşkun\",\"Serhat Say\"};\r\n muhendis2.adli_sicil_sorgula();\r\n muhendis2.askerlik_durumu_sorgula();\r\n System.out.println(muhendis2.mezuniyet_ortalamasi(2.31));\r\n muhendis2.is_tecrubesi(tecrube);\r\n muhendis2.referans_getir(referans);\r\n muhendis2.calis();\r\n \r\n \r\n \r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "a2b587b85c33c5f0fc51f1ba434559d9", "score": "0.64341974", "text": "public static void erosketakInprimatu() {\n int erosketaKopurua=0;\n double prezioa=0;\n System.out.println(\"EROSKETEN ZERRENDA\");\n System.out.println(\"================================================================\");\n for (Erosketa e : erosketak) {\n System.out.println(e.toStringLuzea());\n prezioa = prezioa+ e.getGuztira();\n erosketaKopurua++;\n \n }\n System.out.println(\"\");\n System.out.println(\"Laburbilduz, \"+ erosketaKopurua+ \" egon dira, \" + prezioa+ \" euro batzen dituztenak\");\n }", "title": "" }, { "docid": "a7048ac74bb35fccf9e87060f8864455", "score": "0.6394904", "text": "@Override void akcja()\n {\n\tint x_antylopy, y_antylopy;\n\tx_antylopy = this.zwroc_polozenie_x();\n\ty_antylopy = this.zwroc_polozenie_y();\n int szerokosc_planszy=this.ref_swiat.zwroc_szerokosc_planszy();\n int wysokosc_planszy=this.ref_swiat.zwroc_wysokosc_planszy();\n\tthis.ustaw_pop_polozenie_x(x_antylopy);\n\tthis.ustaw_pop_polozenie_y(y_antylopy);\n //this.ref_swiat.swiat.plansza[y_antylopy][x_antylopy].setBackground(this.ref_swiat.pusty_kwadrat); //??? Rysowac?\n\tRandom rand = new Random();\n int losowa = rand.nextInt(4); // !!! Zdecydowac czy niedozwolony ruch poza plansze to ruch stracony czy tez zrobic petle...\n\tswitch (losowa)\n\t{\n\tcase 0: //Ruch w gore \n\t\tif (y_antylopy > 1){ y_antylopy -= 2; this.ustaw_polozenie_y(y_antylopy); }; break;\n\tcase 1: //Ruch w prawo\n\t\tif (x_antylopy < szerokosc_planszy - 2){ x_antylopy += 2; this.ustaw_polozenie_x(x_antylopy); }; break;\n\tcase 2: //Ruch w dol\n\t\tif (y_antylopy < wysokosc_planszy - 2){ y_antylopy += 2; this.ustaw_polozenie_y(y_antylopy); }; break;\n\tcase 3: //Ruch w lewo\n\t\tif (x_antylopy > 1){ x_antylopy -= 2; this.ustaw_polozenie_x(x_antylopy); }; break;\n\t}\n\tthis.rysowanie();\n\tthis.ustaw_kolizje_specjalna(false);\n\tthis.kolizja();\n\tthis.ustaw_kolizje_specjalna(true);\n }", "title": "" }, { "docid": "d20c93ee58eea8fb0a23b3e9d3f13d0d", "score": "0.6310734", "text": "void VitesDegis(int yenideger){\n if(yenideger > vites) HizArttir();\n vites = yenideger;//mevcut vitesim 2 oldu\n \n \n }", "title": "" }, { "docid": "dad3c0c70c4f94184b71d3f26b22ea86", "score": "0.6302575", "text": "public void lopeta() {\n this.pisteet.tyhjenna();\n this.laskin.getKolmio().tyhjenna();\n this.paalla = false;\n }", "title": "" }, { "docid": "a8d7939e762591d40af09a1f7bddcdcd", "score": "0.62837535", "text": "public static Kromosom cekMatakuliah(Kromosom x) {\n int[] posisi_jam = new int[jumlah_ruang];//menetukan jam ke x di setiap ruang\r\n String[] hari = {\"Senin\", \"Selasa\", \"Rabu\", \"Kamis\", \"Jumat\"};\r\n int jam = 1;\r\n int count = 0;\r\n\r\n for (int i = 0; i < posisi_jam.length; i++) { //menentukan index jam\r\n if (i == 0) {\r\n posisi_jam[i] = 0;\r\n } else {\r\n posisi_jam[i] = posisi_jam[i - 1] + 4;\r\n }\r\n }\r\n\r\n while (true) { //mencari rentang hari\r\n if (x.getData()[count].getHari().equals(hari[0])) {\r\n count++;\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n for (int i = 1; i < hari.length; i++) {//loop hari\r\n for (int b = 0; b < 4; b++) {//loop timeslot\r\n for (int j = 0; j < jumlah_ruang; j++) {//loop perbandingan gen dalam timeslot\r\n for (int k = j + 1; k < jumlah_ruang; k++) {\r\n\r\n String banding1 = x.getData()[posisi_jam[j]].getAllele().getIdMK().getIdMK(); //matakuliah\r\n String banding2 = x.getData()[posisi_jam[k]].getAllele().getIdMK().getIdMK();\r\n int banding3 = x.getData()[posisi_jam[j]].getAllele().getIdMK().getSemester(); //semester\r\n int banding4 = x.getData()[posisi_jam[k]].getAllele().getIdMK().getSemester();\r\n String banding7 = x.getData()[posisi_jam[j]].getAllele().getKelas(); //kelas\r\n String banding8 = x.getData()[posisi_jam[k]].getAllele().getKelas();\r\n\r\n if (banding1.equals(\"-\")) {\r\n } else if (banding3 == banding4) { //semester sama?\r\n if (banding7.equals(banding8)) { // kelas sama?\r\n int fitnes_awal = x.getData()[posisi_jam[k]].getNilaiFitness();\r\n x.getData()[posisi_jam[k]].setNilaiFitness(fitnes_awal + 1); //penambahan pelanggaran dengan nilai pelanggaran\r\n// System.out.println(\"Penlanggaran(2) \" + posisi_jam[j] + \" dengan \" + posisi_jam[k]);\r\n }\r\n }\r\n\r\n }\r\n\r\n }\r\n for (int l = 0; l < posisi_jam.length; l++) { //menentukan index jam (pergeseran 1 timeslot)\r\n posisi_jam[l] = posisi_jam[l] + 1;\r\n }\r\n }\r\n\r\n for (int l = 0; l < posisi_jam.length; l++) { //menentukan index jam hari berikutnya\r\n if (l == 0) {\r\n posisi_jam[l] = count;\r\n } else {\r\n posisi_jam[l] = posisi_jam[l - 1] + 4;\r\n }\r\n }\r\n count = count + count;\r\n }\r\n return x;\r\n }", "title": "" }, { "docid": "ba64d939feb15399253bec2151dc9964", "score": "0.61690193", "text": "public void curar()\n {\n //Si es de la tribu de los Protoss curara 15 de energia a los de su tribu\n \n if(getTribu() == \"Protoss\")\n {\n if(getTribu() == \"Protoss\")\n {\n if(getWorld() != null)\n {\n Tribu act = (Tribu) getOneObjectAtOffset(0,0,Tribu.class);\n if(act != null && act.getTribu() != getTribu())\n {\n if(act.getEnergia() <= 145)\n {\n act.setEnergia(15);\n }\n else\n {\n int a = act.getEnergia() - 160;\n act.setEnergia(a);\n }\n }\n }\n }\n \n // Si es de la tribu Zerg curara un total de 25 de energia a los de su tribu.\n else if (getTribu() == \"Zerg\")\n {\n if(getWorld() != null)\n {\n Tribu act = (Tribu) getOneObjectAtOffset(0,0,Tribu.class);\n if(act != null && act.getTribu() != getTribu())\n {\n if(act.getEnergia() <= 135)\n {\n act.setEnergia(25);\n }\n else\n {\n int a = act.getEnergia() - 160;\n act.setEnergia(a);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "bb217ef4d47c14656d425a5bc9785074", "score": "0.61304384", "text": "synchronized public void istek_talep(long b){\n Random rand = new Random();\n \n int alinacak = rand.nextInt(5001);\n\n if(((anaSunucu.istekSayisi - alinacak)>0)&&((this.istekSayisi + alinacak) < this.kapasite)){\n anaSunucu.istekSayisi -= alinacak;\n\n this.istekSayisi += alinacak;\n }\n else if((this.istekSayisi + alinacak) < this.kapasite){\n this.istekSayisi += anaSunucu.istekSayisi;\n\n anaSunucu.istekSayisi = 0;\n }\n System.out.println((this.t_id)+\",ana sunucudan \"+alinacak+\" istek talep etti >>\"+(System.currentTimeMillis()-b)+\"<<\"\n +\"\\n\\tAna Sunucu : \"+(anaSunucu.istekSayisi)+\"\\n\\tAlt Sunucu : \"+(this.istekSayisi));\n }", "title": "" }, { "docid": "d7390b985dc9a65cf79c603140dc1938", "score": "0.608552", "text": "public void colocaEstoqueReisNaTela() {\n\t\tpilhaRecebida = paciencia.getMonteEstoqueBBReisBigBertha();\n\t\tCarta carta = pilhaRecebida.visualizarCartaDoTopo();\n\t\tif (carta != null) {\n\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/cards/cardBack.png\")).getImage();\n\t\t\timg = retornaFotoDaCarta(carta);\n\t\t\tImage newImg = img.getScaledInstance(30, 50, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way\n\t\t\tJLabel estReis = new JLabel(\"\");\n\t\t\testReis.setIcon(new ImageIcon(newImg));\n\t\t\testReis.setBounds(394, 53, 30, 50);\n\t\t\tframe.getContentPane().add(estReis);\n\t\t}\n\n\t}", "title": "" }, { "docid": "843855c8a9c0cf86909fa27217a320ca", "score": "0.6072207", "text": "private void valutaPosizionamentoPedineAvversarie() {\n\t\t\n\t\t//Verifica se una delle caselle dell'ultima riga � vuota se � vuota cicla su tutte le pedine che possono muovere e incrementa il movimento verso la casella vuota\n\t\tfor(Pedina p: pedineCheMuovono){\n\t\t\tif(!(p instanceof Dama)){\n\t\t\t\tif(casellaVuota(1,7))\n\t\t\t\t\t\tif((p.getX() - 1) > 0){\n\t\t\t\t\t\t\tp.bilanciaMossa(1,1);\t//aumentiamo di 1 il movimento a destra\n\t\t\t\t\t\t\tp.bilanciaMossa(3,1);\t//aumentiamo di 1 la mangiata a destra\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\t\t}\n\t\t\t\tif(casellaVuota(3,7)){\n\t\t\t\t\tif((p.getX() - 3) > 0){\n\t\t\t\t\t\tp.bilanciaMossa(1,1);\t//aumentiamo di 1 il movimento a destra\n\t\t\t\t\t\tp.bilanciaMossa(3,1);\t//aumentiamo di 1 la mangiata a destra\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\t}}\n\t\t\t\tif(casellaVuota(5,7)){\n\t\t\t\t\tif((p.getX() - 5) > 0){\n\t\t\t\t\t\tp.bilanciaMossa(1,1);\t//aumentiamo di 1 il movimento a destra\n\t\t\t\t\t\tp.bilanciaMossa(3,1);\t//aumentiamo di 1 la mangiata a destra\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\t}}\n\t\t\t\tif(casellaVuota(7,7)){\n\t\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t//se la pedina selezionata � una dama e le pedine del giocatore1 sono meno di 10 incrementa le mosse verso le altre pedine\n\t\t\tif (p instanceof Dama && (g1.getSetPedine().size() < 9)){\n\t\t\t\tfor(Pedina pAvv : g1.getSetPedine()){\n\t\t\t\t\tif(p.getX() - pAvv.getX() > 0){\n\t\t\t\t\t\tp.bilanciaMossa(1,1);\t//aumentiamo di 1 il movimento a destra\n\t\t\t\t\t\tp.bilanciaMossa(3,1);\t//aumentiamo di 1 la mangiata a destra\n\t\t\t\t\t\tp.bilanciaMossa(5,1);\t//aumentiamo di 1 il movimento opposto a destra\n\t\t\t\t\t\tp.bilanciaMossa(7,1);\t//aumentiamo di 1 la mangiata opposta a destra\n\t\t\t\t\t}\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(4,1);\t//aumentiamo di 1 il movimento opposto a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(6,1);\t//aumentiamo di 1 la mangiata opposta a sinistra\n\t\t\t\t\t}\n\t\t\t\t\tif(p.getY() >= pAvv.getY()){\n\t\t\t\t\t\tp.bilanciaMossa(4,1);\t//aumentiamo di 1 il movimento opposto a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(5,1);\t//aumentiamo di 1 il movimento opposto a destra\n\t\t\t\t\t\tp.bilanciaMossa(6,1);\t//aumentiamo di 1 la mangiata opposta a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(7,1);\t//aumentiamo di 1 la mangiata opposta a destra\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(1,1);\t//aumentiamo di 1 il movimento a destra\n\t\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\t\tp.bilanciaMossa(3,1);\t//aumentiamo di 1 la mangiata a destra\n\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\t//se la pedina selezionata � una dama e le pedine del giocatore1 sono meno di 3 incrementa le mosse verso le altre pedine\n\t\tif (p instanceof Dama && (g1.getSetPedine().size() < 3)){\n\t\t\tfor(Pedina pAvv : g1.getSetPedine()){\n\t\t\t\tif(p.getX() - pAvv.getX() > 0){\n\t\t\t\t\tp.bilanciaMossa(1,2);\t//aumentiamo di 2 il movimento a destra\n\t\t\t\t\tp.bilanciaMossa(3,2);\t//aumentiamo di 2 la mangiata a destra\n\t\t\t\t\tp.bilanciaMossa(5,2);\t//aumentiamo di 2 il movimento opposto a destra\n\t\t\t\t\tp.bilanciaMossa(7,2);\t//aumentiamo di 2 la mangiata opposta a destra\n\t\t\t\t}\t\n\t\t\t\telse{\n\t\t\t\t\tp.bilanciaMossa(0,2);\t//aumentiamo di 2 il movimento a sinistra\n\t\t\t\t\tp.bilanciaMossa(2,2);\t//aumentiamo di 2 la mangiata a sinistra\n\t\t\t\t\tp.bilanciaMossa(4,2);\t//aumentiamo di 2 il movimento opposto a sinistra\n\t\t\t\t\tp.bilanciaMossa(6,2);\t//aumentiamo di 2 la mangiata opposta a sinistra\n\t\t\t\t}\n\t\t\t\tif(p.getY() >= pAvv.getY()){\n\t\t\t\t\tp.bilanciaMossa(4,2);\t//aumentiamo di 2 il movimento opposto a sinistra\n\t\t\t\t\tp.bilanciaMossa(5,2);\t//aumentiamo di 2 il movimento opposto a destra\n\t\t\t\t\tp.bilanciaMossa(6,2);\t//aumentiamo di 2 la mangiata opposta a sinistra\n\t\t\t\t\tp.bilanciaMossa(7,2);\t//aumentiamo di 2 la mangiata opposta a destra\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tp.bilanciaMossa(0,2);\t//aumentiamo di 2 il movimento a sinistra\n\t\t\t\t\tp.bilanciaMossa(1,2);\t//aumentiamo di 2 il movimento a destra\n\t\t\t\t\tp.bilanciaMossa(2,2);\t//aumentiamo di 2 la mangiata a sinistra\n\t\t\t\t\tp.bilanciaMossa(3,2);\t//aumentiamo di 2 la mangiata a destra\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n\t}", "title": "" }, { "docid": "95a170614aa85c4f9b22f98e9b48ed12", "score": "0.60644376", "text": "private void zweryfikujBazeBiezacegoPodatnika() {\n try {\n List<Rodzajedok> dokumentyBiezacegoPodatnika = rodzajedokDAO.findListaPodatnik(selected, wpisView.getRokWpisuSt());\n for (Rodzajedok nowy : dokumentyBiezacegoPodatnika) {\n Konto konto1 = nowy.getKontoRZiS();\n Konto konto2 = nowy.getKontorozrachunkowe();\n Konto konto3 = nowy.getKontovat();\n boolean konto1s = konto1!=null&&!konto1.getRokSt().equals(wpisView.getRokWpisuSt());\n boolean konto2s = konto2!=null&&!konto2.getRokSt().equals(wpisView.getRokWpisuSt());\n boolean konto3s = konto3!=null&&!konto3.getRokSt().equals(wpisView.getRokWpisuSt());\n if (konto1s||konto2s||konto3s) {\n KontaFKBean.nanieskonta(nowy, kontoDAOfk);\n rodzajedokDAO.edit(nowy);\n }\n }\n } catch (Exception e){}\n // to bylo nam potrzebne do transformacji teraz jest juz zbedne bo klineci maja przeniesione dokumenty\n// List<Rodzajedok> listaRodzajeDokPodatnika = rodzajedokDAO.findListaPodatnik(selected);\n// if (listaRodzajeDokPodatnika == null || listaRodzajeDokPodatnika.size() == 0) {\n// for (Rodzajedok p : selected.getDokumentyksiegowe()) {\n// RodzajedokPK rodzajedokPK = new RodzajedokPK(p.getSkrot());\n// p.setRodzajedokPK(rodzajedokPK);\n// p.setPodatnikObj(selected);\n// rodzajedokDAO.create(p);\n// }\n// rodzajeDokumentowLista.addAll(rodzajedokDAO.findListaPodatnik(selected));\n// PrimeFaces.current().ajax().update(\"akordeon:form6:parametryDokKsi\");\n// } else {\n// rodzajeDokumentowLista.addAll(listaRodzajeDokPodatnika);\n// PrimeFaces.current().ajax().update(\"akordeon:form6:parametryDokKsi\");\n// }\n }", "title": "" }, { "docid": "7f9fa2c2f577b412f447f4ecf4f6f277", "score": "0.60393476", "text": "public static void main(String[] args) {\n\t\tSamochod vwPolo = new Samochod(55, 20000, \"czerwony\");\r\n\t\tSamochod fiatPunto = new Samochod(75,30000,\"niebieski\");\r\n\t\tSamochod opelAstra = new Samochod(110,50000,\"srebrny\");\r\n\t\t\r\n\t\tSystem.out.println(\"Nazwa auta: VW Polo\");\r\n\t\tSystem.out.println(\"Koszt auta \"+vwPolo.cena +\"zl\");\r\n\t\tSystem.out.println(\"Moc auta: \" +vwPolo.moc+\"km\");\r\n\t\tSystem.out.println(\"Kolor auta: \"+vwPolo.kolor);\r\n\t\tSystem.out.println(\"Koszt utrzymania: \"+vwPolo.kosztUtrzymania(300)+\"zl\");\r\n\t\tSystem.out.println(\"Zuzycie paliwa: \"+vwPolo.zuzyciePaliwa(8)+\" l/100km\"+ \"\\n\");\r\n\t\t\r\n\t\tSystem.out.println(\"Nazwa auta: Fiat Punto\");\r\n\t\tSystem.out.println(\"Koszt auta \"+fiatPunto.cena +\"zl\");\r\n\t\tSystem.out.println(\"Moc auta: \" +fiatPunto.moc+\"km\");\r\n\t\tSystem.out.println(\"Kolor auta: \"+fiatPunto.kolor);\r\n\t\tSystem.out.println(\"Koszt utrzymania: \"+fiatPunto.kosztUtrzymania(300)+\"zl\");\r\n\t\tSystem.out.println(\"Zuzycie paliwa: \"+fiatPunto.zuzyciePaliwa(8)+\" l/100km\"+ \"\\n\");\r\n\t\t\r\n\t\tSystem.out.println(\"Nazwa auta: Opel Astra\");\r\n\t\tSystem.out.println(\"Koszt auta \"+opelAstra.cena +\"zl\");\r\n\t\tSystem.out.println(\"Moc auta: \" +opelAstra.moc+\"km\");\r\n\t\tSystem.out.println(\"Kolor auta: \"+opelAstra.kolor);\r\n\t\tSystem.out.println(\"Koszt utrzymania: \"+opelAstra.kosztUtrzymania(300)+\"zl\");\r\n\t\tSystem.out.println(\"Zuzycie paliwa: \"+opelAstra.zuzyciePaliwa(8)+\" l/100km\"+ \"\\n\");\r\n\t}", "title": "" }, { "docid": "0ea067b1e3c4e2332b6bea1650118a1e", "score": "0.60145414", "text": "public void kasvataKokoLaskuria() {\n koko++;\n }", "title": "" }, { "docid": "4db4a3eda5e1ce0127a9d8e3ee3d1d39", "score": "0.6009326", "text": "private void valutaPosizionamentoPedine() {\n\t\t\t\n\t\t\t//cicla sulle pedine che possono muovere\n\t\t\tfor(Pedina p: pedineCheMuovono){\n\t\t\t\t\n\t\t\t\t//se la pedina � vicina al bordo sinistro della scacchiera\n\t\t\t\tif( p.getX() >= 5 ){\n\t\t\t\t\t\n\t\t\t\t\tp.bilanciaMossa(0,1);\t//aumentiamo di 1 il movimento a sinistra\n\t\t\t\t\tp.bilanciaMossa(2,1);\t//aumentiamo di 1 la mangiata a sinistra\n\t\t\t\t\tp.bilanciaMossa(4,1);\t//aumentiamo di 1 il movimento opposto a sinistra\n\t\t\t\t\tp.bilanciaMossa(6,1);\t//aumentiamo di 1 la mangiata opposta a sinistra\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//se la pedina � vicina al bordo destro della scacchiera\n\t\t\t\tif( p.getX() <= 2 ){\n\t\t\t\t\t\n\t\t\t\t\tp.bilanciaMossa(1,1);\t//aumentiamo di 1 il movimento a destra\n\t\t\t\t\tp.bilanciaMossa(3,1);\t//aumentiamo di 1 la mangiata a destra\n\t\t\t\t\tp.bilanciaMossa(5,1);\t//aumentiamo di 1 il movimento opposto a destra\n\t\t\t\t\tp.bilanciaMossa(7,1);\t//aumentiamo di 1 la mangiata opposta a destra\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//se la pedina � vicina al bordo avversario della scacchiera\n\t\t\t\tif( p.getY() >= 5 && !(p instanceof Dama)){\n\t\t\t\t\t\n\t\t\t\t\t//aumenta le mosse in modo da raggiungere la sponda avversaria per creare la dama\n\t\t\t\t\tp.bilanciaMossa(0,5);\t//aumentiamo di 5 il movimento a sinistra\n\t\t\t\t\tp.bilanciaMossa(1,5);\t//aumentiamo di 5 il movimento a destra\n\t\t\t\t\tp.bilanciaMossa(2,5);\t//aumentiamo di 5 la mangiata a sinistra\n\t\t\t\t\tp.bilanciaMossa(3,5);\t//aumentiamo di 5 la mangiata a destra\n\t\t\t\t\t\n\t\t\t\t\t//aumenta le mosse in modo da bilanciare i pesi per la dama, per i movimenti opposti\n\t\t\t\t\tp.bilanciaMossa(4,2);\t//aumentiamo di 2 il movimento opposto a sinistra\n\t\t\t\t\tp.bilanciaMossa(5,2);\t//aumentiamo di 2 il movimento opposto a destra\n\t\t\t\t\tp.bilanciaMossa(6,2);\t//aumentiamo di 2 la mangiata opposta a sinistra\n\t\t\t\t\tp.bilanciaMossa(7,2);\t//aumentiamo di 2 la mangiata opposta a destra\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//se la pedina nera � una dama e pu� essere mangiata vengono aumentati i pesi delle sue mosse in modo che si sposti\n\t\t\t\tfor(Pedina pAvv : g1.getSetPedine()){\n\t\t\t\t\tif(puoEssereMangiataDama(pAvv)){\n\t\t\t\t\t\tfor(int i=0; i<8; i++)\n\t\t\t\t\t\t\tp.bilanciaMossa(i,4);\t//aumentiamo di 4 tutti i suoi pesi\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}", "title": "" }, { "docid": "a03576367a22a65628cbc65d8d91bc14", "score": "0.59987956", "text": "@Test\n public void keskiSarakeO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 0, 1);\n logiikka.suoritaVuoro(2, 1, 1);\n logiikka.suoritaVuoro(2, 2, 1);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "89c3f7d52cd551f349ebae7cfbe843f2", "score": "0.59918696", "text": "private void meterALosMismosDeSiempre()\r\n {\r\n }", "title": "" }, { "docid": "82deda5286f38cd4097a2fbf9e3090f4", "score": "0.59833217", "text": "public static void vizualizeazaCale(Ruta ruta) {\r\n\t\tList<Pozitie> noduri = ruta.getNoduri();\r\n\t\tList<Drum> drumuri = ruta.getDrumuri();\r\n\r\n\t\tfor (Pozitie n : noduri) {\r\n\t\t\tSystem.out.print(vizualizareAux(n.getNod().getNume(), \" \", 10));\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tprinteazaRepetaCaracter(\" \", 9);\r\n\t\tboolean first = true;\r\n\r\n\t\tfor (Pozitie n : noduri) {\r\n\t\t\tString simbol = n.getNod().getSimbol();\r\n\r\n\t\t\tif (first == false) {\r\n\t\t\t\tprinteazaRepetaCaracter(\"=\", 18);\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.print(simbol);\r\n\t\t\tfirst = false;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\" <==> Ruta \" + ruta.getNume() + \" (\" + ruta.getTip() + \")\");\r\n\t\tprinteazaRepetaCaracter(\" \", 5);\r\n\r\n\t\tfor (int i = 0; i < noduri.size(); i++) {\r\n\t\t\tString distanta = \"[\" + noduri.get(i).getDistanta() + \"m]\";\r\n\t\t\tSystem.out.print(vizualizareAux(distanta, \" \", 5) + \" \");\r\n\r\n\t\t\tif (i < noduri.size() - 1) {\r\n\t\t\t\tPozitie next = noduri.get(i + 1);\r\n\t\t\t\tdistanta = (next.getDistanta() - noduri.get(i).getDistanta()) + \"m\";\r\n\t\t\t\tSystem.out.print(vizualizareAux(distanta, \" \", 4));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tprinteazaRepetaCaracter(\" \", 11);\r\n\r\n\t\tfor (int i = 0; i < drumuri.size() - 1; i++) {\r\n\t\t\tSystem.out.print(vizualizareAux(\" | \", \" \", 10));\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tprinteazaRepetaCaracter(\" \", 11);\r\n\r\n\t\tfor (int i = 0; i < drumuri.size() - 1; i++) {\r\n\t\t\tSystem.out.print(vizualizareAux(drumuri.get(i).getNume(), \" \", 10));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8565c40e7fd64f317574f9a4b0750e9b", "score": "0.597759", "text": "public void obirisLekciju(){\n\t}", "title": "" }, { "docid": "2e3a58b00e267fe7905e8cbbb74dffdf", "score": "0.597725", "text": "@Test\n public void keskiRiviO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 1, 0);\n logiikka.suoritaVuoro(2, 1, 1);\n logiikka.suoritaVuoro(2, 1, 2);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "21168a5afed37d5f2fd55ed4c7c9aed8", "score": "0.5970037", "text": "@Override\n public boolean compra(List<Vendibile> vendibili) throws RemoteException {\n if (!faseAcquistoMarket){\n comunicaAGiocatoreCorrente(\"Non puoi acquistare in questo momento!\");\n return false;\n }\n int costoTotale = 0;\n for (Vendibile vendibile : vendibili) {\n costoTotale += vendibile.getPrezzo();\n }\n if (giocatoreCorrente.getMonete() - costoTotale < 0) {\n comunicaAGiocatoreCorrente(\"Non hai abbastanza monete!\");\n return false;\n }\n int idGiocatore;\n\n HashMap<Vendibile, Integer> mappaVendibiliRichiesti = Utility.listToHashMap(vendibili);\n HashMap<Vendibile, Integer> mappaVendibiliVetrina = Utility.listToHashMap(vetrinaMarket.getVendibili());\n\n if (Utility.hashMapContainsAllWithDuplicates(mappaVendibiliVetrina, mappaVendibiliRichiesti)) {\n for (Vendibile vendibile : vendibili) {\n idGiocatore = vendibile.getIdGiocatore();\n Giocatore giocatore = getGiocatoreDaPartitaConId(idGiocatore);\n //rimuovo i vendibili dal giocatore che li ha messi in vendita e dalla vetrina e li aggiungo al giocatore corrente\n switch (vendibile.getIdVendibile()) {\n case CARTE_PERMESSO_COSTRUZIONE:\n vetrinaMarket.rimuoviVendibile(vendibile);\n giocatore.guadagnaMonete(vendibile.getPrezzo());\n List<CartaPermessoCostruzione> cartePermesso = (List<CartaPermessoCostruzione>) vendibile.getOggetto();\n ArrayList<CartaPermessoCostruzione> carteScartate = giocatore.scartaCartePermessoCostruzione(cartePermesso);\n carteScartate.forEach((CartaPermessoCostruzione carta) -> {\n giocatoreCorrente.addCarta(carta);\n });\n break;\n case CARTE_POLITICA:\n vetrinaMarket.rimuoviVendibile(vendibile);\n giocatore.guadagnaMonete(vendibile.getPrezzo());\n List<String> cartePolitica = (List<String>) vendibile.getOggetto();\n List<ColoreCartaPolitica> listaColori = new ArrayList<>();\n cartePolitica.forEach((String colore) -> {\n listaColori.add(ColoreCartaPolitica.valueOf(colore));\n });\n List<CartaPolitica> cartePoliticaScartate = giocatore.scartaCartePolitica(listaColori);\n cartePoliticaScartate.forEach((CartaPolitica cartaPolitica) -> {\n giocatoreCorrente.addCarta(cartaPolitica);\n });\n break;\n case AIUTANTI:\n vetrinaMarket.rimuoviVendibile(vendibile);\n giocatore.guadagnaMonete(vendibile.getPrezzo());\n try {\n int aiutanti = (Integer) vendibile.getOggetto();\n giocatore.pagaAiutanti(aiutanti);\n giocatoreCorrente.guadagnaAiutanti(aiutanti);\n } catch (AiutantiNonSufficientiException exc){\n exc.printStackTrace();\n }\n break;\n default:\n break;\n }\n }\n try {\n giocatoreCorrente.pagaMonete(costoTotale);\n } catch (MoneteNonSufficientiException exc){\n exc.printStackTrace();\n return false;\n }\n } else {\n comunicaAGiocatoreCorrente(\"Uno dei vendibili scelti non è disponibile!\");\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "00cabb551ef575d925bee1a4b4b54afe", "score": "0.59577054", "text": "private void proteiininTuotto(){\n for (Aine a : aineet){\n a.muutaKonsentraatio();\n }\n }", "title": "" }, { "docid": "bb03cf601daea8c324d930c81e28ab7e", "score": "0.59365046", "text": "@Test\n public void oikeaSarakeO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 0, 2);\n logiikka.suoritaVuoro(2, 1, 2);\n logiikka.suoritaVuoro(2, 2, 2);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "f05d55cfb3a9156acdff1dca2b6c30d8", "score": "0.59353113", "text": "private void chutarEnergia() {\n for (int i = 0; i < modelo.frutas.size(); i++) {\n Fruta f = modelo.frutas.get(i);\n if (f.madureza == 0) {\n if (f.carboidratos == 0) {\n if (f.lipideos == 0) {\n if (f.proteinas == 0) {\n f.achoEnergia = 5;\n } else if (f.proteinas == 1) {\n f.achoEnergia = 5;\n } else if (f.proteinas == 2) {\n f.achoEnergia = 50;\n }\n } else if (f.lipideos == 1) {\n f.achoEnergia = 25;\n } else if (f.lipideos == 1) {\n f.achoEnergia = 25;\n }\n } else if (f.carboidratos == 1) {\n if (f.lipideos == 0) {\n f.achoEnergia = 25;\n } else if (f.lipideos == 1) {\n f.achoEnergia = 50;\n } else if (f.lipideos == 2) {\n f.achoEnergia = 50;\n }\n } else if (f.carboidratos == 2) {\n if (f.lipideos == 0) {\n f.achoEnergia = 25;\n } else if (f.lipideos == 1) {\n f.achoEnergia = 50;\n } else if (f.lipideos == 2) {\n f.achoEnergia = 50;\n }\n }\n } else if (f.madureza == 1) {\n if (f.carboidratos == 0) {\n if (f.lipideos == 0) {\n if (f.fibras == 0) {\n f.achoEnergia = 5;\n } else if (f.fibras == 1) {\n f.achoEnergia = 5;\n } else if (f.fibras == 2) {\n if (f.proteinas == 0) {\n f.achoEnergia = 5;\n } else if (f.proteinas == 1) {\n f.achoEnergia = 5;\n } else if (f.proteinas == 2) {\n f.achoEnergia = 50;\n }\n }\n } else if (f.lipideos == 1) {\n f.achoEnergia = 50;\n } else if (f.lipideos == 2) {\n f.achoEnergia = 50;\n }\n } else if (f.carboidratos == 1) {\n f.achoEnergia = 100;\n } else if (f.carboidratos == 2) {\n f.achoEnergia = 100;\n }\n } else if (f.madureza == 2) {\n if (f.carboidratos == 0) {\n f.achoEnergia = 0;\n } else if (f.carboidratos == 1) {\n if (f.lipideos == 0) {\n f.achoEnergia = 5;\n } else if (f.lipideos == 1) {\n f.achoEnergia = 25;\n } else if (f.lipideos == 2) {\n f.achoEnergia = 25;\n }\n } else if (f.carboidratos == 2) {\n if (f.lipideos == 0) {\n f.achoEnergia = 5;\n } else if (f.lipideos == 1) {\n f.achoEnergia = 25;\n } else if (f.lipideos == 2) {\n f.achoEnergia = 25;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "341117ba9b1df1622535c649117c8528", "score": "0.59195596", "text": "@Test\n public void viistoVasemmaltaOikealleO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 0, 0);\n logiikka.suoritaVuoro(2, 1, 1);\n logiikka.suoritaVuoro(2, 2, 2);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "b1ee56e3e3df36fa284318c94b569152", "score": "0.5916141", "text": "public static void main(String[] args) {\n\n unosArtikalaUMarket();\n for(;;){\n System.out.print(\"0 - odustani\\n1 - dodaj u korpu\\n2 - izbaci iz korpe\\n3 - checkout\\nUnesite opciju: \");\n Scanner scanner = new Scanner(System.in);\n int opcija = scanner.nextInt();\n\n if(opcija == 0){\n System.out.println(\"Odustali ste od kupovine.\");\n return;\n }\n else if(opcija == 1){\n System.out.println(\"Dodavanje artikla u korpu\\nArtikli u marketu su: \");\n ispisArtikala(supermarket.getArtikli());\n System.out.println(\"Unesite kod artikla (unesite malo slovo \\\"c\\\" za odustajanje): \");\n String kod = scanner.nextLine();\n kod = scanner.nextLine();\n if(!kod.equals(\"c\")){\n Artikl a = supermarket.izbaciArtiklSaKodom(kod);\n if(a != null){\n if(korpa.dodajArtikl(a)) System.out.println(\"Artikl dodan u korpu.\");\n else {\n supermarket.dodajArtikl(a);\n System.out.println(\"Korpa je puna, artikl nije dodan!\");\n }\n }\n }\n }\n else if(opcija == 2){\n System.out.println(\"Izbacivanje artikla iz korpe\\nArtikli u korpi su: \");\n ispisArtikala(korpa.getArtikli());\n System.out.println(\"Unesite kod artikla (unesite malo slovo \\\"c\\\" za odustajanje): \");\n String kod = scanner.nextLine();\n kod = scanner.nextLine();\n if(!kod.equals(\"c\")){\n Artikl a = korpa.izbaciArtiklSaKodom(kod);\n if(a != null){\n supermarket.dodajArtikl(a);\n }\n }\n }\n else if(opcija == 3){\n int cijena = korpa.dajUkupnuCijenuArtikala(), iznos;\n System.out.println(\"Ukupna cijena je \" + korpa.dajUkupnuCijenuArtikala() + \" KM.\");\n do{\n System.out.print(\"Unesite ispravan iznos: \");\n iznos = scanner.nextInt();\n }while(iznos < cijena);\n if(iznos > cijena) System.out.println(\"Povratni iznos: \" + (iznos - cijena));\n System.out.println(\"Placeno, kupovina finalizirana.\");\n return;\n }\n }\n\n }", "title": "" }, { "docid": "d37c20f6bc7f3e73b6968902fe512795", "score": "0.5891774", "text": "public static void main(String[] args) {\n Scanner oku= new Scanner (System.in);\n /* System.out.println(\"3 basamankli bir sayi giriniz =\");\n int sayi = oku.nextInt();\n\n //435=534\n int birler =sayi %10; // ilk basamagi verir\n int onlar = (sayi/10)%10 ; //\n int yuzler =sayi /100; // yuzkler basamagini veriee\n\n System.out.println(\"yuzler = \" + yuzler);\n System.out.println(\"birler = \" + birler );\n System.out.println(\"onlar = \" + onlar );\n\n int tersi = birler*100+onlar*10 + yuzler;\n\n System.out.println(\"tersi = \" + tersi);*/\n \n\n\n//2. SORU\n // 2020 YILINA KADARA GECEN GUN SAYISINZI BULUNUZ/\n \n int gecenGunMiktari=(2020*365)+(2020/4);\n\n System.out.println(\"gecenGunMiktari = \" + gecenGunMiktari);\n \n \n \n \n }", "title": "" }, { "docid": "9d995ea45a01a41964f8827d139f017a", "score": "0.5880458", "text": "public static void main(String[] args) {\n\t\tint znbk=0;\r\n\t\tString balioa=\"\";\r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\t// Scanner klaseko objektua sortu teklatua izenarekin\r\n\t\tScanner teklatua = new Scanner(System.in);\r\n\t\ttry {\r\n\t\t\t// Znbk irakurri\r\n\t\t\tSystem.out.print(\"Sartu balio osoa: \");\r\n\t\t\tbalioa = teklatua.nextLine();\r\n\t\t\tznbk = Integer.parseInt(balioa);\r\n\t\t}\r\n\t\tcatch (Exception e){\r\n\t\t\t/*System.out.println(\"Zenbaki akastuna: \" + balioa);\r\n\t\t\t// Balio egokian bilakatuko dut\r\n\t\t\tchar karakterea;\r\n\t\t\tString BalioEgokia=\"\";\r\n\t\t\tfor(int pos=0;pos<balioa.length();pos++){\r\n\t\t\t\tkarakterea = balioa.charAt(pos); \r\n\t\t\t\tif(Character.isDigit(karakterea)){\r\n\t\t\t\t\t// Digito egokia baldin bada\r\n\t\t\t\t\t// Stringean gehitu\r\n\t\t\t\t\tBalioEgokia = BalioEgokia+karakterea;\r\n\t\t\t\t}\r\n\t\t\t\telse if((karakterea=='I' || karakterea=='l')){\r\n\t\t\t\t\t// 'l' karakterea baldin bada\r\n\t\t\t\t\t// '1' karakterea gehituko dut\r\n\t\t\t\t\tBalioEgokia = BalioEgokia + '1';\r\n\t\t\t\t}\r\n\t\t\t\telse if((Character.toLowerCase(karakterea)=='o')){\r\n\t\t\t\t\t// 'o' edo 'O' karaktereak baldin badira\r\n\t\t\t\t\t// '0' karakterea gehitu\r\n\t\t\t\t\tBalioEgokia = BalioEgokia +'0';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// BalioEgokia lortuta\r\n\t\t\t// int moduan jarri\r\n\t\t\tif (BalioEgokia==\"\"){\r\n\t\t\t\tBalioEgokia = BalioEgokia +'0';\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\t/*znbk = Integer.parseInt(balioa);*/\r\n\t\t}\r\n\t\t// datu egokia daukat\r\n\t\t\r\n\t\t// Teklatua itxi\r\n\t\tteklatua.close();\r\n\t\t\r\n\t\t// mezua atera\r\n\t\tSystem.out.println(\"Sartutako datua \" + znbk +\" da \");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d7a44825582829eb4a296f71919edd41", "score": "0.5879796", "text": "public void colocaEstoqueNaTela() {\n\t\tpilhaRecebida = paciencia.getMonteEstoqueBBBigBertha();\n\t\tCarta carta = pilhaRecebida.visualizarCartaDoTopo();\n\t\tif (carta != null) {\n\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/cards/cardBack.png\")).getImage();\n\t\t\tImage newImg = img.getScaledInstance(30, 50, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way\n\t\t\tJLabel est = new JLabel(\"\");\n\t\t\test.setIcon(new ImageIcon(newImg));\n\t\t\test.setBounds(10, 11, 30, 50);\n\t\t\tframe.getContentPane().add(est);\n\t\t\tperguntaPraOndeMover(est, carta, \"est\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "2bdfaae5ec44545806079887f755a489", "score": "0.586771", "text": "private void kiNyer() {\n System.out.println(\"ki nyer?\");\n if ((gepOp.equals(\"KŐ\") && jatekosOp.equals(\"PAPÍR\"))\n || (gepOp.equals(\"PAPÍR\") && jatekosOp.equals(\"OLLÓ\"))\n || (gepOp.equals(\"OLLÓ\") && jatekosOp.equals(\"KŐ\"))) {\n jatekos.jatekosNyer();\n System.out.println(\"Játékos nyer\");\n } else if ((jatekosOp.equals(\"KŐ\") && gepOp.equals(\"PAPÍR\"))\n || (jatekosOp.equals(\"PAPÍR\") && gepOp.equals(\"OLLÓ\"))\n || (jatekosOp.equals(\"OLLÓ\") && gepOp.equals(\"KŐ\"))) {\n gep.jatekosNyer();\n System.out.println(\"Gép nyer\");\n } else {\n dontetlen++;\n System.out.println(\"Döntetlen\");\n }\n allaskiir();\n ellenorzes();\n }", "title": "" }, { "docid": "9483e7f001e5c6aed10bd841eb65a6f8", "score": "0.5865073", "text": "public void lutanje() {\n\t\tSystem.out.println(\"Lutam i odlazim od kuce malo se prosetati i vidjeti sto ima novoga u svijetu!\");\t\n\t}", "title": "" }, { "docid": "6a3793ac36efe64de6c0fa27da783644", "score": "0.58483714", "text": "protected void lueTiedostoa() throws SailoException {\r\n rekisteri.lueTiedostosta();\r\n hae(0);\r\n \r\n }", "title": "" }, { "docid": "dd739e5534c29be288b7996618c5d149", "score": "0.5847656", "text": "@Test\n public void ylaRiviO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 0, 0);\n logiikka.suoritaVuoro(2, 0, 1);\n logiikka.suoritaVuoro(2, 0, 2);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "db82d67b35c10a81d6e2ca4e0c3a3427", "score": "0.58312047", "text": "private void assegnaPuntiVittoria(int numPrimi, int puntiPrimo, int numSecondi, int puntiSecondo) {\n ArrayList<Giocatore> giocatori = partita.getGiocatori();\n if (numPrimi > 1) { //se più giocatore hanno punti vittoria pari al massimo allora assegno 5 punti vittoria a questi giovatori e 0 a tutti gli altri\n for (Giocatore giocatore : giocatori) {\n if (giocatore.getPuntiVittoria() == puntiPrimo) {\n giocatore.guadagnaPuntiVittoria(CostantiModel.PUNTI_VITTORIA_GUADAGNATI_PRIMO_PERCORSO_NOBILTA);\n }\n }\n } else { //altrimenti controllo quanti giocatori sono arrivati pari merito al secondo posto\n if (numSecondi != 0) {\n for (Giocatore giocatore : giocatori) {\n if (giocatore.getPuntiVittoria() == puntiSecondo) {\n giocatore.guadagnaPuntiVittoria(CostantiModel.PUNTI_VITTORIA_GUADAGNATI_SECONDO_PERCORSO_NOBILTA);\n } else if (giocatore.getPuntiVittoria() == puntiPrimo) {\n giocatore.guadagnaPuntiVittoria(CostantiModel.PUNTI_VITTORIA_GUADAGNATI_PRIMO_PERCORSO_NOBILTA);\n }\n }\n } else { //se c'è solo un giocatore arrivato primo e nessuno arrivato secondo assegno 5 punti al primo giocatore\n for (Giocatore giocatore : giocatori) {\n if (giocatore.getPuntiVittoria() == puntiPrimo) {\n giocatore.guadagnaPuntiVittoria(CostantiModel.PUNTI_VITTORIA_GUADAGNATI_PRIMO_PERCORSO_NOBILTA);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "76bac31db784c54dc145b0b03869bd3d", "score": "0.58217466", "text": "private double calcolaIndici(int id_refluo,int tipo_refluo)\n {\n double tot_liquame = this.risultatoConfronto.getM3LAlt() + this.risultatoConfronto.getM3LAvi() + this.risultatoConfronto.getM3LBio() + this.risultatoConfronto.getM3LBov() + this.risultatoConfronto.getM3LSui();\n double tot_letame = this.risultatoConfronto.getM3PAlt() + this.risultatoConfronto.getM3PAvi() + this.risultatoConfronto.getM3PBio() + this.risultatoConfronto.getM3PBov() + this.risultatoConfronto.getM3PSui();\n double tot_azoto_liquame = this.risultatoConfronto.getTknLAlt() + this.risultatoConfronto.getTknLAvi() + this.risultatoConfronto.getTknLBio()+this.risultatoConfronto.getTknLBov()+ this.risultatoConfronto.getTknLSui();\n double tot_azoto_letame = this.risultatoConfronto.getTknPAlt() + this.risultatoConfronto.getTknPAvi() + this.risultatoConfronto.getTknPBio()+this.risultatoConfronto.getTknPBov()+ this.risultatoConfronto.getTknPSui();\n \n \n this.indiceLetame = tot_azoto_letame / tot_letame;\n this.indiceLiquame = tot_azoto_liquame / tot_liquame;\n //liquami\n \n double titolo = 0;\n \n if(tipo_refluo == 1 ||tipo_refluo == 3 ||tipo_refluo == 4 ||tipo_refluo == 5 )\n {\n switch(id_refluo)\n {\n case 1://bovino\n titolo = this.risultatoConfronto.getTknLBov() / this.risultatoConfronto.getM3LBov();\n \n break;\n case 2://suino\n titolo = this.risultatoConfronto.getTknLSui() / this.risultatoConfronto.getM3LSui();\n \n break; \n case 3://avicolo\n titolo = this.risultatoConfronto.getTknLAvi() / this.risultatoConfronto.getM3LAvi();\n \n break;\n case 4://altro\n titolo = this.risultatoConfronto.getTknLAlt() / this.risultatoConfronto.getM3LAlt();\n \n break;\n case 9://biomasse\n titolo = this.risultatoConfronto.getTknLBio() / this.risultatoConfronto.getM3LBio();\n \n break; \n }\n }\n //letami\n if(tipo_refluo == 2 ||tipo_refluo == 6 ||tipo_refluo == 7 )\n {\n switch(id_refluo)\n {\n case 1://bovino\n titolo = this.risultatoConfronto.getTknPBov() / this.risultatoConfronto.getM3PBov();\n \n break;\n case 2://suino\n titolo = this.risultatoConfronto.getTknPSui() / this.risultatoConfronto.getM3PSui();\n \n break; \n case 3://avicolo\n titolo = this.risultatoConfronto.getTknPAvi() / this.risultatoConfronto.getM3PAvi();\n \n break;\n case 4://altro\n titolo = this.risultatoConfronto.getTknPAlt() / this.risultatoConfronto.getM3PAlt();\n \n break;\n case 9://biomasse\n titolo = this.risultatoConfronto.getTknPBio() / this.risultatoConfronto.getM3PBio();\n \n break; \n }\n \n } \n \n \n return titolo;\n \n \n \n }", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.5818448", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80a7fdb3167132fa21944e8e9fcd95e2", "score": "0.58144796", "text": "@Test\n public void viistoOikealtaVasemmalleO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 0, 2);\n logiikka.suoritaVuoro(2, 1, 1);\n logiikka.suoritaVuoro(2, 2, 0);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "e442332e8d0a1583b1cc88957d44960f", "score": "0.58121663", "text": "@Test\n public void eksponenttiLausekkeenRatkaisuonOikein() {\n Murtoluku[] oper = new Murtoluku[3];\n oper[0] = new Murtoluku(10,1);\n oper[1] = new Murtoluku(10,2);\n oper[2] = new Murtoluku(10,10);\n \n Op[] ops = new Op[2];\n ops[0]=Op.PLUS;\n ops[1]=Op.PLUS;\n \n l = new Lauseke(oper, ops, 2);\n assertTrue(l.lukuarvo().samaLuku(new Murtoluku(256,1)));\n }", "title": "" }, { "docid": "0ab4057c7c1f1eb742454462f594d95c", "score": "0.5807313", "text": "public static void main(String[] args){\n System.out.println(\"Hello World !\");\n\n// Scanner sn = new Scanner(System.in);\n\n// System.out.print(\"Masukkan Tahun Siklus : \");\n// int siklus = sn.nextInt();\n//\n// System.out.println(\"Siklus : \" + siklus);\n\n ArrayList<Mobil> garasi = new ArrayList<>();\n\n garasi.addAll(Mobil.garasi(\"toyota\", 5));\n garasi.addAll(Mobil.garasi(\"honda\", 2));\n garasi.addAll(Mobil.garasi(\"lambo\", 1));\n\n int i = 1;\n while (garasi.size() > 0){\n System.out.println(\"+++++++++\");\n System.out.println(\"Tahun ke : \" + i);\n for (int j = 0; j<garasi.size();j++){\n\n Mobil mobil = garasi.get(j);\n mobil.tahun(mobil);\n }\n garasi.removeIf(mobil -> mobil.rusak==true);\n i++;\n if (i%2 == 0){\n int jmltambah = Mobil.probangka();\n System.out.println(\"mobil bertambah : \" + jmltambah);\n int mobil = Mobil.probangka();\n if (mobil>7){\n garasi.addAll(Mobil.garasi(\"lambo\", jmltambah));\n }else if (mobil>4){\n garasi.addAll(Mobil.garasi(\"honda\", jmltambah));\n }else {\n garasi.addAll(Mobil.garasi(\"toyota\", jmltambah));\n }\n }\n System.out.println(\"jumlah mobil : \" + garasi.size());\n\n }\n\n // tiap tahun berapa kali keluar\n\n // tiap keluar ada kilometer\n\n // jika kilometer sudah 300 maka rusak\n\n // tiap keluar dia punya kemungkinan kecelakaan\n\n // tiap dua tahun beli mobil ya kemungkinan nya maksimal 10\n }", "title": "" }, { "docid": "fd7e2c8a2cc585b10900d0589fc1dc70", "score": "0.5806415", "text": "private void busquedaNoInformada(){\n \n controladorBusqueda = new ControladorBusquedas(ambiente,tipoHeuristica,boolParar);\n controladorBusqueda.busquedaNoInformada();\n ArrayList<Nodo> arbol = controladorBusqueda.getArbol();\n ultimoNodo = controladorBusqueda.getUltimoNodo();\n \n actualizarDatos(\"Costo Uniforme\");\n dibujarArbol(arbol);\n actualizarMapa(ambiente);\n estadoActual=0;\n }", "title": "" }, { "docid": "bd2d85db6b3bb062cffb2d4487e4d6be", "score": "0.57983553", "text": "private int annaSulkujenLoppu(int alku) {\r\n\t\tint sulkuja = 1;\r\n\t\tint tulos = 0;\r\n\t\tint i;\r\n\t\t\r\n\t\tfor(i = alku+1; i < funktionPituus; i++) {\r\n\t\t\t\r\n\t\t\tif(funktionOsat[i] == 1) {\r\n\t\t\t\tsulkuja++;\r\n\t\t\t}\r\n\t\t\tif(funktionOsat[i] == 2) {\r\n\t\t\t\tsulkuja--;\r\n\t\t\t\tif(sulkuja == 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\ttulos = i;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn tulos;\r\n\t}", "title": "" }, { "docid": "87a7d79323fb3007e76a03cf1510af1f", "score": "0.5791882", "text": "private void comunicaTerritoriEPosizionaArmate(){\n\t\tIterator<GiocatoreConnesso> iteratoreGiocatori = this.giocatoriPartita.iterator();\n\t\tGiocatoreConnesso giocatoreTemp;\n\t\twhile(iteratoreGiocatori.hasNext()){\n\t\t\t//Estraiamo il giocatore\n\t\t\tgiocatoreTemp = iteratoreGiocatori.next();\n\t\t\t//questo metodo cominicherà le armate da posizionare, i territori posseduti, e il tempo che si ha per farlo. \n\t\t\t//i territori posseduti e il numero di armate sono attributi della classe GiocatoreConnesso\n\t\t\tif(giocatoreTemp.getMiaPartita() == this)\n\t\t\t\tgiocatoreTemp.comunicaTerritoriPosizionaArmate(this.mappa, tempoPosizionaArmateIniziale);\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "97084d120115d6f08f841b918d2a99c4", "score": "0.5787544", "text": "public void controlloMela() {\r\n\t\tif(x[0]==melaX && y[0]==melaY) {\r\n\t\t\tcorpoSerp++;\r\n\t\t\tSystem.out.println(corpoSerp);\r\n\t\t\tmeleMangiate++;\r\n\t\t\tscore=meleMangiate*10;\r\n\t\t\tnewApple();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f56e03a5e94ff8c4b80552a17a50a67e", "score": "0.57864803", "text": "@Test\n public void muuttuikoNimiOikein2() {\n kayttaja.asetaPisteet(500);\n this.kayttaja.VaihdaEeppinenNimi(kayttaja.getPisteet());\n String nimi = kayttaja.getNimi();\n assertEquals(nimi, kayttaja.getNimi());\n }", "title": "" }, { "docid": "2ed0bafe1779d4c0d5674657dfc4be7d", "score": "0.5777851", "text": "public String promeniBrojArtikalaPoruzbine(String artikal, String manjeVise) throws IOException {\n\t\tString porudzbineString[]= artikal.split(\"_\");\n\t\t\n\t\tString idPorudzbine = porudzbineString[0];\n\t\tint idPorudzbeInt = Integer.parseInt(idPorudzbine);\n\t\tPorudzbina porudzbinaZaMenjati = porudzbine.get(idPorudzbeInt);\n\t\tString idArtikla = porudzbineString[1];\n\t\t\n\t\tint broj=porudzbinaZaMenjati.getMapaARTIKALbrojPorudzbina().get(idArtikla);\n\t\tif(manjeVise.equals(\"smanji\")){\n\t\t\tbroj--;\n\t\t}else{\n\t\t\tbroj++;\n\t\t}\n\t\tporudzbinaZaMenjati.getMapaARTIKALbrojPorudzbina().put(idArtikla, broj);\n\t\t\n\t\t//sada treba u tom artiklu samo to nametnuti, kako bi mogli da ispisemo\n\t\t//jer broj artikala koristimo za ispis\n\t\tfor(Artikal item : porudzbinaZaMenjati.getArtikli()){\n\t\t\tif(artikal.contains(item.getNaziv())){\n\t\t\t\tif(artikal.contains(item.getRestoran())){\n\t\t\t\t\titem.setBrojArtikala(broj);\n\t\t\t\t\t//namestamo novu ukupnu cenu, nista vise\n\t\t\t\t\tif(manjeVise.equals(\"smanji\"))\n\t\t\t\t\t\tporudzbinaZaMenjati.setUkupnaCena(porudzbinaZaMenjati.getUkupnaCena()-item.getJedinicnaCena());\n\t\t\t\t\telse\n\t\t\t\t\t\tporudzbinaZaMenjati.setUkupnaCena(porudzbinaZaMenjati.getUkupnaCena()+item.getJedinicnaCena());\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsavePorudzbine();\n\t\treturn artikal;\n\t}", "title": "" }, { "docid": "6572a502dfc6b993d9782f8ad0d65e7c", "score": "0.5767206", "text": "@Test\n public void muuttuikoNimiOikein() {\n kayttaja.asetaPisteet(20000);\n this.kayttaja.VaihdaEeppinenNimi(kayttaja.getPisteet());\n String nimi = kayttaja.getNimi();\n assertEquals(nimi, kayttaja.getNimi());\n }", "title": "" }, { "docid": "29163a1c2b5a73bcfb5fdfb89c36fe4b", "score": "0.5766111", "text": "public static void main(String[] args) {\n Scanner input= new Scanner (System.in);\n String code;\n int ticket;\n boolean state;\n float cost;\n \n code=input.nextLine();\n ticket=input.nextInt();\n state=input.nextBoolean();\n cost=input.nextFloat();\n \n DistributoreBiglietti d1= new DistributoreBiglietti(code,ticket,state,cost);\n DistributoreBiglietti d2= new DistributoreBiglietti();\n \n d1.visualDati();\n d2.visualDati();\n \n String mod;\n mod=input.nextLine();\n d2.setCodice(mod);\n \n int mod1;\n mod1=input.nextInt();\n d2.setBiglietti(mod1);\n \n boolean mod2;\n mod2=input.nextBoolean();\n d2.setStato(mod2);\n \n d2.setCosto();\n \n System.out.println(\"Codice distributore con più biglietti\");\n if(d1.getBiglietti()>d2.getBiglietti()){\n System.out.println(d1.getCodice());\n }else{\n System.out.println(d2.getCodice());\n }\n \n if(d1.getBiglietti()<=0){\n d1.ricarica();}\n \n if(d2.getBiglietti()>=40){\n int sell;\n sell=input.nextInt();\n d2.vendi(sell);\n }\n }", "title": "" }, { "docid": "25c470fbcd4391820bbceb6f5c0a9bcc", "score": "0.5765017", "text": "private int moneteDaPagareSoddisfaConsiglio(List<ColoreCartaPolitica> coloriCartePolitica){\n int numeroCarteJolly = 0;\n int monete;\n for (ColoreCartaPolitica coloreCartaPolitica : coloriCartePolitica)\n if(coloreCartaPolitica.equals(ColoreCartaPolitica.JOLLY))\n numeroCarteJolly++;\n switch (coloriCartePolitica.size()) {\n case 1:\n monete = CostantiModel.MONETE_1_CARTA_POLITICA;\n break;\n case 2:\n monete = CostantiModel.MONETE_2_CARTE_POLITICA;\n break;\n case 3:\n monete = CostantiModel.MONETE_3_CARTE_POLITICA;\n break;\n default:\n monete = 0;\n break;\n }\n return monete + numeroCarteJolly * CostantiModel.MONETE_PER_CARTA_JOLLY;\n\n }", "title": "" }, { "docid": "41f5cf6a0152e42ab791348fcd2bd7a5", "score": "0.5756881", "text": "private int tarkistaFunktio() {\r\n\t\tint i, k, input, sulkuja;\r\n\t\tint tulos = 1;\r\n\t\tint luku;\r\n\t\t\r\n\t\tfor(i = 0; i < funktionPituus; i++) {\r\n\t\t\t\r\n\t\t\tinput = funktionOsat[i];\r\n\t\t\t\r\n\t\t\tswitch(input) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\ti = funktionPituus;\r\n\t\t\t\ttulos = 0;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 1:\r\n\t\t\t\tsulkuja = 1;\r\n\t\t\t\tfor(k = i+1; k < funktionPituus; k++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(funktionOsat[k] == 1) {\r\n\t\t\t\t\t\tsulkuja++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(funktionOsat[k] == 2) {\r\n\t\t\t\t\t\tsulkuja--;\r\n\t\t\t\t\t\tif(sulkuja == 0) {\r\n\t\t\t\t\t\t\tk = funktionPituus;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(sulkuja != 0) {\r\n\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 3:\r\n\t\t\t\tluku = funktionOsat[i+1];\r\n\t\t\t\tif(luku < 10) {\r\n\t\t\t\t\tif(luku != 1 && luku != 7) {\r\n\t\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\t\ti = funktionPituus;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 4:\r\n\t\t\t\tluku = funktionOsat[i+1];\r\n\t\t\t\tif(luku < 10) {\r\n\t\t\t\t\tif(luku != 1 && luku != 7) {\r\n\t\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\t\ti = funktionPituus;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 5:\r\n\t\t\t\tluku = funktionOsat[i+1];\r\n\t\t\t\tif(luku < 10) {\r\n\t\t\t\t\tif(luku != 1 && luku != 7) {\r\n\t\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\t\ti = funktionPituus;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 6:\r\n\t\t\t\tluku = funktionOsat[i+1];\r\n\t\t\t\tif(luku < 10) {\r\n\t\t\t\t\tif(luku != 1 && luku != 7) {\r\n\t\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\t\ti = funktionPituus;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 12:\r\n\t\t\t\tif(funktionOsat[i+1] != 1) {\r\n\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 13:\r\n\t\t\t\tif(funktionOsat[i+1] != 1) {\r\n\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 14:\r\n\t\t\t\tif(funktionOsat[i+1] != 1) {\r\n\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 15:\r\n\t\t\t\tif(funktionOsat[i+1] != 1) {\r\n\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase 16:\r\n\t\t\t\tif(funktionOsat[i+1] != 1) {\r\n\t\t\t\t\ttulos = 0;\r\n\t\t\t\t\ti = funktionPituus;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(funktionPituus == 0) {\r\n\t\t\ttulos = 0;\r\n\t\t}\r\n\t\treturn tulos;\r\n\t}", "title": "" }, { "docid": "9d5b36f605c0ea292f862971c3227d40", "score": "0.57558393", "text": "@Test\n public void keskiRiviX() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(1, 1, 0);\n logiikka.suoritaVuoro(1, 1, 1);\n logiikka.suoritaVuoro(1, 1, 2);\n assertTrue(logiikka.tarkistaVoitto(1));\n }", "title": "" }, { "docid": "268b55c2da2dff5510d606e8cc10a4c5", "score": "0.575386", "text": "@Override\n public boolean vendi(List<Vendibile> vendibili){\n if (!faseVenditaMarket){\n comunicaAGiocatoreCorrente(\"Non puoi vendere in questo momento!\");\n return false;\n }\n for (Vendibile vendibile : vendibili) {\n switch (vendibile.getIdVendibile()){\n case CARTE_PERMESSO_COSTRUZIONE:\n if (!venduteCartePermesso) {\n List<CartaPermessoCostruzione> cartePermesso = (List<CartaPermessoCostruzione>) vendibile.getOggetto();\n HashMap<CartaPermessoCostruzione, Integer> mappaCartePermessoVendibili = Utility.listToHashMap(cartePermesso);\n HashMap<CartaPermessoCostruzione, Integer> mappaCartePermessoGiocatore = Utility.listToHashMap(giocatoreCorrente.getManoCartePermessoCostruzione());\n if (Utility.hashMapContainsAllWithDuplicates(mappaCartePermessoGiocatore, mappaCartePermessoVendibili)) {\n vetrinaMarket.aggiungiVendibile(vendibile);\n venduteCartePermesso = true;\n } else{\n comunicaAGiocatoreCorrente(\"Non puoi vendere le carte scelte!\");\n return false;\n }\n } else {\n comunicaAGiocatoreCorrente(\"Hai già venduto carte permesso di costruzione!\");\n }\n break;\n case CARTE_POLITICA:\n if (!venduteCartePolitica) {\n List<String> cartePolitica = (List<String>) vendibile.getOggetto();\n HashMap<String, Integer> mappaCartePoliticaVendibili = Utility.listToHashMap(cartePolitica);\n List<ColoreCartaPolitica> manoColoriCartePolitica = giocatoreCorrente.getColoriCartePolitica();\n List<String> manoStringheColoriCartePolitica = new ArrayList<>();\n manoColoriCartePolitica.forEach((ColoreCartaPolitica colore) -> {\n manoStringheColoriCartePolitica.add(colore.toString());\n });\n HashMap<String, Integer> mappaCartePoliticaGiocatore = Utility.listToHashMap(manoStringheColoriCartePolitica);\n if (Utility.hashMapContainsAllWithDuplicates(mappaCartePoliticaGiocatore, mappaCartePoliticaVendibili)) {\n vetrinaMarket.aggiungiVendibile(vendibile);\n venduteCartePolitica = true;\n } else {\n comunicaAGiocatoreCorrente(\"Non puoi vendere le carte scelte!\");\n return false;\n }\n } else {\n comunicaAGiocatoreCorrente(\"Hai già venduto carte politica\");\n }\n break;\n case AIUTANTI:\n if (!vendutiAiutanti) {\n int numeroAiutanti = (Integer) vendibile.getOggetto();\n if (giocatoreCorrente.getAiutanti() - numeroAiutanti < 0) {\n comunicaAGiocatoreCorrente(\"Non hai abbastanza aiutanti!\");\n return false;\n } else {\n vetrinaMarket.aggiungiVendibile(vendibile);\n vendutiAiutanti = true;\n }\n } else {\n comunicaAGiocatoreCorrente(\"Hai già venduto aiutanti!\");\n }\n break;\n default:\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "19155d23164017fc2f3b708675680c1b", "score": "0.57521933", "text": "@Test\n public void muuttuikoNimiOikein3() {\n kayttaja.asetaPisteet(-300);\n this.kayttaja.VaihdaParjaavaNimi(kayttaja.getPisteet());\n String nimi = kayttaja.getNimi();\n assertEquals(nimi, kayttaja.getNimi());\n }", "title": "" }, { "docid": "b518543ba75be852a6c8955a872509b5", "score": "0.5743818", "text": "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n int sayiDizisi[],bSayi,diziUzunlugu;\n\n System.out.println(\"kac sayı girilecek?\");\n diziUzunlugu = input.nextInt();\n while(diziUzunlugu<=0) {\n System.out.println(\"sayı 0dan buyuk olmali\");\n diziUzunlugu = input.nextInt();\n }\n\n sayiDizisi = new int[diziUzunlugu];\n\n for (int i=0;i<diziUzunlugu;i++) {\n System.out.println(i + 1 + \" nolu sayıyı gir\");\n sayiDizisi[i] = input.nextInt();\n }\n\n bSayi = sayiDizisi[0];\n\n for (int i = 0; i<diziUzunlugu;i++) {\n if (bSayi<sayiDizisi[i]) { //Example sayı dizisi[1]=6 bSayi=5\n bSayi = sayiDizisi[i];\n }\n }\n\n System.out.println(\"en buyuk sayı \" + bSayi);\n }", "title": "" }, { "docid": "f318991e4a59397f5795734b61bdbb18", "score": "0.5740892", "text": "public void test() {\t\t\r\n\t\t\r\n\t\t/* \r\n\t\t * On répartit les valeurs de l'échantillon dans k classes distinctes \r\n\t\t * et on calcule les effectifs\r\n\t\t */\r\n\t\t// création des classes\r\n\t\t\r\n\t\tif (largeurClasse != null) {\r\n\t\t\tDouble max = Collections.max(data);\r\n\t\t\tdataSorted = new Ensemble(data, 0.0, max, largeurClasse);\r\n\t\t} else {\r\n\t\t\tdataSorted = new Ensemble(data, nbClasses, gen.getMin(), this.max != null ? this.max : gen.getMax());\t\t\t\r\n\t\t}\r\n\t\tnbClasses = dataSorted.getEffectifsCumules().size();\r\n\t\t\r\n\t\t// on calcule Q\r\n\t\tDouble q = 0.0;\r\n\t\tfor (int i = 0; i < nbClasses; i++) {\r\n\t\t\tDouble valeurTheorique = getEffectifTheorique(dataSorted.getEffectifsCumules().get(i).getBorneDroite(), dataSorted.getNbTotalElements(), true);\r\n\t\t\tDouble difference = dataSorted.getEffectifsCumules().get(i).getEffectif() - valeurTheorique; \r\n\t\t\t//UILogger.log(\"diff = \"+difference);\r\n\t\t\t\r\n\t\t\tdifference = Math.pow(difference, 2);\r\n\t\t\tq += (difference / valeurTheorique);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * précision :\r\n\t\t * 0 => 10%\r\n\t\t * 1 => 5%\r\n\t\t * 2 => 2.5%\r\n\t\t * 3 => 1%\r\n\t\t */\r\n\t\tint precision = 1;\r\n\t\t\r\n\t\t// calcul du degré de liberté\r\n\t\tint mu = nbClasses - 1 - gen.getNbParametre();\r\n\t\tif (q > khiTable[mu][precision]) {\r\n\t\t\tUILogger.log(\"hypothèse réfutée : le générateur ne suit pas la loi \"+gen.getNomLoi()+\"\\n\");\r\n\t\t} else {\r\n\t\t\tUILogger.log(\"hypothèse acceptée : le générateur suit la loi \"+gen.getNomLoi()+\"\\n\");\r\n\t\t}\r\n\t\tUILogger.log(\"Q == \"+q+\"\\nQ théorique == \"+khiTable[mu][precision]+\"\\ndegré de liberté == \"+mu);\r\n\t\t//UILogger.log(\"Q == \"+q);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0181b703f918d68883aaf3f70f81cbaa", "score": "0.5734287", "text": "private void fCombinacion(){\n\npotencial_post_sinaptico=0;\nfor (Iterator it=sinapsis_entrada.iterator();it.hasNext();)\n\t{\n\t\tSinapsis s=(Sinapsis)it.next();\n\t\tpotencial_post_sinaptico+=s.pre.out*s.w;\n\t\n\t}\n\t\n}", "title": "" }, { "docid": "d96e1aca95c4c5291809585e0d95e467", "score": "0.57303375", "text": "public void vencedor() {\n\t\tif(poke1.getCurrentHp() > 0) {\n logDeBatalha = logDeBatalha +\"======================================================\\n\"+\n \"[Fim Da Rodada]\" + poke1.getNome() + \" com HP = \" + poke1.getCurrentHp() + \" e \" + poke2.getNome() + \" com HP = 0\\n\"+\n \"======================================================\\n\";\n\t\t\tlogDeBatalha = logDeBatalha + \"!!!!! O vencedor foi : \" + poke1.getNome() + \"!!!!!!\"+\"\\n\";\n\t\t\tlogDeBatalha = logDeBatalha + \"Restando com : \" + poke1.getCurrentHp() + \" de HP\";\n\t\t}\n\t\telse {\n logDeBatalha = logDeBatalha +\"======================================================\\n\"+\n \"[Fim Da Rodada]\" + poke1.getNome() + \" com HP = 0 e \" + poke2.getNome() + \" com HP = \" + poke2.getCurrentHp()+\"\\n\"+\n \"======================================================\\n\";\n\t\t\tlogDeBatalha = logDeBatalha + \"!!!!! O vencedor foi : \" + poke2.getNome() + \"!!!!!!\\n\";\n\t\t\tlogDeBatalha = logDeBatalha + \"Restando com : \" + poke2.getCurrentHp() + \" de HP\";\n\t\t}\n batalha.setLogDeBatalha(logDeBatalha);\n\n\t}", "title": "" }, { "docid": "4318fda56f0aac32e8a1df7111d26a53", "score": "0.57291406", "text": "@Test\n public void alaRiviO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 2, 0);\n logiikka.suoritaVuoro(2, 2, 1);\n logiikka.suoritaVuoro(2, 2, 2);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "95e0325d7fff9570031dbc336164b9df", "score": "0.57232285", "text": "private void jugar() {\n if (dañoMaximoPosible >= juego.getJugadorPasivo().getVidas()) {\r\n if (charlatan) {\r\n juego.logger.log(\"--Voy con todo al jugador\");\r\n juego.logger.log(\"--Plan ofensivo\");\r\n }\r\n jugarCartas(combinacionDañoMaxima, true);\r\n attacarJugador(yo.getCartasEnJuego());\r\n } else if (mueroEnProxTurno || chanceDePerder > 0.55f) {\r\n\r\n if (charlatan) {\r\n juego.logger.log(\"--Plan defensivo\");\r\n }\r\n jugarCartas(mejorCombinacionCriaturas, false);\r\n ataqueDefensivo(yo.getCartasEnJuego());\r\n hechizosACriaturas(false);\r\n if (mueroEnProxTurno || chanceDePerder > 0.71) {\r\n if (charlatan) {\r\n juego.logger.log(\"--Estoy en el horno, muero en proximo turno si no hago algo...\");\r\n }\r\n tirarTodosLosHechizos();\r\n }\r\n } else {\r\n if (charlatan) {\r\n juego.logger.log(\"--Plan seguro\");\r\n }\r\n jugarCartas(mejorCombinacionCriaturas, false);\r\n if (chanceDePerder > 0.35) {\r\n ataqueOfensivo(yo.getCartasEnJuego());\r\n } else {\r\n ataqueSeguro(yo.getCartasEnJuego());\r\n }\r\n hechizosACriaturas(true);\r\n }\r\n }", "title": "" }, { "docid": "be2e104f211d924e46e2f95e59dfc106", "score": "0.5723105", "text": "private int calcular_heuristica() {\n\t\t\t\tdouble distancia = 10000;\n\t\t\t\tint movimiento = 0;\n\t\t\t\tboolean control = false;\n\t\t\t\tif(distancia > (Math.sqrt(Math.pow((posicion_x_pirata_aux-1)-posicion_x_tesoro,2)+Math.pow(posicion_y_pirata_aux-posicion_y_tesoro,2))) && (posicion_x_pirata_aux-1>=0))\n\t\t\t\t{\n\t\t\t\t\tif((mCasillas_visitados[posicion_x_pirata_aux-1][posicion_y_pirata_aux]==false) && (mCasillas_Obstaculos[posicion_x_pirata_aux-1][posicion_y_pirata_aux]==false))\n\t\t\t\t\t{\n\t\t\t\t\t\tdistancia = Math.sqrt(Math.pow((posicion_x_pirata_aux-1)-posicion_x_tesoro,2)+Math.pow(posicion_y_pirata_aux-posicion_y_tesoro,2));\n\t\t\t\t\t\tmovimiento = 1;\t\t//movimiento arriba\n\t\t\t\t\t\tcontrol = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(distancia > (Math.sqrt(Math.pow((posicion_x_pirata_aux+1)-posicion_x_tesoro,2)+Math.pow(posicion_y_pirata_aux-posicion_y_tesoro,2))) && (posicion_x_pirata_aux+1<=numero_filas-1))\n\t\t\t\t{\n\t\t\t\t\tif((mCasillas_visitados[posicion_x_pirata_aux+1][posicion_y_pirata_aux]==false) && (mCasillas_Obstaculos[posicion_x_pirata_aux+1][posicion_y_pirata_aux]==false))\n\t\t\t\t\t{\n\t\t\t\t\t\tdistancia = Math.sqrt(Math.pow((posicion_x_pirata_aux+1)-posicion_x_tesoro,2)+ Math.pow(posicion_y_pirata_aux-posicion_y_tesoro,2));\n\t\t\t\t\t\tmovimiento = 2;\t\t//movimiento abajo\n\t\t\t\t\t\tcontrol = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(distancia > (Math.sqrt(Math.pow(posicion_x_pirata_aux-posicion_x_tesoro,2)+Math.pow((posicion_y_pirata_aux-1)-posicion_y_tesoro,2))) && (posicion_y_pirata_aux-1>=0))\n\t\t\t\t{\n\t\t\t\t\tif((mCasillas_visitados[posicion_x_pirata_aux][posicion_y_pirata_aux-1]==false) && (mCasillas_Obstaculos[posicion_x_pirata_aux][posicion_y_pirata_aux-1]==false))\n\t\t\t\t\t{\n\t\t\t\t\t\tdistancia = Math.sqrt(Math.pow(posicion_x_pirata_aux-posicion_x_tesoro,2)+Math.pow((posicion_y_pirata_aux-1)-posicion_y_tesoro,2));\n\t\t\t\t\t\tmovimiento = 3;\t\t//movimiento izquierda\n\t\t\t\t\t\tcontrol = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(distancia > (Math.sqrt(Math.pow(posicion_x_pirata_aux-posicion_x_tesoro,2)+Math.pow((posicion_y_pirata_aux+1)-posicion_y_tesoro,2))) && (posicion_y_pirata_aux+1<=numero_columnas-1))\n\t\t\t\t{\n\t\t\t\t\tif((mCasillas_visitados[posicion_x_pirata_aux][posicion_y_pirata_aux+1]==false) && (mCasillas_Obstaculos[posicion_x_pirata_aux][posicion_y_pirata_aux+1]==false))\n\t\t\t\t\t{\n\t\t\t\t\t\tdistancia = Math.sqrt(Math.pow(posicion_x_pirata_aux-posicion_x_tesoro,2)+Math.pow((posicion_y_pirata_aux+1)-posicion_y_tesoro,2));\n\t\t\t\t\t\tmovimiento = 4;\t\t//movimiento derecha\n\t\t\t\t\t\tcontrol = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (control == false)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"\\nNo obtuve movimiento\\n\");\n\t\t\t\t\tmovimiento = 0;\n\t\t\t\t}\n\t\t\t\t//distancia = 0;\n\t\t\t\tSystem.out.print(\"\\nDistancia -> \"+distancia);\n\t\t\t\tSystem.out.print(\"\\nMovimiento ->\"+movimiento);\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\treturn movimiento;\n\t\t\t}", "title": "" }, { "docid": "5a01e027acdec2c42c34a9425060cf6b", "score": "0.5721163", "text": "public void ispisKontakataSaIstimLokalom(int lokal) {\n\t\tSystem.out.printf(\"%15s %15s %15s %25s %15s %15s \\n\", \"Id\", \"Ime kontakta\", \"Prezime kontakta\", \"Naziv radnog mesta\", \"Broj prostorije\", \"Broj lokala\");\n\t\tfor (int i = 0; i < this.listaKontakta.size(); i++) {\n\t\t\tKontakt kontaktIzListe = this.listaKontakta.get(i); \n\t\t\tint lokalKontaktaIzListe = kontaktIzListe.getBrojLokala();\n\t\t\tif(lokalKontaktaIzListe == lokal) {\n\t\t\t\tKontakt kontaktKojiSeNalaziUProsledjenomLokalu = this.listaKontakta.get(i);\n\t\t\t\tSystem.out.println(kontaktKojiSeNalaziUProsledjenomLokalu);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4965d01c5a1f2c7f151d6f8db22c5ce5", "score": "0.5719748", "text": "public void devenirPioche() {\r\n\t\t\r\n\t\tint nombreCartesPioche = Partie.getPartie().getManche().getPioche().getCartes().size();\r\n\t\tSystem.out.println(\"\\nIl reste \" + nombreCartesPioche + \" cartes dans la pioche, on tranfere le talon dans la pioche !\\n\");\r\n\t\tArrayList<Carte> cartesRestantes = new ArrayList<Carte>(); // les dernieres cartes qui restaient de la pioche\r\n\r\n\t\t// on stocke les dernieres cartes de la pioche dans une collection, dans l'ordre\r\n\t\twhile(Partie.getPartie().getManche().getPioche().getCartes().size()>0) {\r\n\t\t\tcartesRestantes.add(Partie.getPartie().getManche().getPioche().getCartes().poll());\r\n\t\t}\r\n\t\t// On met toutes les cartes du talon, sauf la carte du dessus , dans la pioche\r\n\t\twhile(this.cartes.size()>1) {\r\n\t\t\tPartie.getPartie().getManche().getPioche().getCartes().add(this.cartes.get(0));\r\n\t\t\tthis.cartes.remove(0);\r\n\t\t}\r\n\t\t// On melange la pioche\r\n\t\tPartie.getPartie().getManche().getPioche().melanger();\r\n\t\t// On rajoute les dernieres cartes a piocher (qui n'etaient pas suffisantes pour\r\n\t\t// que le joueur puisse piocher correctement), dans la pioche\r\n\t\twhile (cartesRestantes.size()>0) {\r\n\t\t\tPartie.getPartie().getManche().getPioche().getCartes().add(cartesRestantes.get(0));\r\n\t\t\tcartesRestantes.remove(0);\r\n\t\t}\r\n\t\tSystem.out.println(Partie.getPartie().getManche().getPioche().getCartes().size());\r\n\t\tSystem.out.println(this.cartes.size());\r\n\t}", "title": "" }, { "docid": "0f600a6782e18f057804049296f1d352", "score": "0.57185256", "text": "public void tik() {\n //this.hraciaPlocha.tik();\n if (true) {\n if (!this.prerusHru) {\n this.hraciaPlocha.spravaLaserov(this.spravaChallenges);\n this.hraciaPlocha.spravaMeteoridov();\n this.kolizie.zaCiarov();\n\n if (this.spravaChallenges.splnenyChallengeZnicMeteority()) {\n this.hraciaPlocha.pridajHP();\n }\n \n if (this.spravaChallenges.splnenyChallengeZnicVelkeMeteority()) {\n this.hraciaPlocha.pridajHP();\n this.hraciaPlocha.setPocitadloTikov(0);\n \n this.hraciaPlocha.setMozeStrielat(false); \n }\n \n if (this.spravaChallenges.splnenyChallengeVydrzMinutu()) {\n \n this.hraciaPlocha.setMozeStrielat(true);\n this.hraciaPlocha.setScore(this.hraciaPlocha.getScore() + 100);\n }\n\n if (!this.hraSpustena()) {\n this.koniecHry();\n }\n }\n }\n }", "title": "" }, { "docid": "5c31b057461d24ab79770d76d8ab633e", "score": "0.5712846", "text": "@Test\n public void keskiSarakeX() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(1, 0, 1);\n logiikka.suoritaVuoro(1, 1, 1);\n logiikka.suoritaVuoro(1, 2, 1);\n assertTrue(logiikka.tarkistaVoitto(1));\n }", "title": "" }, { "docid": "e8b91cc7f064b99d9c7c66d1a4cb295c", "score": "0.5711383", "text": "public void barajar() {\n // La siguiente llamada al método repartirCarta debe empezar en paquete[0] otra vez.\n cartaActual = 0;\n\n // para cada Carta, seleccionamos otra Carta aleatoria (0 a 51 y las intercambia.\n for (int primera = 0; primera < paquete.length; primera++) {\n\n // selecciona un número aleatorio entre 0 y 51\n int segunda = numerosAleatorios.nextInt(NUMERO_DE_CARTAS);\n\n // intercambia Carta actual con la Carta seleccionada al azar.\n Carta temp = paquete[primera];\n paquete[primera] = paquete[segunda];\n paquete[segunda] = temp;\n /* Para cada objeto Carta se elige al azar un número entre 0 y 51 para elegir\n otro objeto Carta. A continuación, el objeto Carta actual y el objeto Carta\n seleccionado al azar se intercambian en el arreglo. */\n }\n }", "title": "" }, { "docid": "6407b26aae2f1fbb36c25c6719ff9e1f", "score": "0.57111305", "text": "@Test\n public void oikeaSarakeX() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(1, 0, 2);\n logiikka.suoritaVuoro(1, 1, 2);\n logiikka.suoritaVuoro(1, 2, 2);\n assertTrue(logiikka.tarkistaVoitto(1));\n }", "title": "" }, { "docid": "b761e49047ea933c38eb1e8e4f2c141f", "score": "0.57103187", "text": "@Override\n public Bolsa embaralhar(Posicao dealer, GeradorAleatorio geradorAleatorio){\n \n Carta [] maoDealer = new Carta[13];\n Carta [] maoEsquerda = new Carta[13];\n Carta [] maoDireita = new Carta[13];\n Carta [] maoParceiro = new Carta[13];\n \n // agora crie um baralho \n LinkedList<Carta> set = new LinkedList<>();\n for (Naipe su: Naipe.values()) {\n for (Simbolo sy : Simbolo.values()) {\n set.add(Carta.getCarta(su,sy));\n }\n }\n \n //Random r = new Random(seed);\n // embaralhe\n Collections.shuffle(set, new Random(){\n private int [] alea = geradorAleatorio.get(52,0,51,-1);\n \n @Override\n public int nextInt(int bound) {\n return alea[bound-1];\n }\n });\n \n // distribua\n // até 13\n for (int i = 0; i < 13; i++) {\n maoEsquerda[i] = set.poll();\n maoDealer[i] = set.poll();\n maoDireita[i] = set.poll();\n maoParceiro[i] = set.poll();\n }\n \n Naipe trunfo = maoDealer[12].getNaipe(); //ultima carta do dealer\n \n // ordene em cada mão\n Arrays.sort(maoDealer, new ComparaCartas());\n Arrays.sort(maoEsquerda, new ComparaCartas());\n Arrays.sort(maoParceiro, new ComparaCartas());\n Arrays.sort(maoDireita, new ComparaCartas());\n \n switch(dealer) {\n case NORTH: return new Bolsa(trunfo, maoDealer, maoEsquerda, maoParceiro, maoDireita, dealer);\n case WEST: return new Bolsa(trunfo, maoEsquerda, maoParceiro, maoDireita, maoDealer, dealer);\n case SOUTH: return new Bolsa(trunfo, maoParceiro, maoDireita, maoDealer, maoEsquerda, dealer);\n case EAST: return new Bolsa(trunfo, maoDireita, maoDealer, maoEsquerda, maoParceiro, dealer);\n default: return null;\n }\n \n }", "title": "" }, { "docid": "2cac30e88589fd4f0ac5921cd307a7e6", "score": "0.5704425", "text": "private void proparsirajPredlozak(String poruka)\r\n\t{\r\n\t\tPostavkeBean p=new PostavkeBean();\r\n\t\ttry{\r\n\t\tporuka=poruka.replaceAll(\"\\\\n\",\"\"); // enter bi pocistili?\r\n\t\tporuka=poruka.replaceAll(\"\\\\[TVRTKA\\\\]\",p.getTvrtkaNaziv());\t\t\r\n\t\tporuka=poruka.replaceAll(\"\\\\[NAZIV_KLIJENTA\\\\]\",klijent!=null?klijent.getIme()+\" \"+klijent.getPrezime():\"?!?\");\r\n\t\tporuka=poruka.replaceAll(\"\\\\[DATUM_PREGLEDA\\\\]\",klijent!=null&&klijent.getSlijedeciPregled()!=null?Util.convertCalendarToString(klijent.getSlijedeciPregled()):\"?!?\");\r\n\t\tporuka=poruka.replaceAll(\"\\\\[TEL\\\\]\",p.getTvrtkaTelefon());\t\t\r\n\t\tporuka=poruka.replaceAll(\"\\\\[DATUM\\\\]\",Util.convertCalendarToString(Calendar.getInstance()));\r\n\t\tporuka=poruka.replaceAll(\"\\\\[SPOL\\\\]\",klijent!=null && klijent.getSpol().charValue()==KlijentVO.SPOL_MUSKO?\"gdin\":\"gdja\");\r\n\t\tporuka=poruka.replaceAll(\"\\\\[IME\\\\]\",klijent!=null?klijent.getIme():\"?!?\");\t\t\r\n\t\tporuka=poruka.replaceAll(\"\\\\[PREZIME\\\\]\",klijent!=null?klijent.getPrezime():\"?!?\");\t\t\r\n\t\tporuka=poruka.replaceAll(\"\\\\[MJESTO\\\\]\",p.getMjestoRada());\t\t\r\n\r\n\t\tsetPoruka(poruka);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogger.fatal(\"Iznimka kod punjenja SMS frame-a: klijent:\"+klijent+\" pregled:\"+pregled+\" predlozak:\"+predlozak+\" postavke:\"+p,e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "88ac67c5e28ed40785b5f9c9fd15804b", "score": "0.5701062", "text": "private Baralho(){\r\n\t\r\n\t\tfor(int i=0; i<40; i++){\r\n\t\t\tNipe nipe = Nipe.fromValue(i/10 + 1);\r\n\t\t\tInteger valor = i % 10 + 1;\r\n\t\t\t\r\n\t\t\tcartas.add(Carta.getCarta(nipe, valor));\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a4c9899cf518a50cee389666fd38c849", "score": "0.56951255", "text": "@Override\n public void gunakanBarang(Barang barangPilih) {\n super.gunakanBarang(barangPilih); //panggil parent\n\n //aksi mengurangi kesehtan zombie dengan mengambil nilai kekuatan pada senjata tersebut\n // menggunakan TEKNIK POLYMORPHISM\n oZombie.kurangiKesehatan(barangPilih.getKekuatan());\n oZombie.printKesehatan();\n\n //aksi mengurangi kesehatan player dengan mengambil nilai kekuatan pada zombie yang menyerang player\n System.out.println(String.format(\"Zombie menyerang %s dengan gigitannya!\" , Adegan.oPlayer.nama));\n Adegan.oPlayer.kurangiKesehatanDiserangMusuh(oZombie.getKekuatan());\n\n if(oZombie.getKesehatan() < 1){\n Adegan.oPlayer.isSelesai = true;\n }\n }", "title": "" }, { "docid": "cd358e2b0ed1caaadb3f8179deee4a98", "score": "0.5693423", "text": "void buscaLargura();", "title": "" }, { "docid": "678b77c2e924f4ad9f3eb29a8e48d8c0", "score": "0.56921804", "text": "public void playerGapiOynat(int hiz){\n\n int vektor = hiz*playerGapOynatmaYonu;\n\n /*Oncesinde player gap iki uctan birine geldi mi bunu kontrol ediyor.*/\n\n if (rectangle.right+vektor<0 || rectangle2.left+vektor>Constants.SCREEN_WIDTH)\n setPlayerGapOynatmaYonu();\n rectangle.right +=vektor;\n rectangle2.left +=vektor;\n\n //Log.v(TAG,\"vektör :\"+vektor);\n\n }", "title": "" }, { "docid": "746d066075278682754b6a9af033d95a", "score": "0.5688983", "text": "public void treinamentoLVQ() {\r\n\t\t //Inicializando o conjunto de prototipos\r\n\t\tcriaVetorPrototipos(saidas, tipoVetor);\r\n\t\tinicializaMatrizesConfusao();\r\n\t\tthis.alfaRotativo = this.alfaInicial;\r\n\t\t\t\r\n\t\t//Determinacacao de condicao de parada Numero Fixo de iteracoes\r\n\t\t//(max_Epocas) ou valor minimo taxa de aprendizado(alfaRotativo)\r\n\t\twhile (this.epocas <= this.max_epocas ) {\t\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.entradasTreinamento.size(); j++) {\r\n\t\t\t\tdouble[] vetorAuxiliar= new double [entradasTreinamento.get(j).length+1];\r\n\t\t\t\t\r\n\t\t\t\tdouble[] entradaAtual = this.entradasTreinamento.get(j);\r\n\t\t\t\t\r\n\t\t\t\tdouble[] neuronioVencedor = pegaNeurVencedor(j); \r\n\t\t\t\tint index = this.vetorPrototipos.indexOf(neuronioVencedor);\r\n\t\t\t\t\r\n\t\t\t\tif ((int) neuronioVencedor[neuronioVencedor.length - 1] == (int)(double)this.classesTreinamento.get(j)) { \r\n\t\t\t\t\t// Aproxima\r\n\t\t\t\t\t// vetor de peso novo da j-esima unidade saida = vetor peso antigo + alfa(entrada da j-esima unidade - vetor peso antigo)\r\n\t\t\t\t\tvetorAuxiliar = somaDeVetores(neuronioVencedor,multiplicaAlfa(subtracaoDeVetores(entradaAtual, neuronioVencedor)));\r\n\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// afasta\r\n\t\t\t\t\t// vetor de peso novo da j-esima unidade saida = vetor peso antigo - alfa(entrada da j-esima unidade - vetor peso antigo)\r\n\t\t\t\t\tvetorAuxiliar = subtracaoDeVetores(neuronioVencedor, multiplicaAlfa(subtracaoDeVetores(entradaAtual, neuronioVencedor)));\r\n\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tvetorAuxiliar[vetorAuxiliar.length-1]=neuronioVencedor[neuronioVencedor.length-1];\r\n\t\t\t\tneuronioVencedor = vetorAuxiliar;\r\n\t\t\t\tatualizaVetorPrototipos(neuronioVencedor, index);\r\n\t\t\t}\r\n\t\t\t//Reduzir a taxa de aprendizado\r\n\t\t\tatualizaAlfaSimples();\r\n\t\t\t//atualizaAlfaMonot(this.epocas, this.max_epocas);\r\n\t\t\tSystem.out.println(\"VALOR ATUAL ALFA: \" + alfaRotativo);\r\n\t\t\tSystem.out.println(\"EPOCA \" + epocas);\r\n\t\t\t\r\n\t\t\t//calcula erro atual\r\n\t\t\tthis.erroAtual = calculaErroValidacao();\r\n\t\t\tlistaErro.add(this.erroAtual);\r\n\t\t\tSystem.out.println(\"Erro atual: \" + this.erroAtual);\r\n\t\t\r\n\t\t\tthis.epocas++;\r\n\t\t\tif(this.erroAtual < this.erroMax) break;//Se o erro for menor que o maximo permitido, sai do while e realiza a fase de teste\r\n\t\t}\r\n\t\tinicializarVetorNeurAtivados();\r\n\t\tconfereNeuroniosAtivados(this.classesTreinamento, this.entradasTreinamento);\r\n\t\treduzNeuronios();\r\n\t\t\r\n\t\tmontaMatrizConfusao(this.classesTeste, this.entradasTeste);\r\n\t\tdouble erroFinal= calculaErroFinal();\r\n\t\ttry {\r\n\t\t\tImprimeErro();\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\timprimeErroFinal(erroFinal);\r\n\t}", "title": "" }, { "docid": "7697bc9f60d2c0131756614885d85c56", "score": "0.5685305", "text": "private void xemPhieuMuonTra() {\n mamuontra.setText(\"\" + a);\n manhanvien.setText(\"\" + MuonTra.docMaNhanVien());\n madocgia.setText(\"\" + MuonTra.docMaDocGia());\n ngaymuon.setText(\"\" + MuonTra.docNgayMuon());\n ngayhentra.setText(\"\" + MuonTra.docNgayHenTra());\n tiencoc.setText(\"\" + MuonTra.docTienCoc());\n tendocgia.setText(\"\" + truyVanTenDocGia());\n tennhanvien.setText(\"\" + truyVanTenNhanVien());\n sosachmuon.setText(\"\" + docSoSachMuon());\n tongtienphat.setText(\"\" + docTongTienPhat());\n tienno.setText(\"\" + (docTongTienPhat() - MuonTra.docTienCoc()));\n sosachtra.setText(\"\" + docSoSachTra());\n loadBangPhieu();\n\n }", "title": "" }, { "docid": "3d49b5a3561078406430ec4e52e137c4", "score": "0.56827116", "text": "public void ispisiMogucnosti() {\n System.out.println(\"|===================================================================================================================================|\");\n\n System.out.println(\"Pogrešno ste unijeli argumente\");\n\n System.out.println(\"Mogućnost NS ima CLEAN BR\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 NS dnevnik.txt CLEAN\");\n System.out.println(\"Mogućnost NS nema CLEAN BR\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 NS dnevnik.txt\");\n System.out.println(\"Mogućnost NS ima CLEAN KB\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 KB NS dnevnik.txt CLEAN\");\n System.out.println(\"Mogućnost NS nema CLEAN KB\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 KB NS dnevnik.txt\");\n System.out.println(\"Mogućnost NK ima CLEAN BR\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 NK dnevnik.txt CLEAN\");\n System.out.println(\"Mogućnost NK nema CLEAN BR\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 NK dnevnik.txt\");\n System.out.println(\"Mogućnost NK ima CLEAN KB\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 KB NK dnevnik.txt CLEAN\");\n System.out.println(\"Mogućnost NK nema CLEAN KB\");\n System.out.println(\"1000 20 D:\\\\uzDiz_WORKSPACE\\\\jovidic_zadaca_4\\\\spremiste 1000 KB NK dnevnik.txt\");\n\n System.out.println(\"|===================================================================================================================================|\");\n\n }", "title": "" }, { "docid": "8b2b622ad226b85e192cbe90acc83103", "score": "0.5679627", "text": "private void peajeHaciaAtras2(){\n textViewPregunta.setText(getString(R.string.autopista_textView_principal));\n //avanzamos la flecha\n imageViewFlecha6.setVisibility(View.INVISIBLE);\n imageViewFlecha5.setVisibility(View.VISIBLE);\n //avanzamos el contador\n contador--;\n //NO avanzamos la carta del mazo\n //Actualziamos el contador de cartas del mazo\n textViewContadorCartas.setText(k+\"/48\");\n //despulsamos los dos botones por si acaso\n btn_1_pulsado=false;\n btn_2_pulsado=false;\n peajePorError=false;\n //Restauramos los botones\n btn1.setText(getString(R.string.autopista_boton_mayor));\n btn2.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "4189c74fd7d95dd80734996ee71a6379", "score": "0.56778693", "text": "@Test\n public void vasenSarakeO() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(2, 0, 0);\n logiikka.suoritaVuoro(2, 1, 0);\n logiikka.suoritaVuoro(2, 2, 0);\n assertTrue(logiikka.tarkistaVoitto(2));\n }", "title": "" }, { "docid": "684e150b20139db0c71867966e719b60", "score": "0.567718", "text": "public void cariJalanPutih()\r\n\t{\n\t\t/*\n\t\tclearkan semua jalan\n\t\t*/\n\t\tjalanPutih.clear();\n\t\t\n\t\tfor(int i=hitam.nextSetBit(0); i>=0; i=hitam.nextSetBit(i+1))\n\t\t{// operate on index i here\n\t\t\t//System.out.println(\"checking \"+i);\n\t\t\tfor(int x=-1;x<=1;x++) for(int y=-1;y<=1;y++) {\n\t\t\t\tint posx=i/8 + x;\n\t\t\t\tint posy=i%8 + y;\n\t\t\t\t\n\t\t\t\tif(posx>=0 && posx<SIZE && posy>=0 && posy<SIZE && !putih.get(posx*8+posy) && !hitam.get(posx*8+posy))\n\t\t\t\t{\n\t\t\t\t\tif(adaBatuPutih(posx-2*x,posy-2*y,-x,-y))\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"kudalumping \"+posx + \" \"+posy);\n\n\t\t\t\t\t\tbyte tmp = (byte)((1<<ARROW[dtp(-x,-y)]));\n\t\t\t\t\t\tbyte posisi = (byte)(posx*8+posy);\n\t\t\t\t\t\tif(jalanPutih.containsKey(posisi))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttmp |= jalanPutih.get(posisi);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjalanPutih.put(posisi ,tmp);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(dtp(-x,-y));\n\t\t\t\t\t\t//System.out.println(posisi);\n\t\t\t\t\t\t//System.out.println(\"kudalumping \"+posx + \" \"+posy);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tputihUpdate=true;\n\t\t/*Iterator iterate = jalanPutih.keySet().iterator();\n\t\t\n\t\twhile(iterate.hasNext())\n\t\t{\n\t\t\tbyte x = (Byte) iterate.next();\n\t\t\t//System.out.println(x/8+\" \"+x%8+\" \"+Integer.toBinaryString(jalanPutih.get(x)&255));\n\t\t}*/\r\n\t}", "title": "" }, { "docid": "d4983d1286fc2c356e597090cb0b99fd", "score": "0.5672848", "text": "public void infoMahasiswa(int laki2, int perempuan, String kelas){\r\n int jumlah = laki2+perempuan;\r\n System.out.println(kelas+\", jumlah mahasiswa = \"+jumlah);\r\n }", "title": "" }, { "docid": "acb995b589f5c8d1f1dbed1773013cb0", "score": "0.5670037", "text": "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\r\n\t\t\r\n\t\tBarHomeroo mibar=new BarHomeroo();\r\n\t\t\r\n\t\tmibar.agregarClientes(new Clientes(\"jonatan\",22));\r\n\t\t\r\n\t\tmibar.agregarClientes(new Clientes(\"buana Peres\",25));\r\n\t\t\r\n\t\tmibar.agregarClientes(new Clientes(\"aucia garcia\",23));\r\n\t\t\r\n\t\tmibar.agregarClientes(new Clientes(\"donatan lopes\",20));\r\n\t\t\r\n\t\tmibar.agregarClientes(new Clientes(\"jonatan\",24));\r\n\t\t\r\n\t\tfor(Clientes corre: mibar.listaDeClientes )\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" nombre \"+corre.getNombre()+\" edad \"+ corre.getEdad());\r\n\t\t\r\n\t\t}\r\n\t//System.out.println(\"la cantidad\"+mibar.getCantidadDeClientes());\r\n\t\r\n\r\n\t/*\tComparaClienteporEdad com_edad=new ComparaClienteporEdad();\r\n\t\r\n\t\tTreeSet<Clientes> orde_cliente=new TreeSet(com_edad);\r\n\t\r\n\t\torde_cliente.addAll(mibar.listaDeClientes);\r\n\t\t\r\n\t//\tSystem.out.println(orde_cliente);\r\n\t\tfor (Clientes clientes : orde_cliente) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(clientes.getNombre()+clientes.getEdad());\r\n\t\t}*/\r\n// mibar.comparandoLosClientes();\r\n\r\n\r\n\r\n\r\n\t\tClientes Cli=new Clientes(\"jonatan\",22);\r\n int posicion=0;\r\n \r\n\t\t\tIterator<Clientes> ITlistaDeClientes=mibar.listaDeClientes.iterator();\r\n\t\t\t\r\n\t\t\twhile(ITlistaDeClientes.hasNext()){\r\n\t\t \t \r\n\t\t \t // ITlistaDeClientes.next();\r\n\t\t \t \r\n\t\t \t Clientes unaPersona = (Clientes) ITlistaDeClientes.next();\r\n\t\t \t \r\n\t\t \t String nom=unaPersona.getNombre();\r\n\t\t \t \r\n\t\t \t if(Cli.getNombre().equals(nom)){\r\n\t\t \t\t \r\n\t\t \t\t System.out.println(\" El Cliente de afuera TIENE el mismo nombre que un cliente en el bar \"+\"en la posicion\"+posicion);\r\n\t\t \t }else{\r\n\t\t \t\t System.out.println(\"El Cliente de afuera NO TIENE el mismo nombre que un cliente en el bar\"+\"en la posicion\"+posicion);\r\n\t\t \t }\r\n\t\t posicion++; }\t\r\n }", "title": "" }, { "docid": "0895f9737fd2ba02f94c8a03769834f1", "score": "0.5669804", "text": "public void wydatkiZaPraceBarmanek(Barmanka barmanka){\n int temp = barmanka.zapotrzebowanieBarmanek * barmanka.iloscDniPrzepracowanych; //np10barmanek * 4 dni przepracowane\n temp *= barmanka.DZIENNE_WYNAGRODZENIE;\n zasobPieniedzy -= temp;\n setZasobPieniedzy(zasobPieniedzy);\n }", "title": "" }, { "docid": "32a965a0977bd3565419fb67510ed66f", "score": "0.56653214", "text": "public void cariJalanHitam()\n\t{\n\t\tjalanHitam.clear();\n\t\t\n\t\tfor(int i=putih.nextSetBit(0); i>=0; i=putih.nextSetBit(i+1))\n\t\t{// operate on index i here\n\t\t\t//System.out.println(\"checking \"+i);\n\t\t\tfor(int x=-1;x<=1;x++) for(int y=-1;y<=1;y++) {\n\t\t\t\tint posx=i/8 + x;\n\t\t\t\tint posy=i%8 + y;\n\t\t\t\t\n\t\t\t\tif(posx>=0 && posx<SIZE && posy>=0 && posy<SIZE && !putih.get(posx*8+posy) && !hitam.get(posx*8+posy))\n\t\t\t\t{\n\t\t\t\t\tif(adaBatuHitam(posx-2*x,posy-2*y,-x,-y))\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"kudalumping \"+posx + \" \"+posy);\n\n\t\t\t\t\t\tbyte tmp = (byte)((1<<ARROW[dtp(-x,-y)]));\n\t\t\t\t\t\tbyte posisi = (byte)(posx*8+posy);\n\t\t\t\t\t\tif(jalanHitam.containsKey(posisi))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttmp |= jalanHitam.get(posisi);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjalanHitam.put(posisi ,tmp);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(dtp(-x,-y));\n\t\t\t\t\t\t//System.out.println(posisi);\n\t\t\t\t\t\t//System.out.println(\"kudalumping \"+posx + \" \"+posy);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\thitamUpdate=true;\n\t\t/*Iterator iterate = jalanHitam.keySet().iterator();\n\t\t\n\t\twhile(iterate.hasNext())\n\t\t{\n\t\t\tbyte x = (Byte) iterate.next();\n\t\t\t//System.out.println(x/8+\" \"+x%8+\" \"+Integer.toBinaryString(jalanHitam.get(x)&255));\t\t\t\n\t\t}*/\n\t}", "title": "" }, { "docid": "edef52220fd4b6c9fd324938c208b773", "score": "0.5663395", "text": "private String encuentraArbol() {\n\t\treturn null;\n\t\t\n\t\t//if(magia>RELLENAR) posicion roca para jugador\n\t\t\n\t\t//else no puede colocarse ahi\n\t}", "title": "" }, { "docid": "81959aa9ae76a9089d3b3ae2b6754113", "score": "0.56612295", "text": "public void mjolnir(){\n line(9,0,15,0,cs.gris);\n line(2,1,21,1,cs.gris);\n drawPixel(1,2,cs.gris); drawPixel(21,2,cs.gris);\n line(0,2,0,11,cs.gris);\n line(22,2,22,11,cs.gris);\n line(2,12,21,12,cs.gris);\n \n \n line(2,2,21,2,cs.plata);\n exi=1; eyi=2; epixeles=21;\n exf=exi+epixeles;\n pixeles(9,cs.plata);\n drawPixel(1,11,cs.gris); drawPixel(21,11,cs.gris);\n line(8,10,15,10,cs.gris);\n line(3,11,8,11,cs.gris);\n line(16,11,21,11,cs.gris);\n for (int i=0; i<17; i++)\n line(10,13+i,15,13+i,cs.cafe);\n drawPixel(10,14,cs.negro); drawPixel(14,14,cs.negro);\n //line(11,15,12,15,cs.negro);\n }", "title": "" }, { "docid": "088a13bc8dfd77371cf07fcf85299035", "score": "0.566028", "text": "public void combate(Herois herois) {\n if (vaiTerCombate) {\n //Gera as palavras e os monstros no combate\n Dicionario dicionario = new Dicionario();\n Bestiario bestiario = new Bestiario();\n\n //Combate\n Character player = herois.Summon((herois.verificaAluno(this.nomeAluno)));\n for (int i = 0; i < 5; i++) { //Cada iteracao gera um oponente diferente\n rodada = i + 1;\n System.out.println(\"\\n[Nivel \" + rodada + \"]\" + \"\\n\");\n System.out.println(bestiario.getBestNome(i) + \" apareceu para o combate!\\n\"\n + player.getNome() + \" acerte as palavras para derrota-lo\");\n Arena arena = new Arena(player, bestiario.Summon(i)); //Cria arena com Jogador e Inimigo\n while (true) { //Cada while eh um turno\n\n //Turno do Jogador\n Palavra word = dicionario.getPalavra((int) (Math.random() * 26));//Captura palavra randomica do dicionario\n arena.TurnoJogador(word); //Gera ataques de jogador\n\n if (Monstro.getDerrota() == true) { // Caso Inimigo.HP <= 0\n System.out.println(\"Voce venceu!\\n\" + bestiario.getBestNome(i) + \" foi derrotado!\");\n break;\n }\n\n //Turno do Inimigo\n Palavra word2 = dicionario.getPalavra((int) (Math.random() * 26)); // Captura palavra randomica do dicionario\n arena.TurnoInimigo(word2); // Gera ataques do inimigo\n if (Character.getDerrota() == true) { // Caso Jogador.HP <= 0\n System.out.println(\"Voce morreu! :(\");\n fimDeJogo = true;\n break;\n\n }\n }\n //acaba o jogo\n if (fimDeJogo) {\n break;\n }\n \n if (i >= 4) {\n rodada++;\n System.out.println(\"Parabens! Voce finalizou o ultimo nivel!\\n\");\n break;\n }\n\n System.out.println(\"Deseja continuar jogando? 1 - Sim , 2 - Nao\");\n System.out.printf(\">> \");\n escolha = NumeroInteiro.RetornaNumeroInteiro();\n System.out.println();\n if (escolha == 2) {\n break;\n }\n\n }\n\n System.out.println(\"\\n ================================\");\n System.out.println(\" | |\");\n System.out.println(\" | Fim de Jogo! |\");\n System.out.println(\" | |\");\n System.out.println(\" | Parabens! |\");\n System.out.println(\" | Voce chegou no nivel \" + rodada + \" |\");\n System.out.println(\" | |\");\n System.out.println(\" ================================\\n \");\n\n this.fimDeJogo = false;\n Character.setDerrota(false);\n Monstro.setDerrota(false);\n player.Score(rodada);\n herois.showScores();\n\n player.reset();\n }\n }", "title": "" }, { "docid": "075fe68826b44cb161d95335870979f4", "score": "0.5658069", "text": "private void ciclo() {\n\t\tcomprobarSiSiguientePieza();\n\t\tpiezaActual.cae();\n\t\tif (estadoJuego==1) miTablero.dibujaPieza(piezaActual);\n\t}", "title": "" }, { "docid": "715c8ca7af8b0713fe98ae7b5425ca76", "score": "0.56494266", "text": "private Vector billesEnDanger (Plateau p) {\n\t\tVector billesEnDanger = new Vector();\n/*\n\tici on doit simplement ajouter au vecteur toute bille impliquee par un mouvement de l'adversaire qui amene une bille dans cases[0]\n*/\t\t\n\t\treturn billesEnDanger;\n\t}", "title": "" }, { "docid": "0840e72bd4053c148a3a12d17ecbe2d1", "score": "0.5640219", "text": "@Test\n public void viistoVasemmaltaOikealleX() {\n logiikka.aloitaPeli();\n logiikka.suoritaVuoro(1, 0, 0);\n logiikka.suoritaVuoro(1, 1, 1);\n logiikka.suoritaVuoro(1, 2, 2);\n assertTrue(logiikka.tarkistaVoitto(1));\n }", "title": "" }, { "docid": "96d3d4e6a718efd476b92bd539200eb6", "score": "0.5636056", "text": "public void kmoyenne3() {\n\t\tArrayList<Pixel> R1 = new ArrayList<Pixel>(k);\n\t\tR1.add(new Pixel(255, 0, 0, 0));\n\t\tR1.add(new Pixel(67, 200, 58, 0));\n\t\tR1.add(new Pixel(0, 0, 255, 0));\n\n\t\tArrayList<Pixel> R = new ArrayList<Pixel>(k);\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tR.add(i, R1.get(i)); // initialisation des représentants des groupes\n\t\t}\n\n\t\tRepresentants R3 = new Representants(R, this.k);\n\n\t\tint lanceurAlgo = 0;\n\n\t\tfor (int j = 0; j < plante.size(); j++) {\n\t\t\tplante.get(j).setGroupe(0);\n\t\t\tplante.get(j).setEloignement(plante.get(j).distance(R1.get(0)));\n\n\t\t}\n\n\t\twhile ((lanceurAlgo == 0) | (R3.test(R1, epsilon) == true)) {\n\t\t\tSystem.out.println(\"boucle\");\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tR3.remove(i);\n\t\t\t\tR3.add(i, R1.get(i));\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < plante.size(); j++) {\n\t\t\t\tfor (int u = 0; u < k; u++) {\n\t\t\t\t\tif (plante.get(j).distance(R1.get(u)) < plante.get(j)\n\t\t\t\t\t\t\t.getEloignement()) {\n\t\t\t\t\t\tplante.get(j).setEloignement(\n\t\t\t\t\t\t\t\tplante.get(j).distance(R1.get(u)));\n\t\t\t\t\t\tplante.get(j).setGroupe(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<Pixel> a = new ArrayList<Pixel>(k);\n\t\t\tfor (int u = 0; u < k; u++) {\n\t\t\t\tH.add(a);\n\t\t\t}\n\n\t\t\tfor (int u = 0; u < k; u++) {\n\t\t\t\tfor (int j = 0; j < this.plante.size(); j++) {\n\t\t\t\t\tif (this.plante.get(j).getnumGroupe() == u) {\n\t\t\t\t\t\tH.get(u).add(this.plante.get(j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int u = 0; u < k; u++) {\n\t\t\t\tH2.add(u, new Moyenne(H.get(u)));\n\t\t\t}\n\n\t\t\tfor (int u = 0; u < k; u++) {\n\t\t\t\tR1.add(H2.get(u).getCentroide());\n\t\t\t}\n\n\t\t\tlanceurAlgo++;\n\n\t\t}\n\n\t\tSystem.out.println(\"results\");\n\t\tfor (int j = 0; j < plante.size(); j++) {\n\t\t\tSystem.out.println(plante.get(j).getnumGroupe());\n\t\t}\n\n\t\tSystem.out.println(R3.test(R1, epsilon));\n\n\t}", "title": "" }, { "docid": "8869a70e3e333b8e66fb94b5badcc6e4", "score": "0.56358856", "text": "public static void main(String[] args) {\n\t\tBicicleta biciIndurain = new Bicicleta(3,5,2);\n\t\tBicicleta biciCarlos = new Bicicleta(4,2,8);\n\t\tBicicleta biciRamon = new Bicicleta(6,4,1);\n\t\t//mostramos con el metodo toString todos los atributos de las bicicletas\n\t\tSystem.out.println(\"La bici de Indurain tiene estas caracteristicas:\\n\"+biciIndurain.toString());\n\t\tSystem.out.println(\"\\nLa bici de Carlos tiene estas caracteristicas:\\n\"+biciCarlos.toString());\n\t\tSystem.out.println(\"\\nLa bici de Ramon tiene estas caracteristicas:\\n\"+biciRamon.toString());\n\t\t//mostramos datos varios\n\t\tSystem.out.println(\"\\nLa cadencia de la bici de Indurain es: \"+biciIndurain.getCadencia());\n\t\tSystem.out.println(\"La velocidad de la bici de Carlos es: \"+biciCarlos.getMarcha());\n\t\tSystem.out.println(\"La marcha de la bici de Ramon es: \"+biciRamon.getVelocidad());\n\t\t//mostramos el numero total de bicicletas\n\t\tSystem.out.println(\"\\nEl numero total de bicicletas es: \"+Bicicleta.getNumeroBicicletas());\n\t\t//mostramos el id asignado a una bici determinada\n\t\tSystem.out.println(\"El numero de la bicicleta de Indurain es: \"+biciIndurain.getId());\n\t\t//utilizamos el metodo para frenar\n\t\tbiciCarlos.frenar(2);\n\t\t//mostramos el resultado tras frenar\n\t\tSystem.out.println(\"\\nLa bici de Carlos frena 2, ahora su velocidad es : \"+biciCarlos.getVelocidad());\n\t\t//utilizamos el metodo acelerar \n\t\tbiciRamon.acelerar(3);\n\t\t//mostramos el resultado tras acelerar\n\t\tSystem.out.println(\"La bici de Ramon acelera 3, ahora su velocidad es : \"+biciRamon.getVelocidad());\t\n\t}", "title": "" }, { "docid": "dc195ef6908a199045a15efa4938bae3", "score": "0.56352186", "text": "private void crearBaraja() {\n \t//Creamos la tabla palos y almacenamos los palos de la clase carta.\n String[] palos = Carta.Palos;\n //Recorremos los palos, se recorrera 4 veces.\n for (int i = 0; i < palos.length; i++) {\n \n \t//Dentro de cada palo recorremos las cartas, se recorrera 12 veces.\n for (int j = 0; j < Carta.LimiteCartaPalo; j++) {\n \t//Si J es 7 0 8 no hace nada (Con ello quitamos las cartas 8 y 9, ya que en el array contamos desde 0)\n if (!(j == 7 || j == 8)) {\n if (j >= 9) {\n //Solo para la sota, caballo y rey\n \t//Al saltarnos el 7 y el 8 tenemos que restar 2 a partir de esos numeros\n cartas[((i * (Carta.LimiteCartaPalo - 2)) + (j - 2))] = new Carta(j + 1, palos[i]);\n //System.out.println(cartas[((i * (Carta.LimiteCartaPalo - 2)) + (j - 2))]);\n } else {\n //Para los casos de 0 a 6\n\t\t\t\t\t\t//En la primera i=0*((LimiteCartaPalo=12)-2)+j=0\n\t\t\t\t\t\t//Es decir i * (Limite-2) + J\n\t\t\t\t\t\t//\t\t 0\t* 10\t +\t0 = 0\n\t\t\t\t\t\t//\t\t 0\t* 10\t + 1 = 1\n\t\t\t\t\t\t// si i vale 1\n\t\t\t\t\t\t//\t\t\t1\t* 10\t +\t0 = 10\n\t\t\t\t\t\t//\t\t \t1\t* 10\t + 1 = 11\n\t\t\t\t\t\t//con esto consegimos los numeros del array y metemos la carta.\n cartas[((i * (Carta.LimiteCartaPalo - 2)) + j)] = new Carta(j + 1, palos[i]);\n //System.out.println(cartas[((i * (Carta.LimiteCartaPalo - 2)) + j)]);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "476906b5a33f8f76049c0ded0c7879a5", "score": "0.56343657", "text": "public void pomeri(KretanjeNapadaca napadac, double velicinaKulice){\n\t\tif((napadac.x % (int) velicinaKulice == 0 && napadac.y % (int) velicinaKulice == 0 && napadac.putanjaX == (napadac.x / (int)velicinaKulice) && napadac.putanjaY == (napadac.y / (int)velicinaKulice))){\r\n\t\t\tif(napadac.putanjaX == bazaX && napadac.putanjaY == bazaY){\r\n\t\t\t\tnapadac.napad = true;\r\n\t\t\t}else{\r\n\t\t\t\tif(putanja.putanja[napadac.putanjaX][napadac.putanjaY] == putanja.gore){\r\n\t\t\t\t\tnapadac.putanjaY--;\r\n\t\t\t\t}else if(putanja.putanja[napadac.putanjaX][napadac.putanjaY] == putanja.dole){\r\n\t\t\t\t\tnapadac.putanjaY++;\r\n\t\t\t\t}else if(putanja.putanja[napadac.putanjaX][napadac.putanjaY] == putanja.desno){\r\n\t\t\t\t\tnapadac.putanjaX++;\r\n\t\t\t\t}else if(putanja.putanja[napadac.putanjaX][napadac.putanjaY] == putanja.levo){\r\n\t\t\t\t\tnapadac.putanjaX--;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tNemaPutanje();\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tdouble xPoz = (napadac.x / velicinaKulice) + 27;\r\n\t\t\tdouble yPoz = (napadac.y / velicinaKulice) + 28;\t\t\t\t\r\n\t\t\t\r\n\t\t\t//Pomeranje napadaca po mrezi\t\r\n\t\t\tif(xPoz > napadac.putanjaX +27) {\r\n\t\t\t\tnapadac.x-=(double)napadac.napadac.brzinaNapadaca ;\r\n\t\t\t\tif(xPoz < napadac.putanjaX+27){\r\n\t\t\t\t\tnapadac.x = napadac.putanjaX * (int)velicinaKulice;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif(xPoz < napadac.putanjaX +27){\r\n\t\t\t\tnapadac.x+=(double)napadac.napadac.brzinaNapadaca ;\r\n\t\t\t\tif(xPoz > napadac.putanjaX+27){\r\n\t\t\t\t\tnapadac.x = napadac.putanjaX * (int)velicinaKulice;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif(yPoz > napadac.putanjaY +28){\r\n\t\t\t\tnapadac.y-=(double)napadac.napadac.brzinaNapadaca ;\r\n\t\t\t\tif(yPoz < napadac.putanjaY +28){\r\n\t\t\t\t\tnapadac.y = napadac.putanjaY * (int)velicinaKulice;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif(yPoz < napadac.putanjaY +28){\r\n\t\t\t\tnapadac.y+=(double)napadac.napadac.brzinaNapadaca ;\r\n\t\t\t\tif(yPoz > napadac.putanjaY+28){\r\n\t\t\t\t\tnapadac.y = napadac.putanjaY * (int)velicinaKulice;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n}", "title": "" }, { "docid": "9e6d350833710860eb10bc0babe74499", "score": "0.5633247", "text": "public void nakresli( Kreslitko kr )\n{\n spickaLH.nakresli( kr );\n telo .nakresli( kr );\n spickaRD.nakresli( kr );\n }", "title": "" }, { "docid": "16e5b57425277b39ad0c4149c959a9ab", "score": "0.56324154", "text": "@Override\n public String lacarroceria() {\n String carrocerosia=\"Hilux= tres tipos de carrocería: cabina sencilla (biplaza), cabina extra (2+2) y doble cabina (cinco plazas). Ha sido ligeramente renovado con cambios en el exterior, el interior y el equipamiento.\";\n\n return carrocerosia;\n }", "title": "" }, { "docid": "35d30fd1da74a0f1f3a6566a20fcd326", "score": "0.5630612", "text": "public static Melodia gameOfThrones (){\n\t\t/*\tConstrução default da melodia */\n\t\tnew Melodias();\n\t\t\n\t\tfrequencia = IntervalosMusicais.G (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.minima() + IntervalosMusicais.seminima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tnota = new Nota (IntervalosMusicais.minima() + IntervalosMusicais.seminima(), IntervalosMusicais.C3, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tfrequencia = IntervalosMusicais.Dsust (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.F (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.G (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.minima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tnota = new Nota (IntervalosMusicais.minima(), IntervalosMusicais.C3, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.Dsust (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.F (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfor (int repeticoes = 0; repeticoes < 4; repeticoes++){\n\t\t\tfrequencia = IntervalosMusicais.D (IntervalosMusicais.C3);\n\t\t\tnota = new Nota (IntervalosMusicais.seminima(), frequencia, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t\t\n\t\t\tfrequencia = IntervalosMusicais.G (IntervalosMusicais.C2);\n\t\t\tnota = new Nota (IntervalosMusicais.seminima(), frequencia, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t\t\n\t\t\tfrequencia = IntervalosMusicais.Asust (IntervalosMusicais.C2);\n\t\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t\t\n\t\t\tnota = new Nota (IntervalosMusicais.colcheia(), IntervalosMusicais.C3, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t}\n\t\t\n\t\t\n\t\tfrequencia = IntervalosMusicais.F (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.minima() + IntervalosMusicais.seminima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tfrequencia = IntervalosMusicais.Asust (IntervalosMusicais.C2);\n\t\tnota = new Nota (IntervalosMusicais.minima() + IntervalosMusicais.seminima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tfrequencia = IntervalosMusicais.D (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.Dsust (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.F (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.minima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\t\n\t\tfrequencia = IntervalosMusicais.Asust (IntervalosMusicais.C2);\n\t\tnota = new Nota (IntervalosMusicais.minima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.Dsust (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\tfrequencia = IntervalosMusicais.D (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tnota = new Nota (IntervalosMusicais.minima() + IntervalosMusicais.seminima(), IntervalosMusicais.C3, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\tfor (int repeticoes = 0; repeticoes < 3; repeticoes++){\n\t\t\tfrequencia = IntervalosMusicais.G (IntervalosMusicais.C3);\n\t\t\tnota = new Nota (IntervalosMusicais.minima(), frequencia, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t\t\n\t\t\tnota = new Nota (IntervalosMusicais.minima(), IntervalosMusicais.C3, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t\t\n\t\t\tfrequencia = IntervalosMusicais.Dsust (IntervalosMusicais.C3);\n\t\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t\t\n\t\t\tfrequencia = IntervalosMusicais.F (IntervalosMusicais.C3);\n\t\t\tnota = new Nota (IntervalosMusicais.colcheia(), frequencia, amplitudePadrao);\n\t\t\tmelodiaPrincipal.addNota (nota);\n\t\t}\n\t\t\n\t\tfrequencia = IntervalosMusicais.G (IntervalosMusicais.C3);\n\t\tnota = new Nota (IntervalosMusicais.minima(), frequencia, amplitudePadrao);\n\t\tmelodiaPrincipal.addNota (nota);\n\t\t\n\t\t\n\t\treturn melodiaPrincipal;\n\t}", "title": "" }, { "docid": "6ee906923c4f4790c012f61924205b95", "score": "0.5626477", "text": "private static String proses(String katapilihan, String pilih2, int acak) {\n String[] ubah2 = gudangkata[acak].split(\"\");\n \n //Mengubah string biasa ke String Array pada kata yang ditanyakan\n String[] ubah = katapilihan.split(\"\");\n \n //reset katapilihan agar tidak jadi tumpukan\n katapilihan = \"\";\n \n for(int c=0; c<=gudangkata[acak].length(); c++){\n //mengecek apabila kata yang diinputkan apakah sama dengan kata yang sebenarnya\n if(ubah2[c].equalsIgnoreCase(pilih2)){\n ubah[c] = ubah2[c];\n }\n \n katapilihan = katapilihan.concat(ubah[c]);\n }\n return katapilihan; \n }", "title": "" }, { "docid": "002b2ab7855ce11107d17d1b575d97f5", "score": "0.56247866", "text": "private String naarRomeins(int getal)\n\t{\n\t\tString result = \"\";\n\t\tfor(int i=tekens.length-1;i>=0;i--) \n\t\t{\n\t\t\tint aantalKeer = getal/getallen[i]; \n\t\t\tfor(int j=0;j<aantalKeer;j++)\t\t\n\t\t\t{\n\t\t\t\tif(j>=aantalKeer) \n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tresult += tekens[i]; \n\t\t\t\tgetal -= getallen[i]; \n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "6d9f5950eaae32cc40a7be9828e13bae", "score": "0.56116754", "text": "private void peajeHaciaDelante2(){\n\n //setear el texto superior de los botones\n textViewPregunta.setText(getString(R.string.autopista_textView_principal));\n //avanzamos la flecha\n imageViewFlecha6.setVisibility(View.INVISIBLE);\n imageViewFlecha7.setVisibility(View.VISIBLE);\n //avanzamos el contador\n contador++;\n //NO avanzamos la carta del mazo\n //Actualziamos el contador de cartas del mazo\n textViewContadorCartas.setText(k+\"/48\");\n //despulsamos los dos botones por si acaso\n btn_1_pulsado=false;\n btn_2_pulsado=false;\n //restablecemos los botones\n btn1.setText(R.string.autopista_boton_mayor);\n btn2.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "68bbd13928dd9e5c329595885f2d30e1", "score": "0.56102395", "text": "private static Lik likZNajvecjoPloscino(Lik[] liki) {\n // ...\n return null;\n }", "title": "" }, { "docid": "3b2955ccf0a5d759d72da43986cee3a4", "score": "0.5610049", "text": "public void KI() {\n\t\tif(!Podium_R.estPlein()&&!Podium_B.estVide()) {\n\t\t\tPodium_R.ajouter(Podium_B.Sommet()); //On ajoute au sommet du Podium_R l'animal au sommet du Podium_B\n\t\t\tPodium_B.retirer(Podium_B.Sommet()); //Puis on retire l'animal au sommet du Podium_B\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"La commande KI ne peut pas etre exectuee, car la podium rouge est deja plein et le podium bleu est vide\");\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "5ebdc23660b9dbc259bb26af6235abb1", "score": "0.56099105", "text": "@Override\n\tpublic void applicaSconto() {\n\t\tif (scadenza.getDifference(new Data())<10) {\n\t\t\tprezzo = prezzo * 0.8f;\n\t\t} else {\n\t\t\tsuper.applicaSconto();\n\t\t}\n\t}", "title": "" } ]
1b544633c2886b0d8ef18c775c81cd06
/ renamed from: b
[ { "docid": "5847b7ed1c7e686c7bb89925711d7178", "score": "0.0", "text": "public final void m8628b() {\n this.f7100e = true;\n if (this.f7099d) {\n this.f7096a.m8632a(this.f7097b);\n }\n }", "title": "" } ]
[ { "docid": "dad0e5f2871b1cb3bb5be4a851aa49c0", "score": "0.6336056", "text": "@Override\r\n\tpublic void operatorB() {\n\t\t\r\n\t}", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.62674177", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.62674177", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title": "" }, { "docid": "5cece577b114daeb729a15c6cf5c6d5f", "score": "0.62556994", "text": "public void b() {\n\t\t\r\n\t}", "title": "" }, { "docid": "35a5baa75906e681596a6db630b9374d", "score": "0.62346005", "text": "@Override\n\t\t\tpublic void b() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e4cbcfe06e6efdda6288d3d9808f14d9", "score": "0.6219775", "text": "public abstract b b();", "title": "" }, { "docid": "bdf2808aff95adf8c5c03b9c2688665d", "score": "0.62173975", "text": "public void b() {}", "title": "" }, { "docid": "f8bc9bc78bd6ed2d10f345e175ae3a60", "score": "0.60970384", "text": "public interface bry {\n /* renamed from: b */\n void mo2354b(bno bno);\n}", "title": "" }, { "docid": "2d1e858b7f213ebfd5109b1bc26b27e3", "score": "0.599511", "text": "public void a(b paramb, b paramb1) {\n }", "title": "" }, { "docid": "c96cc44f48724c8e5bc4416eb044533e", "score": "0.5960648", "text": "public abstract void a(b bVar, String str, int i);", "title": "" }, { "docid": "b21321d3e1b4849c9830605114c8c68f", "score": "0.59317225", "text": "interface C4475bp {\n /* renamed from: a */\n byte[] mo16407a(byte[] bArr, int i, int i2);\n}", "title": "" }, { "docid": "81c5e7a631e9acdf56a47f1d928e6147", "score": "0.59001446", "text": "public final /* bridge */ /* synthetic */ void mo121879a(byte b) throws IOException {\n super.mo121879a(b);\n }", "title": "" }, { "docid": "d9cf18272d6d698ef3301461aca41b72", "score": "0.5828248", "text": "B name(String name);", "title": "" }, { "docid": "b6e903577d3a3fe8f8671b7a2e48ef73", "score": "0.5775634", "text": "public interface C3154e {\n /* renamed from: b */\n String mo14156b(String str, String str2);\n}", "title": "" }, { "docid": "f138054d94a06bdd61ce75ffdb850a95", "score": "0.57563305", "text": "public abstract void b();", "title": "" }, { "docid": "e118ffe4031e7de5a32a3fe046540bf5", "score": "0.5695925", "text": "public final /* bridge */ /* synthetic */ void mo121880a(byte b, byte b2) throws IOException {\n super.mo121880a(b, b2);\n }", "title": "" }, { "docid": "40e9785645e7f278c7de226a84dd3b77", "score": "0.56759256", "text": "public interface C35595b {\n /* renamed from: a */\n void mo90406a();\n }", "title": "" }, { "docid": "2bd17cfc1ba1e71b1fb5dadc1f23ed06", "score": "0.5673432", "text": "public interface C0627na extends b<MaliciousAppFragment> {\n\n /* renamed from: c.c.a.h.b.na$a */\n /* compiled from: FragmentModule_MaliciousAppFragment$app_bazaarRelease */\n public static abstract class a extends b.a<MaliciousAppFragment> {\n }\n}", "title": "" }, { "docid": "c1919ea81072c046f0dc1869bef0901b", "score": "0.56561136", "text": "private void b(f paramf, d paramd1, d paramd2, float paramFloat1, float paramFloat2) {\n/* */ float f1;\n/* 255 */ if (a()) {\n/* 256 */ f1 = paramFloat1;\n/* */ } else {\n/* 258 */ f1 = paramFloat1 * 2.5F;\n/* */ } \n/* */ \n/* 261 */ float f2 = paramd1.b(paramf) + paramd2.c(paramf) + f1;\n/* 262 */ paramd2.a(paramFloat2 - paramd2.e(paramf), -f2, paramf);\n/* */ }", "title": "" }, { "docid": "270f28d0d6906cadf33d81cade5400e5", "score": "0.56535625", "text": "public void breathe(int a) {\r\n\r\n\t}", "title": "" }, { "docid": "14af7b9047f310e1d4514d83609e2962", "score": "0.564451", "text": "public void setB(J b) {\r\n this.b = b;\r\n }", "title": "" }, { "docid": "f1006e704ad72e37df55c668dbab6d25", "score": "0.5616789", "text": "public aa b() {\n this.f30501e = false;\n return this;\n }", "title": "" }, { "docid": "e34fa4a13def9e4503ec002f86ec0e34", "score": "0.5612199", "text": "public b(Function1 function1) {\n super(1);\n this.a = function1;\n }", "title": "" }, { "docid": "f5eec45b4bf8b21bb3d18893a31ac87e", "score": "0.5608866", "text": "public interface C0577a {\n /* renamed from: a */\n void mo7992a();\n\n /* renamed from: b */\n void mo7993b();\n }", "title": "" }, { "docid": "9028084cd7ae573c991b9722d0b4cda1", "score": "0.5602062", "text": "public void b(PacketDataSerializer var0) {\n/* 70 */ int var1 = b();\n/* 71 */ var0.d(var1);\n/* */ \n/* 73 */ for (int var2 = 0; var2 < var1; var2++) {\n/* 74 */ var0.d(this.a.getId(this.b.fromId(var2)));\n/* */ }\n/* */ }", "title": "" }, { "docid": "ca87f8b35f969defaa9b5023416cac40", "score": "0.5599685", "text": "public interface C1978b {\n /* renamed from: a */\n String mo14356a(String str);\n }", "title": "" }, { "docid": "a21791e2fcfd257f0b359ded43456cf0", "score": "0.5597855", "text": "protected Navigator b(World paramaqu)\r\n/* 69: */ {\r\n/* 70:113 */ return new abb(this, paramaqu);\r\n/* 71: */ }", "title": "" }, { "docid": "849cdfaff87a5902360673bb33789f1d", "score": "0.5597388", "text": "public b(c paramc, boolean paramBoolean) {\n/* 53 */ this.a = paramc;\n/* 54 */ this.b = paramBoolean;\n/* */ }", "title": "" }, { "docid": "8894daab1e5bedaed77df9a2f0bc3da2", "score": "0.558132", "text": "ho b();", "title": "" }, { "docid": "52c793fb541943d25b26e7626e300058", "score": "0.557905", "text": "public void setSecond(B b) {\n this.b = b;\n }", "title": "" }, { "docid": "746f8b344fb44da2c6fd80df718f06cd", "score": "0.55728287", "text": "public void b() {\n if (this.b != null) {\n Map hashMap = new HashMap();\n if (this.a != null) {\n hashMap.put(\"mil\", Boolean.valueOf(this.a.a()));\n hashMap.put(\"eil\", Boolean.valueOf(this.a.b()));\n hashMap.put(\"eil_source\", this.a.c());\n }\n if (this.c != null) {\n hashMap.put(\"nti\", String.valueOf(this.c.getValue()));\n }\n if (this.d) {\n hashMap.put(\"nhs\", String.valueOf(this.d));\n }\n if (this.e) {\n hashMap.put(\"nmv\", String.valueOf(this.e));\n }\n if (this.f) {\n hashMap.put(\"nmvap\", String.valueOf(this.f));\n }\n if (this.g != null && this.b.e()) {\n hashMap.put(\"view\", b(this.g));\n }\n if (this.g != null && this.b.g()) {\n hashMap.put(\"snapshot\", d(this.g));\n }\n this.b.a(hashMap);\n }\n }", "title": "" }, { "docid": "b9907d41eaf6d5a1aab31647ef32dedc", "score": "0.5556388", "text": "public void b()\r\n/* 46: */ {\r\n/* 47: 67 */ super.b();\r\n/* 48: 68 */ this.j.h.bi = this.h;\r\n/* 49: */ \r\n/* 50: 70 */ this.i = ((this.l - this.f) / 2);\r\n/* 51: 71 */ this.r = ((this.m - this.g) / 2);\r\n/* 52: */ }", "title": "" }, { "docid": "f212310d36dfcf6c75bb8122831f78bf", "score": "0.55484253", "text": "public interface C15066a extends C15068c {\n /* renamed from: a */\n byte[] mo46720a(byte[] bArr) throws DecoderException;\n}", "title": "" }, { "docid": "01084478d2aaee960e0f17c9424b4491", "score": "0.5546279", "text": "@Override\n\t\t\tpublic void a() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e5d25ec66608bab2ac28c29ca038a730", "score": "0.5537496", "text": "public interface C0754a {\n /* renamed from: a */\n void mo488a();\n\n /* renamed from: b */\n void mo489b();\n }", "title": "" }, { "docid": "135fa319f05f57a87aba175be5be1346", "score": "0.5535142", "text": "public interface C3391k {\n /* renamed from: b */\n Status mo12984b();\n}", "title": "" }, { "docid": "3fe643d1137ecfc8c3cb367869dc8c3f", "score": "0.5533031", "text": "public interface C48215b {\n /* renamed from: a */\n Object mo120453a(Object obj, C47919b<? super C7581n> bVar);\n}", "title": "" }, { "docid": "9a53ad4ef101b7161322e3dca00a20b4", "score": "0.5530664", "text": "public abstract String b();", "title": "" }, { "docid": "c2a978c877ccd168de11eaf3305753e4", "score": "0.5527639", "text": "public static void main(String[] args) {\nnew b().m();\nnew b().n(10,20);\nnew b().a();\nnew b().c(20, 30);\n\n\n\n\t}", "title": "" }, { "docid": "32b4bcfeee8851ef90c4eca1cf2b5836", "score": "0.55208457", "text": "private void m12285b(C2795b bVar, AbstractC2799a aVar) {\n Binary.C2794a a = Binary.m12273a(bVar);\n String a2 = m12284a(a.f11425a);\n ArrayList arrayList = new ArrayList(Arrays.asList(a.f11426b));\n arrayList.add(0, a2);\n aVar.mo21865a(arrayList.toArray());\n }", "title": "" }, { "docid": "d7d125b2c16ae55866d3d56935bb6a16", "score": "0.55191755", "text": "public interface C35594a {\n /* renamed from: a */\n void mo83188a(C35595b bVar);\n\n /* renamed from: a */\n void mo83189a(Object... objArr);\n }", "title": "" }, { "docid": "15237b1655e43224f613e52c5da16fc8", "score": "0.55106354", "text": "@Override\n\tpublic void testb() {\n\t\t\n\t}", "title": "" }, { "docid": "ef2019ff1624c7e68674884127648b46", "score": "0.55047077", "text": "interface b {\n int a();\n\n View a(int i);\n\n void a(View view);\n\n void a(View view, int i);\n\n void a(View view, int i, ViewGroup.LayoutParams layoutParams);\n\n RecyclerView.u b(View view);\n\n void b();\n\n void b(int i);\n\n int c(View view);\n\n void c(int i);\n\n void d(View view);\n }", "title": "" }, { "docid": "2cf4fceb16672430084da858daa2a126", "score": "0.5503225", "text": "public void g() {\r\n for (int b = this.b.b() - 1; b >= 0; b--) {\r\n ((aa) this.b.b(b)).d();\r\n }\r\n }", "title": "" }, { "docid": "2fb4a11c8c9221949da91a5f64aeb0e0", "score": "0.5498459", "text": "public interface ae {\n /* renamed from: a */\n void mo37a(String str);\n\n /* renamed from: a */\n byte[] mo38a(byte[] bArr) throws Exception;\n}", "title": "" }, { "docid": "32e1ec9f1925396b0867c08ab37a4357", "score": "0.5492298", "text": "private void breakDownBid(Bid b){\n bidAmount = b.getAmount();\n }", "title": "" }, { "docid": "2a65cd8b01d37ed92cf1cb19d01c6d41", "score": "0.54867154", "text": "public int b(ard paramard, dt paramdt, bec parambec, ej paramej)\r\n/* 68: */ {\r\n/* 69: 84 */ return a(paramard, paramdt, parambec, paramej);\r\n/* 70: */ }", "title": "" }, { "docid": "9bd8c1c52d22151fb7af8abfd853464e", "score": "0.5484319", "text": "interface C0885a {\n /* renamed from: a */\n void mo9151a(String str);\n }", "title": "" }, { "docid": "c95eb279cbda6875dca0be82aad32f1f", "score": "0.5480257", "text": "public /* synthetic */ void a(b bVar, String str) {\n String str2;\n g gVar;\n if (!a(str) || (gVar = this.b) == null) {\n this.a = str;\n str2 = this.a;\n } else {\n str2 = gVar.a();\n }\n bVar.a(str2);\n }", "title": "" }, { "docid": "99edd4e3b4a1e74ee38567b94d3dbd3d", "score": "0.5476356", "text": "@Override // com.baidu.mobads.production.AbstractC2493a\n /* renamed from: d */\n public void mo20055d() {\n }", "title": "" }, { "docid": "5f8055232915b2a02f1eded204d6e325", "score": "0.54658777", "text": "public void setB( GamePiece[][] a )\r\n {\r\n b = a;\r\n }", "title": "" }, { "docid": "b4c1790cd6403ca319035599fc6590c0", "score": "0.54607624", "text": "private static <T> T flip(T a, @SuppressWarnings(\"unused\") T b) {\n return a;\n }", "title": "" }, { "docid": "44497762151e939fb2cef05916646640", "score": "0.5459677", "text": "private void m61951c(byte b) {\n AppMethodBeat.m2504i(121481);\n if (this.position == this.limit) {\n eid();\n }\n byte[] bArr = this.buffer;\n int i = this.position;\n this.position = i + 1;\n bArr[i] = b;\n this.Bzy++;\n AppMethodBeat.m2505o(121481);\n }", "title": "" }, { "docid": "949670744823472c44e5fdce320424ec", "score": "0.5459449", "text": "public interface C1275p {\r\n /* renamed from: a */\r\n void mo1926a(bf bfVar, String str);\r\n}", "title": "" }, { "docid": "95fc456276a5cf58a385b2cff43eded5", "score": "0.54589605", "text": "public void b(float paramFloat1, float paramFloat2, float paramFloat3)\r\n/* 180: */ {\r\n/* 181:180 */ this.bq = paramFloat1;\r\n/* 182:181 */ this.br = paramFloat2;\r\n/* 183:182 */ this.bs = paramFloat3;\r\n/* 184: */ }", "title": "" }, { "docid": "a3a8ff02350a6d8e6e9e77c3cfcd8ead", "score": "0.5457888", "text": "public b<Object> a(b<Object> bVar) {\n return new a(g.this.f32907a, bVar);\n }", "title": "" }, { "docid": "cb32f15578e7d14d00ef96fa6dafe38d", "score": "0.5450529", "text": "public abstract void mo1794a(bdq bdq);", "title": "" }, { "docid": "0e6d5a838700581b314b07410ba33bf4", "score": "0.5444814", "text": "public void m5982a(eb ebVar) {\n }", "title": "" }, { "docid": "44d9cea5b3958dc113abbe32d36c6676", "score": "0.5432613", "text": "public int b() {\n/* 225 */ return this.i.b();\n/* */ }", "title": "" }, { "docid": "b19c34c08e560624e318edc89770d835", "score": "0.542303", "text": "public int B1b() {\n return 2;\n }", "title": "" }, { "docid": "b5b9fe1dd0186cfbe095868b0b01f7cc", "score": "0.54230225", "text": "void mo2354b(bno bno);", "title": "" }, { "docid": "8f545f7beda82bdedab3d6866f342cb7", "score": "0.5419846", "text": "private final void m2968a(beb beb) {\n beb.mo1139a();\n this.f3519a.add(beb);\n }", "title": "" }, { "docid": "81e78d4af3e9fab59b4d26c9f5725a34", "score": "0.54183537", "text": "abstract public void transfrom() ;", "title": "" }, { "docid": "6c07726afb88760e6818ccd72046c745", "score": "0.54125756", "text": "protected float bA()\r\n/* 59: */ {\r\n/* 60: 66 */ return 0.4F;\r\n/* 61: */ }", "title": "" }, { "docid": "b09e189286960c96f362e0a315bb962b", "score": "0.54020774", "text": "public final /* bridge */ /* synthetic */ void mo121884a(byte b, long j) throws IOException {\n super.mo121884a(b, j);\n }", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.5400384", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "653cb8f6dcd70704e90b0c08cf2bbc5a", "score": "0.53982425", "text": "@Override\n\tpublic void visit(Bala a) {\n\t\t\n\t}", "title": "" }, { "docid": "f785572cad2bd56468ebae6b1f010f97", "score": "0.53892106", "text": "public void b(int i) {\n this.b = i;\n }", "title": "" }, { "docid": "f33935a13f823a73dfa93d018dc773ad", "score": "0.5381558", "text": "public void translate(Vectors b){\n\t\tthis.x += b.X();\n\t\tthis.y += b.Y();\n\t}", "title": "" }, { "docid": "2b7334e013df081c05fb192bf4ac1fbb", "score": "0.536824", "text": "public interface C31154b {\n /* renamed from: a */\n void mo13335a(C6057c c6057c);\n\n /* renamed from: b */\n void mo13336b(C6057c c6057c);\n}", "title": "" }, { "docid": "8b10854be8499639fc018843b981ca6a", "score": "0.53650725", "text": "public GremlinBitstream(Bitstream b){\r\n \tsuper(b.getHeader(),b.getDummySyncData(),b.getPackets());\r\n }", "title": "" }, { "docid": "3470c7585e8fff3459500020b241f7d8", "score": "0.53625137", "text": "public interface b {\n void a(int i);\n\n void b(int i);\n\n void c(int i);\n }", "title": "" }, { "docid": "e656fd4d7ae736803017898eb377b973", "score": "0.5361691", "text": "private interface C6260a {\n /* renamed from: a */\n void mo19167a(Bitmap bitmap);\n\n /* renamed from: b */\n void mo19168b(Bitmap bitmap);\n }", "title": "" }, { "docid": "2738566ee09db3d9e1c6e181d9e9b747", "score": "0.5358928", "text": "public final /* bridge */ /* synthetic */ void mo121882a(byte b, float f) throws IOException {\n super.mo121882a(b, f);\n }", "title": "" }, { "docid": "2c364ee7642003fd77bf84d7872d9303", "score": "0.53521985", "text": "public interface b {\n void a();\n }", "title": "" }, { "docid": "3c9ab0fb274bec4c44d997851fa25cd5", "score": "0.53437996", "text": "public void f() {\r\n for (int b = this.b.b() - 1; b >= 0; b--) {\r\n ((aa) this.b.b(b)).k = true;\r\n }\r\n }", "title": "" }, { "docid": "659019f004de85b1622b03b6a3de3a57", "score": "0.53437996", "text": "public abstract void a(byte[] bArr);", "title": "" }, { "docid": "b4ae025b6aca71f49715dd5162c24afc", "score": "0.5337785", "text": "void mo1926a(bf bfVar, String str);", "title": "" }, { "docid": "8517e490ded5f35bb8042a7f5d37d908", "score": "0.53303164", "text": "private static int argbToInt(int a, int r, int g, int b) {\n return (a << 24) |\n (r << 16) |\n (g << 8) |\n (b << 0);\n }", "title": "" }, { "docid": "3c8adf770e26f53eaab158525638d53f", "score": "0.53153396", "text": "public final /* bridge */ /* synthetic */ void mo121885a(byte b, short s) throws IOException {\n super.mo121885a(b, s);\n }", "title": "" }, { "docid": "c83fc0dbd4070809951728a55cfd49c6", "score": "0.5312454", "text": "interface b {\n void a(boolean z, c cVar);\n\n void b(Throwable th);\n\n void c(d dVar);\n\n void d(boolean z, Object obj);\n\n void e(Throwable th);\n }", "title": "" }, { "docid": "623d7255f43d301eea4da3cba4d72643", "score": "0.53103036", "text": "Line3 b(Vec3 b);", "title": "" }, { "docid": "7c032c06619d0254c814fab8cd700c6b", "score": "0.5308031", "text": "private static void splice(Point a, Point b) {\n Point tmp = b.next;\n\n b.next = a.next;\n b.next.prev = b;\n\n a.next = tmp;\n a.next.prev = a;\n }", "title": "" }, { "docid": "0f3af5b66ef95a5a95378f2d16f3c124", "score": "0.5303189", "text": "public interface b {\n void a(long j, long j2);\n }", "title": "" }, { "docid": "4072efa620b2c42cadacb0d38903cce4", "score": "0.5302455", "text": "public void b(ho paramho)\r\n/* 155: */ {\r\n/* 156:163 */ this.d = paramho;\r\n/* 157: */ }", "title": "" }, { "docid": "ed9fb5108d7fe7063a1f12ad3d50f0d3", "score": "0.53009343", "text": "public static byte[] usePR(byte[] b){\n\t\tbyte temp[] = new byte[b.length];\n\t\tfor(int i = 0; i<b.length; i++){\n\t\t\ttemp[i] = (byte) (b[i] ^ (byte)237);\n\t\t}\n\t\treturn temp;\n\t\t//return b;\n\t}", "title": "" }, { "docid": "5a796cb520c58e59e43d6864f30ad985", "score": "0.5297542", "text": "private static C48149aa m149486a(C48149aa aaVar, C47927b bVar) {\n C7573i.m23587b(aaVar, \"state\");\n C7573i.m23587b(bVar, \"element\");\n if (bVar instanceof C48126cb) {\n ((C48126cb) bVar).mo120258a(aaVar.f122994a, aaVar.mo120364a());\n }\n return aaVar;\n }", "title": "" }, { "docid": "b9b66a55a754844966d0643c02498818", "score": "0.52938515", "text": "void b(c paramc, f0.a parama) {\n }", "title": "" }, { "docid": "d77ed097043a7c39dc537e8c06276d26", "score": "0.52882445", "text": "public final /* bridge */ /* synthetic */ void mo121883a(byte b, int i) throws IOException {\n super.mo121883a(b, i);\n }", "title": "" }, { "docid": "5bfd049294c6f793325c1f50772fefd5", "score": "0.52863157", "text": "StringBuilder modify(StringBuilder b);", "title": "" }, { "docid": "a0e0e3303501c6a2921bc87e14e0d100", "score": "0.52850944", "text": "public interface bdx\n{\n\n\tpublic abstract void a(int i);\n\n\tpublic abstract void a(int i, long l, long l1);\n\n\tpublic abstract void a(bfb bfb);\n\n\tpublic abstract void a(zzfs zzfs);\n\n\tpublic abstract void a(String s, long l, long l1);\n\n\tpublic abstract void b(bfb bfb);\n}", "title": "" }, { "docid": "77b26119cc5715f209b8a0500d76186f", "score": "0.52838904", "text": "public interface C4462n {\n /* renamed from: a */\n byte[] m17661a();\n\n /* renamed from: b */\n String m17662b();\n\n /* renamed from: c */\n boolean m17663c();\n}", "title": "" }, { "docid": "97f30b93dd36118e5c249d18b9a3227d", "score": "0.52832484", "text": "public void mo126b() {\n }", "title": "" }, { "docid": "6585971994670acf6e55f9322fc95f9f", "score": "0.5278987", "text": "public abstract A set(A a, B b);", "title": "" }, { "docid": "a27e4c74b260b899504cb120fe8944d0", "score": "0.5277488", "text": "public g a(int n, g cblk) {\n/* 486 */ return b(n, cblk);\n/* */ }", "title": "" }, { "docid": "1169457591fe146d150eeb337593f6e0", "score": "0.52709216", "text": "protected void b(NBTTagCompound paramfn)\r\n/* 38: */ {\r\n/* 39:1352 */ super.b(paramfn);\r\n/* 40:1353 */ this.a = paramfn.getBoolean(\"leftLow\");\r\n/* 41:1354 */ this.b = paramfn.getBoolean(\"leftHigh\");\r\n/* 42:1355 */ this.c = paramfn.getBoolean(\"rightLow\");\r\n/* 43:1356 */ this.e = paramfn.getBoolean(\"rightHigh\");\r\n/* 44: */ }", "title": "" }, { "docid": "cd89813ee5b1eae1d42fea2c7fe5f610", "score": "0.52685827", "text": "public interface C43079a<T extends C20741b> {\n /* renamed from: a */\n void mo65934a(T t);\n\n void onDetach();\n}", "title": "" }, { "docid": "51be34da417c0cf70060c67e5894a330", "score": "0.52672106", "text": "public Object argObject_2b(Object v);", "title": "" }, { "docid": "12737e16a1530bbc3692e1c8eaf1cc3a", "score": "0.5265127", "text": "public abstract void b(int i);", "title": "" }, { "docid": "2b66aab51f1107be5d594808ff23dc5f", "score": "0.526281", "text": "@Override // b.a.b.a.d\r\n public void a(d.b bVar) {\r\n super.a(bVar);\r\n if (bVar instanceof a) {\r\n this.n = (a) bVar;\r\n }\r\n }", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.5259127", "text": "public void mo9585b() {\n }", "title": "" } ]
a330bd02e7ecd13d17c00c45c591e298
Returns the description of the dialog. It is defined as Dialog.vm.Domain.Description in TextResources.
[ { "docid": "db7ca6aa39326f33c772fdbebb147de9", "score": "0.7967584", "text": "@Override\n protected String getDescription() {\n return Tools.getString(\"Dialog.vm.Domain.Description\");\n }", "title": "" } ]
[ { "docid": "e1d957cbf881b4f5bd3ea89547eaf601", "score": "0.7330862", "text": "@Override\n\tpublic String getDescription() {\n\t\treturn descriptionText.getText();\n\t}", "title": "" }, { "docid": "5992aa91bcb6642274026bd49d99a25b", "score": "0.7237004", "text": "@Override\n\tpublic String getDescription() {\n\t\treturn hpo.getDescription();\n\t}", "title": "" }, { "docid": "e4c3e1032ee4a78a3a77bdf1acd383c5", "score": "0.7231824", "text": "public String getDescription()\n {\n return getStringValue(FLD_DESCRIPTION);\n }", "title": "" }, { "docid": "b01cfaf57e93014f9d834355c0980c6e", "score": "0.71920866", "text": "public String getDescription() {\r\n if (null == i_description) {\r\n return \"\";\r\n }\r\n return i_description;\r\n }", "title": "" }, { "docid": "68bc498e2d3d644ed415cf9b2943fa17", "score": "0.71584684", "text": "public String getDescription() {\n return get(\"Description\").toValue();\n }", "title": "" }, { "docid": "70899e8ce0fb04664ecb162e5bfd256d", "score": "0.71490103", "text": "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "title": "" }, { "docid": "70899e8ce0fb04664ecb162e5bfd256d", "score": "0.71490103", "text": "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "title": "" }, { "docid": "70899e8ce0fb04664ecb162e5bfd256d", "score": "0.71490103", "text": "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "title": "" }, { "docid": "70899e8ce0fb04664ecb162e5bfd256d", "score": "0.71490103", "text": "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "title": "" }, { "docid": "bdc75ecca27c993f830967e0efaf1b62", "score": "0.7141152", "text": "public static String getDescription() {\n\t\treturn description;\n\t}", "title": "" }, { "docid": "16418f54bdd31f12fb659744aa882343", "score": "0.70902175", "text": "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "16418f54bdd31f12fb659744aa882343", "score": "0.70902175", "text": "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "16418f54bdd31f12fb659744aa882343", "score": "0.70902175", "text": "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "dd2a7e36c04c80f42a469d3ebcc013b8", "score": "0.70726025", "text": "public String getTextDescription();", "title": "" }, { "docid": "daead7a30fd520188d542eb7c24fb2d1", "score": "0.70648503", "text": "public String getDescription() {return sDescription; }", "title": "" }, { "docid": "1bc342de0f981c6842cef042b18e83da", "score": "0.706388", "text": "public String getDescription(){\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "d0d45e086ddfc832a39241c5cf9e6f10", "score": "0.7049342", "text": "public String getDescription() { // getting description\r\n return description;\r\n }", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "fb54e53cdfc17cc0d2d95925239d792f", "score": "0.70444834", "text": "java.lang.String getDescription();", "title": "" }, { "docid": "e71d2a9b6d60b237227ae293c800db37", "score": "0.7040943", "text": "public String getDescription() {\n \t\treturn description;\n \t}", "title": "" }, { "docid": "e71d2a9b6d60b237227ae293c800db37", "score": "0.7040943", "text": "public String getDescription() {\n \t\treturn description;\n \t}", "title": "" }, { "docid": "2c0c0f17db9f573b4be29168399b8b9f", "score": "0.70324224", "text": "public String getDescription() {\n return (String) mProperties.get(FIELD_DESCRIPTION);\n }", "title": "" }, { "docid": "19ea9c02af27de2670d47c559b0f023a", "score": "0.7029341", "text": "public String getDescription()\r\n {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "07c0daa8a56713484270b6087c235dc0", "score": "0.70257735", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "de29fafd94d7d720cdddd5f96f505911", "score": "0.70216835", "text": "public String getDescription() {\r\n return description;\r\n }", "title": "" }, { "docid": "0bdc77410153318a48fc0dfc0ec3eea8", "score": "0.70213383", "text": "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "0bdc77410153318a48fc0dfc0ec3eea8", "score": "0.70213383", "text": "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "0bdc77410153318a48fc0dfc0ec3eea8", "score": "0.70213383", "text": "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "0bdc77410153318a48fc0dfc0ec3eea8", "score": "0.70213383", "text": "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "0bdc77410153318a48fc0dfc0ec3eea8", "score": "0.70213383", "text": "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "0bdc77410153318a48fc0dfc0ec3eea8", "score": "0.70213383", "text": "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "7290e311a143364707d1a60981328725", "score": "0.7018152", "text": "public String getDescription() {\n return this.description.getValue();\n }", "title": "" }, { "docid": "c82ed081bea9f18bbb3a448f1244a790", "score": "0.701461", "text": "public String getDescription()\r\n {\r\n return description;\r\n }", "title": "" }, { "docid": "c8dd8bce5d39e5f82081b68a47974454", "score": "0.7009932", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "c8dd8bce5d39e5f82081b68a47974454", "score": "0.7009932", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "c8dd8bce5d39e5f82081b68a47974454", "score": "0.7009932", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "1347aca34193f883063699ed26129c9e", "score": "0.70034957", "text": "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "title": "" }, { "docid": "1347aca34193f883063699ed26129c9e", "score": "0.70034957", "text": "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "title": "" }, { "docid": "1347aca34193f883063699ed26129c9e", "score": "0.70034957", "text": "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "title": "" }, { "docid": "1347aca34193f883063699ed26129c9e", "score": "0.70034957", "text": "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "title": "" }, { "docid": "2009077489d2841fb7534310ace5a579", "score": "0.70026666", "text": "public static final String getDescription()\n {\n return DESCRIPTION;\n }", "title": "" }, { "docid": "ceb072d27e769a02151763fdbd67502c", "score": "0.70007", "text": "public String getDescription() {\n return (String) getObjectValue(DataTypes.OBJ_DESCRIPTION);\n }", "title": "" }, { "docid": "6ceda50732b5eafd2cc192190d8258cf", "score": "0.6999294", "text": "@Nullable\n public String getDescription ()\n {\n return m_sDescription;\n }", "title": "" }, { "docid": "a1c95dd451158fa36b24d09898b5fe9a", "score": "0.6998438", "text": "public @Nullable String getDescription() {\n return description;\n }", "title": "" }, { "docid": "15c8f946979905b6d860291ee34dcc1c", "score": "0.69983053", "text": "public String getDescription() {\n return Description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "9cf2ced19774e50a461f433fcdc712f4", "score": "0.6997768", "text": "public String getDescription() {\n return description;\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "f7c4a807a5151ee20136c3cdeaf988a6", "score": "0.0", "text": "public void mo11198a(JSONSerializer agVar, Object obj, Object obj2, Type type, int i) throws IOException {\n SerializeWriter baVar = agVar.f2846b;\n if (obj instanceof Multimap) {\n agVar.mo11325c(((Multimap) obj).asMap());\n }\n }", "title": "" } ]
[ { "docid": "937780f4f035d57e7a7e7267f6580385", "score": "0.6369484", "text": "public interface C0257a {\n /* renamed from: a */\n void mo786a();\n }", "title": "" }, { "docid": "e64b0e78a1866c07d6a7a8de5ad114d6", "score": "0.63654995", "text": "public a a(ao.a ☃) {\r\n/* 175 */ this.h = ☃.b();", "title": "" }, { "docid": "d402ae6cb02893957e1d2990deaad913", "score": "0.6308025", "text": "public interface C2193b {\n /* renamed from: a */\n void mo4030a(int i, Object obj);\n }", "title": "" }, { "docid": "ba8f76dad884d9e05fed8d591ef4fccd", "score": "0.6300409", "text": "public interface C4568a {\n /* renamed from: a */\n void mo24755a();\n }", "title": "" }, { "docid": "e02308d4ca9dd95a505ece5625db8a70", "score": "0.61857927", "text": "public interface C35559at {\n /* renamed from: a */\n void mo90376a();\n}", "title": "" }, { "docid": "0c42bf984e94067102872376d236f926", "score": "0.61487037", "text": "public interface C4226b {\n /* renamed from: a */\n void mo23224a(int i);\n }", "title": "" }, { "docid": "f9463735da2365bdd1ea8c1af5662f6a", "score": "0.61321104", "text": "public interface C47134b {\n /* renamed from: a */\n void mo118424a();\n }", "title": "" }, { "docid": "6aac2d1cd80eab7b6ca07437465ab587", "score": "0.6092662", "text": "public interface C38261b {\n /* renamed from: a */\n void mo95888a();\n }", "title": "" }, { "docid": "2a92c27025e59e79de12b4cf7fe96e15", "score": "0.60878164", "text": "public interface C0372a {\n /* renamed from: a */\n void mo950a();\n }", "title": "" }, { "docid": "bdeebcea16834f7b9f725108f622ab4a", "score": "0.60655385", "text": "public interface C3466a {\n /* renamed from: a */\n void mo7925a(C7575bv c7575bv);\n }", "title": "" }, { "docid": "0ca0371305dbf355f1f43cf926b61651", "score": "0.6064316", "text": "public interface awr extends axy {\n /* renamed from: a */\n void mo412a(aws aws);\n}", "title": "" }, { "docid": "665d1c56d20e267a5fd58d2bcd5af0f7", "score": "0.6061843", "text": "interface C0733b {\n /* renamed from: a */\n void mo11936a();\n }", "title": "" }, { "docid": "6d8f7c05f80f9acb832f9128324a9501", "score": "0.60342646", "text": "public interface C33494b {\n /* renamed from: a */\n void mo5871a(C33493a c33493a);\n }", "title": "" }, { "docid": "9b88eabc71a888685b0140abf589a052", "score": "0.6022664", "text": "private static void swap(A a, A b) {\n\t\tint t=a.i;\n\t\ta.i=b.i;\n\t\tb.i=t;\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cca0a5939b9ed60a68611ba2afa6262c", "score": "0.6020366", "text": "public interface C32699a {\n /* renamed from: a */\n void mo84155a();\n }", "title": "" }, { "docid": "a877d287d1df44f7f48bd98382d1b681", "score": "0.6009139", "text": "public interface C42929a {\n /* renamed from: a */\n void mo71408a();\n\n /* renamed from: b */\n void mo71409b();\n }", "title": "" }, { "docid": "f1b91de5db261e6f631f0ec13660e83e", "score": "0.5991646", "text": "interface C2515a {\n /* renamed from: a */\n void m9530a(String str);\n }", "title": "" }, { "docid": "8a1ed074a8572ab993f9aca7f543a244", "score": "0.5956434", "text": "public interface C3980a {\n /* renamed from: a */\n void mo9455a(int i);\n }", "title": "" }, { "docid": "4676d462ca50d3e65737e8973ca6280c", "score": "0.59521675", "text": "interface caq {\n /* renamed from: a */\n void mo2606a(bzh bzh);\n}", "title": "" }, { "docid": "a32dd693c27d722fa248029bf4722165", "score": "0.5947403", "text": "public interface C1075b {\n /* renamed from: a */\n void mo10439a(String str);\n }", "title": "" }, { "docid": "ba23360bef0c9a64dde23f5e604e69a0", "score": "0.5926708", "text": "public interface C5332b {\n /* renamed from: a */\n void mo4018a(String str);\n }", "title": "" }, { "docid": "46242a5fae9f4da4b45702efb6b327eb", "score": "0.5921753", "text": "public interface C36223b {\n /* renamed from: a */\n void mo92217a(String str);\n }", "title": "" }, { "docid": "aa38e472c95c8727f1c6e809e412bccf", "score": "0.5918613", "text": "public interface C0433a {\n /* renamed from: a */\n void m1914a();\n }", "title": "" }, { "docid": "fff5f7d4d40dddbc1d67e18653658aa2", "score": "0.58976996", "text": "public interface C1451b {\n /* renamed from: a */\n void mo5017a(String str);\n }", "title": "" }, { "docid": "cd426ca662341c2a9055c55be4a2d0ae", "score": "0.5894773", "text": "public interface C1074a {\n /* renamed from: a */\n void mo10438a(String str);\n }", "title": "" }, { "docid": "91e1805d3d85bf9bac464255651a1ed0", "score": "0.5893678", "text": "public interface C45783b {\n /* renamed from: b */\n C45781a mo110997b();\n}", "title": "" }, { "docid": "ec9e43239cd671297536fd231e061cc2", "score": "0.5883106", "text": "public interface C24705a {\n /* renamed from: a */\n void mo64650a();\n\n /* renamed from: b */\n void mo64651b();\n}", "title": "" }, { "docid": "e8299284aaf8195323dfcf2c2e49a044", "score": "0.5879163", "text": "public interface C0599a {\n /* renamed from: a */\n void mo1375a();\n\n /* renamed from: b */\n void mo1376b();\n }", "title": "" }, { "docid": "e76afc2fd893584bd66c4b66ece9f01d", "score": "0.58790946", "text": "public interface C43371g {\n /* renamed from: a */\n void mo105243a(int i, int i2);\n}", "title": "" }, { "docid": "14df072246679f5091339e9670245447", "score": "0.58570564", "text": "protected Automaton convertAutomaton(Automaton a) {\n\t\treturn a;\n\t}", "title": "" }, { "docid": "8433ef0d728ea85ed5c77eb087d80ef8", "score": "0.5846192", "text": "interface C2094a {\n /* renamed from: a */\n void mo11939a();\n\n /* renamed from: b */\n void mo11940b();\n }", "title": "" }, { "docid": "0a28df39aa5a389edd324a6bf6d59d1c", "score": "0.58265096", "text": "public interface C24424b {\n /* renamed from: a */\n void mo63399a(int i);\n\n /* renamed from: b */\n void mo63400b(int i);\n }", "title": "" }, { "docid": "dc3c360b4221689cb9258962dab88ec4", "score": "0.5821299", "text": "public interface cvt {\n /* renamed from: a */\n void mo3421a(int i);\n\n /* renamed from: a */\n void mo3422a(cvv cvv);\n}", "title": "" }, { "docid": "74ccd9e36d32333c9607042a31cd9983", "score": "0.5818187", "text": "public interface C3302a {\n /* renamed from: a */\n void mo27942a(int i);\n }", "title": "" }, { "docid": "519e208140c60c671fe77a482dd6a0b4", "score": "0.5812891", "text": "public String B(String a) {\n\t\treturn a;\n\t}", "title": "" }, { "docid": "27a710e812cd37ed478a51549058b8aa", "score": "0.5756103", "text": "public interface C0173a {\n /* renamed from: a */\n void mo147a(int i);\n\n /* renamed from: a */\n void mo148a(View view);\n }", "title": "" }, { "docid": "2cc123e23e3586d7aa3340a79e83d99c", "score": "0.5750263", "text": "public interface C28404a {\n /* renamed from: a */\n void mo72138a();\n\n /* renamed from: b */\n void mo72139b();\n }", "title": "" }, { "docid": "e75740eaef2325200b06d4d821e5fb27", "score": "0.5740646", "text": "public interface C2567ma {\n /* renamed from: a */\n boolean mo7856a();\n}", "title": "" }, { "docid": "47b84df59b4861f6f5d28be57a72e823", "score": "0.57368433", "text": "public interface C1544h {\n /* renamed from: a */\n void mo14065a(int i, String str);\n}", "title": "" }, { "docid": "2e84a5356b959ae415e887dd904938b1", "score": "0.57316583", "text": "public interface C10644c {\n /* renamed from: a */\n void mo33666a(C10639a aVar);\n }", "title": "" }, { "docid": "8b3439872d1e4297f287f77bdf1adecb", "score": "0.57282656", "text": "public interface C0589c {\n /* renamed from: a */\n void mo974a(C0587a c0587a);\n}", "title": "" }, { "docid": "4a05adf73df28d59617c0199673d9701", "score": "0.57279474", "text": "public interface C1869c {\n /* renamed from: a */\n String mo1399a(String str);\n}", "title": "" }, { "docid": "653247b1b2b0dc9540a36b58e5605476", "score": "0.5699355", "text": "public interface AbstractC18515a {\n /* renamed from: a */\n void mo89736a();\n }", "title": "" }, { "docid": "dd66ad67809b20bf2317b26b01ff5100", "score": "0.5695602", "text": "public interface C37120a {\n /* renamed from: a */\n void mo93545a();\n\n /* renamed from: b */\n void mo93546b();\n\n /* renamed from: c */\n void mo93547c();\n }", "title": "" }, { "docid": "fee1f4742f6c7162ee32a525aebb7dfa", "score": "0.5637209", "text": "public interface C9197e {\n /* renamed from: a */\n void mo33330a(int i, boolean z);\n }", "title": "" }, { "docid": "38f6730a7a6f3584d629d1391142b46f", "score": "0.5627082", "text": "public interface AbstractC18517c {\n /* renamed from: a */\n void mo89738a();\n }", "title": "" }, { "docid": "8758c28ff96f635cffbd694bfd607a3c", "score": "0.56224865", "text": "public interface C1431c {\n /* renamed from: a */\n void mo6468a(float f);\n}", "title": "" }, { "docid": "8994b8ba3bac7dcba4fac50f10f24f34", "score": "0.5619538", "text": "public interface C7912a {\n /* renamed from: a */\n boolean mo20835a();\n}", "title": "" }, { "docid": "f25b04b8e6a669bcc6dc3149d36e9f50", "score": "0.56064713", "text": "public interface C3345c {\n /* renamed from: a */\n void mo12436a(C3626b bVar);\n\n /* renamed from: a */\n void mo12437a(C3626b bVar, int i);\n}", "title": "" }, { "docid": "fdd0fd3f339008a29b01218231ec7291", "score": "0.5603976", "text": "public interface C5501c {\n /* renamed from: a */\n C5266d mo4084a(C5274c c5274c);\n}", "title": "" }, { "docid": "371b566449dacc1205927ff54e118101", "score": "0.5578522", "text": "public interface C5486b {\n /* renamed from: a */\n void mo27583a();\n\n /* renamed from: a */\n void mo27584a(int i, int i2);\n\n /* renamed from: b */\n void mo27585b();\n }", "title": "" }, { "docid": "c57b8b0095a4b8649bc90a198fc51c81", "score": "0.5574464", "text": "public interface C47558ae<T> {\n /* renamed from: a */\n void mo22262a(C47556ac<T> acVar) throws Exception;\n}", "title": "" }, { "docid": "d24dca269126beeab1b405c54a651c4c", "score": "0.5572384", "text": "public interface AbstractC18381a {\n /* renamed from: a */\n String mo87990a();\n\n /* renamed from: b */\n String mo87991b();\n }", "title": "" }, { "docid": "536a39ede1bf88cc2431974b4d61315a", "score": "0.55638105", "text": "public interface C4847e {\n /* renamed from: a */\n void mo25854a();\n\n /* renamed from: a */\n void mo25855a(NativeUnifiedADData nativeUnifiedADData);\n}", "title": "" }, { "docid": "14ca2bf61553140c1c315dfe0b31ea2c", "score": "0.5551232", "text": "public DList<A> snoc(A a) {\n return this.append(DList.single(a));\n }", "title": "" }, { "docid": "503cd1b0fbffb96a1547b08f6156e4ea", "score": "0.55431056", "text": "public interface C0943a {\n /* renamed from: a */\n void mo1318a(boolean z);\n }", "title": "" }, { "docid": "1240e9d2d1eb64e116e4ebdd98754716", "score": "0.5540903", "text": "private interface C1201a {\n /* renamed from: a */\n void mo9526a(Bitmap bitmap);\n\n /* renamed from: b */\n void mo9527b(Bitmap bitmap);\n }", "title": "" }, { "docid": "98bfc4ed9600f9b6d1cec9e8cc1b640a", "score": "0.55355376", "text": "interface C2173a {\n /* renamed from: a */\n void mo5709a(Exception exc);\n }", "title": "" }, { "docid": "96c3ef5e9f67b168a400f78b649bd418", "score": "0.5516506", "text": "public interface C3542b {\n /* renamed from: a */\n void mo29148a(Uri uri);\n\n /* renamed from: a */\n void mo29149a(Exception exc);\n\n /* renamed from: a */\n void mo29150a(C3540a aVar);\n}", "title": "" }, { "docid": "bdfeaedd5a156c0c93b1a0ee46f5effd", "score": "0.5510298", "text": "public interface C0864a {\n /* renamed from: a */\n void mo3179a();\n\n /* renamed from: a */\n void mo3180a(int i, int i2, int i3, int i4, int i5);\n\n /* renamed from: a */\n void mo3181a(Bundle bundle);\n\n /* renamed from: a */\n void mo3182a(CharSequence charSequence);\n\n /* renamed from: a */\n void mo3183a(Object obj);\n\n /* renamed from: a */\n void mo3184a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3185a(List<?> list);\n\n /* renamed from: b */\n void mo3186b(Object obj);\n }", "title": "" }, { "docid": "e0965120d5425015178bdd95c31bc19c", "score": "0.5509788", "text": "public interface C6409Ba {\n /* renamed from: a */\n String mo19440a();\n\n /* renamed from: b */\n InputStream mo19441b();\n\n /* renamed from: c */\n String[] mo19442c();\n}", "title": "" }, { "docid": "848b36c9750726cf44f002a0050551a8", "score": "0.55079395", "text": "public String a()\r\n/* 20: */ {\r\n/* 21:41 */ return this.a;\r\n/* 22: */ }", "title": "" }, { "docid": "f33c908778c05e932d989e8f568f2176", "score": "0.5502601", "text": "public a.a(String s)\n\t\t{\n\t\t\tb = s;\n\t\t// 7 15:aload_0 \n\t\t// 8 16:aload_1 \n\t\t// 9 17:putfield #34 <Field String b>\n\t\t// 10 20:return \n\t\t}", "title": "" }, { "docid": "b52d09efdd4ce6eb1dad730837f6f1e6", "score": "0.5491452", "text": "public interface C5477c {\n /* renamed from: a */\n long mo5485a();\n}", "title": "" }, { "docid": "f997a70aa54c6c3ef22350f1c36ae0d0", "score": "0.5488488", "text": "public interface C4035c {\n /* renamed from: a */\n void mo9609a();\n\n /* renamed from: b */\n void mo9610b();\n }", "title": "" }, { "docid": "12bff8e743eae9569c7ea3a934911b51", "score": "0.54823935", "text": "public void a(aqb ☃) {\r\n/* 377 */ super.a(☃);\r\n/* 378 */ ☃.a(this, 0, this.a);", "title": "" }, { "docid": "f239fcd2c02943886427d136d11d4aba", "score": "0.54792905", "text": "public interface C34896a {\n /* renamed from: b */\n void mo25333b(btd btd, long j, boolean z);\n }", "title": "" }, { "docid": "4898ce3bafa486c87e7dd17e23fe5b87", "score": "0.547422", "text": "public void a(String paramString)\r\n/* 25: */ {\r\n/* 26:45 */ this.a = paramString;\r\n/* 27: */ }", "title": "" }, { "docid": "52fac2a733eba8fbd98497626731ba84", "score": "0.54606336", "text": "@Override // com.zhihu.android.base.widget.adapter.ZHRecyclerViewAdapter.ViewHolder\n /* renamed from: a */\n public void mo65331a(Object obj) {\n super.mo65331a(obj);\n }", "title": "" }, { "docid": "c9c364e9da5bbd978ffbc3cef450faee", "score": "0.54497004", "text": "public interface C42474b {\n /* renamed from: a */\n void mo103899a();\n\n /* renamed from: a */\n void mo103900a(List<? extends MusicModel> list, boolean z);\n\n /* renamed from: b */\n void mo103901b();\n\n /* renamed from: c */\n void mo103902c();\n }", "title": "" }, { "docid": "6dd8205c8e90b35fe840b14c1ba7fb3c", "score": "0.54487973", "text": "public interface C2192a {\n /* renamed from: a */\n void mo1454a(ExoPlaybackException exoPlaybackException);\n\n /* renamed from: a */\n void mo1455a(C2276k c2276k);\n\n /* renamed from: a */\n void mo1456a(C2313q c2313q, Object obj);\n\n /* renamed from: a */\n void mo1457a(C2327i c2327i, C2158g c2158g);\n\n /* renamed from: a */\n void mo1459a(boolean z, int i);\n\n /* renamed from: b */\n void mo1460b(boolean z);\n\n /* renamed from: f */\n void mo1464f();\n }", "title": "" }, { "docid": "721bd156bf9352b9d3333601e9a8e702", "score": "0.54452944", "text": "public interface C0863c<T> {\n /* renamed from: a */\n void mo3532a(T t);\n }", "title": "" }, { "docid": "48f20e5a19f09457da5a8f5ac86ff2d5", "score": "0.5441441", "text": "interface C8178a extends C8268o {\n /* renamed from: b */\n long mo25237b(long j);\n\n /* renamed from: c */\n long mo25238c();\n }", "title": "" }, { "docid": "1254f809268b0834322217471f812b5d", "score": "0.5440176", "text": "@Override // g.p.q\n public a a() {\n return new a(this);\n }", "title": "" }, { "docid": "34aa1ed0e2a30abd9aed561592f58dad", "score": "0.54362345", "text": "public interface AbstractC1864c {\n /* renamed from: a */\n String mo9936a();\n\n /* renamed from: b */\n String mo9937b();\n}", "title": "" }, { "docid": "ad6933e6536769a5777e81cec564df6e", "score": "0.5434842", "text": "public interface C10830d {\n /* renamed from: a */\n void mo27897a(String str, String str2, String str3, String str4, int i, C10827a aVar);\n}", "title": "" }, { "docid": "9eee48625c9826b1b13669763f9ea689", "score": "0.542951", "text": "@Override\n\tpublic void transform(E a, E b) {\n\t\t\n\t}", "title": "" }, { "docid": "64fd7370f191393337b6125ac7aebe1e", "score": "0.54281354", "text": "public interface C3044e {\n /* renamed from: a */\n void mo27484a();\n\n /* renamed from: a */\n void mo27485a(Exception exc);\n}", "title": "" }, { "docid": "3abde54166ca2559199b00310d097520", "score": "0.54231817", "text": "interface C13496b {\n /* renamed from: a */\n void mo38875a();\n\n /* renamed from: a */\n boolean mo38876a(C13499b bVar);\n }", "title": "" }, { "docid": "339d3ec9adb742a91c58c76c3b3c5c72", "score": "0.5422737", "text": "public interface C37334b {\n /* renamed from: a */\n void mo93929a(int i, Exception exc);\n\n /* renamed from: a */\n void mo93930a(int i, Object obj);\n}", "title": "" }, { "docid": "3829dfa26e9ad8a1f009540a766fb7a5", "score": "0.54100937", "text": "public interface C6980m extends C4926d<C7575bv> {\n\n /* renamed from: com.tencent.mm.plugin.messenger.foundation.a.a.m$a */\n public interface C3466a {\n /* renamed from: a */\n void mo7925a(C7575bv c7575bv);\n }\n\n /* renamed from: RB */\n C7575bv mo15364RB(String str);\n\n /* renamed from: RC */\n int mo15365RC(String str);\n\n /* renamed from: a */\n void mo15366a(C3466a c3466a);\n\n /* renamed from: b */\n void mo15367b(C3466a c3466a);\n}", "title": "" }, { "docid": "bd33383d5ce48c9808a0bc8eac21886f", "score": "0.540851", "text": "public interface C13308h<T> {\n /* renamed from: a */\n boolean mo32572a(T t);\n}", "title": "" }, { "docid": "354dd313eaf263f434d8fc354c452c6e", "score": "0.54056334", "text": "public interface AbstractC1482g {\n /* renamed from: a */\n void mo8618a();\n\n /* renamed from: a */\n void mo8621a(Object obj);\n\n /* renamed from: b */\n void mo8623b();\n}", "title": "" }, { "docid": "070b1e8b1501eff333a90a38a5b1ab7a", "score": "0.5402275", "text": "public interface az {\n /* renamed from: b */\n <S extends ay> S mo7210b();\n}", "title": "" }, { "docid": "97388fa245eb0d20bc49f442dbffc54a", "score": "0.5401514", "text": "interface a {}", "title": "" }, { "docid": "0b4ce89269e2ad8882f55a31dbcaf0a8", "score": "0.54012275", "text": "public interface AbstractC0338a {\n /* renamed from: a */\n void mo432a(boolean z);\n }", "title": "" }, { "docid": "3742c014a629399c33d338909c33db19", "score": "0.539852", "text": "public interface C9198f {\n /* renamed from: a */\n void mo33331a(int i, boolean z);\n }", "title": "" }, { "docid": "9a1df8eae51cc35e3bbfd752cad2dff4", "score": "0.5396802", "text": "public interface C11330a {\n /* renamed from: a */\n void mo27331a(C11330a aVar);\n\n /* renamed from: a */\n void mo27328a(C11351d dVar);\n\n /* renamed from: a */\n void mo27329a(C11351d dVar, int i, int i2);\n\n /* renamed from: b */\n void mo27330b(C11351d dVar, int i, int i2);\n\n /* renamed from: d */\n C11351d mo27334d();\n}", "title": "" }, { "docid": "66cb273e3e32577a6ed22af969c95167", "score": "0.5392445", "text": "public interface C0307a {\n /* renamed from: a */\n boolean mo1686a();\n }", "title": "" }, { "docid": "bdd0f899262c0a0516dacdc4778d6c9f", "score": "0.539024", "text": "public void an() {\n\t}", "title": "" }, { "docid": "f0d972eac4c05b853b09e28bb88ea354", "score": "0.5388332", "text": "public interface C3869a<R> {\n /* renamed from: a */\n void mo11403a(R r);\n }", "title": "" }, { "docid": "fe9b1c6de04f9dfeb2feb71c423c3f20", "score": "0.53836817", "text": "public interface C7752a {\n /* renamed from: a */\n void mo37610a(AlbumFile albumFile);\n\n /* renamed from: d */\n void mo37616d();\n }", "title": "" }, { "docid": "e7c3444f9874b9e9ea028431b94b4b2f", "score": "0.53778785", "text": "public interface C27353a {\n /* renamed from: a */\n void mo70405a(EffectModel effectModel, int i, int i2);\n }", "title": "" }, { "docid": "c7393a80599379ec69a83c90e248ca98", "score": "0.53554374", "text": "public interface C1714a {\n /* renamed from: a */\n void mo7858a(JSONArray jSONArray);\n }", "title": "" }, { "docid": "0c55a3eb07a1801376bbce1ea89f73d8", "score": "0.5353947", "text": "public interface C32534a {\n /* renamed from: a */\n View mo83771a();\n\n /* renamed from: a */\n void mo83775a(C35611a aVar);\n\n /* renamed from: a */\n void mo83776a(View... viewArr);\n\n /* renamed from: b */\n void mo83778b();\n\n /* renamed from: c */\n void mo83780c();\n}", "title": "" }, { "docid": "e0c21f8dbd658485edf408f7f43ae1be", "score": "0.53412503", "text": "public void a() {}", "title": "" }, { "docid": "5a4469a990f50a390902631f5de02b8c", "score": "0.5335084", "text": "public interface C0039a<T> {\n /* renamed from: a */\n Iterator<T> mo6a();\n}", "title": "" }, { "docid": "b4e09243e18924a172bc57104f67a4bf", "score": "0.5329545", "text": "interface AbstractC3012f {\n /* renamed from: a */\n void mo22940a(Map<String, String> map);\n}", "title": "" }, { "docid": "256aa7db66a5055052e976f1a98b203f", "score": "0.5327647", "text": "public interface C41033be {\n /* renamed from: a */\n void mo65113a(C44499az c44499az);\n\n /* renamed from: a */\n boolean mo65114a(C44498ay c44498ay);\n\n /* renamed from: a */\n boolean mo65115a(C46770bd c46770bd);\n}", "title": "" }, { "docid": "a4704ce7813421e5801f4faa8aaff590", "score": "0.5322803", "text": "static Vec aTOp(Vec a) {\n double px = -Math.sin(a.v[1]) / Math.abs(a.v[2]);\n double py = Math.cos(a.v[1]) / Math.abs(a.v[2]);\n double pz = a.v[4] / Math.abs(a.v[2]);\n return new Vec(px, py, pz);\n }", "title": "" }, { "docid": "9538184decb4a0ff27a4015b7f6ba0ef", "score": "0.53173286", "text": "public void prefixPhenotype(String a) {\n for (int i = 0; i < numPhenotype; i++) {\n renamePhenotype(phenotypeName.get(i).str(), a + phenotypeName.get(i).str());\n }\n }", "title": "" } ]
bc128a38e57a2c2ca9b3cef706140f5a
Intent intent = new Intent(Settings.ACTION_SETTINGS); startActivity(intent);
[ { "docid": "a35c7259739c68b830915d5d60408aa4", "score": "0.6653777", "text": "private void openSystemSettings() {\n }", "title": "" } ]
[ { "docid": "f4ebec6d17abe4b3c2f1c8f1d4a117e8", "score": "0.837693", "text": "private void goToSettings(){\n Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", Objects.requireNonNull(getActivity()).getPackageName(), null);\n intent.setData(uri);\n int REQUEST_PERMISSION = 0;\n startActivityForResult(intent, REQUEST_PERMISSION);\n }", "title": "" }, { "docid": "8382897d12ce1f15552e57cf485a18ed", "score": "0.8313472", "text": "private void settings() {\n\t\tIntent i=new Intent(MainActivity.this,Settings.class);\n\t\tstartActivity(i);\n\t\t\n\t}", "title": "" }, { "docid": "6532fd6c284a582e6833210ee9af6384", "score": "0.82940316", "text": "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", mContext.getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "title": "" }, { "docid": "205703109a1d599ff81ae92a332e26a7", "score": "0.828804", "text": "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getActivity().getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "title": "" }, { "docid": "05d0d6f0807f0b2e57d3c0e3ede87e0c", "score": "0.8277799", "text": "public void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "title": "" }, { "docid": "8e710a003ef36e8f16b6d84b5352fa34", "score": "0.82611907", "text": "private void openSettings() {\r\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\r\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\r\n intent.setData(uri);\r\n startActivityForResult(intent, 101);\r\n }", "title": "" }, { "docid": "ec42f5822bf3027969448eaf8dc2aa87", "score": "0.8255937", "text": "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "title": "" }, { "docid": "bb8f836104e56ef1ed8e2ea365f82084", "score": "0.8222174", "text": "public void showSettings() // go to settings activity\n {\n Intent intent = new Intent(this, SettingsActivity.class);\n startActivity (intent);\n }", "title": "" }, { "docid": "1fca339f213a16790b6af01c3e2ae5dd", "score": "0.804771", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n Uri uri = Uri.fromParts(\"package\", context.getPackageName(), null);\n intent.setData(uri);\n startActivity(intent);\n }", "title": "" }, { "docid": "a6402c9140dbdc5ec6744af9b369a796", "score": "0.791067", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));\n }", "title": "" }, { "docid": "2847f4c10dd9286b19d9b1b47a92ff55", "score": "0.7910631", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "title": "" }, { "docid": "e2f50606cc34561a4dab3147c1d1b128", "score": "0.7880501", "text": "@SuppressWarnings(\"unused\")\n private void showSettings() {\n/* // Here, we open up our settings activity\n Intent intent = new Intent (getApplicationContext (), SettingsActivity.class);\n startActivity (intent);*/\n }", "title": "" }, { "docid": "6cbe7d3fb007326a4b9ff05305c166e3", "score": "0.7860424", "text": "@ReactMethod\n public void openSettings() {\n Intent intent = new Intent();\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n //above android 8.0 jump to notification channels\n if (Build.VERSION.SDK_INT >= 26) {\n intent.setAction(\"android.settings.APP_NOTIFICATION_SETTINGS\");\n intent.putExtra(\"android.provider.extra.APP_PACKAGE\", reactContext.getPackageName());\n }\n //android 5.0-7.0 notification settings\n if (Build.VERSION.SDK_INT >= 21 && Build.VERSION.SDK_INT < 26) {\n intent.setAction(\"android.settings.APP_NOTIFICATION_SETTINGS\");\n intent.putExtra(\"app_package\", reactContext.getPackageName());\n intent.putExtra(\"app_uid\", reactContext.getApplicationInfo().uid);\n }\n //others\n if (Build.VERSION.SDK_INT < 21) {\n intent.setAction(\"android.settings.APPLICATION_DETAILS_SETTINGS\");\n intent.setData(Uri.fromParts(\"package\", reactContext.getPackageName(), null));\n }\n reactContext.startActivity(intent);\n }", "title": "" }, { "docid": "0be08b5acefcb5fc9d73328db9924596", "score": "0.77695024", "text": "private void gotoSettings() {\n \t\tIntent i = new Intent( this, GlobalSettingsActivity.class );\n \t\tthis.startActivity( i );\n \t}", "title": "" }, { "docid": "c9e5b72ed3714500311cc292fcf418be", "score": "0.7763318", "text": "private void openSettingsActivity() {\n Intent toSettingsActivity = new Intent();\n toSettingsActivity.setClass(this, Settings_activity.class);\n this.startActivity(toSettingsActivity);\n }", "title": "" }, { "docid": "cc0b6c0d340448e5185dea8499ea1c45", "score": "0.77171606", "text": "@Override\n\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\tToast.makeText(getActivity(), \"进入系统设置界面\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\tIntent intent = new Intent(\n\t\t\t\t\tandroid.provider.Settings.ACTION_WIRELESS_SETTINGS);\n\t\t\t// 4.0以下系统可以这样intent.setClassName(\"com.android.settings\",\n\t\t\t// \"com.android.settings.SecuritySettings\");\n\t\t\tstartActivity(intent);\n\t\t}", "title": "" }, { "docid": "151ed08e8864b8fd1dfb1f8549ed8885", "score": "0.75651836", "text": "public void showSettings (View view){\n Intent intent = new Intent(this, ShowSettings.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "468e42dec89348370db2ce5e5b817fb2", "score": "0.7506751", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(\"android.settings.WIRELESS_SETTINGS\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "0f49c77a3b8ade6d722b69d531c1d512", "score": "0.74353987", "text": "public void showSettings(){\n //Intent intent = new Intent(this, SettingsActivity.class);\n //startActivity(intent);\n finish();\n }", "title": "" }, { "docid": "93d7c323e47a4b8041a554121a996c73", "score": "0.73360515", "text": "public void preferenceClick(MenuItem item){\n Intent nextActivity = new Intent(MainActivity.this, SettingsActivity.class);\n startActivity(nextActivity);\n\n }", "title": "" }, { "docid": "0eb4c502e2f8836ad35c7314191c6893", "score": "0.7277869", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent ; \n\t\t startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS));//进入无线网络配置界面 \n\t\t\t}", "title": "" }, { "docid": "ada5053ab592d980b531a7165dbf37a8", "score": "0.72578275", "text": "public void settingsClick(MenuItem item) {\n Intent intent = new Intent(MainActivity.this, MainMenu.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "780abc63685b929e3e2c4585307c3ef6", "score": "0.72549236", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\tcase R.id.eternetSetting:\n\t\t\t\tmContext.startActivity(new Intent(\n\t\t\t\t\t\tandroid.provider.Settings.ACTION_SETTINGS));\n\t\t\t\tbreak;\n\t\t\tcase R.id.wifiSetting:\n\t\t\t\tmContext.startActivity(new Intent(\n\t\t\t\t\t\tandroid.provider.Settings.ACTION_WIFI_SETTINGS));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8e8952ff7f3fab9b3222d2fdd60fd7c6", "score": "0.72386396", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent i = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(i);\n }", "title": "" }, { "docid": "5097774feae3b9d61e933899a7abdafc", "score": "0.720985", "text": "@Override\n public void onClick(View v) {\n Intent settingsIntent = new Intent(MainActivity.this, Settings.class);\n startActivityForResult(settingsIntent,0);\n }", "title": "" }, { "docid": "08152e548f9a49f25bef7ded831278b6", "score": "0.7169707", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n Intent intent = new Intent();\n intent.setClass(MainActivity.this, SetPreferenceActivity.class);\n startActivityForResult(intent, 0);\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d7e4bf715489d43b785a7f014887e65d", "score": "0.7138945", "text": "public static Intent m42695d() {\n return new Intent(\"android.settings.APPLICATION_SETTINGS\");\n }", "title": "" }, { "docid": "4ff957af1fa47981e4bea1a6e3307c1d", "score": "0.70768315", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n Intent intent4=new Intent(MainActivity.this,settingpage.class);\n startActivity(intent4);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4a73807021119c5026bc4d6b14a518c1", "score": "0.704853", "text": "public void showSettings(MenuItem item) {\n Intent intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "908adab85812b6d1198acb6abe507832", "score": "0.70030254", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n \tIntent intent = new Intent(this, SettingsActivity.class);\n \tstartActivity(intent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4c2d38a66d2fa3a8d7da698214a0953f", "score": "0.7002131", "text": "protected void openSecuritySettings() {\n Context context = InstrumentationRegistry.getTargetContext();\n\n final Intent i = new Intent();\n i.setAction(Settings.ACTION_SECURITY_SETTINGS);\n i.addCategory(Intent.CATEGORY_DEFAULT);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n i.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n i.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\n context.startActivity(i);\n\n uiDevice.waitForIdle(of(UI_WAIT));\n }", "title": "" }, { "docid": "54aa3a97dde3aece8f5d533068a73e4c", "score": "0.7001878", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(getApplicationContext(), SettingsActivity.class));\r\n\t\t\t}", "title": "" }, { "docid": "15b0bcd86e36cda68225a505eb699307", "score": "0.69865173", "text": "private void startSettings() {\n if (!Dependency.get(DeviceProvisionedController.class).isCurrentUserSetup()) {\n mActivityStarter.postQSRunnableDismissingKeyguard(() -> { });\n return;\n }\n MetricsLogger.action(mContext,\n mExpanded ? MetricsProto.MetricsEvent.ACTION_QS_EXPANDED_SETTINGS_LAUNCH\n : MetricsProto.MetricsEvent.ACTION_QS_COLLAPSED_SETTINGS_LAUNCH);\n if (mSettingsButton.isTunerClick()) {\n Dependency.get(ActivityStarter.class).postQSRunnableDismissingKeyguard(() -> {\n if (TunerService.isTunerEnabled(mContext)) {\n TunerService.showResetRequest(mContext, () -> {\n startSettingsActivity();\n });\n } else {\n Toast.makeText(getContext(), R.string.tuner_toast,\n Toast.LENGTH_LONG).show();\n TunerService.setTunerEnabled(mContext, true);\n }\n startSettingsActivity();\n });\n } else {\n startSettingsActivity();\n }\n }", "title": "" }, { "docid": "3897f736ec45017749712f6735fde811", "score": "0.69790536", "text": "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "title": "" }, { "docid": "bbd17e69c8a72fb4735e824c7b46d5d3", "score": "0.6958682", "text": "private void openNotificationSettingsForApp() {\n // Links to this app's notification settings\n Intent intent = new Intent();\n\n if (android.os.Build.VERSION.SDK_INT >= 26) {\n intent.setAction(Settings.ACTION_APP_NOTIFICATION_SETTINGS);\n intent.putExtra(Settings.EXTRA_APP_PACKAGE, getPackageName());\n } else {\n intent.setAction(\"android.settings.APP_NOTIFICATION_SETTINGS\");\n intent.putExtra(\"app_package\", getPackageName());\n intent.putExtra(\"app_uid\", getApplicationInfo().uid);\n }\n\n try {\n startActivity(intent);\n } catch (ActivityNotFoundException e) {\n Log.e(TAG, \"Couldn't open notification Settings: \" + e.toString());\n // TODO: Open another SnackBar? (Toasts are disabled along with notifications.)\n }\n }", "title": "" }, { "docid": "909c07459b23c6a9a41f71b7232436cf", "score": "0.6947969", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if(id == R.id.action_settings){\n Intent settingsIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsIntent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0baa8b4a32dc70f4e550899c5464da46", "score": "0.69430465", "text": "@Override\n public void onSettingsUpdated() {\n finish();\n startActivity(getIntent());\n }", "title": "" }, { "docid": "2a35f8a04cc325207452f0141443e54e", "score": "0.6934087", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t case R.id.action_settings:\n\t //openSettings();\n\t return true;\n\t default:\n\t return super.onOptionsItemSelected(item);\n\t }\n\t}", "title": "" }, { "docid": "ca93d87683377708773d78bfce8f5bfb", "score": "0.6926349", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent myIntent = new Intent(MainActivity.this, SettingsActivity.class);\n // myIntent.putExtra(); //Optional parameters\n MainActivity.this.startActivity(myIntent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "049c0a4344bf5bad85a0477e46346a85", "score": "0.6900405", "text": "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n\n Intent intent = new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "6d2ccdc5d693acd4eafcc939f0a2f4f8", "score": "0.69003326", "text": "private void openSettings() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0219e9ec20902db1e3769839dde27a75", "score": "0.6894915", "text": "private void openSettings() {\n\t}", "title": "" }, { "docid": "0ae23598da07efc05ba941a964c9edea", "score": "0.6893426", "text": "public void onClick(DialogInterface dialog,\n int id) {\n Intent callGPSSettingIntent = new Intent(\n android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n activity.startActivity(callGPSSettingIntent);\n }", "title": "" }, { "docid": "3f264735a63278a00938b0f1392336b4", "score": "0.68737906", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == R.id.action_setting) {\r\n\t\t\tthis.startActivity(sSettingsIntent);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "742958ece11506209e295fc5deafc3fb", "score": "0.6851805", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t case R.id.action_settings:\n\t openSettings();\n\t return true;\n\t default:\n\t return super.onOptionsItemSelected(item);\n\t }\n\t}", "title": "" }, { "docid": "14931f238946b919667933e6dba5b66a", "score": "0.68047446", "text": "public void onClick(DialogInterface dialog, int which) {\n Intent callGPSSettingIntent = new Intent(\n android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(callGPSSettingIntent);\n\n }", "title": "" }, { "docid": "149610aa8a0dd7516a67e8791a3afb99", "score": "0.67964154", "text": "private void onClickShowAdvancedSettings() {\n buttonShowAdvancedSettings.setEnabled(false);\n Intent intent = new Intent(getApplicationContext(), SettingsAdvancedActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "daeb11816383dca071c13d0cc391d202", "score": "0.6793426", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Log.d(\"SETTINGS\", \"HELLO\");\n Intent i = new Intent(MainActivity.this, SettingsActivity.class);\n startActivityForResult(i, 0);\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b2088c3b214cff9862cd82f0bd08df84", "score": "0.679249", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n Intent intentFilter=new Intent(MainActivity.this,Setting.class);\r\n startActivity(intentFilter);\r\n\t\t\t}", "title": "" }, { "docid": "5eeb650f7c80316644206cf64c554c91", "score": "0.67841196", "text": "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n System.exit(0);\n\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n\n\n }", "title": "" }, { "docid": "50de04640880e729574eb107146dbe71", "score": "0.6780252", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n if (id == R.id.action_settings)\n {\n Intent PreferenceScreen = new Intent(this, Preferences.class);\n startActivity(PreferenceScreen);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0b1a90c187c756928ff4486e17716b24", "score": "0.67775023", "text": "@Override\n public void onClick(View v) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(BaseActivity.this, Manifest.permission.INTERNET)\n && ActivityCompat.shouldShowRequestPermissionRationale(BaseActivity.this, Manifest.permission.ACCESS_NETWORK_STATE)\n && ActivityCompat.shouldShowRequestPermissionRationale(BaseActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n && ActivityCompat.shouldShowRequestPermissionRationale(BaseActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)) {\n\n // ask permission\n askForPermission();\n } else {\n // if can't show request permission then goto application settings\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(getString(R.string.package_value), getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 0);\n }\n }", "title": "" }, { "docid": "f24f580d15e3550131ebbddcb3105ea7", "score": "0.67769265", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(DashBoardActivity.this, SettingsActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "55006806799d5d285e2a39f3958b21b2", "score": "0.67527306", "text": "public void showSettingsAlert(){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // Setting Icon to Dialog\n //alertDialog.setIcon(R.drawable.delete);\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "title": "" }, { "docid": "82ba6d1fe95df0bb0ed7b549ca49564a", "score": "0.67435443", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tIntent intent=new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "425cb08285bf190a3cbc6a6bf4552c5e", "score": "0.67364585", "text": "public static void openSettings(final Context context, String[] permissions, final int PERMISSION_CONSTANT) {\n if (context == null || permissions == null || permissions.length == 0) return;\n // Previously Permission Request was cancelled with Don't Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(R.string.app_name);\n builder.setMessage(permissionMessage(context, permissions));\n builder.setPositiveButton(\"Grant\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n toast(context, \"Go to Setting to grant permission\");\n dialog.dismiss();\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", context.getPackageName(), null);\n intent.setData(uri);\n ((Activity) context).startActivityForResult(intent, PERMISSION_CONSTANT);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.show();\n\n }", "title": "" }, { "docid": "e18a59761006bc605f21335499c2e27e", "score": "0.67349595", "text": "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(MyActivity.this);\n // Title\n alertDialog.setTitle(\"GPS is settings\");\n //Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n // Settings button action.\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n MyActivity.this.startActivity(intent);\n }\n });\n //cancel button action.\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n Toast.makeText(MyActivity.this,\"Please Allow to use Location Service\",Toast.LENGTH_LONG ).show();\n // Call Alert\n AlertDialog dialog = alertDialog.create();\n dialog.show();\n }", "title": "" }, { "docid": "ffd636b8c2d3853e7e67c7a794a6d263", "score": "0.6729752", "text": "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\talertView.dismiss();\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n\t\t\t\t\tintent.setClassName(\"com.android.phone\", \"com.android.phone.Settings\");\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "title": "" }, { "docid": "525914e1199f49c89061807f9a7069fe", "score": "0.67149657", "text": "public void settingPermission() {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n 1);\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n 1);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n if (!Settings.System.canWrite(getApplicationContext())) {\n Toast.makeText(getApplicationContext(), \"PLEASE ALLOW PERMISSION FOR STORAGE\", Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS, Uri.parse(\"package:\" + getPackageName()));\n startActivityForResult(intent, 200);\n\n }\n }\n }", "title": "" }, { "docid": "56daf68bacb575b869715d74ab438052", "score": "0.67133504", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent = new Intent(MainActivity.this, Preferences.class);\n startActivity(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a8799ab235f2d1b4c4387ce005ed7b42", "score": "0.6710415", "text": "private final void doDiscovery() {\n if (LOG_DEBUG) Log.d(TAG, \"doDiscovery()\");\n\n final Intent btIntent = new Intent(Intent.ACTION_MAIN);\n btIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n btIntent.setComponent(new ComponentName(SETTINGS_PACKAGE_NAME,\n SETTINGS_COMPONENT_NAME));\n startActivity(btIntent);\n }", "title": "" }, { "docid": "36ae8304d9e5ae6f7ef8d3c4f94c55ed", "score": "0.6707621", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case R.id.action_adv:\n System.out.println(\"Pressed Settings\");\n Intent intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "3c1226858861d62c5678c69d459ccf41", "score": "0.667398", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent preferencesIntent = new Intent(this, SettingsActivity.class);\n startActivity(preferencesIntent);\n return super.onOptionsItemSelected(item);\n\n }", "title": "" }, { "docid": "1e43ef81f28284d34cfc38476b1c296a", "score": "0.66732603", "text": "private void showDialogTipUserGoToAppSetting(){\n dialog = new AlertDialog.Builder(this)\n .setTitle(\"Unable To Access External Storage !\")\n .setMessage(\"Please Enable It In Setting !\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",getPackageName(),null);\n intent.setData(uri);\n\n startActivityForResult(intent,123);\n finish();\n }\n\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n }).setCancelable(false).show();\n\n dialog.show();\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(Color.BLACK);\n\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(Color.BLACK);\n }", "title": "" }, { "docid": "f961e66146aa353a0cccc833ab152c72", "score": "0.6667492", "text": "protected void setupSettingsItems(){\n Intent btIntent = new Intent(Intent.ACTION_MAIN);\n btIntent.setClassName(\"com.android.settings\",\n\t\t\t \"com.android.settings.bluetooth.BluetoothSettings\"); \n mSettingList.add(new SettingItem(btIntent, \"Pair Device\"));\n mSettingList.add(new SettingItem(new Intent(\"com.reconinstruments.jetunpairdevice.UNPAIR\"), \"Forget Devices\"));\n\t}", "title": "" }, { "docid": "dcbb71adeb557b3ab707e7d9cbfb7b10", "score": "0.6659281", "text": "public void showSettings(View v) {\n Intent intent = new Intent(this, settingsActivity.class);\n intent.putExtra(\"Key\", key);\n startActivity(intent);\n }", "title": "" }, { "docid": "a9198cd222db1723306a865087da374b", "score": "0.66585845", "text": "@Override\n public void onClick(View v) {\n Intent i = new Intent(SettingsActivity.this, AboutMeActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "bd6ffb03106df2dd5ad73e2ebe2780be", "score": "0.6650231", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.settings) {\n startActivity(new Intent(getApplicationContext(), SettingsActivity.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d7448c1d4002c4a7283191310d214b9d", "score": "0.6649572", "text": "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(MyService.this);\n\n // Setting DialogHelp Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting DialogHelp Message\n alertDialog\n .setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(\n Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "title": "" }, { "docid": "1b4c6b05a212343ab43915c0968dfbe4", "score": "0.66488576", "text": "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "title": "" }, { "docid": "77850c7db55e470d0336014548eff95c", "score": "0.6648576", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\r\n\t\tif (id == R.id.action_settings) {\r\n openSettings();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "title": "" }, { "docid": "55796a84144c271067e0f1fde7f28115", "score": "0.6646713", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.action_settings:\n break;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9caf74e6ea8a6a379020134bb4ad4dba", "score": "0.6640692", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent si = new Intent(MainActivity.this, Setting2.class);\n startActivity(si);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "46aab55f6d43e2b3b65da48c5605acec", "score": "0.66405535", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n Intent intent = new Intent(MainActivity.this, About.class);\n startActivity(intent);\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b297e86003547188437da2aa7bdd8ddd", "score": "0.6628727", "text": "void settingsToHelpScreenIntent(){\n //go to main activity\n Intent intent = new Intent(this, HelpActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }", "title": "" }, { "docid": "a5740ddd2e56c0acb6f48e61f84478b4", "score": "0.6625139", "text": "public void showSettingsAlert(){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", (dialog, which) -> {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", (dialog, which) -> dialog.cancel());\n\n // Showing Alert Message\n alertDialog.show();\n }", "title": "" }, { "docid": "06f27a51659e5ab7f92498869cb330ac", "score": "0.661172", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t switch (item.getItemId()) {\r\n\t case R.id.action_search:\r\n\t //openSearch();\r\n\t \tToast.makeText(getApplicationContext(), \"setting\",\r\n\t \t\t\t Toast.LENGTH_LONG).show();\t \t\r\n\t return true;\r\n\t case R.id.action_settings:\r\n\t \tToast.makeText(getApplicationContext(), \"start\",\r\n\t \t\t\t Toast.LENGTH_LONG).show();\r\n\t //openSettings();\r\n\t return true;\r\n\t default:\r\n\t return super.onOptionsItemSelected(item);\r\n\t }\r\n\t}", "title": "" }, { "docid": "2ae5afd3c4c57a7629968714cca007df", "score": "0.6604442", "text": "public void onClick(DialogInterface dialog, int whichButton) {\n final Intent intent = new Intent(Intent.ACTION_MAIN, null);\n intent.addCategory(Intent.CATEGORY_LAUNCHER);\n final ComponentName cn = new ComponentName(\"com.android.settings\", \"com.android.settings.wifi.WifiSettings\");\n intent.setComponent(cn);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity( intent);\n\t\t\t\t\t}", "title": "" }, { "docid": "cfad0dc0fd325cadb415fc211fa4bd68", "score": "0.6592577", "text": "public void onClickSettingsButton(View view) {\n }", "title": "" }, { "docid": "869554996fa2aa7acdbad5ae49bf7a36", "score": "0.6590647", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_settings:\n openSettings();\t//打开设置页面\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "8701495dbc2ba00a40216c24bb9f8ae2", "score": "0.65821356", "text": "public static void startAppSettings(@NonNull Context context) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setData(Uri.parse(\"package:\" + context.getPackageName()));\n context.startActivity(intent);\n }", "title": "" }, { "docid": "6dd7a631a80a63967576dcb4c5916c1a", "score": "0.65677226", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_settings) {\n startActivity(new Intent(this,SettingsActivity.class));\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "11cdd0568efda6e08d963f39e1fa9814", "score": "0.65634817", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n if (id == R.id.action_settings) { // settings\n Toast.makeText(getApplicationContext(), \"Settings\", Toast.LENGTH_SHORT).show();\n showSettings();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "df66917d8869c073e88e37ea1aacdd42", "score": "0.65608746", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent = new Intent(HomeActivity.this, SettingsPage.class);\n startActivity(intent);\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ad17490f6ddc0a932ac52e4dd9b6e012", "score": "0.6552749", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_settings:\n openSettings();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "29275720aa98cc7b3396cc8f696f8164", "score": "0.6551928", "text": "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS settings\");\n\n // Setting Dialog Message\n alertDialog\n .setMessage(\"GPS is not enabled. Do you want to go to settings menu?\\n\" +\n \"*hint* enable both to get a more accurate location.\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(\n Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n startActivity(new Intent(getApplicationContext(),EmergencyChoice.class));\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "title": "" }, { "docid": "143ad7dd70c3f5976002fdbd14b9aece", "score": "0.65447277", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item){\n\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n\n }", "title": "" }, { "docid": "6dc3d459bb73f4977f25012b906b2b70", "score": "0.65349126", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent p = new Intent(this,Prefs.class);\n startActivity(p);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "70faa294eca47dcedf6cadf904646e5c", "score": "0.6533998", "text": "private void showSettingsDialog()\r\n\t{\r\n\t\tSettingsDialog dialog = new SettingsDialog(this);\r\n\r\n\t\tdialog.setOnDismissListener(new OnDismissListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void onDismiss(DialogInterface arg0)\r\n\t\t\t{\r\n\t\t\t\t// Read the new preferences.\r\n\t\t\t\treadPrefs();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tdialog.show();\r\n\t}", "title": "" }, { "docid": "588973fa5213f6a08ea8515f7e446983", "score": "0.6533188", "text": "public void showSettingsAlert(){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\n\n // Setting Dialog Title\n alertDialog.setTitle(mContext.getString(R.string.gpsnotdetected));\n\n // Setting Dialog Message\n alertDialog.setMessage(mContext.getString(R.string.gostariadeativargps));\n\n // On pressing Settings button\n alertDialog.setPositiveButton(mContext.getString(R.string.configuracoes), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(mContext.getString(R.string.naoquerousargps), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "title": "" }, { "docid": "4d8e90237eb09ee98112f4603649470f", "score": "0.65314627", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_settings) {\n Intent settingsIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsIntent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "32bb6f862dd914400c59447d8a2b5abc", "score": "0.6528396", "text": "public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }", "title": "" }, { "docid": "a30efadb2c5ef4eec59b8efa7b67e05a", "score": "0.6518291", "text": "@Override\n\tpublic void onClick(View arg0) {\n\t\tIntent intent = new Intent(this, Setting.class);\n\t\tstartActivity(intent);\n\n\t}", "title": "" }, { "docid": "24fe65cc50fc9e032156d87b6e1bd6a8", "score": "0.65063", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == R.id.action_settings) {\n openSettings();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "01019d6a7d1a153ae42c2e9a0bd938db", "score": "0.6505524", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item){\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "05b5866a9b984890fc0431fd9d57a843", "score": "0.65048593", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_settings) {\r\n return true;\r\n }\r\n\r\n if (id == R.id.action_favorite){\r\n startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "47a2e21a5b252adb044f8b0e12af7276", "score": "0.6501226", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent = new Intent(this, SettingActivity.class);\n startActivity(intent);\n return true;\n }\n if (id == R.id.info){\n \n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d04d486d61e14debd3b5282399cba8f9", "score": "0.6501056", "text": "public void beginGameAgain(){\n Intent intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "9226e0b8d960bcc68a8032ef7b3fc44d", "score": "0.6498845", "text": "@Override\n public void onClick(View arg0) {\n Intent lInt = new Intent(MarketUpdateActivity.this,\n UpdateSettingsPreferenceActivity.class);\n startActivity(lInt);\n }", "title": "" }, { "docid": "7de1fe1792467e0219663bed15ae0455", "score": "0.64981437", "text": "public void showSettingsAlert1() {\n\n AlertDialog.Builder mAlertDialog = new AlertDialog.Builder(\n new ContextThemeWrapper(mContext, R.style.AppTheme));\n\n mAlertDialog.setTitle(\"سیستم موقعیت مکانی\");\n\n mAlertDialog.setMessage(\"لطفا موقعیت مکانی خود را فعال کنید\");\n\n mAlertDialog.setPositiveButton(\"فعالسازی\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n Intent mIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(mIntent);\n }\n });\n\n mAlertDialog.setNegativeButton(\"بستن\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n\n }\n });\n\n final AlertDialog mcreateDialog = mAlertDialog.create();\n mcreateDialog.show();\n }", "title": "" } ]
56733c4210f6e21e76cfb2cc1494f656
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
[ { "docid": "12fddf206fd292af75ba4f0ae29f423a", "score": "0.0", "text": "public static _Fields findByThriftIdOrThrow(int fieldId) {\n _Fields fields = findByThriftId(fieldId);\n if (fields == null) throw new IllegalArgumentException(\"Field \" + fieldId + \" doesn't exist!\");\n return fields;\n }", "title": "" } ]
[ { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1375135833329b2bec485473bc019be5", "score": "0.76263654", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4f2ea7b1356ffc8890cbc11b285e569e", "score": "0.7620387", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "d92f163a5b2d07eda14b5f474bb0c224", "score": "0.7509525", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "bdcc21bd55691d5511d684d1c2a8616e", "score": "0.750696", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // POSITION_ID\n return POSITION_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c1ca1b0b1a5f6cd282bd8bf5f4871f7b", "score": "0.7504193", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_IDS\n return USER_IDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c1ca1b0b1a5f6cd282bd8bf5f4871f7b", "score": "0.7504193", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_IDS\n return USER_IDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "98629056fbebc7d7e4a8498504a205c1", "score": "0.75040454", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_IDS\n return USER_IDS;\n case 4: // IS_GDPR\n return IS_GDPR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9d420e59d1917116eeaefb79d8f047c7", "score": "0.74921733", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // USER_IDS\n return USER_IDS;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n case 4: // IS_GDPR\n return IS_GDPR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9d420e59d1917116eeaefb79d8f047c7", "score": "0.74921733", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // USER_IDS\n return USER_IDS;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n case 4: // IS_GDPR\n return IS_GDPR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "73c3fb65bdf0816e4259e3e039184e5c", "score": "0.74869317", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // PARAMS\n return PARAMS;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ebd6cb30b9039a9c7c26c99e8759115f", "score": "0.74831593", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ebd6cb30b9039a9c7c26c99e8759115f", "score": "0.74831593", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f1021a38b63def5469d3d0e52881ea0c", "score": "0.7481461", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // COMMENT_ID\n return COMMENT_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c5d24051ea1687297eac2842f3a8fcb7", "score": "0.74809146", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // CONTENT\n return CONTENT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "2f6c97e9cec650dd9b8e0c68fbefbbce", "score": "0.7479528", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TAG_ID\n return TAG_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "d7276d62936c7f2d645f8ebe99763c85", "score": "0.7477974", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAMS\n return PARAMS;\n case 2: // TAG_LIST\n return TAG_LIST;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n case 4: // HR_ID\n return HR_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ae042c9402a804c0878c2919f9198e19", "score": "0.74755585", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ae042c9402a804c0878c2919f9198e19", "score": "0.74755585", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ae042c9402a804c0878c2919f9198e19", "score": "0.74755585", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ae042c9402a804c0878c2919f9198e19", "score": "0.74755585", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cd99996d31d82ed9aa60b2d8d78f6a98", "score": "0.7469731", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // PARAMS\n return PARAMS;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n case 4: // IS_GDPR\n return IS_GDPR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cd99996d31d82ed9aa60b2d8d78f6a98", "score": "0.7469731", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // PARAMS\n return PARAMS;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n case 4: // IS_GDPR\n return IS_GDPR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cd99996d31d82ed9aa60b2d8d78f6a98", "score": "0.7469731", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // PARAMS\n return PARAMS;\n case 3: // COMPANY_ID\n return COMPANY_ID;\n case 4: // IS_GDPR\n return IS_GDPR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "23772f6f9828b33cd009d3678f40df7c", "score": "0.7465491", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // USER_IDS\n return USER_IDS;\n case 3: // TAG_IDS\n return TAG_IDS;\n case 4: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "23772f6f9828b33cd009d3678f40df7c", "score": "0.7465491", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // USER_IDS\n return USER_IDS;\n case 3: // TAG_IDS\n return TAG_IDS;\n case 4: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "23772f6f9828b33cd009d3678f40df7c", "score": "0.7465491", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // USER_IDS\n return USER_IDS;\n case 3: // TAG_IDS\n return TAG_IDS;\n case 4: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "be3792223d96d68db364079b97fca867", "score": "0.74599814", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAMS\n return PARAMS;\n case 2: // USER_ID_LIST\n return USER_ID_LIST;\n case 3: // ID_LIST\n return ID_LIST;\n case 4: // COMPANY_ID\n return COMPANY_ID;\n case 5: // HR_ID\n return HR_ID;\n case 6: // FLAG\n return FLAG;\n case 7: // EMAIL_LIST\n return EMAIL_LIST;\n case 8: // APP_ID_LIST\n return APP_ID_LIST;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "48d51bb88df6384c2809c9a94139591d", "score": "0.74526817", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "93bad30b12c753ce1b0dd996716c8f5b", "score": "0.74457765", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // DISABLE\n return DISABLE;\n case 4: // FILTER_IDS\n return FILTER_IDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "568bfc62727720c81d7554c997c2a268", "score": "0.7444887", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // FILTER_ID\n return FILTER_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5de58f05df813aa08edeab24d8477068", "score": "0.7441633", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74347866", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74347866", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74347866", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74347866", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74347866", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74347866", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "d12c075fd2d4221b0b34447ec80b3db0", "score": "0.7426716", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 0: // SUCCESS\r\n return SUCCESS;\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7425822", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7425822", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "3b5b982254bb8a2b10701ba053660d8b", "score": "0.74253106", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_TAG_DO\n return COMPANY_TAG_DO;\n case 2: // ACTION_FORM\n return ACTION_FORM;\n case 3: // POSITION_ID_LIST\n return POSITION_ID_LIST;\n case 4: // HR_ID\n return HR_ID;\n case 5: // POSITION_TOTAL\n return POSITION_TOTAL;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "3b5b982254bb8a2b10701ba053660d8b", "score": "0.74253106", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_TAG_DO\n return COMPANY_TAG_DO;\n case 2: // ACTION_FORM\n return ACTION_FORM;\n case 3: // POSITION_ID_LIST\n return POSITION_ID_LIST;\n case 4: // HR_ID\n return HR_ID;\n case 5: // POSITION_TOTAL\n return POSITION_TOTAL;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "02ab4eca001e5247d35302406f85f49a", "score": "0.74236155", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAMS\n return PARAMS;\n case 2: // USER_ID_LIST\n return USER_ID_LIST;\n case 3: // POSITION_ID_LIST\n return POSITION_ID_LIST;\n case 4: // COMPANY_ID\n return COMPANY_ID;\n case 5: // HR_ID\n return HR_ID;\n case 6: // FLAG\n return FLAG;\n case 7: // POSITION_FLAG\n return POSITION_FLAG;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "bebcaa9ffac00fd29ca28f0baa49046c", "score": "0.742353", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID_LIST\n return USER_ID_LIST;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9a2324f5a1a461843ad9a32f7503d400", "score": "0.7421797", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9a2324f5a1a461843ad9a32f7503d400", "score": "0.7421797", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9a2324f5a1a461843ad9a32f7503d400", "score": "0.7421797", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "9a2324f5a1a461843ad9a32f7503d400", "score": "0.7421797", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "2e9fc95b1e3a7b95c66b56697fae4928", "score": "0.74191713", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USERID_LIST\n return USERID_LIST;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cf8eec83d3b8ac58e5d3157ccaed0307", "score": "0.7418646", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "cf8eec83d3b8ac58e5d3157ccaed0307", "score": "0.7418646", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "cf8eec83d3b8ac58e5d3157ccaed0307", "score": "0.7418646", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "cf8eec83d3b8ac58e5d3157ccaed0307", "score": "0.7418646", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "title": "" } ]
953903773d9d7152b92ae9429e9636b7
Dependency: event tracking service.
[ { "docid": "fd94fa52c06b5f04660748fae0b46f30", "score": "0.63481283", "text": "public void setEventTrackingService(EventTrackingService service)\n\t{\n\t\tm_eventTrackingService = service;\n\t}", "title": "" } ]
[ { "docid": "5b3ccc1fa6851c9d4cfb6e37db8496ba", "score": "0.7005448", "text": "private EventService() {\n\t\teventClass = Event.class;\n\t\tsubscriptions = new Vector<Subscription>();\n\t}", "title": "" }, { "docid": "0f5df6498f3b1193005fbef346074c00", "score": "0.69145954", "text": "@Override\n\tprotected EventTrackingService eventTrackingService() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "684125b7fbfdac1361e576709d1e6056", "score": "0.64796615", "text": "public EventService() {\n\n }", "title": "" }, { "docid": "59aa826b00d1e8f1e09e8c1a95be1069", "score": "0.64569795", "text": "TrackerService createTrackerService();", "title": "" }, { "docid": "4acb34e196365066367de24e28b965dd", "score": "0.6251002", "text": "public interface EventService {\n\n void addEvent(Event event) throws Exception;\n\n void deleteEvent(String eventId) throws Exception;\n\n void updateEvent(Event event) throws Exception;\n\n List<Event> getEvents() throws Exception;\n\n Event getEvent(String eventId) throws Exception;\n}", "title": "" }, { "docid": "4275da60d67d7aad12bc51edc1ee6463", "score": "0.62407315", "text": "@Override\r\n public void subscribeToEvents( )\r\n {\n\r\n }", "title": "" }, { "docid": "fad7f216f27234774bf87e4f11f749f1", "score": "0.62363404", "text": "public interface BufferedEventsTracker {\n /**\n * Register the EventBufferHolder that needs to be measured the used capacity usage\n *\n * @param eventBufferHolder EventBufferHolder\n * @param name An unique value to identify the object.\n */\n void registerEventBufferHolder(EventBufferHolder eventBufferHolder, String name);\n\n /**\n * @param eventBufferHolder Event Buffer holder\n * @return Name of the buffered event tracker.\n */\n String getName(EventBufferHolder eventBufferHolder);\n\n void enableEventBufferHolderMetrics();\n\n void disableEventBufferHolderMetrics();\n}", "title": "" }, { "docid": "67b160f06e1e21f454228b98bc6d172b", "score": "0.5966755", "text": "public interface EventAcnApiService {\n void registerEventAccount(EventAccountRequest aEventAccountRequest, RegisterAccountListener listener);\n\n void verifyEventAccount(String verificationCode, EventSimpleResponseListener<EventVerifyResponse> listener);\n\n void resendVerificationCode(String email, EventSimpleResponseListener<EventResendResponse> listener);\n\n void findSocialEvents(EventSimpleResponseListener<SocialEventListResponse> aEventsRequestListener);\n}", "title": "" }, { "docid": "b7ef8b936c42f9e86bb704b5644142ea", "score": "0.5914225", "text": "private void createEvents() {\n\t\t\r\n\t}", "title": "" }, { "docid": "de781ce5589d3cea25d8f3edf86f611d", "score": "0.5905136", "text": "public interface onEveServiceReady {\n void onEveServiceReady(EveService es);\n}", "title": "" }, { "docid": "39f3e7f2373c40e6d05347055a471d8a", "score": "0.5903364", "text": "public interface BesuEvents extends BesuService {\n\n /**\n * Add a listener watching new blocks propagated.\n *\n * @param blockPropagatedListener The listener that will accept a BlockHeader as the event.\n * @return an id to be used as an identifier when de-registering the event.\n */\n long addBlockPropagatedListener(BlockPropagatedListener blockPropagatedListener);\n\n /**\n * Remove the blockAdded listener from besu notifications.\n *\n * @param listenerIdentifier The id that was returned from addBlockPropagatedListener\n */\n void removeBlockPropagatedListener(long listenerIdentifier);\n\n /**\n * Add a listener watching for new blocks added.\n *\n * @param blockAddedListener The listener that will accept the Block object as the event.\n * @return an id to be used as an identifier when de-registering the event.\n */\n long addBlockAddedListener(BlockAddedListener blockAddedListener);\n\n /**\n * Remove the block added listener from besu notifications.\n *\n * @param listenerIdentifier The id that was returned from addBlockAddedListener\n */\n void removeBlockAddedListener(long listenerIdentifier);\n\n /**\n * Add a listener watching for new reorg blocks added.\n *\n * @param blockReorgListener The listener that will accept the reorg Block object as the event.\n * @return an id to be used as an identifier when de-registering the event.\n */\n long addBlockReorgListener(BlockReorgListener blockReorgListener);\n\n /**\n * Remove the block reorg listener from besu notifications.\n *\n * @param listenerIdentifier The id that was returned from addBlockReorgListener\n */\n void removeBlockReorgListener(long listenerIdentifier);\n\n /**\n * Add a listener watching new transactions added to the node.\n *\n * @param transactionAddedListener The listener that will accept the Transaction object as the\n * event.\n * @return an id to be used as an identifier when de-registering the event.\n */\n long addTransactionAddedListener(TransactionAddedListener transactionAddedListener);\n\n /**\n * Remove the blockAdded listener from besu notifications.\n *\n * @param listenerIdentifier The id that was returned from addTransactionAddedListener\n */\n void removeTransactionAddedListener(long listenerIdentifier);\n\n /**\n * Add a listener watching dropped transactions.\n *\n * @param transactionDroppedListener The listener that will accept the Transaction object as the\n * event.\n * @return an id to be used as an identifier when de-registering the event.\n */\n long addTransactionDroppedListener(TransactionDroppedListener transactionDroppedListener);\n\n /**\n * Remove the transactionDropped listener from besu notifications.\n *\n * @param listenerIdentifier The id that was returned from addTransactionDroppedListener\n */\n void removeTransactionDroppedListener(long listenerIdentifier);\n\n /**\n * Add a listener watching the synchronizer status.\n *\n * @param syncStatusListener The listener that will accept the SyncStatus object as the event.\n * @return The id to be used as an identifier when de-registering the event.\n */\n long addSyncStatusListener(SyncStatusListener syncStatusListener);\n\n /**\n * Remove the sync status listener from besu notifications.\n *\n * @param listenerIdentifier The id that was returned from addSyncStatusListener\n */\n void removeSyncStatusListener(long listenerIdentifier);\n\n /**\n * Add a listener that consumes every log (both added and removed) that matches the filter\n * parameters when a new block is added to the blockchain.\n *\n * @param addresses The addresses from which the log filter will be created\n * @param topics The topics from which the log filter will be created\n * @param logListener The listener that will accept the log.\n * @return The id of the listener to be used to remove the listener.\n */\n long addLogListener(List<Address> addresses, List<List<Bytes32>> topics, LogListener logListener);\n\n /**\n * Remove the log listener with the associated id.\n *\n * @param listenerIdentifier The id of the listener that was returned from addLogListener\n */\n void removeLogListener(long listenerIdentifier);\n\n /** The listener interface for receiving new block propagated events. */\n interface BlockPropagatedListener {\n\n /**\n * Invoked when a new block header has been received and validated and is about to be sent out\n * to other peers, but before the body of the block has been evaluated and validated.\n *\n * <p>The block may not have been imported to the local chain yet and may fail later\n * validations.\n *\n * @param propagatedBlockContext block being propagated.\n */\n void onBlockPropagated(PropagatedBlockContext propagatedBlockContext);\n }\n\n /** The listener interface for receiving new block added events. */\n interface BlockAddedListener {\n\n /**\n * Invoked when a new block has been evaluated and validated.\n *\n * @param addedBlockContext block being added.\n */\n void onBlockAdded(AddedBlockContext addedBlockContext);\n }\n\n /** The listener interface for receiving new block reorg events. */\n interface BlockReorgListener {\n\n /**\n * Invoked when a reorg block has been evaluated and validated.\n *\n * @param addedBlockContext reorg block being added.\n */\n void onBlockReorg(AddedBlockContext addedBlockContext);\n }\n\n /** The listener interface for receiving new transaction added events. */\n interface TransactionAddedListener {\n\n /**\n * Invoked when a new transaction has been added to the node.\n *\n * @param transaction the new transaction.\n */\n void onTransactionAdded(Transaction transaction);\n }\n\n /** The listener interface for receiving transaction dropped events. */\n interface TransactionDroppedListener {\n\n /**\n * Invoked when a transaction is dropped from the node.\n *\n * @param transaction the dropped transaction.\n */\n void onTransactionDropped(Transaction transaction);\n }\n\n /** The listener interface for receiving sync status events. */\n interface SyncStatusListener {\n\n /**\n * Invoked when the synchronizer status changes\n *\n * @param syncStatus the sync status\n */\n void onSyncStatusChanged(Optional<SyncStatus> syncStatus);\n }\n\n /** The listener interface for receiving log events. */\n interface LogListener {\n\n /**\n * Invoked for each log (both added and removed) when a new block is added to the blockchain.\n *\n * @param logWithMetadata the log with associated metadata. see https://eth.wiki/json-rpc/API\n */\n void onLogEmitted(LogWithMetadata logWithMetadata);\n }\n\n /** The interface TTD reached listener. */\n interface TTDReachedListener {\n\n /**\n * Emitted when Total Terminal Difficulty is reached on a chain and dependent merge\n * functionality should trigger.\n *\n * @param reached is true when we reached TTD, can be potentially false in case we reorg under\n * TTD\n */\n void onTTDReached(boolean reached);\n }\n\n /** The interface Initial sync completion listener. */\n interface InitialSyncCompletionListener {\n\n /** Emitted when initial sync finishes */\n void onInitialSyncCompleted();\n\n /** Emitted when initial sync restarts */\n void onInitialSyncRestart();\n }\n}", "title": "" }, { "docid": "e0c476b756503501fb7dbfa1a599ae05", "score": "0.59028065", "text": "public interface CashDeskService {\n\n /**\n * Creates appropriate {@link CashDeskEvent} instance and persist it.\n *\n * @param balanceWrapper contains information about new interval or daily balance.\n * @return saved CashDeskEvent instance.\n */\n CashDeskEvent recordBalance(BalanceWrapper balanceWrapper);\n\n\n /**\n *\n * @param cashInWrapper holding information about cashflow\n * @return saved CashDeskEvent instance.\n */\n CashDeskEvent insertMoney(CashInWrapper cashInWrapper);\n\n}", "title": "" }, { "docid": "88d44004a60c60da875e70ff0dcc6fa5", "score": "0.58442533", "text": "@Override\n public IEventService getEventService() {\n return null;\n }", "title": "" }, { "docid": "e73abac22cd0410779054b31a90e202f", "score": "0.58348954", "text": "public interface Eventable {\n\n}", "title": "" }, { "docid": "894bc270019acb56a656cda76d567f27", "score": "0.58137405", "text": "public interface EventService {\n\n Event save(Event event);\n\n Optional<Event> saveIfNotExists(Event event);\n\n// Optional<Event> findEvent(Integer tenantId, String entityId, String eventType, String eventUid);\n\n TimePageData<Event> findEvents(Integer tenantId, String entityId, TimePageLink pageLink);\n\n TimePageData<Event> findEvents(Integer tenantId, String entityId, String eventType, TimePageLink pageLink);\n\n}", "title": "" }, { "docid": "4292aa952baf243414171e310a663511", "score": "0.58011025", "text": "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// start watching the events - only those generated on this server, not those from elsewhere\n\t\t\tm_eventTrackingService.addLocalObserver(this);\n\t\t\t\n\t\t\tlog.info(this +\".init()\");\n\t\t}\n\t\tcatch (Exception t)\n\t\t{\n\t\t\tlog.warn(this +\".init(): \", t);\n\t\t}\n\t}", "title": "" }, { "docid": "4b0cd4df87bed9d704be6880ddd55fc7", "score": "0.5796514", "text": "ApprenticeEventBus getEventBus();", "title": "" }, { "docid": "69d24d7dbac800ed29ad67d83a9bc4aa", "score": "0.5782031", "text": "public interface LogEventService {\n /**\n * Batch insert LogEvent list according to appId, hostName and hostIP\n * @param appId App identity\n * @param env system environment(dev/pro)\n * @param hostName host name\n * @param hostIp host ipV4\n * @param logEvents Log instance list\n * @return count persisted successfully\n */\n int insert(int appId, String envGroup, String env, String hostName, String hostIp, List<LogEvent> logEvents);\n\n /**\n * Search Log instance according the search parameters, paging supported\n * @param param Log search parameters\n * @param lastResultIndex page index\n * @param limit page size\n * @return\n */\n LogSearchResult search(LogSearchParam param, int lastResultIndex, int limit);\n\n\n /**\n * Search long according to raw-keys\n * @param rowkeys\n * @return\n */\n LogSearchResult search(List<byte[]> rowkeys);\n}", "title": "" }, { "docid": "609630f3bd789514145529ba22595c62", "score": "0.5777566", "text": "private void addEvents() {\n\n\t}", "title": "" }, { "docid": "05bb53cc89140c66897313788e1199ed", "score": "0.57650197", "text": "public void serviceUpdated(ServiceEvent event)\n {\n }", "title": "" }, { "docid": "221cd11e1bacbf30f975f07a92e1cc47", "score": "0.5764503", "text": "EventReference createEventReference();", "title": "" }, { "docid": "0d8437facd897604e8ae00d245cf7123", "score": "0.5747386", "text": "public interface PresenterEventListener {\n\n /**\n * Method register event lisener. for Presenter.\n * Called in onStart for Activity or Fragment\n * Called in ,OnCreate for Service\n */\n void registerSubscriber();\n\n /**\n * Method unregister event lisener. for Presenter.\n * Called in onStop for Activity or Fragment\n * Called in OnDestroy for Service\n */\n void unRegisterSubscriber();\n}", "title": "" }, { "docid": "b8488f756fedafdd6f9dc866968b5855", "score": "0.5744714", "text": "private void setupEventListeners(){\n\t\t\n\t}", "title": "" }, { "docid": "a81c349a65f75b1fa1e4fde0f826f9a1", "score": "0.57437116", "text": "private UkaEvents() {\n\t}", "title": "" }, { "docid": "15ca2cfca6e9c28d7d23912b792bdc29", "score": "0.5709887", "text": "public interface EventLogService extends GenericService<EventLog, Integer> {\n\n EventLog getById(Integer id);\n\n EventLog save(EventLog eventLog);\n\n}", "title": "" }, { "docid": "f78d27b5e69a2181416ecc9d5e0499d7", "score": "0.5708271", "text": "protected abstract EVENT_BUS getEventBus();", "title": "" }, { "docid": "14227cf237def248b28f86c072a1578c", "score": "0.5698697", "text": "public interface EventChannel {\n\n\t/**\n\t * Helps in publishing event\n\t * \n\t * @param e\n\t * @throws EventFrameworkException\n\t */\n\tpublic void publishEvent(@SuppressWarnings(\"rawtypes\") Event e) throws EventFrameworkException;\n\t/**\n\t * Adding a subscriber\n\t * \n\t * @param subscriber\n\t */\n\tpublic void addSubscriber(EventSubscriber<Event> subscriber);\n\t\n\t/**\n\t * Addding a Filtered Subscriber\n\t * \n\t * @param subscriber\n\t */\n\tpublic void addSubscribersForFilteredEvents(FilteredEventSubscriber<Event> subscriber);\n\t\n\t\n\t\n}", "title": "" }, { "docid": "a31fd8f705d3002102d27c8c4eb8ae6c", "score": "0.5692529", "text": "public interface BazaarEventListener\n{\n void onRegistrationSucceeded();\n\n\n void onUnregister();\n\n //add more events if needed\n}", "title": "" }, { "docid": "a7782fcd0652e76fdbbb56c0f9978a79", "score": "0.56746566", "text": "public interface EventObserver {\n\n public void update(Event event);\n}", "title": "" }, { "docid": "c3fc6bcdae79c3c9f6c371832cbd607f", "score": "0.56556976", "text": "@Override\n\tpublic void onEvent(int eventId, Object eventData) {\n\t\t\n\t}", "title": "" }, { "docid": "f5c67545a157e4fed3ec076fa6b92706", "score": "0.56543666", "text": "@Override\n\t\t\t\tpublic void event(int trackIndex, Event event) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "714b4e36b56ec475b2e7e82ea4f813ef", "score": "0.56542265", "text": "public interface EventService {\n @GET(\"events/types\")\n Call<EventRepository> getEventTypes(@Header(\"Auth\") String auth);\n @POST(\"POST /accounts/{account_id}/add\")\n Call<AddEventResponse> addEvent(@Header(\"Auth\") String auth);\n}", "title": "" }, { "docid": "1c0f9d7dfdf08f48f8c7be3beb6f32ac", "score": "0.56463957", "text": "@Override\n public void onServiceEnded(OnServiceEnded serviceEnded) {\n\n }", "title": "" }, { "docid": "f6c73f03e10309819d705838beec1221", "score": "0.56450295", "text": "public interface Service {\n void postEvent(int type);\n void postEvent(int type, String errorMessage);\n void saveCookie(String cookie);\n void processResponse(Response response);\n}", "title": "" }, { "docid": "cb81cfe54d4da16d6139c02ab40f892d", "score": "0.5640885", "text": "@Override\n\t\t\t\t\t\t\tpublic void event(int trackIndex, Event event) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "cb81cfe54d4da16d6139c02ab40f892d", "score": "0.5640885", "text": "@Override\n\t\t\t\t\t\t\tpublic void event(int trackIndex, Event event) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "c8529a73493c3db29d21471866900f4e", "score": "0.56346476", "text": "@Subscribe\n public void onFakeEvent(FakeEvent fakeEvent){\n\n }", "title": "" }, { "docid": "818a0748b3e44786681b8b2b8995b432", "score": "0.56253576", "text": "Response fire(EventI event);", "title": "" }, { "docid": "a7b822ef45d830eecb6a2ea386084701", "score": "0.5616817", "text": "public EventManager() {\n events = new ArrayList<>();\n eventFactory = new EventFactory();\n this.allEventType = new ArrayList<>();\n allEventType.add(\"TALK\");\n allEventType.add(\"PARTY\");\n allEventType.add(\"DISCUSSION\");\n }", "title": "" }, { "docid": "d08f10c37e6cef4df7bb4e0040234184", "score": "0.56116915", "text": "private TelemetryService() {}", "title": "" }, { "docid": "fe884e79577b8bea4754364dd8768ddb", "score": "0.56075054", "text": "public interface GaeaEventPublisher {\n public void publishSimpleEvent(String eventCode, Map<String,Object> eventContext) throws SysInitException;\n}", "title": "" }, { "docid": "df1568563c53c34de536490012f1e379", "score": "0.55970025", "text": "public abstract void listen(EngineEventData data);", "title": "" }, { "docid": "7f2243966f31e0c91c3126b9b8d9c525", "score": "0.55951947", "text": "@Override\n\tpublic void onApplicationEvent(final ContextRefreshedEvent event) {\n\t\ttrackRepository.save(new Track(Integer.parseInt(environment.getProperty(String.valueOf(\"trackId\"))),\n\t\t\t\tenvironment.getProperty(\"trackName\"),environment.getProperty(\"trackComment\")));\n\n\t}", "title": "" }, { "docid": "893f7a239db16af49b8982474cf4546c", "score": "0.55886114", "text": "public interface WorkoutTrackService {\n\n ArrayList track();\n\n}", "title": "" }, { "docid": "f3e27c562e1e600ed49fb98d01f72596", "score": "0.55881995", "text": "@Override\n\tprotected void onEvent(final Event event) {\n\t}", "title": "" }, { "docid": "494d2352d4b2d87759d398ef16c0bf08", "score": "0.55797046", "text": "public interface OnServiceEventListener {\n void OnMsgReceived(MessageProtobuf.Msg msg);\n}", "title": "" }, { "docid": "95af71637e735a1d44e6a9ff8fb98dc5", "score": "0.55790055", "text": "public EventsFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c70195a8c84514400be3fcfc7b7aa2e2", "score": "0.5571133", "text": "@Override\n\tpublic void onEvent(int eventId, Object eventData) {\n\n\t}", "title": "" }, { "docid": "c70195a8c84514400be3fcfc7b7aa2e2", "score": "0.5571133", "text": "@Override\n\tpublic void onEvent(int eventId, Object eventData) {\n\n\t}", "title": "" }, { "docid": "74d13e08773257d06d7bd1d8ef3493b9", "score": "0.5569467", "text": "public interface VisitService extends IService<Visit> {\n\n /**\n * 提供给定时任务,每天0点执行\n */\n Visit save();\n\n /**\n * 新增记录\n * @param request\n */\n @Async\n void count(HttpServletRequest request);\n\n /**\n * 获取数据\n * @return\n */\n Object get();\n\n /**\n * getChartData\n * @return\n */\n Object getChartData();\n}", "title": "" }, { "docid": "1f64bfdd21c75303139deac6b32f47bc", "score": "0.5559561", "text": "@Override\n\tpublic void onEvent(Event event) {\n\n\t}", "title": "" }, { "docid": "2d80f1a050b5e7e6ba4cbeb855b6f92c", "score": "0.5554509", "text": "public interface Event {\n\n}", "title": "" }, { "docid": "5399dab5aa4eda356c91c75e722fe2cc", "score": "0.555351", "text": "@Autowired\n public void configure(EventHandlingConfiguration config) {\n config.usingTrackingProcessors();\n }", "title": "" }, { "docid": "fc13c08da5532aa16b5b509b544830a8", "score": "0.55493844", "text": "public interface IEvent {\n}", "title": "" }, { "docid": "a71a91099d5bcaa482b3c56e3e065846", "score": "0.55369806", "text": "Tracker createTracker();", "title": "" }, { "docid": "c7ac03bbd83caf246f260e926b9e82dc", "score": "0.5536059", "text": "Repository startTracking();", "title": "" }, { "docid": "7028a11b7ff6f554e041e94ac19c06ee", "score": "0.5533889", "text": "public interface EventBusTags {\n\n}", "title": "" }, { "docid": "1a30c44850ce6d864835ce3edcfb1ac0", "score": "0.55326366", "text": "private void init() {\n // Scan for Events\n ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(\n false);\n\n provider.addIncludeFilter((metadataReader, metadataReaderFactory) -> {\n try {\n return Event.class.isAssignableFrom(Class.forName(metadataReader.getClassMetadata().getClassName()));\n } catch (ClassNotFoundException e) {\n return false;\n }\n });\n Set<BeanDefinition> beans = provider.findCandidateComponents(\"honours.ing\");\n\n Logger log = Application.getLogger();\n log.info(\"Found \" + beans.size() + \" events\");;\n\n // List all events\n for (BeanDefinition bd : beans) {\n Class<? extends Event> beanClass = null;\n try {\n beanClass = (Class<? extends Event>) Class.forName(bd.getBeanClassName());\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n //noinspection ConstantConditions\n log.info(\"Found the event: \" + beanClass.getSimpleName());\n\n Event event = context.getBean(beanClass);\n\n events.put(event, 0L);\n }\n\n calcTimers();\n }", "title": "" }, { "docid": "8cc7b3f85f37a54c42d467aaeaa64bbb", "score": "0.55265594", "text": "@Override\n public void onEvent(int eventType, Bundle params) {\n }", "title": "" }, { "docid": "e212cc2eaa78bc7d77ebd69d4fe3a0f8", "score": "0.55215657", "text": "public interface EventService {\n\n EventDTO create(EventDTO event);\n\n EventDTO delete(String id);\n\n EventDTO deleteByEventName(String eventName);\n\n List<EventDTO> findAll();\n\n EventDTO findById(String id);\n\n EventDTO findByEventName(String eventName);\n\n EventDTO update(EventDTO event);\n}", "title": "" }, { "docid": "7f068f2ecb10d06a5c42f88d50b2653b", "score": "0.5520178", "text": "public void onEvent(Event event) {\n }", "title": "" }, { "docid": "e5650cb74469073bb0de9e5d37191e56", "score": "0.55148554", "text": "public interface Event {\n}", "title": "" }, { "docid": "e5650cb74469073bb0de9e5d37191e56", "score": "0.55148554", "text": "public interface Event {\n}", "title": "" }, { "docid": "e5650cb74469073bb0de9e5d37191e56", "score": "0.55148554", "text": "public interface Event {\n}", "title": "" }, { "docid": "4c8a6c757fd282c8b4eab34ea4b98549", "score": "0.55118495", "text": "public interface MessageEventService {\n /**\n * Returns a list of messages by event id\n *\n * @param eventId the event id\n * @return the list\n * @throws ServiceException the service exception\n */\n List<MessageEvent> findMessagesEvent(long eventId) throws ServiceException;\n\n /**\n * Returns a list of messages by event id, by page\n *\n * @param eventId the event id\n * @param page the page\n * @return the list\n * @throws ServiceException the service exception\n */\n List<MessageEvent> findMessagesEvent(long eventId, Page page) throws ServiceException;\n\n /**\n * Returns a count of messages by event id\n *\n * @param eventId the event id\n * @return the int\n * @throws ServiceException the service exception\n */\n int countOfMessages(long eventId) throws ServiceException;\n\n /**\n * Registers user.\n *\n * @param message the message\n * @return the int\n * @throws ServiceException the service exception\n */\n int create(MessageEvent message) throws ServiceException;\n\n /**\n * Returns a list of messages by message state, by page\n *\n * @param state the message state\n * @param page the page\n * @return the list\n * @throws ServiceException the service exception\n */\n List<MessageEvent> findMessagesEvent(MessageEvent.State state, Page page) throws ServiceException;\n\n /**\n * Returns a count of messages by event state\n *\n * @param state the message state\n * @return the int\n * @throws ServiceException the service exception\n */\n int countOfMessageByState(MessageEvent.State state) throws ServiceException;\n\n /**\n * Update state message\n *\n * @param messageId the message id\n * @param state the message state\n * @return the int\n * @throws ServiceException the service exception\n */\n boolean updateState(long messageId, MessageEvent.State state) throws ServiceException;\n}", "title": "" }, { "docid": "6c450c00283d56907c8d74ae5dfc0b84", "score": "0.5498029", "text": "public trackpad() {\n logger.info(\"Subscribe to BaseMod hooks\");\n\n BaseMod.subscribe(this);\n\n logger.info(\"Done subscribing\");\n\n }", "title": "" }, { "docid": "fb3b9306b87c3ba6f2790efaed71d32b", "score": "0.5492063", "text": "@Override\r\n \tpublic void eventReceived(Events event, Object o) {\n \r\n \t}", "title": "" }, { "docid": "6d981011cb1ed162c12cc71fdce39368", "score": "0.5490616", "text": "@Override\n\tpublic void onServiceEnded(OnServiceEnded serviceEnded) {\n\t\t\n\t}", "title": "" }, { "docid": "17e01669a14f87c7bb3b8c0a401c1fc2", "score": "0.54867417", "text": "@Override\n\tpublic void createEvents() {\n\t\t\n\t}", "title": "" }, { "docid": "4b4fedf53f7f1a3ff963b01316cfec6b", "score": "0.5486357", "text": "protected FrameworkEventType()\n {}", "title": "" }, { "docid": "d2d973ae15d4589cc223897f7ffc44b8", "score": "0.5462543", "text": "public interface CRMService {\n\n boolean logEvent(Long clientId, CRMEventContainer eventContainer);\n\n List<CRMEvent> getAllEvents(Date fromDate, Integer batchSize);\n\n CRMClientRate getClientRate(Long clientId);\n\n}", "title": "" }, { "docid": "de40f8d36080b06f73d1cdbac909de9f", "score": "0.5461367", "text": "@Override\n\tpublic void onServiceStarted() {\n\t\tApplication.logger.info(\"M3UA onServiceStarted\");\n\t}", "title": "" }, { "docid": "d303bcfd7e758027f317e2bf94c9d9e5", "score": "0.5458453", "text": "public interface ShoppingCartEventListener extends HttpSessionEventListener {\n\n}", "title": "" }, { "docid": "87a13f575aef9e8cbb48e8893f1f485c", "score": "0.5452988", "text": "void doPreGetEvent(String id);", "title": "" }, { "docid": "004c709d826c0483de0bcde6a136c7d6", "score": "0.54494524", "text": "public interface EventEmitter {\r\n\r\n\t/**\r\n\t * Registers an EventListener to get notifications about a specified event.\r\n\t * \r\n\t * @param l the listener to add\r\n\t * @param event the event to subscribe to\r\n\t * @return the number of EventListeners subscribed to the specified event.\r\n\t */\r\n\tpublic int addListener(EventListener l, String event);\r\n\t\r\n\t/**\r\n\t * Unsubscribes an EventListener from event notifications.\r\n\t * \r\n\t * @param l the listener to remove\r\n\t * @param event the event to unsubscribe from\r\n\t * @return the number of listeners listening to the specified event after removal.\r\n\t */\r\n\tpublic int removeListener(EventListener l, String event);\r\n\t\r\n\t/**\r\n\t * Publishes an event notification to all of the event's listeners.\r\n\t * \r\n\t * @param event the event being published\r\n\t * @param args any arguments to send to the listeners\r\n\t */\r\n\tpublic void emit(String event, Object ...args);\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "bba21127e39c5ada3c2d868370c5f821", "score": "0.5448896", "text": "public interface Analytics {\n\n void logContentEvent(String id, String name, String contentType);\n\n}", "title": "" }, { "docid": "1d9353bd7653eb2e0ce4608daa760186", "score": "0.54423404", "text": "public EventManager(ApplicationContext context)\n\t{\n\t\tObjects.requireNonNull(context);\n\t\tthis.context = context;\n\t\teventOne = null;\n\t}", "title": "" }, { "docid": "9f8e4244e928c2272d829d0cc6c69e69", "score": "0.5423305", "text": "@Override\n\tpublic void event( final BrokerageEvent event ) {\n\t}", "title": "" }, { "docid": "01c69a225dc919c0b2f482e3428f2c0e", "score": "0.5415179", "text": "public interface LogService extends BaseService<AppLog> {\n\n String LOG_QUEUE_NAME = \"app_log_queue\";\n\n void pushToQueue(AppLog log);\n\n AppLog bpopFromQueue();\n\n void saveCspLog(CspLog cspLog);\n\n}", "title": "" }, { "docid": "ee99102051923a9e9bbe189aef280042", "score": "0.5411806", "text": "@Override\n public void serviceAdded(ServiceEvent event) {\n jmdns.requestServiceInfo(event.getType(),\n event.getName(), 1);\n }", "title": "" }, { "docid": "e6b72d2f7e7aa88c90f43f180d9c322f", "score": "0.5411573", "text": "public TrackAppService(String name) {\n super(name);\n }", "title": "" }, { "docid": "65fd26ca0803755a4b43f39c3a0725be", "score": "0.5411047", "text": "public GridEventStorageManager event();", "title": "" }, { "docid": "071084254e21dd3a252c15588cd41f43", "score": "0.5407001", "text": "@Override\r\n\tpublic void fireEvent(AvoEvent e) {\n\r\n\t}", "title": "" }, { "docid": "ac9c58c7d74dde85dbbb91e956790280", "score": "0.5404004", "text": "void registerEventBufferHolder(EventBufferHolder eventBufferHolder, String name);", "title": "" }, { "docid": "651736cae9e07ecd4d354b37c1fab78e", "score": "0.5403509", "text": "public interface SubscriptionStatusService {\n\n public class Event {\n private final Person person;\n private final SubscriptionStatus status;\n\n public Event(Person person, SubscriptionStatus status) {\n this.person = person;\n this.status = status;\n }\n \n /**\n * Gets the {@code person} property.\n */\n public Person getPerson() {\n return person;\n }\n\n /**\n * Gets the {@code status} property.\n */\n public SubscriptionStatus getStatus() {\n return status;\n }\n\n }\n\n public interface Listener {\n void notify(Event event);\n }\n \n void addListener(Listener listener);\n \n boolean removeListener(Listener listener);\n\n /**\n * Gets a <code>Person</code>, given a <code>Long</code> Unique ID value.\n * @param uid <code>Long</code> Long unique ID of the target\n * <code>Person</code>.\n * @return <code>Person</code> such that <code>person.getUid()</code> is\n * <code>uid</code>.\n * @throw PersonNotFoundException if no <code>Person</code> exists with the\n * given <code>uid</code>\n */\n Person getPerson(Long uid) throws PersonNotFoundException;\n\n /**\n * Gets a <code>Person</code>, given a <code>String</code> authId.\n * @param authId <code>String</code> authId of the target\n * <code>Person</code>.\n * @return <code>Person</code> such that <code>person.getUid()</code> is\n * <code>uid</code>.\n * @throw PersonNotFoundException if no <code>Person</code> exists with the\n * given <code>uid</code>\n */\n Person getPerson(String authId) throws PersonNotFoundException;\n\n /**\n * Get the <code>SubscriptionStatus</code> for a given <code>Person</code>.\n * @param person subject <code>Person</code>\n * @return <code>SubscriptionStatus</code> that corresponds to\n * <code>person</code>\n */\n SubscriptionStatus getSubscriptionStatus(Person person);\n\n}", "title": "" }, { "docid": "fd187f0410195daf3d98f129731ccf6d", "score": "0.54013115", "text": "public PersistenceNotificationListener(String serviceName) {\n this.serviceName = serviceName;\n }", "title": "" }, { "docid": "99ec1c2ce5bb5da9f4ab4adea668c48b", "score": "0.5400149", "text": "public interface IEventLogEntryListener {\n public void logEventHappened(Object source, EventLogEntry entry);\n}", "title": "" }, { "docid": "61d619ad2fb033f73de1f5d069159403", "score": "0.5393821", "text": "public interface IEventSource {\n\n Optional<ActionBinding> getEventHandler(InMessageEventData eventData);\n\n /**\n * Checks if event of given type is modification of component. If true this event will not be valid for availablity other than EDIT.\n * @param eventType event type\n * @return if event of given type is modification of component\n */\n default boolean isModificationEvent(String eventType) {\n return true;\n }\n\n ViewEvent<?> prepareEventDataArgument(InMessageEventData eventData);\n\n <T> Form<T> getForm();\n\n <T> Form<T> getEventProcessingForm();\n\n String getId();\n}", "title": "" }, { "docid": "a1a7ab8c3e09af8a33521ca35b1b28d9", "score": "0.53794557", "text": "private URLConnection notifyTracker(String eventIn){\t\t\n\t\t\n\t\t//Set the event, if applicable.\n\t\tString event;\n\t\tif(eventIn == null)\n\t\t\tevent = \"\";\n\t\telse if(eventIn.equals(\"started\"))\n\t\t\tevent = \"started\";\n\t\telse if(eventIn.equals(\"stopped\"))\n\t\t\tevent = \"stopped\";\n\t\telse if(eventIn.equals(\"completed\"))\n\t\t\tevent = \"completed\";\n\t\telse\n\t\t\tevent = \"\";\n\t\t\n\t\t//Escape the info hash.\n\t\tString escaped_info_hash = escapeByteArray( dm.getSessionInfo().info_hash().array() );\n\t\t\n\t\tif( event.equals(\"started\") ){\n\t\t\tdownloaded = 0;\n\t\t\tuploaded = 0;\n\t\t\tleft = dm.getSessionInfo().file_length();\n\t\t}\n\t\telse{\n\t\t\tdownloaded = dm.getDownloaded();\n\t\t\tuploaded = dm.getUploaded();\n\t\t\tleft = dm.getLeft();\n\t\t}\n\t\t\n\t\t//Construct the query as a string.\n\t\tString query = \"peer_id=\" + my_peer_id + \"&\" +\n\t\t\t\t\t\t\"info_hash=\" + escaped_info_hash + \"&\" +\n\t\t\t\t\t\t\"port=\" + Integer.toString(listener_port) + \"&\" +\n\t\t\t\t\t\t\"uploaded=\"+uploaded+\"&\" +\n\t\t\t\t\t\t\"downloaded=\"+downloaded+\"&\" +\n\t\t\t\t\t\t\"left=\" + left;\n\t\t\n\t\tif(!event.equals(\"\"))\n\t\t\tquery = query + \"event=\" + event;\n\t\t\n\t\t//Create the URL connection as a get request.\n\t\tURLConnection connection = null;\n\t\ttry{connection = new URL(dm.getSessionInfo().announce_url() + \"?\" + query).openConnection();}\n\t\tcatch(Exception e){errorOut(e, \"ERROR: Unable to create URL connection.\");}\n\t\t\n\t\treturn connection;\n\t}", "title": "" }, { "docid": "34fd2815b5986f496cdffb36be32199c", "score": "0.5373118", "text": "public interface EventSource {\r\n\tpublic void fireEvent(final String message);\r\n}", "title": "" }, { "docid": "7f2c399bd2ec1fce18bf9c38a762b5b2", "score": "0.53703046", "text": "public interface BoundServiceListener {\n void showGooglePlayServicesErrorDialog(int errorCode);\n void showAlarmTransmitComplete();\n void updateSensors();\n\n}", "title": "" }, { "docid": "0c11d917529b8a3fa41f291247f7ee3a", "score": "0.53702825", "text": "@Override\r\n\t\tpublic void onEvent(Event arg0) throws Exception\r\n\t\t{\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "0bdb9b8c8ac090f0bf82588e33e5dbc0", "score": "0.53646576", "text": "public interface Observer {\n public void update(Event event);\n}", "title": "" }, { "docid": "f50ff4c76544e848146b3015a570c208", "score": "0.53641236", "text": "public EngineEventAccumulator() {\n events = new Vector();\n }", "title": "" }, { "docid": "e9e1686bfa32fdfd57f9d283eb327ba6", "score": "0.5359964", "text": "public interface TrackService {\n\n public Track saveTrack(Track track) throws TrackAlreadyExistsException;\n\n public Track getTrack(int id) throws TrackNotFoundException;\n\n public List<Track> getAllTracks() throws Exception;\n\n public List<Track> searchTrackByName(String trackName) throws TrackNotFoundException;\n\n public Track deleteTrackById(int id) throws TrackNotFoundException;\n\n public void deleteAllTracks();\n\n public Track updateTrackById(int trackId, Track updatedTrack) throws TrackNotFoundException;\n}", "title": "" }, { "docid": "248208399a891f1abb7fb9dd0c83de2c", "score": "0.53591275", "text": "TrackerFactory() {\r\n\t}", "title": "" }, { "docid": "dc7158753a1bc6c8f3fb4fe8a88c949a", "score": "0.5358229", "text": "gfp2p.Api.Event getEvent();", "title": "" }, { "docid": "dc7158753a1bc6c8f3fb4fe8a88c949a", "score": "0.5358229", "text": "gfp2p.Api.Event getEvent();", "title": "" }, { "docid": "dc7158753a1bc6c8f3fb4fe8a88c949a", "score": "0.5358229", "text": "gfp2p.Api.Event getEvent();", "title": "" }, { "docid": "dc7158753a1bc6c8f3fb4fe8a88c949a", "score": "0.5358229", "text": "gfp2p.Api.Event getEvent();", "title": "" } ]
45720987227a13be69413f63914c8345
2 cases (Smooth Marker or Step Marker) return near or not
[ { "docid": "81a32bfb668efbe7a8d0c43fba3660f9", "score": "0.66178685", "text": "public boolean checkNear(Location my, LatLng smooth, NavigationMarkers step){\n\t\tfloat dist = returnDist(my, smooth, step);\n\t\tif(dist == -1){\n\t\t\tLog.e(\"ERR\", \"my, smooth, step are all set\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn dist < 8.0;\n\t}", "title": "" } ]
[ { "docid": "2b9be1475975a1bc8dabcd787aa66a1d", "score": "0.60266525", "text": "boolean hasOffsetDistance();", "title": "" }, { "docid": "4cacaf46dac7f0e4f519a784fc6d8d54", "score": "0.5866493", "text": "private LatLng bestPointCalculator() {\n\n double latitude = 0.0;\n double longitude = 0.0;\n\n for (int i = 0; i < departureMarkersBMP.size(); i++) {\n latitude = latitude + departureMarkersBMP.get(i).getPosition().latitude;\n longitude = longitude + departureMarkersBMP.get(i).getPosition().longitude;\n }\n\n latitude = latitude / departureMarkersBMP.size();\n longitude = longitude / departureMarkersBMP.size();\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(latitude, longitude)));\n CameraUpdate cameraUpdate =\n CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 13);\n mMap.animateCamera(cameraUpdate);\n\n return new LatLng(latitude, longitude);\n }", "title": "" }, { "docid": "4ef0e3bbd9a9af63ec78fd15a523caa9", "score": "0.57889026", "text": "@Test\n\tpublic void testBelowMin() {\n\t\tdouble lat = 51.519586;\n\t\tdouble lon = -0.068586;\n\t\tSunSearchParams params = new SunSearchParams(lat, lon, at(9, 30), ThresholdRelation.BELOW, -16);\n\n\t\tSunSearchResults result = new SunCalculator(sun).find(params);\n\n\t\tassertEquals(-16, result.params.thresholdAngle, 1e-6);\n\t\tassertEquals(at(9, 30), result.current.time);\n\t\tassertEquals(40.9, result.current.angle, 0.5);\n\t\tassertNotNull(result.threshold);\n\t\tassertNull(result.threshold.start);\n\t\tassertNull(result.threshold.end);\n\t\tassertNotNull(result.horizon);\n\t\tassertEquals(at(4, 50), result.horizon.start);\n\t\tassertEquals(at(21, 15), result.horizon.end);\n\t\tassertNotNull(result.minimum);\n\t\tassertEquals(-15, result.minimum.angle, 0.5);\n\t\tassertEquals(at(1, 2), result.minimum.time);\n\t\tassertNotNull(result.maximum);\n\t\tassertEquals(62, result.maximum.angle, 0.5);\n\t\tassertEquals(at(13, 2), result.maximum.time);\n\t}", "title": "" }, { "docid": "a70b4772d1d29e2c5dcbbe6be9e8eff4", "score": "0.57218325", "text": "public Point mo9908a(GeoPoint geoPoint, Point point) {\n int i;\n int i2;\n PointF b = Mediator.this.f2390i.mo9852b(geoPoint, Mediator.this.f2390i.f2316l, Mediator.this.f2390i.f2318n, Mediator.this.f2390i.f2315k);\n MultiTouchGestureDetector G = Mediator.this.f2384c.f2377c.mo10010G();\n Point point2 = Mediator.this.f2384c.f2377c.mo10022b().f2390i.f2318n;\n float f;\n if (G.f2522m) {\n boolean z = true;\n try {\n z = Mediator.this.f2389h.f2487h.mo9727f();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n if (G.f2521l && z) {\n float f2 = ((MultiTouchGestureDetector.f2506j * (((float) ((int) b.x)) - G.f2516f.x)) + G.f2516f.x) + (G.f2517g.x - G.f2516f.x);\n f = ((MultiTouchGestureDetector.f2506j * (((float) ((int) b.y)) - G.f2516f.y)) + G.f2516f.y) + (G.f2517g.y - G.f2516f.y);\n i = (int) f2;\n i2 = (int) f;\n if (((double) f2) >= ((double) i) + 0.5d) {\n i++;\n }\n if (((double) f) >= ((double) i2) + 0.5d) {\n i2++;\n }\n } else {\n i = (int) b.x;\n i2 = (int) b.y;\n }\n } else {\n float f3 = ((float) point2.x) + (Mediator.this.f2390i.f2307c * ((float) (((int) b.x) - point2.x)));\n f = (Mediator.this.f2390i.f2307c * ((float) (((int) b.y) - point2.y))) + ((float) point2.y);\n i = (int) f3;\n i2 = (int) f;\n if (((double) f3) >= ((double) i) + 0.5d) {\n i++;\n }\n if (((double) f) >= ((double) i2) + 0.5d) {\n i2++;\n }\n }\n Point point3 = new Point(i, i2);\n if (point != null) {\n point.x = point3.x;\n point.y = point3.y;\n }\n return point3;\n }", "title": "" }, { "docid": "880d9bb809656092fe95f57914785575", "score": "0.57216454", "text": "@Override\n public double moveInDirection() {\n double flag=0;\n Point temp=getLocation();\n int distance=(int) (CompetitionFrame.MOVEPIXSELS*getSpeed());\n if(temp.getX()+distance>630){\n flag=move(new Point(630,temp.getY()));\n }\n else flag=move(new Point(temp.getX()+distance,temp.getY()));\n return flag;\n }", "title": "" }, { "docid": "f9f2492741a54863d7e21d604af87cdc", "score": "0.56952196", "text": "@Test\n\tpublic void testAboveMin() {\n\t\tdouble lat = 51.519586;\n\t\tdouble lon = -0.068586;\n\t\tSunSearchParams params = new SunSearchParams(lat, lon, at(9, 30), ThresholdRelation.ABOVE, -20);\n\n\t\tSunSearchResults result = new SunCalculator(sun).find(params);\n\n\t\tassertEquals(-20, result.params.thresholdAngle, 1e-6);\n\t\tassertEquals(at(9, 30), result.current.time);\n\t\tassertEquals(40.9, result.current.angle, 0.5);\n\t\tassertNotNull(result.threshold);\n\t\tassertNull(result.threshold.start);\n\t\tassertNull(result.threshold.end);\n\t\tassertNotNull(result.horizon);\n\t\tassertEquals(at(4, 50), result.horizon.start);\n\t\tassertEquals(at(21, 15), result.horizon.end);\n\t\tassertNotNull(result.minimum);\n\t\tassertEquals(-15, result.minimum.angle, 0.5);\n\t\tassertEquals(at(1, 2), result.minimum.time);\n\t\tassertNotNull(result.maximum);\n\t\tassertEquals(62, result.maximum.angle, 0.5);\n\t\tassertEquals(at(13, 2), result.maximum.time);\n\t}", "title": "" }, { "docid": "2a54f4ac60e9ea42cbf1e7950eacfc13", "score": "0.5643295", "text": "boolean hasLocator();", "title": "" }, { "docid": "093fc0b7d6a73af3cca0cad69f832ba1", "score": "0.56376594", "text": "public void calculadist(LatLng treasure) {//recoge tesoro\n\n Location tesoro=new Location(\"tesoro\");//recibo este tesoro de seleccionaTesoro()\n\n tesoro.setLatitude(treasure.latitude);\n tesoro.setLongitude(treasure.longitude);\n//calculo mi distancia al tesoro seleccionado\n distance = (int) miPosicion.distanceTo(tesoro);\n\n // Crear círculo con radio de 30m para cofre\n\n radius = 30;\n CircleOptions circleOptions = new CircleOptions()\n .center(tesoroaux)\n .radius(radius)\n .strokeColor(Color.parseColor(\"#0D47A1\"))\n .strokeWidth(4)\n .fillColor(Color.argb(32, 33, 150, 243));\n\n\n\n radius2 = 20;\n CircleOptions circleOptions2 = new CircleOptions()\n .center(tesoroaux)\n .radius(radius2)\n .strokeColor(Color.parseColor(\"#FFED1212\"))//rojo\n .strokeWidth(4)\n .fillColor(Color.argb(80, 255, 0, 0));\n\n\n radius3 = 10;\n CircleOptions circleOptions3 = new CircleOptions()\n .center(tesoroaux)\n .radius(radius3)\n .strokeColor(Color.parseColor(\"#FF1AFF00\"))//verde\n .strokeWidth(4)\n .fillColor(Color.argb(80, 0, 255, 0));\n\n\n\n//añadimos la confi y creamos cadacirculo\n\n//circulos invisibles\n circle=mMap.addCircle(circleOptions);\n circle.setVisible(false);\n circle2 = mMap.addCircle(circleOptions2);\n circle2.setVisible(false);\n circle3 = mMap.addCircle(circleOptions3);\n circle3.setVisible(false);\n\n\n if (distance <= radius && distance>radius2) {//<=30 & >20\n\n circle.setVisible(true);\n\n } else if (distance <= radius2 && distance>radius3) {//<20 &>10\n circle.setVisible(false);\n circle2.setVisible(true);\n\n } else if (distance <= radius3 && distance > radius4) {//<10 & >5\n circle2.setVisible(false);\n circle3.setVisible(true);\n\n //habilitamos qr\n\n\n }\n\n }", "title": "" }, { "docid": "2f2ae779bce9ed3ac86534182947e97f", "score": "0.56209576", "text": "public void findClosestObject() {\n int i, idx, type;\n float maxMag;\n double d;\n double min = myProjection.getWidth() + myProjection.getHeight();\n\n idx = -1;\n // Look for closest star.\n maxMag = myParameter.getMaxMag();\n type = SkyObject.NONE;\n for (i = 0; i < screenCoordStars.length; i++) {\n if (screenCoordStars[i].visible && mySky.getStar(i).getObject().getMag() < maxMag) {\n d = Math.abs(xCursor - screenCoordStars[i].x) + Math.abs(yCursor - screenCoordStars[i].y);\n if (d < min) {\n min = d;\n idx = i;\n type = SkyObject.STAR;\n }\n }\n }\n // Look for closest messier object.\n if (myParameter.isMessierDisplayed()) {\n for (i = 0; i < screenCoordMessier.length; i++) {\n if (screenCoordMessier[i].visible) {\n d = Math.abs(xCursor - screenCoordMessier[i].x) + Math.abs(yCursor - screenCoordMessier[i].y);\n if (d < min) {\n min = d;\n idx = i;\n type = SkyObject.MESSIER;\n }\n }\n }\n }\n if (myParameter.isPlanetDisplayed()) {\n // Sun\n d = Math.abs(xCursor - screenCoordSun.x) + Math.abs(yCursor - screenCoordSun.y);\n if (d < min && screenCoordSun.visible) {\n min = d;\n type =SkyObject.SUN;\n }\n // Moon\n d = Math.abs(xCursor - screenCoordMoon.x) + Math.abs(yCursor - screenCoordMoon.y);\n if (d < min && screenCoordMoon.visible) {\n min = d;\n type = SkyObject.MOON;\n }\n // Planets\n for (i = 0; i < Sky.NB_OF_PLANETS; i++) {\n d = Math.abs(xCursor - screenCoordPlanets[i].x) + Math.abs(yCursor - screenCoordPlanets[i].y);\n if (d < min && screenCoordPlanets[i].visible) {\n min = d;\n idx = i;\n type = SkyObject.PLANET;\n }\n }\n }\n // Display star information\n if (idx == -1) {\n myParameter.setCursor(false); // Remove cursor is not close object found. Not too clean\n } else if (idx != idxClosestObject || type != typeClosestObject) {\n // The closest star is a new star\n idxClosestObject = (short) idx;\n typeClosestObject = type;\n idxClosestConst = -1;\n switch (typeClosestObject) {\n case SkyObject.SUN:\n objectName = LocalizationSupport.getMessage(\"NAME_SUN\");\n magName = new String(LocalizationSupport.getMessage(\"CURSOR_MAGNITUDE_ABBR\") + \"-26.7\");\n distName = new String(LocalizationSupport.getMessage(\"CURSOR_DISTANCE_ABBR\") + (int) MathFunctions.toMKm(Projection.getRSun()) + \" mKm\");\n break;\n case SkyObject.MOON:\n objectName = LocalizationSupport.getMessage(\"NAME_MOON\");\n magName = new String(LocalizationSupport.getMessage(\"CURSOR_MAGNITUDE_ABBR\") + \"-12\");\n distName = new String(LocalizationSupport.getMessage(\"CURSOR_DISTANCE_ABBR\") + (int) mySky.getMoon().getDistance() + \" km\");\n break;\n case SkyObject.PLANET:\n objectName = mySky.getPlanet(idx).getObject().getName();\n magName = new String(LocalizationSupport.getMessage(\"CURSOR_MAGNITUDE_ABBR\") + mySky.getPlanet(idx).getObject().getMag());\n distName = new String(LocalizationSupport.getMessage(\"CURSOR_DISTANCE_ABBR\") + (int) MathFunctions.toMKm(mySky.getPlanet(idx).getDistance()) + \" mKm\");\n break;\n case SkyObject.MESSIER:\n objectName = new String(MessierCatalog.getObject(idx).getName());\n magName = new String(LocalizationSupport.getMessage(\"CURSOR_MAGNITUDE_ABBR\") + MessierCatalog.getObject(idx).getMag());\n distName = new String(LocalizationSupport.getMessage(\"CURSOR_DISTANCE_ABBR\") + MessierCatalog.getObject(idx).getDist() + \" k\" + LocalizationSupport.getMessage(\"CURSOR_LIGHTYEAR_ABBR\"));\n break;\n case SkyObject.STAR:\n objectName = new String(((StarObject) (mySky.getStar(idx).getObject())).getBayerName() + \" \" + ((StarObject) (mySky.getStar(idx).getObject())).getConstellationName());\n if (mySky.getStar(idx).getObject().getName().length() != 0) {\n objectName += new String(\" - \" + mySky.getStar(idx).getObject().getName());\n }\n\n magName = new String(LocalizationSupport.getMessage(\"CURSOR_MAGNITUDE_ABBR\") + mySky.getStar(idx).getObject().getMag());\n distName = new String(LocalizationSupport.getMessage(\"CURSOR_DISTANCE_ABBR\") + ((StarObject) (mySky.getStar(idx).getObject())).getDistance() + \" \" + LocalizationSupport.getMessage(\"CURSOR_LIGHTYEAR_ABBR\"));\n\n // Is this star belongs to a new constellation ?\n if (((StarObject) (mySky.getStar(idx).getObject())).getConstellation() != idxClosestConst) {\n idxClosestConst = ((StarObject) (mySky.getStar(idx).getObject())).getConstellation();\n constName1 = ConstellationCatalog.constNames[idxClosestConst][ConstellationCatalog.NAME] + \"/\" + ConstellationCatalog.constNames[idxClosestConst][ConstellationCatalog.LATIN] + \"/\";\n constName2 = ConstellationCatalog.constNames[idxClosestConst][ConstellationCatalog.NAME];\n shiftConstName = constName1.indexOf(\"/\", 0) + 1;\n colorClosestConst = 0;//color[myParameter.getColor()][COL_CONST_MAX]/2;\n colorConstName = 0;//color[myParameter.getColor()][COL_CONST_NAME]/2;\n }\n break;\n }\n }\n }", "title": "" }, { "docid": "465992e1fa8814ab0add3d1e2bad5507", "score": "0.55862206", "text": "public boolean wumpusNear() {\n int x = getX() / 30;\n int y = getY() / 30;\n if (gridTiles.getGridTile((x + 1) % 20, y) == 5 ||\n gridTiles.getGridTile((x + 19) % 20, y) == 5 ||\n gridTiles.getGridTile(x, (y + 1) % 20) == 5 ||\n gridTiles.getGridTile(x, (y + 19) % 20) == 5\n ) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "00f76212676ac2e94458a30f4aa38285", "score": "0.5580148", "text": "@Override\r\n\t\tpublic void onLocationChanged(Location location) {\n\r\n\t\t\tdouble longitude = location.getLongitude();// ||\r\n\t\t\tdouble latitude = location.getLatitude();// ----\r\n\t\t\tdouble altitude = location.getAltitude();// Height\r\n\r\n\t\t\tif (Math.abs((latitude - lastLat) * 1E6) > 1600\r\n\t\t\t\t\t|| Math.abs((longitude - lastLon) * 1E6) > 1600) {\r\n\t\t\t\tneedCorrect = true;\r\n\t\t\t}\r\n\r\n\t\t\tdouble x = (radiusEarth + altitude)\r\n\t\t\t\t\t* Math.cos(latitude * Math.PI / 180)\r\n\t\t\t\t\t* Math.cos(longitude * Math.PI / 180);\r\n\t\t\tdouble y = (radiusEarth + altitude)\r\n\t\t\t\t\t* Math.cos(latitude * Math.PI / 180)\r\n\t\t\t\t\t* Math.sin(longitude * Math.PI / 180);\r\n\t\t\tdouble z = (radiusEarth + altitude)\r\n\t\t\t\t\t* Math.sin(latitude * Math.PI / 180);\r\n\r\n\t\t\tif (!origoIsFixed) {\r\n\t\t\t\tflatXUnitX = -y / Math.sqrt(x * x + y * y);\r\n\t\t\t\tflatXUnitY = x / Math.sqrt(x * x + y * y);\r\n\t\t\t\tflatXUnitZ = 0;\r\n\t\t\t\tflatYUnitX = (y * flatXUnitZ - z * flatXUnitY);\r\n\t\t\t\tflatYUnitY = (z * flatXUnitX - x * flatXUnitZ);\r\n\t\t\t\tflatYUnitZ = (x * flatXUnitY - y * flatXUnitX);\r\n\t\t\t\tdouble length = Math.sqrt(flatYUnitX * flatYUnitX + flatYUnitY\r\n\t\t\t\t\t\t* flatYUnitY + flatYUnitZ * flatYUnitZ);\r\n\t\t\t\tflatYUnitX = flatYUnitX / length;\r\n\t\t\t\tflatYUnitY = flatYUnitY / length;\r\n\t\t\t\tflatYUnitZ = flatYUnitZ / length;\r\n\t\t\t}\r\n\r\n\t\t\tdouble spaceX = (radiusEarth + altitude)\r\n\t\t\t\t\t* Math.cos(latitude * Math.PI / 180)\r\n\t\t\t\t\t* Math.cos(longitude * Math.PI / 180);\r\n\t\t\tdouble spaceY = (radiusEarth + altitude)\r\n\t\t\t\t\t* Math.cos(latitude * Math.PI / 180)\r\n\t\t\t\t\t* Math.sin(longitude * Math.PI / 180);\r\n\t\t\tdouble spaceZ = (radiusEarth + altitude)\r\n\t\t\t\t\t* Math.sin(latitude * Math.PI / 180);\r\n\r\n\t\t\tcoordinates.add(new FlatCoordinate(spaceX * flatXUnitX + spaceY\r\n\t\t\t\t\t* flatXUnitY + spaceZ * flatXUnitZ, spaceX * flatYUnitX\r\n\t\t\t\t\t+ spaceY * flatYUnitY + spaceZ * flatYUnitZ));\r\n\t\t\tpoints.add(new GPSCoordinate(latitude, longitude, altitude));\r\n\r\n\t\t\tsynchronized (queueNotNull) {\r\n\t\t\t\tqueueNotNull.notify();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "8c4c1c42e156be03bbbf64b372b483b2", "score": "0.5571466", "text": "public abstract boolean isNear(final int chunkx, final int chunkz, final int view);", "title": "" }, { "docid": "b98c30ed3cf694b7f67f4acc24d6ada9", "score": "0.5562903", "text": "@Test\n\tpublic void nearestPointTest()\n\t{\n\t LimitedLine line = new LimitedLine(new Point3d(30,50,0), new Point3d(100,50,0));\n\t LimitedArc arc1 = new LimitedArc(new Point3d(100,100,0),new Point3d(150,100,0),Math.PI);\n\t LimitedArc arc2 = new LimitedArc(new Point3d(50,110,0),new Point3d(35,110,0),Math.PI);\n\t Point3d p = new Point3d(50,70,0);\n\t Point3d pNear1 = GeometricOperations.nearestPoint(p, arc2);\n\t Point3d pNear2 = GeometricOperations.nearestPoint1(p, arc2);\n\t Point3d pNear3 = GeometricOperations.nearestPoint(p, line);\n//\t System.out.println(\"Nearest Point1: \" + pNear1);\n\t System.out.println(\"Nearest Point2: \" + pNear3);\n\t ArrayList<LimitedElement> elements = new ArrayList<LimitedElement>();\n \telements.add(arc1);\n \telements.add(arc2);\n//\t\tDesenhadorDeLimitedElements desenhador = new DesenhadorDeLimitedElements(elements);\n//\t\tdesenhador.setVisible(true);\n//\t\tfor(;;);\n\t \n\t}", "title": "" }, { "docid": "cc4e771b73613bd3a2a8909acf81ab10", "score": "0.5561397", "text": "private boolean moveMarker(MapMode mapMode){\n\t\tif (verticesMap.containsKey(selectedMarker)) {\n if(moveBoundaryMarker(mapMode)) {\n return true;\n } else {\n Toast toast = Toast.makeText(context,\n R.string.message_invalid_marker_position,\n Toast.LENGTH_SHORT);\n toast.show();\n return false;\n }\n } else if (holesVerticesMap.containsKey(selectedMarker)) {\n if(moveHoleMarker()) {\n return true;\n } else {\n Toast toast = Toast.makeText(context,\n R.string.message_invalid_marker_position,\n Toast.LENGTH_SHORT);\n toast.show();\n return false;\n }\n }else if (locationsMap.containsKey(selectedMarker)) {\n\t\t\treturn moveLocationMarker();\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0bb21473d72292ae3d1c81787bc2f683", "score": "0.55192953", "text": "public boolean obstacle() {\r\n \r\n SampleProvider distance = infraredSensor.getDistanceMode(); \r\n \r\n //gives the average of the last 5 samples\r\n SampleProvider average = new MeanFilter(distance,5);\r\n\r\n float[] sample = new float[average.sampleSize()];\r\n average.fetchSample(sample, 0);\r\n \r\n // Printing the distance \r\n System.out.println(\"Current: \" + sample[0]); \r\n\r\n if (sample[0] < 7 && ignoreFirstValue == false) {\r\n \r\n ignoreFirstValue = true;\r\n System.out.println(\"Obstacle true!\");\r\n return true; \r\n }\r\n else {\r\n ignoreFirstValue = false;\r\n return false;\r\n }\r\n\r\n }", "title": "" }, { "docid": "dab47ac8c8d11036736a8333d57e143a", "score": "0.547561", "text": "private boolean jeMimoPlochy(double x1, double y1) {\n if (x1 < getWidth() + 50 && y1 < getHeight() + 50 && x1 > -50 && y1 > -50) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d77019862643d880a72eea88003a393f", "score": "0.54714364", "text": "LatLng dotlocation(int buildingcode) {\r\n \r\n \t\t// All SW and NE points\r\n \t\t// Love\r\n \t\tdouble lovelathigh = 30.446112;\r\n \t\tdouble lovelonhigh = -84.299222;\r\n \t\tdouble lovelatlow = 30.446084;\r\n \t\tdouble lovelonlow = -84.299877;\r\n \r\n \t\t// Carothers\r\n \t\t// LatLng carothSW = new LatLng(30.445612,-84.300488);\r\n \t\tdouble carothlathigh = 30.445612;\r\n \t\tdouble carothlonhigh = -84.299555;\r\n \t\tdouble carothlatlow = 30.445473;\r\n \t\tdouble carothlonlow = -84.300488;\r\n \t\t// LatLng carothNE = new LatLng(30.445473,-84.299555);\r\n \r\n \t\t// Caraway\r\n \t\t// LatLng caraSW = new LatLng(30.44514,-84.29889);\r\n \t\t// LatLng caraNE = new LatLng(30.445131,-84.298439);\r\n \t\tdouble caralathigh = 30.44514;\r\n \t\tdouble caralonhigh = -84.298439;\r\n \t\tdouble caralatlow = 30.445131;\r\n \t\tdouble caralonlow = -84.29889;\r\n \r\n \t\t// Fischer lecture hall\r\n \t\t// LatLng fishSW = new LatLng(30.444095,-84.300735);\r\n \t\t// LatLng fishNE = new LatLng(30.444308,-84.300402);\r\n \t\tdouble fishlathigh = 30.444308;\r\n \t\tdouble fishlonhigh = -84.300402;\r\n \t\tdouble fishlatlow = 30.444095;\r\n \t\tdouble fishlonlow = -84.300735;\r\n \r\n \t\t// Rogers\r\n \t\t// LatLng rogSW = new LatLng(30.443984,-84.300284);\r\n \t\t// LatLng rogNE = new LatLng(30.444114,-84.299909);\r\n \t\tdouble roglathigh = 30.444114;\r\n \t\tdouble roglonhigh = -84.299909;\r\n \t\tdouble roglatlow = 30.443984;\r\n \t\tdouble roglonlow = -84.300284;\r\n \r\n \t\t// Bellamy\r\n \t\t// LatLng belSW = new LatLng(30.44293,-84.296025);\r\n \t\t// LatLng belNE = new LatLng(30.443559,-84.29566);\r\n \t\tdouble bellathigh = 30.443559;\r\n \t\tdouble bellonhigh = -84.29566;\r\n \t\tdouble bellatlow = 30.44293;\r\n \t\tdouble bellonlow = -84.296025;\r\n \r\n \t\t// HCB\r\n \t\t// LatLng hcbSW = new LatLng(30.443041,-84.297634);\r\n \t\t// LatLng hcbNE = new LatLng(30.443346,-84.296669);\r\n \t\tdouble hcblathigh = 30.443346;\r\n \t\tdouble hcblonhigh = -84.296669;\r\n \t\tdouble hcblatlow = 30.443041;\r\n \t\tdouble hcblonlow = -84.297634;\r\n \r\n \t\t// Wellness center\r\n \t\t// LatLng wellSW = new LatLng(30.441468,-84.299608);\r\n \t\t// LatLng wellNE = new LatLng(30.441875,-84.298911);\r\n \t\tdouble wellathigh = 30.441875;\r\n \t\tdouble wellonhigh = -84.298911;\r\n \t\tdouble wellatlow = 30.441468;\r\n \t\tdouble wellonlow = -84.299608;\r\n \r\n \t\t// Shores\r\n \t\t// LatLng shorSW = new LatLng(30.44096,-84.296154);\r\n \t\t// LatLng shorNE = new LatLng(30.441376,-84.295853);\r\n \t\tdouble shorlathigh = 30.441376;\r\n \t\tdouble shorlonhigh = -84.295853;\r\n \t\tdouble shorlatlow = 30.44096;\r\n \t\tdouble shorlonlow = -84.296154;\r\n \r\n \t\t// Rovetta business building A\r\n \t\t// LatLng rovaSW = new LatLng(30.444336,-84.296336);\r\n \t\t// LatLng rovaNE = new LatLng(30.444206,-84.295413);\r\n \t\tdouble rovalathigh = 30.444336;\r\n \t\tdouble rovalonhigh = -84.295413;\r\n \t\tdouble rovalatlow = 30.444206;\r\n \t\tdouble rovalonlow = -84.296336;\r\n \r\n \t\t// Rovetta business building B\r\n \t\t// LatLng rovbSW = new LatLng(30.443725,-84.295521);\r\n \t\t// LatLng rovbNE = new LatLng(30.443966,-84.295092);\r\n \t\tdouble rovblathigh = 30.443966;\r\n \t\tdouble rovblonhigh = -84.295092;\r\n \t\tdouble rovblatlow = 30.443725;\r\n \t\tdouble rovblonlow = -84.295521;\r\n \r\n \t\tswitch (buildingcode) {\r\n \t\tcase lovebc:\r\n \t\t\tdouble lovegenlat = (double) (Math.random()\r\n \t\t\t\t\t* (lovelathigh - lovelatlow) + lovelatlow);\r\n \t\t\tdouble lovegenlon = (double) (Math.random()\r\n \t\t\t\t\t* (lovelonhigh - lovelonlow) + lovelonlow);\r\n \t\t\tLog.d(\"maps\", \"Love lat: \" + lovegenlat);\r\n \t\t\tLog.d(\"maps\", \"Love lon: \" + lovegenlon);\r\n \t\t\tLatLng lovegen = new LatLng(lovegenlat, lovegenlon);\r\n \t\t\treturn lovegen;\r\n \t\t\t// break;\r\n \t\tcase carothbc:\r\n \t\t\tdouble carothgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (carothlathigh - carothlatlow) + carothlatlow);\r\n \t\t\tdouble carothgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (carothlonhigh - carothlonlow) + carothlonlow);\r\n \t\t\tLatLng carothgen = new LatLng(carothgenlat, carothgenlon);\r\n \t\t\treturn carothgen;\r\n \t\t\t// break;\r\n \t\tcase carabc:\r\n \t\t\tdouble caragenlat = (double) (Math.random()\r\n \t\t\t\t\t* (caralathigh - caralatlow) + caralatlow);\r\n \t\t\tdouble caragenlon = (double) (Math.random()\r\n \t\t\t\t\t* (caralonhigh - caralonlow) + caralonlow);\r\n \t\t\tLatLng caragen = new LatLng(caragenlat, caragenlon);\r\n \t\t\treturn caragen;\r\n \t\t\t// break;\r\n \t\tcase fishbc:\r\n \t\t\tdouble fishgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (fishlathigh - fishlatlow) + fishlatlow);\r\n \t\t\tdouble fishgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (fishlonhigh - fishlonlow) + fishlonlow);\r\n \t\t\tLatLng fishgen = new LatLng(fishgenlat, fishgenlon);\r\n \t\t\treturn fishgen;\r\n \t\t\t// break;\r\n \t\tcase rogbc:\r\n \t\t\tdouble roggenlat = (double) (Math.random()\r\n \t\t\t\t\t* (roglathigh - roglatlow) + roglatlow);\r\n \t\t\tdouble roggenlon = (double) (Math.random()\r\n \t\t\t\t\t* (roglonhigh - roglonlow) + roglonlow);\r\n \t\t\tLatLng roggen = new LatLng(roggenlat, roggenlon);\r\n \t\t\treturn roggen;\r\n \t\t\t// break;\r\n \t\tcase belbc:\r\n \t\t\tdouble belgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (bellathigh - bellatlow) + bellatlow);\r\n \t\t\tdouble belgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (bellonhigh - bellonlow) + bellonlow);\r\n \t\t\tLatLng belgen = new LatLng(belgenlat, belgenlon);\r\n \t\t\treturn belgen;\r\n \t\t\t// break;\r\n \t\tcase hbcbc:\r\n \t\t\tdouble hcbgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (hcblathigh - hcblatlow) + hcblatlow);\r\n \t\t\tdouble hcbgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (hcblonhigh - hcblonlow) + hcblonlow);\r\n \t\t\tLatLng hcbgen = new LatLng(hcbgenlat, hcbgenlon);\r\n \t\t\treturn hcbgen;\r\n \t\t\t// break;\r\n \t\tcase welbc:\r\n \t\t\tdouble welgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (wellathigh - wellatlow) + wellatlow);\r\n \t\t\tdouble welgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (wellonhigh - wellonlow) + wellonlow);\r\n \t\t\tLatLng welgen = new LatLng(welgenlat, welgenlon);\r\n \t\t\treturn welgen;\r\n \t\t\t// break;\r\n \t\tcase shorbc:\r\n \t\t\tdouble shorgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (shorlathigh - shorlatlow) + shorlatlow);\r\n \t\t\tdouble shorgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (shorlonhigh - shorlonlow) + shorlonlow);\r\n \t\t\tLatLng shorgen = new LatLng(shorgenlat, shorgenlon);\r\n \t\t\treturn shorgen;\r\n \t\t\t// break;\r\n \t\tcase rosabc:\r\n \t\t\tdouble rovagenlat = (double) (Math.random()\r\n \t\t\t\t\t* (rovalathigh - rovalatlow) + rovalatlow);\r\n \t\t\tdouble rovagenlon = (double) (Math.random()\r\n \t\t\t\t\t* (rovalonhigh - rovalonlow) + rovalonlow);\r\n \t\t\tLatLng rovagen = new LatLng(rovagenlat, rovagenlon);\r\n \t\t\treturn rovagen;\r\n \t\t\t// break;\r\n \t\tcase rosbbc:\r\n \t\t\tdouble rovbgenlat = (double) (Math.random()\r\n \t\t\t\t\t* (rovblathigh - rovblatlow) + rovblatlow);\r\n \t\t\tdouble rovbgenlon = (double) (Math.random()\r\n \t\t\t\t\t* (rovblonhigh - rovblonlow) + rovblonlow);\r\n \t\t\tLatLng rovbgen = new LatLng(rovbgenlat, rovbgenlon);\r\n \t\t\treturn rovbgen;\r\n \t\t\t// break;\r\n \r\n \t\tdefault:\r\n \t\t\tLatLng def = new LatLng(0.0, 0.0);\r\n \t\t\treturn def;\r\n \t\t\t// break;\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "f572c5bc744a49b26812a8da522ceafb", "score": "0.5463404", "text": "private void checkMarkers(){\n\n try{\n radius = Integer.parseInt(txt_radius.getText().toString());\n } catch(NumberFormatException e){\n radius = null;\n }\n\n for(Map.Entry<Traffic, Marker> entry : markers.entrySet()) {\n Marker marker = entry.getValue();\n\n boolean requirement1 = true;\n //cannot use non roadworks with dates\n if(entry.getKey() instanceof Roadworks){\n Roadworks key = (Roadworks) entry.getKey();\n if(startDate != null && endDate != null && (startDate.isBefore(endDate) || startDate.isEqual(endDate))) {\n if ((startDate.isBefore(key.getEnd()) || startDate.isEqual(key.getEnd())) && (endDate.isAfter(key.getStart()) || endDate.isEqual(key.getStart()))) {\n requirement1 = true;\n } else {\n requirement1 = false;\n }\n }\n }\n\n boolean requirement2 = true;\n if(chosenLocation != null && radius != null){\n float[] result = new float[2];\n Location.distanceBetween(chosenLocation.getLat(), chosenLocation.getLon(), marker.getPosition().latitude, marker.getPosition().longitude, result);\n\n if(result[0] <=radius){\n requirement2 = true;\n } else{\n requirement2 = false;\n }\n }\n\n marker.setVisible(requirement1 && requirement2);\n }\n }", "title": "" }, { "docid": "eb0c06c403c343fea368628a12ff1e8a", "score": "0.5449809", "text": "public int proximity(){\r\n return map.colourSensor.getProximity();\r\n }", "title": "" }, { "docid": "503c9f84e5539054cd33e919a30220a9", "score": "0.54431164", "text": "EdgeLocation getNearestLocation(Point2D point);", "title": "" }, { "docid": "054a29f1c6a980f1a2c59ddb1ff4abfe", "score": "0.5409151", "text": "@Override\n public boolean onMarkerClick(Marker marker) {\n if (marker.getTitle().equals(myMarker.getTitle())) {\n myMarker.setSnippet(\"You are here: \" + getDirection());\n\n } else {\n double distancia = distanceBeetSites(myMarker.getPosition().latitude, myMarker.getPosition().longitude, marker.getPosition().latitude, marker.getPosition().longitude);\n marker.setSnippet(\"Its a \" + distancia + \" km from you\");\n\n }\n\n\n return false;\n }", "title": "" }, { "docid": "02ec33da1bc81e3467a6e0c3364a8799", "score": "0.5404837", "text": "private double detectRisingEdge() {\n\t\tint filterCount = 0;\n\t\twhile (isNavigating()) {\n\t\t\tif (this.distance > D_RISING && filterCount > FILTER_VAL) {\n\t\t\t\tleftMotor.stop(true);\n\t\t\t\trightMotor.stop(false);\n\t\t\t\tSound.beep();\n\t\t\t\treturn odometer.getXYT()[2];\n\t\t\t} else if (this.distance > D_RISING) {\n\t\t\t\tfilterCount++;\n\t\t\t}\n\t\t}\n\t\treturn odometer.getXYT()[2];\n\t}", "title": "" }, { "docid": "42eb65bf1a4921f9d7e9a0be78e86f1f", "score": "0.5396926", "text": "@Override\n\tpublic boolean inBox( double xLo, double xHi, double yLo, double yHi ) {\n\t\treturn ( this.longitude.toSeconds() > xLo && this.longitude.toSeconds() < xHi ) && \n\t\t\t\t( this.latitude.toSeconds() > yLo && this.latitude.toSeconds() < yHi );\n\t}", "title": "" }, { "docid": "0e8851d7d4f5d663614fa3be96126a6d", "score": "0.5395838", "text": "int isPos(double e) {\n\t\tif (e < 0){\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn 1;\n\t\t}\t\n\t}", "title": "" }, { "docid": "7208a37a90c9200de61623238e80eff6", "score": "0.5362007", "text": "public Boolean isInFence(){\n try {\n // get current Location\n Location currentLocation = ConditionService.gLastLocation;\n if (currentLocation == null){\n return false;\n }\n // check if currentLocation is in geofence\n if(Math.pow(currentLocation.getLongitude() - longitude,2) + Math.pow((currentLocation.getLatitude() - latitude),2) < Math.pow(radius,2)){\n return true;\n }\n }catch (Exception e){\n e.printStackTrace();\n Log.e(\"DBFence/GetLoc\",\"Get Location failed\");\n }\n return false;\n }", "title": "" }, { "docid": "66169b4b7036f07513c6f6d70f9a4889", "score": "0.5360717", "text": "@Override\r\n public Point2D forward_impl(final float lat, final float lon, Point2D mapPoint) {\r\n final double phi = Math.toRadians(lat);\r\n final double lam = Math.toRadians(lon);\r\n final double coslam = Math.cos(lam);\r\n final double sinlam = Math.sin(lam);\r\n final double sinphi = Math.sin(phi);\r\n \r\n double sinX = 0.0;\r\n double cosX = 0.0;\r\n double A = 0.0;\r\n \r\n if (_mode == OBLIQ || _mode == EQUIT) {\r\n final double X = 2.0 * Math.atan(MapTransformUtils.ssfn(phi, sinphi, _e)) - HALFPI;\r\n \r\n sinX = Math.sin(X);\r\n cosX = Math.cos(X);\r\n }\r\n \r\n if (mapPoint == null) {\r\n mapPoint = new Point2D.Double();\r\n }\r\n \r\n switch (_mode) {\r\n case OBLIQ:\r\n A = _akm1 / (_cosX1 * (1.0 + _sinX1 * sinX + _cosX1 * cosX * coslam));\r\n mapPoint.setLocation(A * cosX, A * (_cosX1 * sinX - _sinX1 * cosX * coslam));\r\n break;\r\n case EQUIT:\r\n A = 2.0 * _akm1 / (1.0 + cosX * coslam);\r\n mapPoint.setLocation(A * cosX, A * sinX);\r\n break;\r\n case S_POLE:\r\n A = _akm1 * MapTransformUtils.tsfn(-phi, -sinphi, _e);\r\n mapPoint.setLocation(A, A * coslam);\r\n break;\r\n case N_POLE:\r\n A = _akm1 * MapTransformUtils.tsfn(phi, sinphi, _e);\r\n mapPoint.setLocation(A, -A * coslam);\r\n break;\r\n }\r\n mapPoint.setLocation(mapPoint.getX() * sinlam, mapPoint.getY());\r\n \r\n return mapPoint;\r\n }", "title": "" }, { "docid": "cae6c52615732c4d4d22c2c37ece0084", "score": "0.53539115", "text": "private void goToClosest() {\n\t\tPoint2D.Double currPos = new Point2D.Double(getX(), getY());\n\t\tPoint2D.Double closest = new Point2D.Double(2000, 2000);\n\t\tfor (int i=0; i < points.length; i++) {\n\t\t\tif(currPos.distance(points[i]) - currPos.distance(closest) < 0.001){\n\t\t\t\tclosest = points[i];\n\t\t\t\tpCount = i;\n\t\t\t}\n\t\t}\n\t\tgoTo(closest.getX(), closest.getY());\n\t}", "title": "" }, { "docid": "a551a7fe8cb4424236c7288c42eabf91", "score": "0.5347089", "text": "private int getLocation() {\n int loc = Math.abs((int) (generator.nextGaussian() * 4.5 + 10));\n\n if (loc < 1)\n loc = 1;\n if (loc > 20)\n loc = 20;\n\n return loc;\n }", "title": "" }, { "docid": "0b55fccfe7392b639c32d8c9cf5ea572", "score": "0.533488", "text": "@Override\n\tpublic boolean pointInShape(Point2D.Double pt, double tolerance) {\n\t\tPoint2D.Double objpt = new Point2D.Double();\n\t\tAffineTransform worldToObj = \n\t\t\t\tTransform.worldToObj(getCenter().getX(), getCenter().getY(), getRotation());\n\t\t//Point2D.Double objend = new Point2D.Double();\n\t\t//Point2D.Double objstart = new Point2D.Double();\n//\t\tworldToObj.rotate(-this.getRotation());\n//\t\tworldToObj.translate(-this.getCenter().getX(), -this.getCenter().getY());\n\t\tworldToObj.transform(pt, objpt); \n\t\t//worldToObj.transform(this.getStart(), objstart);\n\t\t//worldToObj.transform(this.getEnd(), objend);\n\t\t//center at 0,0\n\t\tPoint2D.Double objcenter = new Point2D.Double(0, 0);\n\t\t\n\t\tdouble startx = objcenter.getX();\t//p0.x\n\t\tdouble starty = objcenter.getY();\t//p0.y\n\t\tdouble endx = this.getEnd().getX();\t\t//p1.x\n\t\tdouble endy = this.getEnd().getY();\t\t//p1.y\n\t\tdouble length = getLength();\t\t\n\t\t\n\t\tPoint2D.Double dhat = new Point2D.Double((endx - startx)/length, (endy - starty)/length);\n\t\t\n\t\tdouble tx = (objpt.getX() - startx) * dhat.getX(); //(q - p0) * dhat\n\t\tdouble ty = (objpt.getY() - starty) * dhat.getY(); //(q - p0) * dhat\n\t\tdouble t = tx + ty;\n\t\t\n\t\tPoint2D.Double q = new Point2D.Double(startx + t * dhat.getX(), starty + t * dhat.getY()); //q = p0 + t * dhat\n\t\tdouble distFromLine = Math.sqrt(Math.pow(q.getX() - objpt.getX(), 2) \n\t\t\t\t+ Math.pow(q.getY() - objpt.getY(), 2)); \n\t\t\n\t\tif(distFromLine <= tolerance){\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n//\t\tif(objpt.getX() <= this.getWidth()/2 && objpt.getX() >= -this.getWidth()/2\n//\t\t\t\t&& objpt.getY() <= this.getHeight()/2 && objpt.getY() >= -this.getHeight()/2){\n//\t\t\tisInside = true;\n//\t\t}\n\t}", "title": "" }, { "docid": "b3adb2b253e8a64ab3a4ef6357cb198d", "score": "0.5330198", "text": "@Override\n public boolean onMarkerClick(Marker marker) {\n if (marker.getAlpha() == 0.5f) { // if is other best points\n for (Marker mark : bestMarkers) {\n mark.setAlpha(0.5f);\n }\n marker.setAlpha(1f);\n for (Polyline poly : polylines)\n poly.remove();\n polylines.clear();\n markersPolylines.clear();\n trips.clear();\n drawDirections(departureMarkers, marker);\n } else if (marker.getAlpha() == 0.4f || marker.getAlpha() == 0.99f) { // if is user departure\n if (!btnBestPoint.isClickable()) {\n changePolyline(markersPolylines.get(marker));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n setTextView(Objects.requireNonNull(markersTrips.get(marker)));\n }\n }\n }\n marker.showInfoWindow();\n return true;\n }", "title": "" }, { "docid": "51de38308cd74348e6711570ed77c885", "score": "0.53196853", "text": "public Point check_point (LightCycle playerCycle, String view_direction){\n Direction curr_direction = playerCycle.getDirection();\n\n Point curr_point = playerCycle.getPosition();\n\n int curr_x_pos = curr_point.x;\n int curr_y_pos = curr_point.y;\n\n Point new_point = new Point();\n\n if(view_direction == \"forward\"){\n // If the person is checking the point in front of it\n if (curr_direction.equals(Direction.UP)) {\n // if curr_direction is UP\n new_point.setLocation(curr_x_pos,curr_y_pos - 1);\n }\n\n else if (curr_direction.equals(Direction.RIGHT)) {\n // if curr_direction is RIGHT\n new_point.setLocation(curr_x_pos + 1, curr_y_pos);\n }\n\n\n else if (curr_direction.equals(Direction.DOWN)) {\n // if curr_direction is DOWN\n new_point.setLocation(curr_x_pos, curr_y_pos + 1);\n }\n\n else{\n // if curr_direction is LEFT\n new_point.setLocation(curr_x_pos - 1, curr_y_pos);\n }\n }\n\n else if (view_direction == \"right\") {\n // If the person is checking the point to the right\n if (curr_direction.equals(Direction.UP)) {\n // if curr_direction is UP\n new_point.setLocation(curr_x_pos + 1, curr_y_pos);\n }\n\n else if (curr_direction.equals(Direction.RIGHT)) {\n // if curr_direction is RIGHT\n new_point.setLocation(curr_x_pos, curr_y_pos + 1);\n }\n\n\n else if (curr_direction.equals(Direction.DOWN)) {\n // if curr_direction is DOWN\n new_point.setLocation(curr_x_pos - 1, curr_y_pos);\n }\n\n else{\n // if curr_direction is LEFT\n new_point.setLocation(curr_x_pos, curr_y_pos - 1);\n }\n\n }\n\n\n else{\n // If the person is checking the point to the left\n\n if (curr_direction.equals(Direction.UP)) {\n // if curr_direction is UP\n new_point.setLocation(curr_x_pos - 1, curr_y_pos);\n }\n\n else if (curr_direction.equals(Direction.RIGHT)) {\n // if curr_direction is RIGHT\n new_point.setLocation(curr_x_pos, curr_y_pos - 1);\n }\n\n\n else if (curr_direction.equals(Direction.DOWN)) {\n // if curr_direction is DOWN\n new_point.setLocation(curr_x_pos + 1, curr_y_pos);\n }\n\n else{\n // if curr_direction is LEFT\n new_point.setLocation(curr_x_pos, curr_y_pos + 1);\n }\n }\n\n\n return new_point;\n }", "title": "" }, { "docid": "5401dae63b925e0b78853865f18dfec9", "score": "0.53192234", "text": "private boolean isNearer(Point2D referencePoint, Point2D oldPoint, Point2D newPoint) {\n return referencePoint.distanceSquaredTo(oldPoint) > referencePoint.distanceSquaredTo(newPoint);\n }", "title": "" }, { "docid": "2c1e56c9c29cc00827acfba31024e7da", "score": "0.5315365", "text": "Rendermessages.CMsgPoint getOffsetDistance();", "title": "" }, { "docid": "e1032ab625502afcfdf31944e8f52dc2", "score": "0.53120345", "text": "public Vec3i above() {\n/* 130 */ return above(1);\n/* */ }", "title": "" }, { "docid": "c19f99646394c51adf2bd937c98f5169", "score": "0.5304376", "text": "boolean hasLatitude();", "title": "" }, { "docid": "1e41cb563b60625f2078c2f0f31b4732", "score": "0.5303044", "text": "public Boolean checkOnLine(String point) { //Todo: It doesn't work correctly(e.g It doesn't work on the vertexes of the edge)\n String[] loc = point.split(\",\");\n Float[] locOfPoint = new Float[2];\n locOfPoint[0] = Float.valueOf(loc[0]);\n locOfPoint[1] = Float.valueOf(loc[1]);\n\n int a = (int) (locOfPoint[1] + m * locOfPoint[0] + c);\n\n if (a == 0) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "49699c377d4f4654f91a1c056de5dccf", "score": "0.53023434", "text": "public boolean inRange(float lon,float lat,float lev){ return inXRange(lon)&&inYRange(lat)&&inZRange(lev);}", "title": "" }, { "docid": "a278477dc34029fe5c40c19cf56b77ae", "score": "0.5300647", "text": "private int findMinimalDistanceIndex(){\n int ind = -1;\n for (int i = 0; i < this.numberPoints; i++) {\n if(this.distance[i] != INFINITY){\n if((ind == -1 || this.distance[i] < this.distance[ind]) && this.b[i] != IT_WAS){\n ind = i;\n }\n }\n }\n return ind;\n }", "title": "" }, { "docid": "a913d9564f212d0db317f5190b13e3eb", "score": "0.5299577", "text": "private int hasEnteredSpot(Location currLoc) {\n\t\tList<Spot> mSpots = theApp.getCloseMusicSpots();\n\n\t\tif (mSpots == null)\n\t\t\treturn -1;\n\n\t\tfloat[] results = new float[1];\n\t\tdouble lat = currLoc.getLatitude();\n\t\tdouble lon = currLoc.getLongitude();\n\n\t\tfor (Spot s : mSpots) {\n\t\t\tLocation.distanceBetween(lat, lon, s.getLatitude(),\n\t\t\t\t\ts.getLongitude(), results);\n\t\t\t// Log.d(TAG, \"Distance to spot #\"+s.getId()+\" = \"+results[0]);\n\t\t\t// TODO: Maybe change this idea of detection delta\n\t\t\tif (results[0] < s.getRadius() - DETECTION_DELTA)\n\t\t\t\treturn s.getId();\n\t\t}\n\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "b375e087d904185987500a28e9d97f4e", "score": "0.5285955", "text": "boolean hasLongitude();", "title": "" }, { "docid": "05c1b11c2642891d1a0e9fcaf2920359", "score": "0.52839506", "text": "native public double getMarkerImportance();", "title": "" }, { "docid": "ca25e388941496b2ae2038c933706aff", "score": "0.5262318", "text": "public boolean proximityCheck(double range, Location destination);", "title": "" }, { "docid": "9081a7054f8e227c265ed5688e20a790", "score": "0.5259364", "text": "@Override\n\tpublic ILocation normalizeLocation(final ILocation point, final boolean nullIfOutside) {\n\t\tif ( environment.getGeometry().covers(point) ) { return point; }\n\n\t\tif ( isTorus() ) {\n\t\t\tfinal Point pt = GeometryUtils.FACTORY.createPoint(point.toCoordinate());\n\n\t\t\tfor ( int cnt = 0; cnt < 8; cnt++ ) {\n\t\t\t\tfinal AffineTransformation at = new AffineTransformation();\n\t\t\t\tat.translate(adjustedXVector[cnt], adjustedYVector[cnt]);\n\t\t\t\tfinal GamaPoint newPt = new GamaPoint(at.transform(pt).getCoordinate());\n\t\t\t\tif ( environment.getGeometry().covers(newPt) ) { return newPt; }\n\t\t\t}\n\t\t}\n\t\t// See if rounding errors of double do not interfere with the computation.\n\t\t// In which case, the use of Maths.approxEquals(value1, value2, tolerance) could help.\n\n\t\t// if ( envWidth == 0.0 ) {\n\t\t// xx = xx != envMinX ? nullIfOutside ? nil : envMinX : xx;\n\t\t// } else if ( xx < envMinX /* && xx > hostMinX - precision */) {\n\t\t// xx = /* !isTorus ? */nullIfOutside ? nil : envMinX /* : xx % envWidth + envWidth */;\n\t\t// } else if ( xx >= envMaxX /*- precision*/) {\n\t\t// xx = /* !isTorus ? */nullIfOutside ? nil : envMaxX /* : xx % envWidth */;\n\t\t// }\n\t\t// if ( xx == nil ) { return null; }\n\t\t// if ( envHeight == 0.0 ) {\n\t\t// yy = yy != envMinY ? nullIfOutside ? nil : envMinY : yy;\n\t\t// } else if ( yy < envMinY/* && yy > hostMinY - precision */) {\n\t\t// yy = /* !isTorus ? */nullIfOutside ? nil : envMinY /* : yy % envHeight + envHeight */;\n\t\t// } else if ( yy >= envMaxY /*- precision*/) {\n\t\t// yy = /* !isTorus ? */nullIfOutside ? nil : envMaxY /* : yy % envHeight */;\n\t\t// }\n\t\t// if ( yy == nil ) { return null; }\n\t\t// point.setLocation(xx, yy, point.getZ());\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "be3779459a55807e5b3501f6e3c000a4", "score": "0.5252892", "text": "static boolean is_near_land(tile tile0) {\r\n\t\tfor (tile ptile : util.square_tile_iterate(tile0, 4)) {\r\n\t\t\tif (!Terrain_H.is_ocean(ptile.terrain)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2d4c587df9a88c538893f5480b32e730", "score": "0.52490157", "text": "public double calculatePosition()\n {\n readings[0] = leftIR.getNormalizedLightValue();\n readings[2] = rightIR.getNormalizedLightValue();\n readings[1] = middleIR.getNormalizedLightValue();\n double leftPostion = RANGE - (readings[0] - MIN);\n double rightPostion = RANGE - (readings[2] - MIN);\n double centerPostion = RANGE - (readings[1] - MIN);\n\n if(readings[0]<MAX-BLACK_RANGE&&readings[2]>MAX-BLACK_RANGE)\n {\n statePosition = 1;\n }\n else if(readings[0]>MAX-BLACK_RANGE&&readings[2]<MAX-BLACK_RANGE)\n {\n statePosition = -1;\n }\n else if(readings[0]>MAX-BLACK_RANGE&&readings[2]>MAX-BLACK_RANGE)\n {\n statePosition = 0;\n }\n\n return setPoint + statePosition * (BLACK_RANGE + leftPostion + rightPostion + 5*centerPostion);\n\n }", "title": "" }, { "docid": "b1c62c5f61a3799e3fb1746d817f0b75", "score": "0.5247893", "text": "public boolean moveTo(Integer [] next) {\n int newX = -1;\n int newY = -1;\n\n double norm = Math.sqrt((next[0] - loc[0])*(next[0] - loc[0]) + (next[1] - loc[1])*(next[1] - loc[1]));\n //Main.printMsg(\"norm=\" + norm + \", speed=\" + speed);\n if (norm <= speed) { // avoid division by zero and endless wandering around the destination point\n newX = next[0];\n newY = next[1];\n } else { // next iteration\n newX = loc[0] + (int)((next[0] - loc[0]) * speed / norm);\n newY = loc[1] + (int)((next[1] - loc[1]) * speed / norm);\n }\n //Main.printMsg(\"move?: x=\" + newX + \", y=\" + newY + \", norm=\" + norm);\n\n int idxX = newX / Restrictions.getBlockSize();\n int idxY = newY / Restrictions.getBlockSize();\n if (Restrictions.getIntersectionStrategySeverity() > 0) {\n // check if we intersect another object\n // 1 - obtain the list of the map blocks which are intersected by the line of the object\n boolean intersects = false;\n for (int i = idxX; i <= idxX + size[0]; i++) {\n for (int j = idxY; j <= idxY + size[1]; j++) {\n if ((i != idxX) && (i != idxX + size[0]) && (j != idxY) && (j != idxY + size[1])) {\n continue; // skip all blocks which are in the middle\n }\n // TODO: remove these temporary defense after implement safe check of map bounds:\n int i_fixed = (i == GameMap.getInstance().getWid()) ? i-1 : i;\n int j_fixed = (j == GameMap.getInstance().getWid()) ? j-1 : j;\n //\n HashSet<GameObject> objectsOnTheBlock = GameMap.getInstance().objects[i_fixed][j_fixed];\n if ((objectsOnTheBlock.size() != 0)) {\n for (GameObject thatObject : objectsOnTheBlock) {\n if (thatObject != this) { // there is somebody there and it is not me!\n // multiple objects on the same block are allowed when they don't intersect\n if (Restrictions.getIntersectionStrategySeverity() > 1) {\n intersects = true;\n //Main.printMsg(\"INTERSECTS: i=\" + i_fixed + \", j=\" + j_fixed + \", thatObject=\" + this + \", thisObject=\" + thatObject);\n break;\n } else { // multiple objects on the same block are forbidden even if they actually don't intersect\n Rectangle thisObjectRect = new Rectangle(newX, newY, size[0] * Restrictions.getBlockSize(), size[1] * Restrictions.getBlockSize());\n Rectangle thatObjectRect = new Rectangle(thatObject.loc[0], thatObject.loc[1], thatObject.size[0] * Restrictions.getBlockSize(), thatObject.size[1] * Restrictions.getBlockSize());\n if (thisObjectRect.intersects(thatObjectRect)) {\n intersects = true;\n break;\n }\n }\n } else {\n //Main.printMsg(\"JUST ME: i=\" + i_fixed + \", j=\" + j_fixed);\n }\n if (intersects) break;\n }\n } else{\n //Main.printMsg(\"NOTHING: i=\" + i_fixed + \", j=\" + j_fixed + \", thatObject=\" + this + \", thisObject=\" + thatObject);\n }\n }\n if (intersects) {\n //Main.printMsg(\"INTERSECTS 2: thatObject=\" + this);\n break;\n }\n }\n if (intersects) {\n //Main.printMsg(\"INTERSECTS 3:\" + \", thatObject=\" + this);\n return true; // fail\n }\n }\n\n // TODO: check if the object borders are within map area!\n if ((newX < 0) || (newY < 0) || (loc[2] < 0) ||\n (newX + size[0] * Restrictions.getBlockSize() >= Restrictions.getMaxXAbs()) ||\n (newY + size[1] * Restrictions.getBlockSize() >= Restrictions.getMaxYAbs()) ||\n (loc[2] + size[2] * Restrictions.getBlockSize() >= Restrictions.getMaxZAbs())) {\n return true; // fail\n }\n\n // all checks passed - do movement finally:\n if ((newX == next[0]) && (newY == next[1])) { // destination point reached\n unsetDestinationPoint();\n }\n\n GameMap.getInstance().eraseObject(this);\n loc[0] = newX;\n loc[1] = newY;\n GameMap.getInstance().registerObject(this);\n //Main.printMsg(\"move: x=\" + loc[0] + \", y=\" + loc[1] + \", obj=\" + this);\n return false;\n }", "title": "" }, { "docid": "932f4529f4c563208cb21fd6534b1168", "score": "0.5224818", "text": "@Test\n\tpublic void testAboveMax() {\n\t\tdouble lat = 51.519586;\n\t\tdouble lon = -0.068586;\n\t\tSunSearchParams params = new SunSearchParams(lat, lon, at(9, 30), ThresholdRelation.ABOVE, 63);\n\n\t\tSunSearchResults result = new SunCalculator(sun).find(params);\n\n\t\tassertEquals(63, result.params.thresholdAngle, 1e-6);\n\t\tassertEquals(at(9, 30), result.current.time);\n\t\tassertEquals(40.9, result.current.angle, 0.5);\n\t\tassertNotNull(result.threshold);\n\t\tassertNull(result.threshold.start);\n\t\tassertNull(result.threshold.end);\n\t\tassertNotNull(result.horizon);\n\t\tassertEquals(at(4, 50), result.horizon.start);\n\t\tassertEquals(at(21, 15), result.horizon.end);\n\t\tassertNotNull(result.minimum);\n\t\tassertEquals(-15, result.minimum.angle, 0.5);\n\t\tassertEquals(at(1, 2), result.minimum.time);\n\t\tassertNotNull(result.maximum);\n\t\tassertEquals(62, result.maximum.angle, 0.5);\n\t\tassertEquals(at(13, 2), result.maximum.time);\n\t}", "title": "" }, { "docid": "2ab59754fc4f96071bf3dd9e8e63e997", "score": "0.5212159", "text": "public int predictPath() {\r\n\r\n\t\tdouble currx = odometer.getXYT()[0];\r\n\t\tdouble curry = odometer.getXYT()[1];\r\n\t\tdouble currTheta = odometer.getXYT()[2];\r\n\t\t\r\n\t\tif (currTheta > 340 || currTheta <= 20) {//going up\r\n\t\t\tif (currx < (LLx+0.5)*tileSize) {\r\n\t\t\t\treturn 1;\r\n\t\t\t\t//wallFollowRight(); // 1 represents right dodge and 0 represents left dodge\r\n\t\t\t} \r\n\t\t\telse if (currx > (URx-0.5)*tileSize){\r\n\t\t\t\treturn 0;\r\n\t\t\t\t//wallFollowLeft();\r\n\t\t\t}\r\n\t\t} \r\n\t\telse if(currTheta >= 70 && currTheta < 110){//going right\r\n\t\t\tif (curry < (LLy+0.5)*tileSize) {\r\n\t\t\t\treturn 0;\r\n\t\t\t\t//wallFollowLeft();\r\n\t\t\t} \r\n\t\t\telse if (curry > (URy-0.5)*tileSize) {\r\n\t\t\t\treturn 1;\r\n\t\t\t\t//wallFollowRight();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(currTheta > 160 && currTheta < 200){//going down\r\n\t\t\tif (currx < (LLx+0.5)*tileSize) {\r\n\t\t\t\treturn 0;\r\n\t\t\t\t//wallFollowLeft();\r\n\t\t\t} \r\n\t\t\telse if (currx > (URx-0.5)*tileSize) {\r\n\t\t\t\treturn 1;\r\n\t\t\t\t//wallFollowRight();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(currTheta > 250 && currTheta < 290){//going left\r\n\t\t\tif (curry <= (LLy+0.5)*tileSize ) {\r\n\t\t\t\treturn 1;\r\n\t\t\t\t//wallFollowRight();\r\n\t\t\t} \r\n\t\t\telse if (curry > (URy-0.5)*tileSize) {\r\n\t\t\t\tSystem.out.println(\"8\");\r\n\t\t\t\treturn 0;\r\n\t\t\t\t//wallFollowLeft();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t//wallFollowRight();\r\n\t\t\t//return 1;\r\n\t\t\tif (this.planningType == 'V') {\r\n\t\t\t\tif (this.firstSide) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}else {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}else if (this.planningType == 'H'){\r\n\t\t\t\tif(this.firstSide) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t}else {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n \r\n\t\r\n\t}", "title": "" }, { "docid": "fd3a2bc182e95c865ab88c19287098d4", "score": "0.5209316", "text": "boolean hasTextRadialOffset();", "title": "" }, { "docid": "e20caaaa4bf9db35de09a995c4b4997d", "score": "0.5198093", "text": "private boolean losePath(double x,double y) {\r\n\t double curx = odometer.getXYT()[0];\r\n\t double cury = odometer.getXYT()[1];\r\n\t// System.out.println(curx+\" \"+cury);\r\n\t boolean x1=false,y1=false;\r\n\t if (jobx < x && curx < x) {\r\n\t\t x1 = (jobx - curx >= 6.5);\r\n\t }else if (jobx > x && curx > x) {\r\n\t\t x1 = ((curx - jobx) >= 6.5);\r\n\t }else if ((jobx > x && curx < x)||(jobx < x && curx > x)) {\r\n\t\t x1 = (Math.abs(curx - x) >= 6.5);\r\n\t }\r\n\t if (joby < y && cury < y) {\r\n\t\t y1 = (joby - cury >= 6.5);\r\n\t }else if (joby > y && cury > y) {\r\n\t\t y1 = ((cury - joby) >= 6.5);\r\n\t }else if ((joby > y && cury < y)||(joby < y && cury > y)) {\r\n\t\t y1 = Math.abs(cury - y) >= 4;\r\n\t }\r\n\t if (x1||y1) {\r\n\t\t System.out.println(x1);\r\n\t\t System.out.println(y1);\r\n\t\t System.out.println(\"lose\");\r\n\t }\r\n\t return x1||y1;\r\n }", "title": "" }, { "docid": "58a48fb4a2e8afbfc565adebca55258e", "score": "0.51944137", "text": "@Override\n public boolean isRestart(float currentLat, float currentLon) {\n return false;\n }", "title": "" }, { "docid": "80f76f97b845f663e6163db62694eb8f", "score": "0.5190323", "text": "@Test\n public void testNearBoundary() {\n checkLat(\"N89.9999\", 89.9999);\n checkLat(\"S89.9999\", -89.9999);\n checkLon(\"E179.9999\", 179.9999);\n checkLon(\"W179.9999\", -179.9999);\n\n checkLat(\"N89.999999\", 89.999999);\n checkLat(\"S89.999999\", -89.999999);\n checkLon(\"E179.999999\", 179.999999);\n checkLon(\"W179.999999\", -179.999999);\n\n checkLat(\"N89\\u00B059'59\", 89+59/60d+59/3600d);\n checkLat(\"S89\\u00B059'59\", -(89+59/60d+59/3600d));\n checkLon(\"E179\\u00B059'59\", 179+59/60d+59/3600d);\n checkLon(\"W179\\u00B059'59\", -(179+59/60d+59/3600d));\n }", "title": "" }, { "docid": "bfc738f42c5bb534da58b22d4fda34da", "score": "0.51897055", "text": "public void adddefaultMarker(LatLng latlng, LatLng latlng1) {\n try {\n\n\n Location startbearlocation = new Location(LocationManager.GPS_PROVIDER);\n Location endbearlocation = new Location(LocationManager.GPS_PROVIDER);\n\n startbearlocation.setLatitude(latlng.latitude);\n startbearlocation.setLongitude(latlng.longitude);\n\n endbearlocation.setLatitude(latlng1.latitude);\n endbearlocation.setLongitude(latlng1.longitude);\n\n if (endbear != 0.0) {\n startbear = endbear;\n }\n\n\n //carmarker.setPosition(latlng);\n // carmarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.ic_booking_prime_map_topview));\n carmarker.setFlat(true);\n carmarker.setAnchor(0.5f, 0.5f);\n marker = carmarker;\n // Move map while marker gone\n ensureMarkerOnBounds(latlng, \"updated\");\n\n endbear = (float) bearing(startbearlocation, endbearlocation);\n endbear = (float) (endbear * (180.0 / 3.14));\n\n //double distance = Double.valueOf(twoDForm.format(startbearlocation.distanceTo(endbearlocation)));\n double distance = Double.valueOf((startbearlocation.distanceTo(endbearlocation)));\n\n if (distance > 0 && distance < 30) animateMarker(latlng1, marker, speed, endbear);\n\n } catch (NullPointerException n) {\n n.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "b69d93107ebb16620a6f47004649e8f9", "score": "0.51804507", "text": "private static boolean isLocalMaximum(float v, float[][][] det, int s,\r\n int x, int y, int step) {\r\n float[][] l = det[s - 1], m = det[s], u = det[s + 1]; // lower, middle\r\n // and upper\r\n // layers\r\n int px = x - step, nx = x + step, py = y - step, ny = y + step; // px:\r\n // \"previos x\",\r\n // nx:\r\n // \"next x\",\r\n // ...\r\n\r\n return (v >= l[px][py] && v >= l[px][y] && v >= l[px][ny] &&\r\n v >= l[x][py] && v >= l[x][y] && v >= l[x][ny] &&\r\n v >= l[nx][py] && v >= l[nx][y] && v >= l[nx][ny] &&\r\n\r\n v >= m[px][py] && v >= m[px][y] && v >= m[px][ny] &&\r\n v >= m[x][py] && /* v is here */v >= m[x][ny] && // <-- v is at\r\n // m[x][x]\r\n v >= m[nx][py] && v >= m[nx][y] && v >= m[nx][ny] &&\r\n\r\n v >= u[px][py] && v >= u[px][y] && v >= u[px][ny] &&\r\n v >= u[x][py] && v >= u[x][y] && v >= u[x][ny] &&\r\n v >= u[nx][py] && v >= u[nx][y] && v >= u[nx][ny]);\r\n }", "title": "" }, { "docid": "72a41146c6ab2a84c3f7f85d203a6cad", "score": "0.5156291", "text": "private void markerDistance() {\n mMap.addPolyline(new PolylineOptions()\n .add(new LatLng(getUbicaciones().getLatitud(), getUbicaciones().getLongitud()),\n new LatLng(nwLocation.getLatitude(), nwLocation.getLongitude()))\n .width(5)\n .color(Color.RED));\n }", "title": "" }, { "docid": "811c371d08be04042d06d88a77214855", "score": "0.5153469", "text": "private HasPosition nextPointAroundEnemyBase() {\n if (unitingAroundBaseWasInterrupted) {\n unitingAroundBaseDirectionClockwise = !unitingAroundBaseDirectionClockwise;\n }\n\n // Define direction\n HasPosition goTo = null;\n int step = 1;\n do {\n int deltaIndex = unitingAroundBaseDirectionClockwise ? step : -step;\n\n goTo = unitingAroundBaseLastPolygonPoint != null ? APosition.create(unitingAroundBaseLastPolygonPoint) : null;\n\n if (goTo == null || unitingAroundBaseWasInterrupted) {\n goTo = useNearestBoundaryPoint(enemyBaseRegion);\n }\n else {\n if (unit.distTo(goTo) <= 1.8) {\n unitingAroundBaseNextPolygonIndex = (unitingAroundBaseNextPolygonIndex + deltaIndex)\n % scoutingAroundBasePoints.size();\n if (unitingAroundBaseNextPolygonIndex < 0) {\n unitingAroundBaseNextPolygonIndex = scoutingAroundBasePoints.size() - 1;\n }\n\n goTo = scoutingAroundBasePoints.get(unitingAroundBaseNextPolygonIndex);\n\n if (Select.all().inRadius(0.5, goTo).empty()) {\n break;\n }\n }\n }\n\n step++;\n } while (step <= 15);\n\n unitingAroundBaseWasInterrupted = false;\n return unitingAroundBaseLastPolygonPoint = goTo;\n }", "title": "" }, { "docid": "4738c6f3be6d295cb559b31eeccfac68", "score": "0.51522756", "text": "public Point moveTowards(Point towards, double maxDist) {\n if (this.x == towards.x) {\n //System.out.println(\"Infinite slope encountered\");\n return new Point(this.x, this.y > towards.y ? this.y - maxDist : this.y + maxDist);\n }\n\n double m = (towards.y - this.y) / (towards.x - this.x);\n\n double a = 1 + Math.pow(m, 2);\n double b = (-2)*this.x + (-2)*this.x*Math.pow(m,2);\n double c = Math.pow(this.x,2) + Math.pow(m, 2)*Math.pow(this.x, 2) - Math.pow(maxDist, 2);\n\n\n // Use quadratic formula to find where circle intersects line\n double firstX = ((-1)*b + Math.sqrt(Math.pow(b,2) - 4*a*c))/(2*a);\n double secondX = ((-1)*b - Math.sqrt(Math.pow(b,2) - 4*a*c))/(2*a);\n\n // Use the point of intersection on the side closer to where we're moving\n if ( Math.abs(firstX - towards.x) < Math.abs(secondX - towards.x) ) {\n double newY = m*firstX - m*this.x + this.y;\n //if (Math.hypot(this.x - firstX, this.y - newY) > maxDist) \n //System.out.println(\"Something has gone horribly wrong\");\n //System.out.println(\"\\tMoved \" + Math.hypot(this.x-firstX, this.y-newY));\n return new Point(firstX, newY);\n } else {\n double newY = m*secondX - m*this.x + this.y;\n //if (Math.hypot(this.x - secondX, this.y - newY) > maxDist) \n //System.out.println(\"Something has gone horribly wrong\");\n //System.out.println(\"\\tMoved \" + Math.hypot(this.x-secondX, this.y-newY));\n return new Point(secondX, newY);\n }\n\n }", "title": "" }, { "docid": "38bcbb1a7eb6157cad8b995a02fba0dc", "score": "0.51311105", "text": "private void checkDistanceToTarget()\n {\n // check if the current state is tracking\n // Note, you can use this mechanism also to detect if something is tracking or not.\n // (e.g. for triggering an action as soon as some target is visible on screen)\n if ( mIsTracking )\n {\n // get the translation part of the pose\n final Vector3d translation = metaioSDK.getTrackingValues(1).getTranslation();\n // calculate the distance as sqrt( x^2 + y^2 + z^2 )\n final float distanceToTarget = translation.norm();\n // define a threshold distance\n final float threshold = 800;\n\n // we're not close yet, let's check if we are now\n if (distanceToTarget < threshold)\n {\n // flip the variable\n if ( !mIsCloseToModel )\n {\n mIsCloseToModel = true;\n MetaioDebug.log(\"Close to model\");\n // and stop an animation\n //setAnimationEnabled(mAugmentedModel, true);\n }\n }\n else if ( mIsCloseToModel )\n {\n MetaioDebug.log(\"Far from model\");\n // we flip this variable again\n mIsCloseToModel = false;\n // and start the close_up animation\n //setAnimationEnabled(mAugmentedModel, false);\n }\n }\n }", "title": "" }, { "docid": "d8b47b1d4dc1c229046783f71fa3adc9", "score": "0.51291776", "text": "@Test\n public void testSmallSeparatedSearchDistance() {\n List<GPXEntry> inputGPXEntries = new GPXFile()\n .doImport(\"./src/test/resources/tour3-with-long-edge.gpx\").getEntries();\n MapMatching mapMatching = new MapMatching(hopper, algoOptions);\n mapMatching.setMeasurementErrorSigma(20);\n MatchResult mr = mapMatching.doWork(inputGPXEntries);\n assertEquals(Arrays.asList(\"Weinligstraße\", \"Weinligstraße\", \"Weinligstraße\",\n \"Fechnerstraße\", \"Fechnerstraße\"), fetchStreets(mr.getEdgeMatches()));\n assertEquals(mr.getGpxEntriesLength(), mr.getMatchLength(), 11); // TODO: this should be around 300m according to Google ... need to check\n assertEquals(mr.getGpxEntriesMillis(), mr.getMatchMillis(), 3000);\n }", "title": "" }, { "docid": "8c1cefa12e34670eff9d492980c739b5", "score": "0.51272553", "text": "private double compensateOffset(){\n double k=Math.max(0,Math.min(1 , 1-(toTargetDis-Constants.CLOSE_DIS) / Constants.CLOSE_DIS / 2));;\n if(Double.isNaN(target.theta) || isGet)\n return -Constants.PHYSICAL_OFFSET*k;\n double RV= ((target.theta-toTargetTheta)%360+360)%360;\n if(RV>180)RV-=360;\n RV*=-1;\n if(Math.abs(RV)>Constants.OFFSET_THRESH && isGet==false)\n return Math.signum(RV)*Constants.OFFSET_COMP-Constants.PHYSICAL_OFFSET*k;\n else return -Constants.PHYSICAL_OFFSET*k;\n }", "title": "" }, { "docid": "a728f341795a9a9809cb97b576368125", "score": "0.5125656", "text": "@Override\n public boolean onMarkerClick(Marker marker) {\n return marker.getAlpha() <= 0;\n }", "title": "" }, { "docid": "836811fcb30100aa1c80bb37a2052c78", "score": "0.51254976", "text": "@Override\n public List<GeoPoint> findGeoIntersections(Ray ray, double maxDistance) {\n //calculating varieables for the final formula\n Point3D P0 = ray.getP0();\n Vector V = ray.getDir();\n Point3D O = _center;\n if (P0.equals(_center)) {\n return List.of(new GeoPoint(this, _center.add(V.scale(radius))));\n }\n Vector U = O.subtract(P0);\n double tm = V.dotProduct(U);\n double d = alignZero(Math.sqrt(alignZero(U.lengthSquared() - tm * tm)));\n //there is no intersaction\n //\n if (d >= radius) {\n return null;\n }\n double th = alignZero(Math.sqrt(alignZero(radius * radius - d * d)));\n double t1 = alignZero(tm - th);\n double t2 = alignZero(tm + th);\n // if P is on the surface---\n if (isZero(th)) {\n return null;\n }\n\n //in case of 2 intersaction points\n if ((t1 > 0 && t2 > 0) && (alignZero(t1 - maxDistance) <= 0) && (alignZero(t2 - maxDistance) <= 0)) {\n// //the first point and the second point\n\n return List.of(new GeoPoint(this, ray.getPoint(t1)), new GeoPoint(this, ray.getPoint(t2)));\n }\n //in case of 1 intersaction points\n if (t1 > 0 && (alignZero(t1 - maxDistance) <= 0)) {\n\n return List.of(new GeoPoint(this, ray.getPoint(t1)));\n }\n //in case of 1 intersaction points\n if (t2 > 0 && (alignZero(t2 - maxDistance) <= 0)) {\n\n return List.of(new GeoPoint(this, ray.getPoint(t2)));\n }\n return null;\n\n }", "title": "" }, { "docid": "2a66dde45bb0fccb8bf384e444eee4a7", "score": "0.5124177", "text": "boolean isNearBorder(double x, double y, double tolerance);", "title": "" }, { "docid": "ce44f48a1c75b6c4fc65bc7de3c009a8", "score": "0.5119769", "text": "@Test\n\tpublic void testBelowMax() {\n\t\tdouble lat = 51.519586;\n\t\tdouble lon = -0.068586;\n\t\tSunSearchParams params = new SunSearchParams(lat, lon, at(9, 30), ThresholdRelation.BELOW, 64);\n\n\t\tSunSearchResults result = new SunCalculator(sun).find(params);\n\n\t\tassertEquals(64, result.params.thresholdAngle, 1e-6);\n\t\tassertEquals(at(9, 30), result.current.time);\n\t\tassertEquals(40.9, result.current.angle, 0.5);\n\t\tassertNotNull(result.threshold);\n\t\tassertNull(result.threshold.start);\n\t\tassertNull(result.threshold.end);\n\t\tassertNotNull(result.horizon);\n\t\tassertEquals(at(4, 50), result.horizon.start);\n\t\tassertEquals(at(21, 15), result.horizon.end);\n\t\tassertNotNull(result.minimum);\n\t\tassertEquals(-15, result.minimum.angle, 0.5);\n\t\tassertEquals(at(1, 2), result.minimum.time);\n\t\tassertNotNull(result.maximum);\n\t\tassertEquals(62, result.maximum.angle, 0.5);\n\t\tassertEquals(at(13, 2), result.maximum.time);\n\t}", "title": "" }, { "docid": "35def6ff6b279bad0b22b6013f5c96ec", "score": "0.51141036", "text": "public static void getMiddlePoint(double ax, double ay, double bx, double by, double cx, double cy) {\n\tif(ay == by && by == cy) {\n\t if( (bx < ax && ax < cx) || (cx < ax && ax < bx) ) {\n\t\tSystem.out.println(\"Prostredni je bod A.\");\n\t\treturn;\n\t } else if((ax < bx && bx < cx) || (cx < bx && bx < ax)) {\n\t\tSystem.out.println(\"Prostredni je bod B.\");\n\t\treturn;\n\t } else if( (ax < cx && cx < bx) || (bx < cx && cx < ax) ) {\n\t\tSystem.out.println(\"Prostredni je bod C.\");\n\t\treturn;\n\t } else {\n\t\tSystem.out.println(\"Nektere body splyvaji - zadny neni uprostred.\");\n\t }\n\t}\n\n\t// on the same vertical line\n\tif(ax == bx && bx == cx) {\n\t if( (by < ay && ay < cy) || (cy < ay && ay < by) ) {\n\t\tSystem.out.println(\"Prostredni je bod A.\");\n\t\treturn;\n\t } else if( (ay < by && by < cy) || (cy < by && by < ay) ) {\n\t\tSystem.out.println(\"Prostredni je bod B.\");\n\t\treturn;\n\t } else if( (ay < cy && cy < by) || (by < cy && cy < ay) ) {\n\t\tSystem.out.println(\"Prostredni je bod C.\");\n\t\treturn;\n\t } else {\n\t\tSystem.out.println(\"Nektere body splyvaji - zadny neni uprostred.\");\n\t }\n\t}\n\n\t// on the same sloped line\n\tif( (bx < ax && ax < cx)\n\t || (cx < ax && ax < bx) ) {\n\t System.out.println(\"Prostredni je bod A.\");\n\t} else if( (ax < bx && bx < cx)\n\t || (cx < bx && bx < ax) ) {\n\t System.out.println(\"Prostredni je bod B.\");\n\t} else if( (bx < cx && cx < ax)\n\t || (ax < cx && cx < bx) ) {\n\t System.out.println(\"Prostredni je bod C.\");\n\t} else {\n\t System.out.println(\"Nektere body splyvaji - zadny neni uprostred.\");\n\t}\n }", "title": "" }, { "docid": "f1a519473b93e1359069d8e4658706e9", "score": "0.51071525", "text": "public abstract boolean isTheLowerTheIndicatorValueTheBetter();", "title": "" }, { "docid": "4cfdf1279dea43276f715cedfcf505fa", "score": "0.5104436", "text": "private Point findStarterpoint()\n\t{\n\t\tPoint p = new Point(Integer.MAX_VALUE, Integer.MAX_VALUE);\n\n\t\tfor (Nucleotide nuc : structure.structure.values())\n\t\t{\n\t\t\tif (nuc.x < p.x)\n\t\t\t\tp.x = nuc.x;\n\t\t\tif (nuc.y < p.y)\n\t\t\t\tp.y = nuc.y;\n\t\t}\n\n\t\treturn p;\n\t}", "title": "" }, { "docid": "6b30cdcddc4f80fd64531b0a65a0a820", "score": "0.5102026", "text": "public float returnDist(Location my, LatLng smooth, NavigationMarkers step){\n\t\t//step case\n\t\tif(smooth == null){\n\t\t\tString step_lat = step.getFrom_lat();\n\t\t\tString step_lng = step.getFrom_lng();\n\t\t\tLocation step_loc = new Location(\"newdest\");\n\t\t\tstep_loc.setLatitude(Double.parseDouble(step_lat));\n\t\t\tstep_loc.setLongitude(Double.parseDouble(step_lng));\n\t\t\treturn my.distanceTo(step_loc);\n\t\t}\n\t\t//smooth case\n\t\telse if(step == null){\n\t\t\tLocation smooth_loc = new Location(\"newdest\");\n\t\t\tsmooth_loc.setLatitude(smooth.latitude);\n\t\t\tsmooth_loc.setLongitude(smooth.longitude);\n\t\t\treturn my.distanceTo(smooth_loc);\n\t\t} \n\t\treturn -1;\n\t}", "title": "" }, { "docid": "f3068c58496973feca217fbd2b185e69", "score": "0.5101312", "text": "boolean isMouseNearConnection(Point mousePoint);", "title": "" }, { "docid": "6e48d1ebe62738b9720f23cb865d368e", "score": "0.5095126", "text": "@Override\n\tpublic boolean hit(Ray ray) {\n\t\tfloat txMin, tyMin, tzMin;\n\t\tfloat txMax, tyMax, tzMax;\n\t\t\n\t\t// Encontrar los \"slabs\" de interseccion\t\t\n\t\tfloat a = 1f / ray.d.x;\t\t\n\t\tif (a >= 0) {\n\t\t\ttxMin = (p0.x - ray.p.x) * a;\n\t\t\ttxMax = (p1.x - ray.p.x) * a;\n\t\t} else {\n\t\t\ttxMin = (p1.x - ray.p.x) * a;\n\t\t\ttxMax = (p0.x - ray.p.x) * a;\n\t\t}\n\t\t\n\t\tfloat b = 1f / ray.d.y;\t\t\n\t\tif (b >= 0) {\n\t\t\ttyMin = (p0.y - ray.p.y) * b;\n\t\t\ttyMax = (p1.y - ray.p.y) * b;\n\t\t} else {\n\t\t\ttyMin = (p1.y - ray.p.y) * b;\n\t\t\ttyMax = (p0.y - ray.p.y) * b;\n\t\t}\n\t\t\n\t\tfloat c = 1f / ray.d.z;\t\t\n\t\tif (c >= 0) {\n\t\t\ttzMin = (p0.z - ray.p.z) * c;\n\t\t\ttzMax = (p1.z - ray.p.z) * c;\n\t\t} else {\n\t\t\ttzMin = (p1.z - ray.p.z) * c;\n\t\t\ttzMax = (p0.z - ray.p.z) * c;\n\t\t}\n\t\t\n\t\tfloat t0, t1;\n\t\tFacing faceOut, faceIn;\n\t\t\n\t\t// Econtrar el t que entra más grande\n\t\tif (txMin > tyMin) {\n\t\t\tt0 = txMin;\n\t\t\tfaceIn = (c >= 0) ? Facing.NEGATIVE_X : Facing.POSITIVE_X;\n\t\t} else {\n\t\t\tt0 = tyMin;\n\t\t\tfaceIn = (b >= 0) ? Facing.NEGATIVE_Y : Facing.POSITIVE_Y;\n\t\t}\n\t\t\n\t\tif (tzMin > t0) {\n\t\t\tt0 = tzMin;\n\t\t\tfaceIn = (b >= 0) ? Facing.NEGATIVE_Z : Facing.POSTIVE_Z;\n\t\t}\n\t\t\n\t\t// Ahora el t más chico que sale\t\t\n\t\tif (txMax < tyMax) {\n\t\t\tt1 = txMax;\n\t\t\tfaceOut = (a >= 0) ? Facing.POSITIVE_X : Facing.NEGATIVE_X;\n\t\t} else {\n\t\t\tt1 = tyMax;\n\t\t\tfaceOut = (b >= 0) ? Facing.POSITIVE_Y : Facing.NEGATIVE_Y;\n\t\t}\n\t\t\n\t\tif (tzMax < t1) {\n\t\t\tt1 = tzMax;\n\t\t\tfaceOut = (c >= 0) ? Facing.POSTIVE_Z : Facing.NEGATIVE_Z;\n\t\t}\n\t\t\n\t\tif (t0 < t1 && t1 > MathConst.EPSILON) {\n\t\t\tif (t0 > MathConst.EPSILON) {\n\t\t\t\tray.t = t0; \n\t\t\t\treturn true; // Pega afuera\n\t\t\t} else {\n\t\t\t\tray.t = t1;\n\t\t\t\treturn true; // Pega adentro\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f1b4da739bde9f2fb4f51f4beff8af2e", "score": "0.5092497", "text": "private void calcDecorations() {\n\n calm = (speed == 0);\n\n // +2 because the marks are _centered_ on 5 kt intervals.\n int localSpeed = speed + 2;\n pennants = localSpeed / 50;\n\n localSpeed = localSpeed % 50;\n fullFlags = localSpeed / 10;\n\n localSpeed = localSpeed % 10;\n halfFlag = (localSpeed >= 5);\n\n loneHalfFlag = (pennants == 0) && (fullFlags == 0) && halfFlag;\n }", "title": "" }, { "docid": "5da29fa021b9bd6b2fca2737181bf516", "score": "0.5088394", "text": "private double findNearestSetpoint(double currentEncPos, double newAngle) {\n\t\tdouble targetCounts = newAngle / Math.PI * (RobotMap.steeringCountsPerRev/2);\r\n\r\n\t\t// Step 2.\r\n\t\tint numCompleteRevs = (int) (currentEncPos / steeringCountsPerRev);\r\n\t\tdouble currentCounts = currentEncPos % steeringCountsPerRev;\r\n\t\t\r\n\t\t// Step 3.\r\n\t\tdouble potentialSetpoint1 = ((numCompleteRevs - 1) * steeringCountsPerRev) + targetCounts;\r\n\t\tdouble potentialSetpoint2 = ((numCompleteRevs) * steeringCountsPerRev) + targetCounts;\r\n\t\tdouble potentialSetpoint3 = ((numCompleteRevs + 1) * steeringCountsPerRev) + targetCounts;\r\n\t\t\r\n\t\t// Step 4.\r\n\t\tdouble distanceToPS1 = Math.abs(currentEncPos - potentialSetpoint1);\r\n\t\tdouble distanceToPS2 = Math.abs(currentEncPos - potentialSetpoint2);\r\n\t\tdouble distanceToPS3 = Math.abs(currentEncPos - potentialSetpoint3);\r\n\t\t\r\n\t\t// Step 5. \r\n\t\tdouble setpoint = 0;\r\n\t\tif (distanceToPS1 <= distanceToPS2 && distanceToPS1 <= distanceToPS3) {\r\n\t\t\tsetpoint = potentialSetpoint1;\r\n\t\t}\r\n\t\telse if (distanceToPS2 <= distanceToPS1 && distanceToPS2 <= distanceToPS3) {\r\n\t\t\tsetpoint = potentialSetpoint2;\r\n\t\t}\r\n\t\telse if (distanceToPS3 <= distanceToPS1 && distanceToPS3 <= distanceToPS2) {\r\n\t\t\tsetpoint = potentialSetpoint3;\r\n\t\t}\r\n\t\treturn setpoint;\r\n\t}", "title": "" }, { "docid": "69c57a1b2b4dfb9ec4d0f268e1f51240", "score": "0.50876683", "text": "private boolean isLightObstructed(int x0, int y0, int x1, int y1) {\n\t\tint dy = y1 - y0;\n\t\tint dx = x1 - x0;\n\t\tint stepx, stepy;\n\n\t\tif (dy < 0) {\n\t\t\tdy = -dy;\n\t\t\tstepy = -1;\n\t\t} else {\n\t\t\tstepy = 1;\n\t\t}\n\t\tif (dx < 0) {\n\t\t\tdx = -dx;\n\t\t\tstepx = -1;\n\t\t} else {\n\t\t\tstepx = 1;\n\t\t}\n\t\tdy <<= 1;\n\t\tdx <<= 1;\n\n\t\t// y0 *= raster.width;\n\t\t// y1 *= raster.width;\n\t\t// raster.pixel[x0+y0] = pix;\n\t\tif (dx > dy) {\n\t\t\tint fraction = dy - (dx >> 1);\n\t\t\twhile (x0 != x1) {\n\t\t\t\tif (fraction >= 0) {\n\t\t\t\t\ty0 += stepy;\n\t\t\t\t\tfraction -= dx;\n\t\t\t\t}\n\t\t\t\tx0 += stepx;\n\t\t\t\tfraction += dy;\n\t\t\t\tint objectID = worldMap[y0][x0];\n\t\t\t\tif (objectID != 0 && objectID != 2) // was != 1 (?)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\tint fraction = dx - (dy >> 1);\n\t\t\twhile (y0 != y1) {\n\t\t\t\tif (fraction >= 0) {\n\t\t\t\t\tx0 += stepx;\n\t\t\t\t\tfraction -= dy;\n\t\t\t\t}\n\t\t\t\ty0 += stepy;\n\t\t\t\tfraction += dx;\n\t\t\t\tint objectID = worldMap[y0][x0];\n\t\t\t\tif (objectID != 0 && objectID != 2) // was != 1 (?)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5c52c4c3d16de13980703690217edf3d", "score": "0.5081182", "text": "@Override\n public boolean isFinished() {\n //double current = drive_.getAverageEncoderDistance();\n double left = drive_.getLeftDistance();\n double right = drive_.getRightDistance();\n //\n System.out.printf(\"left: %f, right: %f, goal: %f\\n\", left, right, feet_);\n // return Math.abs(current) > Math.abs(feet_);\n return Math.abs(left) > Math.abs(feet_) && \n Math.abs(right) > Math.abs(feet_);\n }", "title": "" }, { "docid": "2c8a869c6dca7786345df3e691fa887e", "score": "0.5074358", "text": "private void calculateClosestWaypoint(Game a_gameCopy)\n {\n double minDistance = Double.MAX_VALUE;\n for(Waypoint way: a_gameCopy.getWaypoints())\n {\n if(!way.isCollected()) //Only consider those not collected yet.\n {\n double fx = way.s.x-a_gameCopy.getShip().s.x, fy = way.s.y-a_gameCopy.getShip().s.y;\n double dist = Math.sqrt(fx*fx+fy*fy);\n if( dist < minDistance )\n {\n //Keep the minimum distance.\n minDistance = dist;\n m_closestPickUp = way;\n }\n }\n }\n\n //Also check for fuel tanks:\n for(FuelTank ft: a_gameCopy.getFuelTanks())\n {\n if(!ft.isCollected()) //Only consider those not collected yet.\n {\n double fx = ft.s.x-a_gameCopy.getShip().s.x, fy = ft.s.y-a_gameCopy.getShip().s.y;\n double dist = Math.sqrt(fx*fx+fy*fy);\n dist = dist * FUEL_TANK_PEN; //Apply penalization to only chase those fuel tanks really close.\n if( dist < minDistance )\n {\n //Keep the minimum distance.\n minDistance = dist;\n m_closestPickUp = ft;\n }\n }\n }\n }", "title": "" }, { "docid": "93fab370bb139725f0be2176c4442ba9", "score": "0.50731397", "text": "private boolean isOnRoute(com.google.maps.model.LatLng playerLocation,\r\n com.google.maps.model.LatLng startLocation,\r\n com.google.maps.model.LatLng endLocation){\n if ((startLocation.lat - 0.001 < playerLocation.lat && playerLocation.lat < endLocation.lat + 0.001)\r\n || (startLocation.lat + 0.001> playerLocation.lat && playerLocation.lat > endLocation.lat - 0.001)){\r\n\r\n // Ziet of de huidige locatie op de route staat voor longitude\r\n return (startLocation.lng - 0.001 < playerLocation.lng && playerLocation.lng < endLocation.lng + 0.001)\r\n || (startLocation.lng + 0.001 > playerLocation.lng && playerLocation.lng > endLocation.lng - 0.001);\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "8967b0fc4f19bdcf65c0869841577f8e", "score": "0.5068214", "text": "public boolean isInRangeToRenderDist(double distance) {\n/* 79 */ return (distance < 1024.0D);\n/* */ }", "title": "" }, { "docid": "3604e53a3ef336cbeea0472336a58faa", "score": "0.5067286", "text": "boolean isAcessibleBlink(MapLocation loc);", "title": "" }, { "docid": "71eba3b7023249b6e62b69b0495dffd3", "score": "0.5064827", "text": "@Test\n public void testAddAndCompare() throws Exception {\n PositionMetric pos = new PositionMetric(-37.82111100000000, 145.0383330000000, 0, new Angle(0), new Angle(0), new Angle(0));\n Position output = pos.add(new PositionDisplacement(0, 1000, 0, new Angle(0), new Angle(0), new Angle(0)));\n if (!(output instanceof PositionMetric)) {\n fail(\"Wrong type\");\n }\n assertEquals(\"Wrong position\", new PositionMetric(-37.82111100000000, 1145.0383330000000, 0, new Angle(0), new Angle(0), new Angle(0)), output);\n PositionDisplacement posDisp = ((PositionMetric)output).compare(pos);\n assertEquals(\"Wrong displacement\", true, Math.abs(posDisp.getLongitude() - 1000) < 1);\n\n\n\n output = pos.add(new PositionDisplacement(0, -1000, 0, new Angle(0), new Angle(0), new Angle(0)));\n assertEquals(\"Wrong position\", new PositionMetric(-37.821111, -854.961667, 0, new Angle(0), new Angle(0), new Angle(0)), output);\n posDisp = ((PositionMetric)output).compare(pos);\n assertEquals(\"Wrong displacement\", true, Math.abs(posDisp.getLongitude() + 1000) < 1);\n\n output = pos.add(new PositionDisplacement(1000, 0, 0, new Angle(0), new Angle(0), new Angle(0)));\n assertEquals(\"Wrong position\", new PositionMetric(962.178889, 145.0383330000000, 0, new Angle(0), new Angle(0), new Angle(0)), output);\n posDisp = ((PositionMetric)output).compare(pos);\n assertEquals(\"Wrong displacement\", true, Math.abs(posDisp.getLatitude() - 1000)<1);\n\n output = pos.add(new PositionDisplacement(-1000, 0, 0, new Angle(0), new Angle(0), new Angle(0)));\n assertEquals(\"Wrong position\", new PositionMetric(-1037.821111, 145.0383330000000, 0, new Angle(0), new Angle(0), new Angle(0)), output);\n posDisp = ((PositionMetric)output).compare(pos);\n assertEquals(\"Wrong displacement\", true, Math.abs(posDisp.getLatitude() + 1000)<1);\n }", "title": "" }, { "docid": "d36f3e4c5c16d02776b01559e8dc31a2", "score": "0.50603753", "text": "public int getWinding() { return WIND_EVEN_ODD; }", "title": "" }, { "docid": "84d7d2f180ce1fd3d681ff9fb8ef784c", "score": "0.50584275", "text": "boolean hasUsePreciseGeolocation();", "title": "" }, { "docid": "4d568d154eb496c763b316a076564b4c", "score": "0.5057677", "text": "@Override\n\tpublic void onLocationChanged(AMapLocation amapLocation) {\n\t\tif (mListener != null && amapLocation != null) {\n\t\t\tif(flagInitial){\n\t\t\t\toldll.jingdu = amapLocation.getLatitude();\n\t \t\toldll.weidu = amapLocation.getLongitude();\n\t \t\tflagInitial = false;\n\t\t\t}else{\n\t\t\t\toldll.jingdu = newll.jingdu;\n\t \t\toldll.weidu = newll.weidu;\n\t\t\t}\n\t\t\tnewll.jingdu=amapLocation.getLatitude();\n\t\t\tnewll.weidu=amapLocation.getLongitude();\n\t\t\tLatLng newlatlng=new LatLng(newll.jingdu, newll.weidu);\n\t\t\tLatLng oldlatlng=new LatLng(oldll.jingdu, oldll.weidu);\n\t\t\t\n\t\t\tif(runtag==1&&oldll.jingdu!=0.0&&newll.jingdu!=0.0){\n\t\t\t\tjuli+= AMapUtils.calculateLineDistance(oldlatlng, newlatlng);\n\t\t\t\tmMap.addPolyline((new PolylineOptions()).\n\t\t\t\t\t\tadd(new LatLng(oldll.jingdu,oldll.weidu),new LatLng(newll.jingdu,newll.weidu)));\n\t\t\t\tpolylineops.add(newlatlng);\n\t\t\t\tpolyjing[z]=newll.jingdu;polywei[z]=newll.weidu;z++;\n\t\t\t\t mMap.moveCamera(CameraUpdateFactory.changeLatLng(new LatLng(newll.jingdu, newll.weidu)));\n\t\t\t}\n//\t\t\tif(runtag == 3){\n//\t\t\t\tmMapView.onResume();\n//\t\t\t}\n\t\t\tmListener.onLocationChanged(amapLocation);// 显示系统小蓝点\n//\t\t\tif (amapLocation != null\n//\t\t\t\t\t&& amapLocation.getErrorCode() == 0) {\n//\t//\t\t\tToast.makeText(getActivity(), \"位置改變了\", Toast.LENGTH_SHORT).show();\n//\t\t\t\toldll.jingdu = newll.jingdu;\n//\t \t\toldll.weidu = newll.weidu;\n//\t\t\t\tnewll.jingdu=amapLocation.getLatitude();\n//\t\t\t\tnewll.weidu=amapLocation.getLongitude();\n//\t\t\t\tLatLng newlatlng=new LatLng(newll.jingdu, newll.weidu);\n//\t\t\t\tLatLng oldlatlng=new LatLng(oldll.jingdu, oldll.weidu);\n//\t\t\t\tjuli+=AMapUtils.calculateLineDistance(oldlatlng, newlatlng);\n//\t\t\t\t\n//\t\t\t\tif(runtag==1){\n//\t\t\t\t\tmMap.addPolyline((new PolylineOptions()).\n//\t\t\t\t\t\t\tadd(new LatLng(oldll.jingdu,oldll.weidu),new LatLng(newll.jingdu,newll.weidu)));\n//\t\t\t\t}\n//\t\t\t\tmLocationErrText.setVisibility(View.GONE);\n//\t\t\t\tmListener.onLocationChanged(amapLocation);// 显示系统小蓝点\n//\t\t\t} else {\n//\t\t\t\tString errText = \"定位失败,\" + amapLocation.getErrorCode()+ \": \" + amapLocation.getErrorInfo();\n//\t\t\t\tLog.e(\"AmapErr\",errText);\n//\t\t\t\tmLocationErrText.setVisibility(View.VISIBLE);\n//\t\t\t\tmLocationErrText.setText(errText);\n//\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5a5da9deefce612bbca256f6d8daec2f", "score": "0.5056676", "text": "public boolean hitTop()\n\t{\n\t\tif(nextY() <= yMin+radius && nextY() >= yMin-Math.abs(vec.y*vec.scale)-radius)\t//if hit top\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8939a236964df25959dc521f70cee53b", "score": "0.505535", "text": "public boolean isReflected(int[][] points) {\n int minX = Integer.MAX_VALUE, maxX = Integer.MIN_VALUE;\n int n = points.length;\n int same = 0;\n Map<Double, ArrayList<Integer>> map = new HashMap<>();\n double potentialLine = 0;\n for (int i = 0; i < n; ++i) {\n minX = Math.min(minX, points[i][0]);\n maxX = Math.max(maxX, points[i][0]);\n if (map.containsKey(1.0 * points[i][0])) {\n if (map.get(1.0 * points[i][0]).contains(points[i][1]))\n same++;\n map.get(1.0 * points[i][0]).add(points[i][1]);\n } else {\n ArrayList<Integer> tmp = new ArrayList<>();\n tmp.add(points[i][1]);\n map.put(points[i][0] * 1.0, tmp);\n }\n }\n potentialLine = (maxX + minX) / 2.0;\n int onTheLine = 0;\n int leftcnt = 0;\n Map<Integer, Integer> vis = new HashMap<>();\n for (int i = 0; i < n; ++i) {\n if (vis.containsKey(points[i][0]) && vis.get(points[i][0]) == points[i][1])\n continue;\n vis.put(points[i][0], points[i][1]);\n if (1.0 * points[i][0] < potentialLine) {\n leftcnt++;\n double reflectionx = 2 * potentialLine - points[i][0];\n if (map.containsKey(reflectionx) && map.get(reflectionx).contains(points[i][1])) {\n if (map.get(reflectionx).size() == 1)\n map.remove(reflectionx);\n else {\n int ind = map.get(reflectionx).indexOf(points[i][1]);\n int val = map.get(reflectionx).remove(ind);\n }\n\n } else\n return false;\n\n } else if (1.0 * points[i][0] == potentialLine) {\n onTheLine++;\n }\n }\n return 2 * leftcnt == (n - onTheLine - same);\n }", "title": "" }, { "docid": "8f0c9ed77965e983bec43078ad8e8043", "score": "0.5055265", "text": "public void locateChargingStationPosition() {\n\n if(latitude != null || longitude != null){\n double latInDouble = Double.valueOf(latitude.trim()).doubleValue();\n double lonInDouble = Double.valueOf(longitude.trim()).doubleValue();\n\n LatLng latLng = new LatLng(latInDouble, lonInDouble);\n builder.include(latLng);\n\n MarkerOptions markerOptions = new MarkerOptions();\n\n markerOptions.position(latLng);\n markerOptions.title(description);\n String quantity = MenuActivity.realTimeQuantityList.get(index);\n\n if(quantity.equals(\"0\"))\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));\n else\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n\n chargingStationMarker = googleMap.addMarker(markerOptions);\n }\n\n if(myLocation != null) {\n builder.include(new LatLng(myLocation.getLatitude(),myLocation.getLongitude()));\n final LatLngBounds bounds = builder.build();\n googleMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n\n @Override\n public void onCameraChange(CameraPosition arg0) {\n // Move camera to the position that shows all markers.\n googleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 100));\n // Remove listener to prevent position reset on camera move.\n googleMap.setOnCameraChangeListener(null);\n }\n });\n }\n for (ItemCS socket : MenuActivity.realTimeInfoList) {\n if (socket.getLatitude().equals(latitude) && socket.getLongitude().equals(longitude))\n chargingStationMarker.setSnippet(socket.getDistance() + getString(R.string.snippet_distance) + \" \" + socket.getTime() + getString(R.string.snippet_time));\n }\n chargingStationMarker.showInfoWindow();\n }", "title": "" }, { "docid": "de6954d24c016d842a2cb8e14fe411aa", "score": "0.505", "text": "@Override\r\n public void onMyLocationChange(Location arg0) {\n if (!posicionInicial) {\r\n // map.addMarker(new MarkerOptions().position(latLng).title(\"You are here\"));\r\n\r\n map.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(arg0.getLatitude(), arg0.getLongitude()), AppConstants.K_MAPS_ZOOM_LEVEL));\r\n map.animateCamera(CameraUpdateFactory.zoomTo(AppConstants.K_MAPS_ZOOM_LEVEL), 2000, null);\r\n posicionInicial = true;\r\n }\r\n }", "title": "" }, { "docid": "6e0ccbbf6a77f2dabdbf7ad9e9b3cc68", "score": "0.50478923", "text": "private boolean isOnEdgeOfScreen(int startPointX, int startPointY){\n if (startPointX < getWidth()*0.1){\n return true;\n }else if (startPointX > getWidth()*0.9){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "38007b805f636802f2242eb43253a234", "score": "0.50469387", "text": "boolean hasSpreadDistance();", "title": "" }, { "docid": "2c44688b6ec59075eef4a77227f191df", "score": "0.50411284", "text": "@Override\r\n\tpublic double heuristic(Coordinates a, Coordinates b) {\r\n\t\treturn (double) (Math.abs(a.getX() - b.getX()) + Math.abs(a.getY() - b.getY())\r\n\t\t/*\r\n\t\t * + Math.pow(a.getX().doubleValue() - b.getX().doubleValue(), 2) +\r\n\t\t * Math.pow(a.getY().doubleValue() - b.getY().doubleValue(), 2)\r\n\t\t */);\r\n\t}", "title": "" }, { "docid": "ff4fc26353f6827b6afb5f40f251d46f", "score": "0.5040337", "text": "@Override\r\n public void onLocationChanged(Location location) {\n double latitude, longitude;\r\n //initialIntent = false;\r\n mMap.clear();\r\n if (MainActivity.carLL != null) {\r\n LatLng latlongCar = MainActivity.carLL;\r\n mMap.addMarker(new MarkerOptions().position(latlongCar).title(\"Car\"));\r\n }\r\n latitude = location.getLatitude();\r\n longitude = location.getLongitude();\r\n Geocoder geocoder = new Geocoder(getApplicationContext());\r\n LatLng latLng = new LatLng(latitude, longitude);\r\n LatLng middle_point = new LatLng(midpoint(latitude, carLatLng.latitude), midpoint(longitude, carLatLng.longitude));\r\n //mMap.addMarker(new MarkerOptions().position(MainActivity.carLL).title(\"car\"));\r\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"You\"));\r\n mMap.setMaxZoomPreference(20);\r\n mMap.setMinZoomPreference(10);\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(middle_point));\r\n\r\n\r\n }", "title": "" }, { "docid": "d9d6b165a2590b47cc0825bcf7c70b75", "score": "0.5027827", "text": "public int landingPointValue() {\n Rectangle2D hitbox = new Rectangle2D.Double(player.getPosition().x, player.getPosition().y, Player.SHIP_SIZE, Player.SHIP_SIZE);\n Line2D line2;\n int points = 2;\n for (Line line : currentLevel.getLines()){\n line2 = new Line2D.Double(line.x1, line.y1, line.x2, line.y2);\n if (line2.intersects(hitbox))\n points = line.points;\n if (points > 2) break;\n }\n\n if((points > 2) && Math.abs(xPerSec)<currentLevel.getMaxVelocity() && (Math.abs(yPerSec)<currentLevel.getMaxVelocity()))\n winInfo.setText(\"Gratulacje! Twój wynik w tym poziomie to: \" + points);\n else {\n winInfo.setText(\"Niestety, nie udało ci się poprawnie wylądować...\");\n points=2;\n }\n double stringWitdh = winInfo.getFontMetrics(winInfo.getFont()).stringWidth(winInfo.getText());\n double scaling = this.getWidth() / stringWitdh;\n\n\n winInfo.setFont(new Font(this.getFont().getName(), Font.PLAIN, (int) (winInfo.getFont().getSize() * scaling)));\n\n Rectangle bounds = new Rectangle(this.getWidth()/2 - winInfo.getPreferredSize().width/2, this.getHeight()/2 - winInfo.getPreferredSize().height/2, winInfo.getPreferredSize().width, winInfo.getPreferredSize().height);\n winInfo.setBounds(bounds);\n return points;\n }", "title": "" }, { "docid": "f0412c0e9993084479bf4c1867e55a9c", "score": "0.5026818", "text": "@Override\r\n public boolean onTouchEvent(MotionEvent e) {\n\r\n float x = e.getX();\r\n float y = e.getY();\r\n\r\n switch (e.getAction()) {\r\n case MotionEvent.ACTION_MOVE:\r\n \tleft=lastpx+x-startpx;\r\n \ttop=lastpy+y-startpy;\r\n \tbreak;\r\n case MotionEvent.ACTION_DOWN:\r\n \tstartpx=x;\r\n \tstartpy=y;\r\n \tbreak;\r\n case MotionEvent.ACTION_UP:\r\n \t//mRenderer.setLastXY();\r\n \t\r\n \tlastpx=left;\r\n \tlastpy=top;\r\n \r\n \tlastl = startl - lastpx*bima/512;\r\n \tlastf = startf + lastpy*bima/512;\r\n \r\n \t\r\n \tfinal float[] res \t= \t app.ktima.getOriginFromLonLat(lastl,lastf,level);\r\n \t\t\tthis.l1=res[0];\r\n \t\t\tthis.f1=res[1];\r\n \t\t\t\r\n \t\t\tLog.i(\"l1,f1\",l1 + \",\" + f1);\r\n \t\t\t\r\n \t\t\tif(!grid.itemExists(l1, f1)){\r\n \t\t\t\tLog.i(\"l1,f1\",l1 + \",\" + f1);\r\n \t\t\t\tthis.grid.add(lastl,lastf,level);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(!grid.itemExists(l1+bima, f1)){\r\n \t\t\t\tLog.i(\"l1,f1\",l1 + \",\" + f1);\r\n \t\t\t\tthis.grid.add(lastl+bima,lastf,level);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tif(!grid.itemExists(l1, f1+bima)){\r\n \t\t\t\tLog.i(\"l1,f1\",l1 + \",\" + f1);\r\n \t\t\t\tthis.grid.add(lastl,lastf+bima,level);\r\n \t\t\t}\r\n \t\t\tif(!grid.itemExists(l1+bima, f1+bima)){\r\n \t\t\t\tLog.i(\"l1,f1\",l1 + \",\" + f1);\r\n \t\t\t\tthis.grid.add(lastl+bima,lastf+bima,level);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \tbreak;\r\n default:\r\n \t\t//mPreviousX = x;\r\n // mPreviousY = y;\t\r\n \t\t\r\n \t\t\r\n }\r\n\r\n Canvas c = holder.lockCanvas(null);\r\n onDraw(c);\r\n holder.unlockCanvasAndPost(c);\r\n return true;\r\n }", "title": "" }, { "docid": "45ff7a658ff94b57bc836be7b90389e5", "score": "0.5022158", "text": "public void setGrabPoints() {\n\n int renderType = raster.getRenderType();\n LatLonPoint llp1;\n\n Debug.message(\"eomg\", \"EditableOMScalingRaster.setGrabPoints()\");\n\n // Do center point for lat/lon or offset rects\n if (renderType == OMGraphic.RENDERTYPE_LATLON) {\n\n if (projection != null) {\n if (raster instanceof OMScalingIcon) {\n setGrabPointsForOMSI();\n return;\n }\n\n // Need to figure out which point was moved, and then\n // set the upper left and lower right points\n // accordingly.\n if (movingPoint == gpne) {\n llp1 = projection.inverse(gpne.getX(), gpne.getY());\n raster.setULLat(llp1.getLatitude());\n raster.setLRLon(llp1.getLongitude());\n } else if (movingPoint == gpnw) {\n llp1 = projection.inverse(gpnw.getX(), gpnw.getY());\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n } else if (movingPoint == gpsw) {\n llp1 = projection.inverse(gpsw.getX(), gpsw.getY());\n raster.setLRLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n } else if (movingPoint == gpse) {\n llp1 = projection.inverse(gpse.getX(), gpse.getY());\n LatLonPoint llp2 = projection.inverse(gpnw.getX(),\n gpnw.getY());\n raster.setULLat(llp2.getLatitude());\n raster.setULLon(llp2.getLongitude());\n raster.setLRLat(llp1.getLatitude());\n raster.setLRLon(llp1.getLongitude());\n } else {\n //movingPoint == gpc\n llp1 = projection.inverse(gpc.getX(), gpc.getY());\n raster.setULLat(llp1.getLatitude() + diffy);\n raster.setULLon(llp1.getLongitude() - diffx);\n raster.setLRLat(llp1.getLatitude() - diffy);\n raster.setLRLon(llp1.getLongitude() + diffx);\n }\n raster.setNeedToRegenerate(true);\n }\n }\n\n boolean settingOffset = getStateMachine().getState() instanceof GraphicSetOffsetState\n && movingPoint == gpo;\n\n // If the center point is moving, the offset distance changes\n if (renderType == OMGraphic.RENDERTYPE_OFFSET) {\n\n llp1 = projection.inverse(gpo.getX(), gpo.getY());\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n if (settingOffset || movingPoint == gpc) {\n int halfheight = (gpse.getY() - gpnw.getY()) / 2;\n int halfwidth = (gpse.getX() - gpnw.getX()) / 2;\n\n // Don't call rect.setLocation because we only want to\n // setNeedToRegenerate if !settingOffset.\n llp1 = projection.inverse(gpc.getX() - halfwidth - gpo.getX(),\n gpc.getY() - halfheight - gpo.getY());\n LatLonPoint llp2 = projection.inverse(gpc.getX() + halfwidth\n - gpo.getX(), gpc.getY() + halfheight - gpo.getY());\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n raster.setLRLat(llp2.getLatitude());\n raster.setLRLon(llp2.getLongitude());\n }\n\n if (!settingOffset) {\n Debug.message(\"eomg\",\n \"EditableOMScalingRaster: updating offset rect\");\n if (movingPoint == gpnw || movingPoint == gpse) {\n llp1 = projection.inverse(gpnw.getX() - gpo.getX(),\n gpnw.getY() - gpo.getY());\n LatLonPoint llp2 = projection.inverse(gpse.getX()\n - gpo.getX(), gpse.getY() - gpo.getY());\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n raster.setLRLat(llp2.getLatitude());\n raster.setLRLon(llp2.getLongitude());\n } else if (movingPoint == gpne || movingPoint == gpsw) {\n llp1 = projection.inverse(gpsw.getX() - gpo.getX(),\n gpne.getY() - gpo.getY());\n LatLonPoint llp2 = projection.inverse(gpne.getX()\n - gpo.getX(), gpsw.getY() - gpo.getY());\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n raster.setLRLat(llp2.getLatitude());\n raster.setLRLon(llp2.getLongitude());\n }\n raster.setNeedToRegenerate(true);\n }\n\n // Set Location has reset the rendertype, but provides\n // the convenience of setting the max and min values\n // for us.\n raster.setRenderType(OMGraphic.RENDERTYPE_OFFSET);\n }\n\n // Do the rect height and width for XY and OFFSET render\n // types.\n if (renderType == OMGraphic.RENDERTYPE_XY) {\n Debug.message(\"eomg\", \"EditableOMScalingRaster: updating x/y rect\");\n\n if (movingPoint == gpc) {\n int halfheight = (gpse.getY() - gpnw.getY()) / 2;\n int halfwidth = (gpse.getX() - gpnw.getX()) / 2;\n\n llp1 = projection.inverse(gpc.getX() - halfwidth, gpc.getY()\n - halfheight);\n LatLonPoint llp2 = projection.inverse(gpc.getX() + halfwidth,\n gpc.getY() + halfheight);\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n raster.setLRLat(llp2.getLatitude());\n raster.setLRLon(llp2.getLongitude());\n } else if (movingPoint == gpnw || movingPoint == gpse) {\n llp1 = projection.inverse(gpnw.getX(), gpnw.getY());\n LatLonPoint llp2 = projection.inverse(gpse.getX(), gpse.getY());\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n raster.setLRLat(llp2.getLatitude());\n raster.setLRLon(llp2.getLongitude());\n } else if (movingPoint == gpne || movingPoint == gpsw) {\n llp1 = projection.inverse(gpsw.getX(), gpne.getY());\n LatLonPoint llp2 = projection.inverse(gpne.getX(), gpsw.getY());\n\n raster.setULLat(llp1.getLatitude());\n raster.setULLon(llp1.getLongitude());\n\n raster.setLRLat(llp2.getLatitude());\n raster.setLRLon(llp2.getLongitude());\n }\n }\n\n if (projection != null) {\n regenerate(projection);\n }\n }", "title": "" }, { "docid": "220f9a8eab221a70813560aafc857119", "score": "0.5020908", "text": "public int findNearestSegment(mxPoint point) {\n\n if (getGeometry() == null || getGeometry().getPoints() == null) {\n return 0;\n }\n\n double startX = (getSource().getParent().getGeometry().getX() + getSource().getGeometry().getX());\n double startY = (getSource().getParent().getGeometry().getY() + getSource().getGeometry().getY());\n\n double endX = (getTarget().getParent().getGeometry().getX() + getTarget().getGeometry().getX());\n double endY = (getTarget().getParent().getGeometry().getY() + getTarget().getGeometry().getY());\n\n double saveDist = -1;\n int findPos = 0;\n\n for (int i = 0; i < getGeometry().getPoints().size() + 1; i++) {\n Point2D.Double point1 = null;\n Point2D.Double point2 = null;\n\n if (i == 0) { // first block\n point1 = new Point2D.Double(startX, startY);\n } else {\n point1 = new Point2D.Double((int) (getGeometry().getPoints().get(i - 1)).getX(), (int) (getGeometry().getPoints().get(i - 1)).getY());\n }\n\n if (i == getGeometry().getPoints().size()) {\n point2 = new Point2D.Double(endX, endY);\n } else {\n point2 = new Point2D.Double((int) (getGeometry().getPoints().get(i)).getX(), (int) (getGeometry().getPoints().get(i)).getY());\n }\n\n Point2D.Double addPoint = new Point2D.Double(point.getX(), point.getY());\n Line2D.Double line = new Line2D.Double(point1, point2);\n\n if (saveDist == -1) {\n saveDist = line.ptSegDist(addPoint);\n findPos = i;\n } else {\n double dist = line.ptSegDist(addPoint);\n if (dist < saveDist) {\n saveDist = dist;\n findPos = i;\n }\n }\n }\n return findPos;\n }", "title": "" }, { "docid": "dd150f7d596912989dc013cc736765c4", "score": "0.5017958", "text": "boolean canBlink(MapLocation loc);", "title": "" }, { "docid": "a47a88222f81faa1c36dc1e615e067b9", "score": "0.5013539", "text": "public boolean isHittingSomething(TravelDirection direction) {\n//\n//\n// switch (direction) {\n//\n// case FORWARD:\n// if ( getDistance(distanceFront) < 2.0 ) {\n// return true;\n// }\n// return false;\n//\n// case BACKWARD:\n// if ( getDistance(distanceBack) < 2.0 ) {\n// return true;\n// }\n// return false;\n//\n// case LEFT:\n// if ( getDistance(distanceLeft) < 2.0 ) {\n// return true;\n// }\n// return false;\n//\n// case RIGHT:\n// if ( getDistance(distanceRight) < 2.0 ) {\n// return true;\n// }\n// return false;\n// }\n\n return false;\n }", "title": "" }, { "docid": "b54deaf7ca4d9186133b069cf685e2eb", "score": "0.5002492", "text": "public int findMinArrowShots(int[][] points) {\n Arrays.sort(points, new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2) {\n return o1[0] - o2[0];\n }\n });\n int intersections = 0;\n int last = 0;\n for (int i = 1; i < points.length; i++) {\n int curStart = points[i][0];\n int lastEnd = points[last][1];\n if (curStart < lastEnd) {\n intersections++;\n int curEnd = points[i][1];\n last = (curEnd < lastEnd) ? i : last;\n } else {\n last = i;\n }\n }\n return points.length - intersections;\n }", "title": "" }, { "docid": "faf6bff128ebf99d291331da3fa36bcc", "score": "0.500143", "text": "public abstract boolean hitTest (IPoint p);", "title": "" }, { "docid": "ef105e47a8dca4129355818e3ff62675", "score": "0.49929413", "text": "public GridPosition getMinotaurStartPosition() {\n Queue<GridPosition> todo = new LinkedList<>();\n todo.add(new GridPosition(MazeSizeModel.getSideLength(size) / 2, MazeSizeModel.getSideLength(size) / 2));\n List<GridPosition> done = new ArrayList<>();\n while (todo.size() > 0) {\n GridPosition checking = todo.remove();\n try { // shouldn't check out of bounds\n if (getSquare(checking) == MazeSquare.PASSAGE) {\n return checking;\n } else {\n done.add(checking);\n // this should never return out of bounds\n List<GridPosition> neighbors = findNeighbourPositions(checking);\n for (GridPosition position : neighbors) {\n if (!todo.contains(position) && !done.contains(position)) {\n todo.add(position);\n }\n }\n }\n } catch (GridPositionOutOfBoundsException e) { // skipping out of bounds should be safe, but log anyway\n System.out.printf(\"Skipped out of bounds position: %d, %d\", checking.getX(), checking.getY());\n e.printStackTrace();\n }\n }\n return new GridPosition(-1, -1);\n }", "title": "" }, { "docid": "34a19b8da6ce46be5005955f5d41b007", "score": "0.49924576", "text": "public boolean near(float x, float y,float d){\n\t\treturn this.dist(x,y)<d;\n\t}", "title": "" } ]
50f3d1f304c15606ff42609c45cdad69
Test case number: 20 /Coverage entropy=1.0986122886681096
[ { "docid": "eaf46fdf32fc029e9fdfa64287b3bf20", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n String string0 = EWrapperMsgGenerator.contractDetails((-1073741824), contractDetails0);\n assertEquals(\"reqId = -1073741824 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\nmarketName = null\\ntradingClass = null\\nminTick = 0.0\\nprice magnifier = 0\\norderTypes = null\\nvalidExchanges = null\\nunderConId = 0\\nlongName = null\\ncontractMonth = null\\nindustry = null\\ncategory = null\\nsubcategory = null\\ntimeZoneId = null\\ntradingHours = null\\nliquidHours = null\\n ---- Contract Details End ----\\n\", string0);\n \n String string1 = EWrapperMsgGenerator.tickString((-1436639375), 0, (String) null);\n assertEquals(\"id=-1436639375 bidSize=null\", string1);\n \n String string2 = EWrapperMsgGenerator.tickOptionComputation(13, (-665), 0.0, 26, (-1436639375), (-1.0));\n assertEquals(\"id=13 unknown: vol = 0.0 delta = N/A\", string2);\n \n String string3 = EWrapperMsgGenerator.tickOptionComputation(13, 13, (-1170.0), (-2062.182712226), 1.7976931348623157E308, 0);\n assertEquals(\"id=13 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = 0.0\", string3);\n }", "title": "" } ]
[ { "docid": "edbd254adb205bdee80095b913541089", "score": "0.7316224", "text": "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.9940302114769565, double0, 0.01);\n }", "title": "" }, { "docid": "4f2e9559a559843149c29097dff70ce7", "score": "0.7021161", "text": "@Test(timeout = 4000)\n public void test104() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "0f37eddae1280d57e035f66f4b04d921", "score": "0.700215", "text": "@Test(timeout = 4000)\n public void test105() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.getRevision();\n assertEquals(\"9101\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "80a37060941534f90d7506f61ea4be24", "score": "0.6953931", "text": "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "title": "" }, { "docid": "6866065e0a3b5a967f567315a7060d3c", "score": "0.6929712", "text": "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "51184adf79d4165e79cff718ac9f986e", "score": "0.6889352", "text": "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "5da53f99c7ed9425d12c382433f30f7e", "score": "0.6875494", "text": "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "54ec44fd241c1785eabdb52124ec41da", "score": "0.68430287", "text": "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.addNumericTrainClass((-1.0), Double.NaN);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n }", "title": "" }, { "docid": "2a15034c7eb5e0f30ab097d0e62dd7a3", "score": "0.68354625", "text": "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "4e5d7be1357d5daa7a96db2fdf362eab", "score": "0.6820263", "text": "@Test(timeout = 4000)\n public void test091() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.sizeOfPredictedRegions();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "69e31b77b4f0d254f92b97a60b0f09e8", "score": "0.6804805", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives((-1456206972));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "15cfe276286b8529762c4ee9ef829001", "score": "0.67697924", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falsePositiveRate(26);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "ff8678f212b94d54f140024e76a31676", "score": "0.6760278", "text": "@Test(timeout = 4000)\n public void test019() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives(92);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "baad9a24cf720a14c774dbbbd32ae07f", "score": "0.6707446", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "title": "" }, { "docid": "51b7aef13d4abe35ce455a72cc94e9f7", "score": "0.66951215", "text": "@Test(timeout = 4000)\n public void test100() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(106);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "dc349deab1425a9155fc184c67f1653e", "score": "0.6687509", "text": "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "908a2288e9eb5df272422a23c3cbdcb3", "score": "0.6617178", "text": "@Test(timeout = 4000)\n public void test090() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "248fce3caa490f5cfaf85db3f3983529", "score": "0.65879285", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "9ae44abafec0343ef42ea417f9fb6d7d", "score": "0.6585318", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.truePositiveRate(113);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "c985b47cd67af89b59a52e6e2d29c4cf", "score": "0.6577997", "text": "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c1e2f5cb80215270fcb5b477ca0b6feb", "score": "0.6484563", "text": "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall(6);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "3f598b3ef8236adc7dd0de57b82e5d70", "score": "0.64732033", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "20cf823d993bdde015cdebadf985865e", "score": "0.64319855", "text": "@Test(timeout = 4000)\n public void test017() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "2bf0c81c40fc2b35497bb27cd3e450c5", "score": "0.6416055", "text": "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "0b0937ce2724418eb4167607ec6fadc5", "score": "0.6400953", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2560));\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "a42359b62af32f65f5ff9a4a39655756", "score": "0.6348671", "text": "@Test(timeout = 4000)\n public void test210() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.clear();\n resultMatrixHTML0.getOptions();\n resultMatrixHTML0.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n int int0 = ResultMatrix.SIGNIFICANCE_WIN;\n assertEquals(1, int0);\n }", "title": "" }, { "docid": "147b81733f482e2e3803abc54e37a351", "score": "0.63484496", "text": "@Test(timeout = 4000)\n public void test089() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.meanPriorAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "8707b9b062e7b91328d65cb31d17ff94", "score": "0.63383675", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "68ffbe0f6f7b530ef452e1534d29d427", "score": "0.6326201", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"!%]#`o@tV\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1922fdaad6400b7e60385eed838344f3", "score": "0.6308427", "text": "@Test\n\tpublic void testDominantIndex() throws Exception {\n\t}", "title": "" }, { "docid": "0a9c3887a29517816e5c4a1e6d9a8d4a", "score": "0.6307191", "text": "@Test(timeout = 4000)\n public void test077() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unweightedMicroFmeasure();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "2951ebf4330839820571e258620e88cc", "score": "0.62993014", "text": "@Test(timeout = 4000)\n public void test035() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-934));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "4a76c039aef6bb79f48b93efbba159d2", "score": "0.62815326", "text": "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n }", "title": "" }, { "docid": "660349ff2b99015f84d0f1ca7677d829", "score": "0.624244", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n }", "title": "" }, { "docid": "f710af1e4ba91c72bbc2118e725dbd83", "score": "0.6237593", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "beeced9c82c658accb561f95138dd6ea", "score": "0.6188286", "text": "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.rootMeanPriorSquaredError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "5a0379d589f95b60a80940434cf26cee", "score": "0.6166783", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "365a331ad71bdde30d73a104bca727ad", "score": "0.6159653", "text": "@Test\n public void test() {\n generateTestData(108);\n// testDistributionInDirections();\n// testDistributionInDirectionAndUniversities();\n\n }", "title": "" }, { "docid": "46dc3f22d3510bf38d2202506d0fe663", "score": "0.61364394", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n Capabilities capabilities0 = inputMappedClassifier0.getCapabilities();\n naiveBayesMultinomialText0.m_useStopList = true;\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"Set splitting criterion based on the residuals of LogitBoost. There are two possible splitting criteria for LMT: the default is to use the C4.5 splitting criterion that uses information gain on the class variable. The other splitting criterion tries to improve the purity in the residuals produces when fitting the logistic regression functions. The choice of the splitting criterion does not usually affect classification accuracy much, but can produce different trees.\");\n Instances instances0 = testInstances0.generate(\"\");\n testInstances0.getRelationalClassFormat();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t9.0\\nclass2\\t4.0\\nclass3\\t7.0\\nclass4\\t4.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nquick\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\nlazy\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\njumps\\t20.085536923187668\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nbrown\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n }", "title": "" }, { "docid": "625c67c749f9ee58b85b5ba1356c6a8c", "score": "0.61220294", "text": "@Test\n public void testDeterministicQualityAndDepth() throws Exception {\n final double logOddsThreshold = 0.0;\n final double tolerance = 0.001;\n final int sampleSize = 1; //quality is deterministic, hence no sampling error\n for (int q = 5; q < 10; q++) {\n for (int n = 5; n < 10; n++) {\n final double minAltCount = 10 * n * Math.log10(2) / q; //alts required to call when log odds ratio threshold = 1\n double expectedResult = 0.0;\n\n final List<ArrayList<Double>> altCountProbabilities = TheoreticalSensitivity.hetAltDepthDistribution(n + 1);\n for (int altCount = n; altCount > minAltCount; altCount--) {\n expectedResult += altCountProbabilities.get(n).get(altCount);\n }\n\n //deterministic weights that always yield q are 0.0 for 0 through q - 1 and 1.0 for q\n final double[] qualityDistribution = new double[q + 1];\n Arrays.fill(qualityDistribution, 0L);\n qualityDistribution[qualityDistribution.length - 1] = 1L;\n final double[] depthDistribution = new double[n + 1];\n Arrays.fill(depthDistribution, 0L);\n depthDistribution[depthDistribution.length - 1] = 1L;\n\n final double result = TheoreticalSensitivity.hetSNPSensitivity(depthDistribution, qualityDistribution, sampleSize, logOddsThreshold);\n Assert.assertEquals(result, expectedResult, tolerance);\n }\n }\n }", "title": "" }, { "docid": "335962f52b04d14add827ef0e26549f0", "score": "0.61138636", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"`v\";\n stringArray0[1] = \"Ajz^Ul$T]gw'\";\n stringArray0[2] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[3] = \"}B\";\n stringArray0[4] = \"-R\";\n stringArray0[5] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[6] = \"`v\";\n stringArray0[7] = \"g;aZyIK x\";\n discretize0.setOptions(stringArray0);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "49d78ad26be39ba705724ea6ab2aa40a", "score": "0.6108458", "text": "@Test(timeout = 4000)\n public void test017() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.setColNameWidth(2);\n resultMatrixCSV0.toStringMatrix();\n resultMatrixGnuPlot0.getSignificance(2594, 0);\n }", "title": "" }, { "docid": "c3ed3e72cd30ebc681069e712a9a0a65", "score": "0.6102751", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "6fe0e80d803a895bdc9c66feeda800cf", "score": "0.6101988", "text": "@Override\n public void testCountPerf() throws Exception {\n\n }", "title": "" }, { "docid": "77d9428115bc06de12eb1e7d9cd25279", "score": "0.60905665", "text": "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String[] stringArray0 = new String[4];\n String[] stringArray1 = resultMatrixSignificance0.getOptions();\n assertFalse(stringArray1.equals((Object)stringArray0));\n assertNotSame(stringArray1, stringArray0);\n assertEquals(18, stringArray1.length);\n assertNotNull(stringArray1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.m_StdDevWidth = 0;\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n stringArray0[0] = \" \";\n stringArray0[1] = \"v\";\n stringArray0[2] = \")\";\n stringArray0[3] = \" \";\n ResultMatrixSignificance.main(stringArray0);\n assertFalse(stringArray0.equals((Object)stringArray1));\n assertNotSame(stringArray0, stringArray1);\n assertEquals(4, stringArray0.length);\n \n String string0 = resultMatrixSignificance0.padString(\"v\", 0, false);\n assertEquals(\"v\", string0);\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.setSize(2523, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string1 = resultMatrixSignificance0.padString(\"W-:rm\", (-3003));\n assertFalse(string1.equals((Object)string0));\n assertEquals(\"W-:rm\", string1);\n assertNotNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string2 = resultMatrixSignificance0.enumerateColNamesTipText();\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", string2);\n assertNotNull(string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string3 = resultMatrixSignificance0.colNameWidthTipText();\n assertFalse(string3.equals((Object)string2));\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string1));\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string3);\n assertNotNull(string3);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string4 = resultMatrixSignificance0.showAverageTipText();\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string1));\n assertFalse(string4.equals((Object)string3));\n assertFalse(string4.equals((Object)string0));\n assertEquals(\"Whether to show the row with averages.\", string4);\n assertNotNull(string4);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultPrintRowNames();\n assertTrue(boolean0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.clearHeader();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.setCount((-3003), 0.0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string5 = resultMatrixSignificance0.getDisplayName();\n assertFalse(string5.equals((Object)string1));\n assertFalse(string5.equals((Object)string4));\n assertFalse(string5.equals((Object)string3));\n assertFalse(string5.equals((Object)string2));\n assertFalse(string5.equals((Object)string0));\n assertEquals(\"Significance only\", string5);\n assertNotNull(string5);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n // Undeclared exception!\n resultMatrixSignificance0.toStringHeader();\n }", "title": "" }, { "docid": "babee251658f7473a9d711b217a1f3d8", "score": "0.6081057", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.attributeIndicesTipText();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals(\"Specify range of attributes to act on. This is a comma separated list of attribute indices, with \\\"first\\\" and \\\"last\\\" valid values. Specify an inclusive range with \\\"-\\\". E.g: \\\"first-3,5,6-10,last\\\".\", string0);\n }", "title": "" }, { "docid": "b43aa1f7ec9d0136b7f5793912666690", "score": "0.60799223", "text": "@Test\n public void globalBasedMedianCenteredGeneExp() throws IOException {\n// String dirName = \"datasets/TCGA/OvarianCancer/TothillDataset/\";\n// String srcFileName = dirName + \"Tothill_TCGA_plus2.txt\";\n// fu.setInput(srcFileName);\n// FileUtility outFu = new FileUtility();\n// String outFileName = dirName + \"Tothill_TCGA_plus2_global_median_centered.txt\";\n// outFu.setOutput(outFileName);\n// String line = fu.readLine();\n// outFu.printLine(line);\n// DescriptiveStatistics stat = new DescriptiveStatistics();\n// StringBuilder builder = new StringBuilder();\n// while ((line = fu.readLine()) != null) {\n// String[] tokens = line.split(\"\\t\");\n// for (int i = 1; i < tokens.length; i++) {\n// stat.addValue(Math.log(new Double(tokens[i])));\n// }\n// }\n// fu.close();\n// double median = stat.getPercentile(0.50d);\n// fu.setInput(srcFileName);\n// line = fu.readLine();\n// while ((line = fu.readLine()) != null) {\n// String[] tokens = line.split(\"\\t\");\n// builder.setLength(0);\n// builder.append(tokens[0]);\n// for (int i = 1; i < tokens.length; i++) {\n// double value = Double.parseDouble(tokens[i]);\n// value = (value - median) / median;\n// builder.append(\"\\t\").append(value);\n// }\n// outFu.printLine(builder.toString());\n// }\n// fu.close();\n// outFu.close();\n }", "title": "" }, { "docid": "f75703181d73644cb7c3d5aa323e5d4d", "score": "0.6071521", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString((-1879048189));\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "e5387f5df774d8387ba0c04558006d19", "score": "0.6067283", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\" / \");\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)106;\n byteArray0[2] = (byte)97;\n byteArray0[3] = (byte) (-67);\n byteArray0[4] = (byte)13;\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n TestInstances testInstances0 = new TestInstances();\n MockFile mockFile0 = new MockFile(\" \", \" \");\n naiveBayesMultinomialText0.setStopwords(mockFile0);\n double[] doubleArray0 = new double[0];\n DenseInstance denseInstance0 = new DenseInstance((byte)0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(denseInstance0);\n SparseInstance sparseInstance0 = new SparseInstance((Instance) binarySparseInstance0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((Instance) sparseInstance0);\n binarySparseInstance0.toStringMaxDecimalDigits((-1247));\n try { \n naiveBayesMultinomialText0.distributionForInstance(sparseInstance0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.bayes.NaiveBayesMultinomialText\", e);\n }\n }", "title": "" }, { "docid": "f8064048430d2af4f6cb6e1607030c06", "score": "0.60651904", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setOutputFormat();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "f14fc8bf837a671ae6089461e6cc1f7d", "score": "0.6051069", "text": "@Test\n public void testSuccessfulCases() {\n //test cac tnh huong tham so dua vcho ham van test 1 cach tu te\n //Assert.assertEquals(30, 40);\n Assert.assertEquals(30, 30);\n Assert.assertEquals(1, MathUtil.computerFactorial(0));\n Assert.assertEquals(1, MathUtil.computerFactorial(1));\n Assert.assertEquals(2, MathUtil.computerFactorial(2));\n Assert.assertEquals(6, MathUtil.computerFactorial(3));\n Assert.assertEquals(24, MathUtil.computerFactorial(4));\n Assert.assertEquals(120, MathUtil.computerFactorial(5));\n }", "title": "" }, { "docid": "2c6737933d05b72159ef04e22367f434", "score": "0.6040278", "text": "@Test(timeout = 4000)\n public void test016() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"\");\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "b08f4468de8d4c0b168b3baf724904e2", "score": "0.6038492", "text": "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.rootMeanSquaredError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "2cc1f3095f77486f684f4708bcb24cfd", "score": "0.6034255", "text": "@Test(timeout = 4000)\n public void test099() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\".arff\");\n assertEquals(\".arff\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n }", "title": "" }, { "docid": "3317dce3c4bb609939c861f391d81fd7", "score": "0.60180515", "text": "@Override\n\tpublic int totalTest() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "5599c6f92758fbe19bbfba70c8d1062f", "score": "0.6004858", "text": "@Test(timeout = 4000)\n public void test072() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[2];\n LinearNNSearch linearNNSearch0 = new LinearNNSearch(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0.0, doubleArray0);\n Instance instance0 = linearNNSearch0.nearestNeighbour(binarySparseInstance0);\n evaluation0.updateStatsForPredictor(1.0E-5, instance0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "09c8c5813142d53c145bed4144fd4ef4", "score": "0.59995276", "text": "public void testTwo() {\n// try {\n// int matchesMustAlsoBeFoundInThisCase = 0;\n// \n// // Filter out the time stamp to get the correct case name.\n// Set<String> caseNames = this.utils.getCaseMap().keySet();\n// for (String caseName : caseNames) {\n// if (caseName.substring(0, caseName.length() - 20).equalsIgnoreCase(CASE2)) {\n// // Case match found. Get the number of matches.\n// matchesMustAlsoBeFoundInThisCase = this.utils.getCaseMap().get(caseName);\n// }\n// }\n// CorrelationAttributeInstance.Type fileType = CorrelationAttributeInstance.getDefaultCorrelationTypes().get(0);\n// AbstractCommonAttributeSearcher builder = new SingleInterCaseCommonAttributeSearcher(matchesMustAlsoBeFoundInThisCase, false, false, fileType, 0);\n//\n// CommonAttributeCountSearchResults metadata = builder.findMatchesByCount();\n//\n// assertTrue(\"Results should not be empty\", metadata.size() != 0);\n//\n// //case 1 data set 1\n// assertEquals(\"Verify Existence or Count failed for HASH_0_DAT, CASE1_DATASET_1, CASE1\", 0, getInstanceCount(metadata, HASH_0_DAT, CASE1_DATASET_1, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE1_DATASET_1, CASE1\", 1, getInstanceCount(metadata, HASH_A_PDF, CASE1_DATASET_1, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE1_DATASET_1, CASE1\", 1, getInstanceCount(metadata, HASH_A_JPG, CASE1_DATASET_1, CASE1));\n//\n// //case 1 data set 2\n// assertEquals(\"Verify Existence or Count failed for HASH_0_DAT, CASE1_DATASET_2, CASE1\", 0, getInstanceCount(metadata, HASH_0_DAT, CASE1_DATASET_2, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE1_DATASET_2, CASE1\", 1, getInstanceCount(metadata, HASH_A_PDF, CASE1_DATASET_2, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE1_DATASET_2, CASE1\", 1, getInstanceCount(metadata, HASH_A_JPG, CASE1_DATASET_2, CASE1));\n//\n// //case 2 data set 1\n// assertEquals(\"Verify Existence or Count failed for HASH_B_PDF, CASE2_DATASET_1, CASE2\", 0, getInstanceCount(metadata, HASH_B_PDF, CASE2_DATASET_1, CASE2));\n// assertEquals(\"Verify Existence or Count failed for HASH_B_JPG, CASE2_DATASET_1, CASE2\", 0, getInstanceCount(metadata, HASH_B_JPG, CASE2_DATASET_1, CASE2));\n//\n// //case 2 data set 2\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE2_DATASET_2, CASE2\", 1, getInstanceCount(metadata, HASH_A_PDF, CASE2_DATASET_2, CASE2));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE2_DATASET_2, CASE2\", 1, getInstanceCount(metadata, HASH_A_JPG, CASE2_DATASET_2, CASE2));\n// assertEquals(\"Verify Existence or Count failed for HASH_D_DOC, CASE2_DATASET_2, CASE2\", 1, getInstanceCount(metadata, HASH_D_DOC, CASE2_DATASET_2, CASE2));\n//\n// //case 3 data set 1\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE3_DATASET_1, CASE3\", 1, getInstanceCount(metadata, HASH_A_JPG, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE3_DATASET_1, CASE3\", 1, getInstanceCount(metadata, HASH_A_PDF, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_C_JPG, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_C_JPG, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_C_PDF, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_C_PDF, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_D_JPG, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_D_JPG, CASE3_DATASET_1, CASE3));\n//\n// //case 3 data set 2\n// assertEquals(\"Verify Existence or Count failed for HASH_C_JPG, CASE3_DATASET_2, CASE3\", 0, getInstanceCount(metadata, HASH_C_JPG, CASE3_DATASET_2, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_C_PDF, CASE3_DATASET_2, CASE3\", 0, getInstanceCount(metadata, HASH_C_PDF, CASE3_DATASET_2, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_D_DOC, CASE3_DATASET_2, CASE3\", 1, getInstanceCount(metadata, HASH_D_DOC, CASE3_DATASET_2, CASE3));\n//\n// } catch (TskCoreException | NoCurrentCaseException | SQLException | EamDbException ex) {\n// Exceptions.printStackTrace(ex);\n// Assert.fail(ex.getMessage());\n// }\n }", "title": "" }, { "docid": "678c8001329dd118cc480a6074f268ac", "score": "0.59957916", "text": "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedRecall();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c27c9f192567cd57b37311d86d5b7fdf", "score": "0.5991685", "text": "public final void testCountProportionOfRedundancy() {\n //fail(\"Not yet implemented\");\n }", "title": "" }, { "docid": "0d325cbfe609bdbf475f37958b5f45f4", "score": "0.5975156", "text": "public final void testGetCoverageGapFrequencyDiscount() {\n // If there are as many ranges as AUs (>1), there should be a large discount\n assertEquals(0.8f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(5f, 5f));\n assertEquals(0.5f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(2f, 2f));\n assertEquals(0.98f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(50f, 50f));\n // All such results should be >= 0.5\n for (float i : new float[]{16, 50, 500, 1000000}) {\n assertTrue(TdbAuOrderScorer.getCoverageGapFrequencyDiscount(i, i) >= 0.5);\n }\n \n // If there are no AUs, there should be no discount\n assertEquals(0f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(0f, 0f));\n assertEquals(0f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(0f, 1f));\n \n // If there is a single range, there should be no discount\n assertEquals(0f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(5f, 1f));\n assertEquals(0f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(1f, 1f));\n assertEquals(0f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(500f, 1f));\n \n // If there are half as many ranges as AUs, the discount should be < 0.5 \n assertEquals(0.25f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(4f, 2f));\n assertEquals(0.375f, TdbAuOrderScorer.getCoverageGapFrequencyDiscount(8f, 4f));\n for (int i : new int[]{16, 50, 500, 1000000}) {\n assertTrue(TdbAuOrderScorer.getCoverageGapFrequencyDiscount((float)i,\n (float)(i/2)) < 0.5);\n }\n }", "title": "" }, { "docid": "feeae55a54dd66bd3f690655cf15d0e2", "score": "0.596775", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(3, 2);\n int[] intArray0 = new int[3];\n resultMatrixCSV0.toStringRanking();\n intArray0[0] = 2;\n intArray0[1] = 0;\n intArray0[2] = 160;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.doubleToString(1903.270428, 0);\n }", "title": "" }, { "docid": "5f2e4e1805a13fb9b19ffb1505cffbae", "score": "0.5959453", "text": "@Test\n\tpublic void test8() \n\t{\n\t\tint[] dice = {3,3,3,1,1,1,-1,-1};\n\t\tassertEquals(300, P1.C_Score(dice, null, 5, 0));\n\t}", "title": "" }, { "docid": "4d1c1c387ae38ad325bcf3b33235d2d4", "score": "0.5944522", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.trueNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1aaee583ca676718ac331d9fe96bd6c9", "score": "0.59442884", "text": "@Test(timeout = 4000)\n public void test009() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[8];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "1bc3aeaf66276a68f3c45b214826f211", "score": "0.59440744", "text": "@Test\n\tpublic void test9() \n\t{\n\t\tint[] dice = {5,5,5,-1,-1,-1,-1,-1};\n\t\tassertEquals(500, P1.C_Score(dice, null, 4, 0));\n\t}", "title": "" }, { "docid": "e9532065f077592d6cc20f6d51e6a552", "score": "0.59422004", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, (-1823.508364429));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "2892346ba6ffadb8080b813e6c6816dd", "score": "0.59403527", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.getOptions();\n double[][] doubleArray0 = new double[6][2];\n discretize0.m_CutPoints = doubleArray0;\n int int0 = 2;\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"\";\n stringArray0[3] = \"h0a.w;rJn4ik\";\n stringArray0[4] = \"\";\n discretize0.setBins((-2084322361));\n Filter.runFilter(discretize0, stringArray0);\n discretize0.getBinRangesString(2);\n discretize0.setAttributeIndices(\"A3U>S^ rv&kE0~\");\n discretize0.setFindNumBins(false);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString((-2084322361));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2084322361\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "d2223fbbbcb8807126803ea64d9dad75", "score": "0.5929472", "text": "@Test\n public void testHetSensDistributions() throws Exception {\n final double tolerance = 0.02;\n final double expectedResult = .9617;\n final int maxDepth = 500;\n final double[] depthDistribution = new double[maxDepth + 1];\n final double[] qualityDistribution = new double[50];\n\n final Scanner scanDepth = new Scanner(DEPTH);\n for (int i = 0; scanDepth.hasNextDouble(); i++) {\n depthDistribution[i] = scanDepth.nextDouble();\n }\n final Scanner scanBaseQ = new Scanner(BASEQ);\n for (int j = 0; scanBaseQ.hasNextDouble(); j++) {\n qualityDistribution[j] = scanBaseQ.nextDouble();\n }\n\n final int sampleSize = 1_000;\n final double logOddsThreshold = 3.0;\n final double result = TheoreticalSensitivity.hetSNPSensitivity(depthDistribution, qualityDistribution, sampleSize, logOddsThreshold);\n Assert.assertEquals(result, expectedResult, tolerance);\n }", "title": "" }, { "docid": "0991a6279b85bfa4f6664c3c540c14d2", "score": "0.5921826", "text": "public void testThree() {\n// try {\n//\n// CorrelationAttributeInstance.Type fileType = CorrelationAttributeInstance.getDefaultCorrelationTypes().get(0);\n// AbstractCommonAttributeSearcher builder = new AllInterCaseCommonAttributeSearcher(false, false, fileType, 50);\n//\n// CommonAttributeCountSearchResults metadata = builder.findMatchesByCount();\n// metadata.filterMetadata();\n// assertTrue(\"Results should not be empty\", metadata.size() != 0);\n//\n// //case 1 data set 1\n// assertEquals(\"Verify Existence or Count failed for HASH_0_DAT, CASE1_DATASET_1, CASE1\", 0, getInstanceCount(metadata, HASH_0_DAT, CASE1_DATASET_1, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE1_DATASET_1, CASE1\", 0, getInstanceCount(metadata, HASH_A_PDF, CASE1_DATASET_1, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE1_DATASET_1, CASE1\", 0, getInstanceCount(metadata, HASH_A_JPG, CASE1_DATASET_1, CASE1));\n//\n// //case 1 data set 2\n// assertEquals(\"Verify Existence or Count failed for HASH_0_DAT, CASE1_DATASET_2, CASE1\", 0, getInstanceCount(metadata, HASH_0_DAT, CASE1_DATASET_2, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE1_DATASET_2, CASE1\", 0, getInstanceCount(metadata, HASH_A_PDF, CASE1_DATASET_2, CASE1));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE1_DATASET_2, CASE1\", 0, getInstanceCount(metadata, HASH_A_JPG, CASE1_DATASET_2, CASE1));\n//\n// //case 2 data set 1\n// assertEquals(\"Verify Existence or Count failed for HASH_B_PDF, CASE2_DATASET_1, CASE2\", 0, getInstanceCount(metadata, HASH_B_PDF, CASE2_DATASET_1, CASE2));\n// assertEquals(\"Verify Existence or Count failed for HASH_B_JPG, CASE2_DATASET_1, CASE2\", 0, getInstanceCount(metadata, HASH_B_JPG, CASE2_DATASET_1, CASE2));\n//\n// //case 2 data set 2\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE2_DATASET_2, CASE2\", 0, getInstanceCount(metadata, HASH_A_PDF, CASE2_DATASET_2, CASE2));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE2_DATASET_2, CASE2\", 0, getInstanceCount(metadata, HASH_A_JPG, CASE2_DATASET_2, CASE2));\n// assertEquals(\"Verify Existence or Count failed for HASH_D_DOC, CASE2_DATASET_2, CASE2\", 1, getInstanceCount(metadata, HASH_D_DOC, CASE2_DATASET_2, CASE2));\n//\n// //case 3 data set 1\n// assertEquals(\"Verify Existence or Count failed for HASH_A_JPG, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_A_JPG, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_A_PDF, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_A_PDF, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_C_JPG, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_C_JPG, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_C_PDF, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_C_PDF, CASE3_DATASET_1, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_D_JPG, CASE3_DATASET_1, CASE3\", 0, getInstanceCount(metadata, HASH_D_JPG, CASE3_DATASET_1, CASE3));\n//\n// //case 3 data set 2\n// assertEquals(\"Verify Existence or Count failed for HASH_C_JPG, CASE3_DATASET_2, CASE3\", 0, getInstanceCount(metadata, HASH_C_JPG, CASE3_DATASET_2, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_C_PDF, CASE3_DATASET_2, CASE3\", 0, getInstanceCount(metadata, HASH_C_PDF, CASE3_DATASET_2, CASE3));\n// assertEquals(\"Verify Existence or Count failed for HASH_D_DOC, CASE3_DATASET_2, CASE3\", 1, getInstanceCount(metadata, HASH_D_DOC, CASE3_DATASET_2, CASE3));\n//\n// } catch (TskCoreException | NoCurrentCaseException | SQLException | EamDbException ex) {\n// Exceptions.printStackTrace(ex);\n// Assert.fail(ex.getMessage());\n// }\n }", "title": "" }, { "docid": "7bbacf667195b1fd1dd6d461373d905e", "score": "0.5921002", "text": "@Test\n public void testApertureGN33ISO100Power0Distance5Aperture6Metres(){\n calculationFormulaApertureTest(TestResults.GN33ISO100Power0Distance5Aperture6Metres);\n }", "title": "" }, { "docid": "43ff29d6efedbd3520f96433e86ef1b4", "score": "0.59205383", "text": "@Test(timeout = 4000)\n public void test050() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n resultMatrixHTML0.setCount(3, 3);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"3\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"v\";\n ResultMatrixSignificance.main(stringArray0);\n assertEquals(3, stringArray0.length);\n }", "title": "" }, { "docid": "81183a4fd91193d5067be54a7bae45b2", "score": "0.591814", "text": "@Before\n\tpublic void setUp() throws Exception {\n\t\tcollector = new StatisticsCollector(1);\n\t\tcollector.collectData(10);\n\t\tresult = \"The combination 1 1 was rolled in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\\n\";\n\t}", "title": "" }, { "docid": "9f679c421c797faefd1823623383bf45", "score": "0.5917683", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML();\n resultMatrixHTML0.setCountWidth(367);\n assertEquals(367, resultMatrixHTML0.getCountWidth());\n \n ResultMatrixHTML resultMatrixHTML2 = new ResultMatrixHTML(2, 0);\n ResultMatrixHTML resultMatrixHTML3 = new ResultMatrixHTML();\n resultMatrixHTML3.toStringKey();\n resultMatrixHTML3.setCount(0, 1498.2644628);\n resultMatrixHTML1.toStringKey();\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n }", "title": "" }, { "docid": "4f56bca4f169744e39c48a037cd62308", "score": "0.59040284", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.setMeanWidth((-1));\n resultMatrixLatex0.toStringRanking();\n resultMatrixLatex0.getVisibleColCount();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getDefaultColNameWidth();\n resultMatrixSignificance0.toStringKey();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n resultMatrixHTML0.assign(resultMatrixSignificance0);\n resultMatrixHTML0.globalInfo();\n resultMatrixHTML0.getDefaultPrintColNames();\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML(46, 1);\n resultMatrixHTML1.getEnumerateRowNames();\n resultMatrixHTML1.getDisplayName();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"show-stddev\";\n stringArray0[1] = \"v\";\n double[][] doubleArray0 = new double[4][5];\n double[] doubleArray1 = new double[7];\n doubleArray1[0] = (double) (-1);\n doubleArray1[1] = (double) (-1);\n doubleArray1[2] = (double) 46;\n doubleArray1[3] = (double) 0;\n doubleArray1[4] = (double) 2;\n doubleArray1[5] = (double) 2;\n doubleArray1[6] = (double) 2;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[3];\n doubleArray2[0] = (double) 1;\n doubleArray2[1] = (double) 0;\n doubleArray2[2] = (double) 1;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[1];\n doubleArray3[0] = (double) 1;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[2];\n doubleArray4[0] = (double) 2;\n doubleArray4[1] = (double) 0;\n doubleArray0[3] = doubleArray4;\n resultMatrixSignificance0.m_StdDev = doubleArray0;\n stringArray0[2] = \"HTML\";\n ResultMatrixLatex.main(stringArray0);\n assertEquals(3, stringArray0.length);\n }", "title": "" }, { "docid": "6e88a46a7f2d598d2dfb45124819769b", "score": "0.59030074", "text": "@Test\n public void testRunBinomialDistTrials() {\n System.out.println(\"runBinomialDistTrials\");\n TrialRunner instance = new TrialRunner();\n instance.runBinomialDistTrials();\n \n }", "title": "" }, { "docid": "f1c093ee2449791e591b9f8bf7d8756d", "score": "0.5895973", "text": "@Test(timeout = 4000)\n public void test082() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n int[] intArray0 = new int[1];\n resultMatrixSignificance0.m_RankingDiff = intArray0;\n resultMatrixSignificance0.m_RankingWins = intArray0;\n resultMatrixSignificance0.m_PrintRowNames = false;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n resultMatrixGnuPlot0.setRowNameWidth((-572));\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n assertEquals(2, int0);\n }", "title": "" }, { "docid": "ddc942cc75b4758e507b96e83824dc16", "score": "0.5884379", "text": "@Test(timeout = 4000)\n public void test019() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(2, 0);\n resultMatrixGnuPlot0.setPrintRowNames(true);\n resultMatrixGnuPlot0.getOptions();\n resultMatrixGnuPlot0.setRowNameWidth((-3697));\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n assertEquals(2, int0);\n }", "title": "" }, { "docid": "4b1432c91e02ed964a957a27696cdd79", "score": "0.5882641", "text": "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC(1);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "e0e4aa353ebf6611a19e44ed357fe769", "score": "0.58811516", "text": "@Test\n public void testBlackBox() throws IOException {\n testBlackBoxCountingResults(true);\n }", "title": "" }, { "docid": "5908aac6f98525740e0e7856b43676b2", "score": "0.5875119", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n \n int[] intArray0 = new int[9];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 1;\n intArray0[3] = 1;\n intArray0[4] = 0;\n intArray0[5] = 1;\n intArray0[6] = 5;\n intArray0[7] = 2;\n String[] stringArray0 = new String[1];\n stringArray0[0] = \" \";\n ResultMatrixSignificance.main(stringArray0);\n resultMatrixHTML0.getDefaultRowNameWidth();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(1, 2);\n resultMatrixGnuPlot0.setStdDevWidth(2);\n resultMatrixHTML0.getEnumerateColNames();\n resultMatrixGnuPlot0.setMean(1222, 5, 2);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevWidth());\n }", "title": "" }, { "docid": "b8f9f421a70442ebd08d400d42a8e5d5", "score": "0.58716047", "text": "@Test(timeout = 4000)\n public void test107() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "877779327ea19cc2c370d9267ca39fc9", "score": "0.58645076", "text": "@Test\n public void countForDBPathwayFIsAndFilePredFIs() throws Exception {\n// List<ReactomeAnalyzer> analyzers = ReactomeAnalyzer.getPathwayDBAnalyzers();\n// ProteinIdFilters filters = new ProteinIdFilters();\n// Set<String> pathwayFIs = new HashSet<String>();\n// for (ReactomeAnalyzer analyzer : analyzers) {\n// Set<String> fis = analyzer.extractInteractionSet();\n// Set<String> filtered = filters.cleanUpVsUniProt(fis);\n// GKInstance dataSource = analyzer.getDataSource();\n// String source = null;\n// if (dataSource == null)\n// source = \"Reactome\";\n// else\n// source = dataSource.getDisplayName();\n// System.out.println(\"FIs from \" + source + \": \" + filtered.size());\n// pathwayFIs.addAll(filtered);\n// }\n// fu.saveInteractions(pathwayFIs, FIConfiguration.getConfiguration().get(\"RESULT_DIR + \"PathwayFIs.txt\");\n Set<String> pathwayFIs = fu.loadInteractions(FIConfiguration.getConfiguration().get(\"RESULT_DIR\") + \"PathwayFIs.txt\");\n Set<String> pathwayIds = InteractionUtilities.grepIDsFromInteractions(pathwayFIs);\n System.out.printf(\"FIs from pathways: %d (%d)%n\",\n pathwayFIs.size(),\n pathwayIds.size());\n countVsSwissProt(pathwayIds);\n //Set<String> predictedFIs = fu.loadInteractions(FIConfiguration.getConfiguration().get(\"RESULT_DIR + \"PredictedFIs.txt\");\n Set<String> predictedFIs = fu.loadInteractions(FIConfiguration.getConfiguration().get(\"RESULT_DIR\") + \"PredictedFIsHumanPPIsGeneExp.txt\");\n //Set<String> predictedFIs = fu.loadInteractions(FIConfiguration.getConfiguration().get(\"RESULT_DIR + \"PredictedFIsCutoff09.txt\");\n Set<String> predictedIDs = InteractionUtilities.grepIDsFromInteractions(predictedFIs);\n System.out.printf(\"FIs from prediction: %d (%d)%n\",\n predictedFIs.size(),\n predictedIDs.size());\n countVsSwissProt(predictedIDs);\n // Merge them\n pathwayIds.addAll(predictedIDs);\n pathwayFIs.addAll(predictedFIs);\n System.out.printf(\"FIs merged: %d (%d)%n\",\n pathwayFIs.size(),\n pathwayIds.size());\n countVsSwissProt(pathwayIds);\n }", "title": "" }, { "docid": "36a707bf545a6fc7694fd8a3340e2c6c", "score": "0.58614564", "text": "@Test(timeout = 4000)\n public void test136() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n \n int[][] intArray0 = new int[6][4];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n String string0 = resultMatrixCSV0.getColName(16);\n assertNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n \n int[] intArray2 = new int[8];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n intArray2[1] = 1;\n intArray2[2] = 1;\n intArray2[3] = 0;\n intArray2[4] = 0;\n intArray2[6] = 0;\n intArray2[7] = 0;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[3];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray3[0] = 0;\n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray0[2] = intArray3;\n resultMatrixCSV0.setColOrder(intArray1);\n assertArrayEquals(new int[] {}, intArray1);\n assertFalse(intArray1.equals((Object)intArray3));\n assertFalse(intArray1.equals((Object)intArray2));\n assertNotSame(intArray1, intArray3);\n assertNotSame(intArray1, intArray2);\n assertEquals(0, intArray1.length);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n \n resultMatrixGnuPlot0.setRowNameWidth(1346);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1346, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n \n int int0 = resultMatrixGnuPlot0.getDisplayRow(901);\n assertEquals((-1), int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1346, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n \n ResultMatrixHTML resultMatrixHTML0 = null;\n try {\n resultMatrixHTML0 = new ResultMatrixHTML(1, (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "20951a8f18e970ad2bd6bbb5f0210387", "score": "0.5860852", "text": "@Test(timeout = 100)\n\tpublic void testLargeGetBestGradeMixed() {\n\t\tSubmissionHistory history = new Assignment();\n\t\tSubmission a = testHelperAdd(history, \"a\", new Date(100000), 10);\n\t\tSubmission b = testHelperAdd(history, \"a\", new Date(200000), 11);\n\t\tSubmission c = testHelperAdd(history, \"a\", new Date(300000), 12);\n\t\tSubmission d = testHelperAdd(history, \"a\", new Date(400000), 13);\n\t\tSubmission e = testHelperAdd(history, \"a\", new Date(500000), 14);\n\t\tSubmission f = testHelperAdd(history, \"a\", new Date(600000), 15);\n\t\tSubmission g = testHelperAdd(history, \"a\", new Date(700000), 16);\n\t\tSubmission h = testHelperAdd(history, \"a\", new Date(800000), 17);\n\t\tSubmission i = testHelperAdd(history, \"a\", new Date(900000), 18);\n\t\tSubmission j = testHelperAdd(history, \"a\", new Date(100001), 19);\n\t\tSubmission k = testHelperAdd(history, \"a\", new Date(100002), 20);\n\t\tSubmission l = testHelperAdd(history, \"a\", new Date(100003), 21);\n\t\tSubmission m = testHelperAdd(history, \"a\", new Date(100004), 22);\n\t\tSubmission n = testHelperAdd(history, \"a\", new Date(100005), 23);\n\t\tSubmission o = testHelperAdd(history, \"a\", new Date(100006), 24);\n\t\tSubmission p = testHelperAdd(history, \"a\", new Date(100007), 25);\n\t\tSubmission q = testHelperAdd(history, \"a\", new Date(100008), 26);\n\t\tSubmission r = testHelperAdd(history, \"a\", new Date(100009), 27);\n\t\tSubmission s = testHelperAdd(history, \"a\", new Date(100010), 28);\n\t\tSubmission t = testHelperAdd(history, \"a\", new Date(100020), 29);\n\t\tSubmission u = testHelperAdd(history, \"a\", new Date(100030), 30);\n\t\tSubmission v = testHelperAdd(history, \"a\", new Date(100040), 31);\n\t\tSubmission w = testHelperAdd(history, \"a\", new Date(100050), 32);\n\t\tSubmission x = testHelperAdd(history, \"a\", new Date(100060), 33);\n\t\tSubmission y = testHelperAdd(history, \"a\", new Date(100070), 34);\n\t\tSubmission z = testHelperAdd(history, \"a\", new Date(100080), 35);\n\t\tSubmission a1 = testHelperAdd(history, \"a\", new Date(10090), 36);\n\t\tSubmission b1 = testHelperAdd(history, \"a\", new Date(100100), 37);\n\t\tSubmission c1 = testHelperAdd(history, \"a\", new Date(100200), 38);\n\t\tSubmission d1 = testHelperAdd(history, \"a\", new Date(100300), 39);\n\t\tSubmission e1 = testHelperAdd(history, \"a\", new Date(100400), 40);\n\t\tSubmission f1 = testHelperAdd(history, \"a\", new Date(100500), 41);\n\t\tSubmission g1 = testHelperAdd(history, \"a\", new Date(100600), 42);\n\t\tSubmission h1 = testHelperAdd(history, \"a\", new Date(100700), 43);\n\t\tSubmission i1 = testHelperAdd(history, \"a\", new Date(100800), 44);\n\n\t\tassertEquals(new Integer(44), history.getBestGrade(\"a\"));\n\t\t\n\t\tSubmission j1 = testHelperAdd(history, \"a\", new Date(100900), 45);\n\t\t\n\t\tassertEquals(new Integer(45), history.getBestGrade(\"a\"));\n\t\t\n\t\thistory.remove(j1);\n\t\thistory.remove(i1);\n\t\thistory.remove(h1);\n\t\thistory.remove(g1);\n\t\thistory.remove(f1);\n\t\thistory.remove(e1);\n\t\thistory.remove(d1);\n\t\t\n\t\tassertEquals(new Integer(38), history.getBestGrade(\"a\"));\n\t\t\n\t}", "title": "" }, { "docid": "7d6d4bb6f6a90c0376192c644b23cde6", "score": "0.5859375", "text": "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "5da2ff50ec1b4118854b96d77682711c", "score": "0.5858468", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.addNumericTrainClass(2228.7863, 2123.12269);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n }", "title": "" }, { "docid": "c2ef77e7b2ae7ed1ad5ac382080ac42f", "score": "0.58579105", "text": "@Test(timeout = 4000)\n public void test005() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderROC();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "ba2332e12765200ff7f45133fdf22d38", "score": "0.5856752", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n Capabilities capabilities0 = inputMappedClassifier0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"Set splitting criterion based on the residuals of LogitBoost. There are two possible splitting criteria for LMT: the default is to use the C4.5 splitting criterion that uses information gain on the class variable. The other splitting criterion tries to improve the purity in the residuals produces when fitting the logistic regression functions. The choice of the splitting criterion does not usually affect classification accuracy much, but can produce different trees.\");\n Instances instances0 = testInstances0.generate(\"\");\n testInstances0.getRelationalClassFormat();\n naiveBayesMultinomialText0.m_lowercaseTokens = true;\n naiveBayesMultinomialText0.buildClassifier(instances0);\n naiveBayesMultinomialText0.toString();\n naiveBayesMultinomialText0.getOptions();\n assertTrue(naiveBayesMultinomialText0.getLowercaseTokens());\n }", "title": "" }, { "docid": "9c77e8eed3911b85cd4e294db12c3ccc", "score": "0.5854686", "text": "@Test\n public void testCalcPerfomanceLevel() {\n \n PerformanceControl instance = new PerformanceControl();\n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n RandomMock testRandom = new RandomMock(1,2);\n \n instance.setRandomGenerator(testRandom); \n \n System.out.println(\"calcPerfomanceLevel\");\n /******************\n * Test case #1\n *****************/\n System.out.println(\"\\tTest #1\"); \n \n double skillLevel = 75;\n double issueCost = 58;\n double equipmentCost = 1000;\n double expResult = 219;\n double result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0);\n\n \n /******************\n * Test case #2\n *****************/\n System.out.println(\"\\tTest #2\"); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n testRandom.setSequence(0,3);\n \n skillLevel = 65;\n issueCost = 75;\n equipmentCost = 300;\n expResult = -999;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0); \n \n /******************\n * Test case #3\n *****************/\n System.out.println(\"\\tTest #3\"); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n testRandom.setSequence(2,1); \n \n skillLevel = 100;\n issueCost = 150;\n equipmentCost = 500;\n expResult = -999;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0); \n \n /******************\n * Test case #4\n *****************/\n System.out.println(\"\\tTest #4\"); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n testRandom.setSequence(0,2);\n \n skillLevel = 50;\n issueCost = 20;\n equipmentCost = 40;\n expResult = -999;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0);\n \n /******************\n * Test case #5\n *****************/\n System.out.println(\"\\tTest #5\"); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n testRandom.setSequence(1,3); \n \n skillLevel = 75;\n issueCost = -25;\n equipmentCost = 750;\n expResult = -999;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0); \n \n /******************\n * Test case #6\n *****************/\n System.out.println(\"\\tTest #6\"); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n testRandom.setSequence(0,1); \n \n skillLevel = 50;\n issueCost = 75;\n equipmentCost = 3000;\n expResult = -999;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0);\n \n /******************\n * Test case #7\n *****************/\n System.out.println(\"\\tTest #7\"); \n\n testRandom.setSequence(2,3); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n skillLevel = 50;\n issueCost = 0;\n equipmentCost = 50;\n expResult = 31.5;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0);\n \n /******************\n * Test case #8\n *****************/\n System.out.println(\"\\tTest #8\"); \n //Assign \"random\" numbers for test #1 (1 number less than actual test numbers)\n testRandom.setSequence(0,0); \n \n skillLevel = 100;\n issueCost = 100;\n equipmentCost = 2000;\n expResult = 1100;\n result = instance.calcPerfomanceLevel(skillLevel, issueCost, equipmentCost);\n assertEquals(expResult, result, 0.0); \n }", "title": "" }, { "docid": "db993196b5bf17f50e8206d612de3b1f", "score": "0.5853931", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n double[][] doubleArray0 = new double[6][2];\n discretize0.m_CutPoints = doubleArray0;\n String[] stringArray0 = new String[7];\n String[] stringArray1 = new String[3];\n stringArray1[0] = \"\";\n stringArray1[1] = \"\";\n stringArray1[2] = \"\";\n discretize0.setOptions(stringArray1);\n stringArray0[0] = \"\";\n stringArray0[3] = \"h0a.w;rJn4ik\";\n stringArray0[4] = \"\";\n discretize0.setBins((-2084322361));\n Filter.runFilter(discretize0, stringArray0);\n discretize0.getBinRangesString(2);\n discretize0.setAttributeIndices(\"A3U>S^ rv&kE0~\");\n discretize0.setFindNumBins(false);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString((-2084322361));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2084322361\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "7cb59c23e45c6c4ed648652756671dfa", "score": "0.5852114", "text": "@Test\n\tpublic void test19() \n\t{\n\t\tint[] dice = {1,1,1,1,1,1,1,1};\n\t\tassertEquals(9000, P1.C_Score(dice, null, 1, 0));\n\t}", "title": "" }, { "docid": "ad4e97c5adce564239ef0138fc44bd32", "score": "0.5849355", "text": "public void testDefaults() {\n final double homo = 0.66;\n final double hetero = 1 - homo;\n assertEquals(0.0003, mParams.genomeSnpRate(true));\n assertEquals(0.00031, mParams.genomeSnpRate(false));\n assertEquals(0.00008, mParams.genomeMnpBaseRate(true));\n assertEquals(0.00002, mParams.genomeMnpBaseRate(false));\n assertEquals(0.00008 / GenomePriorParams.AVERAGE_HETERO_MNP_LENGTH, mParams.genomeMnpEventRate(true));\n assertEquals(0.00002 / GenomePriorParams.AVERAGE_HOMO_MNP_LENGTH, mParams.genomeMnpEventRate(false));\n assertEquals(homo, mParams.genomeIndelEventFraction());\n assertEquals(0.000042 * hetero, mParams.genomeIndelEventRate(true));\n assertEquals(0.000042 * homo, mParams.genomeIndelEventRate(false));\n final double[] indelDist = mParams.genomeIndelDistribution();\n assertEquals(11, indelDist.length);\n assertEquals(0.566, indelDist[0]);\n assertEquals(0.226, indelDist[1]);\n assertEquals(0.083, indelDist[2]);\n assertEquals(0.007, indelDist[10]);\n final double[] mnpDist = mParams.genomeMnpDistribution();\n assertEquals(8, mnpDist.length);\n assertEquals(0.00, mnpDist[0]);\n assertEquals(0.00, mnpDist[1]);\n assertEquals(0.40, mnpDist[2]);\n assertEquals(0.20, mnpDist[3]);\n assertEquals(0.10, mnpDist[4]);\n assertEquals(0.10, mnpDist[5]);\n assertEquals(0.10, mnpDist[6]);\n assertEquals(0.10, mnpDist[7]);\n }", "title": "" }, { "docid": "b98856904117f746443748e540380eaf", "score": "0.58475685", "text": "@Test(timeout = 4000)\n public void test091() throws Throwable {\n int[][] intArray0 = new int[7][7];\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setRanking(intArray0);\n resultMatrixHTML0.getSignificanceCount(97, 97);\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n }", "title": "" }, { "docid": "9e57534a4694ea3ac2bbe94242f6c7cd", "score": "0.58436304", "text": "@Test(timeout = 4000)\n public void test018() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision(1165);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "795d018484bc318f590bdbaa66af5b4d", "score": "0.5842479", "text": "@Test\n\tpublic void test24() \n\t{\n\t\tint[] dice = {2,2,2,-1,-1,-1,-1,-1};\n\t\tassertEquals(500, P1.C_Score(dice, null, 5, 0));\n\t}", "title": "" }, { "docid": "2c95b8cba9141f5085b2f9be2895d131", "score": "0.583424", "text": "@Test(timeout = 4000)\n public void test068() throws Throwable {\n int[][] intArray0 = new int[7][7];\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixHTML0);\n resultMatrixCSV0.setStdDevPrec(0);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setColNameWidth(0);\n resultMatrixSignificance0.setSummary(intArray0, intArray0);\n resultMatrixSignificance0.setSignificanceWidth(2);\n resultMatrixSignificance0.setOptions((String[]) null);\n resultMatrixSignificance0.toStringRanking();\n resultMatrixCSV0.getPrintColNames();\n assertEquals(0, resultMatrixCSV0.getStdDevPrec());\n }", "title": "" }, { "docid": "9d30791efb90f53a575e40953d7f3df6", "score": "0.5823438", "text": "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falsePositiveRate((-2));\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "f318991e4a59397f5795734b61bdbb18", "score": "0.58184105", "text": "public void test() {\t\t\r\n\t\t\r\n\t\t/* \r\n\t\t * On répartit les valeurs de l'échantillon dans k classes distinctes \r\n\t\t * et on calcule les effectifs\r\n\t\t */\r\n\t\t// création des classes\r\n\t\t\r\n\t\tif (largeurClasse != null) {\r\n\t\t\tDouble max = Collections.max(data);\r\n\t\t\tdataSorted = new Ensemble(data, 0.0, max, largeurClasse);\r\n\t\t} else {\r\n\t\t\tdataSorted = new Ensemble(data, nbClasses, gen.getMin(), this.max != null ? this.max : gen.getMax());\t\t\t\r\n\t\t}\r\n\t\tnbClasses = dataSorted.getEffectifsCumules().size();\r\n\t\t\r\n\t\t// on calcule Q\r\n\t\tDouble q = 0.0;\r\n\t\tfor (int i = 0; i < nbClasses; i++) {\r\n\t\t\tDouble valeurTheorique = getEffectifTheorique(dataSorted.getEffectifsCumules().get(i).getBorneDroite(), dataSorted.getNbTotalElements(), true);\r\n\t\t\tDouble difference = dataSorted.getEffectifsCumules().get(i).getEffectif() - valeurTheorique; \r\n\t\t\t//UILogger.log(\"diff = \"+difference);\r\n\t\t\t\r\n\t\t\tdifference = Math.pow(difference, 2);\r\n\t\t\tq += (difference / valeurTheorique);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * précision :\r\n\t\t * 0 => 10%\r\n\t\t * 1 => 5%\r\n\t\t * 2 => 2.5%\r\n\t\t * 3 => 1%\r\n\t\t */\r\n\t\tint precision = 1;\r\n\t\t\r\n\t\t// calcul du degré de liberté\r\n\t\tint mu = nbClasses - 1 - gen.getNbParametre();\r\n\t\tif (q > khiTable[mu][precision]) {\r\n\t\t\tUILogger.log(\"hypothèse réfutée : le générateur ne suit pas la loi \"+gen.getNomLoi()+\"\\n\");\r\n\t\t} else {\r\n\t\t\tUILogger.log(\"hypothèse acceptée : le générateur suit la loi \"+gen.getNomLoi()+\"\\n\");\r\n\t\t}\r\n\t\tUILogger.log(\"Q == \"+q+\"\\nQ théorique == \"+khiTable[mu][precision]+\"\\ndegré de liberté == \"+mu);\r\n\t\t//UILogger.log(\"Q == \"+q);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d1d4085ecd4719f979ccb2c477576158", "score": "0.58161575", "text": "public static void main(String[] args) {\n int com;\n TestHashcode th = new TestHashcode();\n List tl = new ArrayList();\n\n for (com = 600000; com < 600100; com++) {\n tl.add(new BigDecimal(com));\n }\n th.testDispersion(tl);\n th.setFractionUnique(0.8);\n th.testHashCodeUniqueness(tl);\n }", "title": "" }, { "docid": "638fd2a0d0db5b97691996ffc567d7df", "score": "0.5814613", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"R`HUEbtJ*.V\");\n naiveBayesMultinomialText0.m_minWordP = 2278.507535849;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n naiveBayesMultinomialText0.normalizeDocLengthTipText();\n Random.setNextRandom((-165));\n System.setCurrentTimeMillis((-165));\n }", "title": "" }, { "docid": "cdf749b8afa5da57712b84f3b282186b", "score": "0.58127993", "text": "@Test\n\tpublic void RecoveryReallyHurt()\n\t{\n\t\tint maxlpts =30;\n\t\tint cutlpts =20;\n\t\tint result = rb.calculateRecovery(cutlpts,maxlpts);\n\t\tint guessResult = (int)Math.ceil(cutlpts*(1+percent));\n\t\tassertEquals(result,guessResult);\n\t}", "title": "" } ]
b287f0a7106ffc40434cfc93491609db
Turns a block vector into a readable string
[ { "docid": "294cc480f8922035db6e9bcce3c981dc", "score": "0.728455", "text": "public static String blockVectorToString(BlockVector blockVector) {\n return \"(\" + blockVector.getBlockX() + \", \" + blockVector.getBlockY() + \", \" + blockVector.getBlockZ() + \")\";\n }", "title": "" } ]
[ { "docid": "7d8dcef1888a336f564cff560a9b8b02", "score": "0.62242925", "text": "private String vectorToString(final List<String> vector, final String delim) {\r\n final StringBuffer sb = new StringBuffer();\r\n String s = \"\";\r\n for (int i = 0; i < vector.size(); i++) {\r\n sb.append(s).append(vector.get(i));\r\n s = delim;\r\n }\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "f4826202dbe96d16e0db0acf2c7c264e", "score": "0.6171378", "text": "public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(size + \"\\n\");\n for (int i = 0; i < size; ++i) {\n for (int j = 0; j < size; ++j) {\n s.append(String.format(\"%2d \", blocks[i][j]));\n }\n s.append('\\n');\n }\n return s.toString();\n }", "title": "" }, { "docid": "e308d7d8653385de2ff7315a4ce8db1b", "score": "0.5999055", "text": "public static String vectorToString(int[] vector) {\n\t\tString vectorString = \"[ \";\r\n\t\tfor (int i = 0; i < vector.length; i++) {\r\n\t\t\tvectorString += vector[i] + \" \";\r\n\t\t}\r\n\t\tvectorString += \"]\";\r\n\t\treturn vectorString;\r\n\t}", "title": "" }, { "docid": "3d6e4f2a450501a717c399b7642ba3b9", "score": "0.5937142", "text": "public String toString() {\n\treturn toString(new Vector());\n}", "title": "" }, { "docid": "254f771b032e336ad8ac99dd46da701e", "score": "0.5924362", "text": "public abstract String toVEC();", "title": "" }, { "docid": "5809d40f9c5b2bc7fdad2a619539c7da", "score": "0.591166", "text": "public String toString(){\n return toVEC();\n }", "title": "" }, { "docid": "be828d07b59e063a11af2489b04792f1", "score": "0.58857447", "text": "@Override\n\tpublic String toString() {\n StringBuilder s = new StringBuilder();\n s.append(size() + \"\\n\");\n for (int row = 0; row < size(); row++) {\n for (int column = 0; column < size(); column++) {\n s.append(String.format(\"%2d \", blockTiles[row][column]));\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }", "title": "" }, { "docid": "68cf7090adb59a18fa046acbb8f13608", "score": "0.57839406", "text": "public String toString() {\r\n StringBuilder stringBuilder = new StringBuilder();\r\n stringBuilder.append(n);\r\n stringBuilder.append(\"\\n\");\r\n\r\n for (int i = 0; i < n; i++) {\r\n for (int j = 0; j < n; j++) {\r\n stringBuilder.append(String.format(\"%2d \", blocks[i][j]));\r\n }\r\n stringBuilder.append(\"\\n\");\r\n }\r\n\r\n return stringBuilder.toString();\r\n }", "title": "" }, { "docid": "45612233506bca1d04143fb6ba4ca447", "score": "0.5773249", "text": "public static String convVector(CharVector v)\n\t\t{\n\t\tStringBuffer bf=new StringBuffer();\n\t\tfor (int j=0; j<v.size(); j++)\n\t\t\tbf.append(v.get(j));\n\t\treturn bf.toString();\n\t\t}", "title": "" }, { "docid": "a13efb5a5d9c6d2cebf3559eb08b4a05", "score": "0.5753219", "text": "public String bitVecToString(BitSet vec)\n\t{\n\t\treturn PrettyPrinter.bitSetPrettyPrint(vec,symbolNames,\" \",1);\n\t}", "title": "" }, { "docid": "cbb7939366c7c7a5d349678b52340be9", "score": "0.5712129", "text": "public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(N + \"\\n\");\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n s.append(String.format(\"%2d \", blocks[i][j]));\n }\n s.append(\"\\n\");\n }\n\n return s.toString();\n }", "title": "" }, { "docid": "63d8aef607546d588c7457cdb4f8f8a8", "score": "0.56689364", "text": "public String toString(){\n \t StringBuilder s = new StringBuilder();\n \t s.append(N + \"\\n\");\n \t for (int i = 0; i < N; i++) {\n \t for (int j = 0; j < N; j++) {\n \t s.append(String.format(\"%2d \", (int) currentblocks[i*N + j]));\n \t }\n \t s.append(\"\\n\");\n \t }\n \t return s.toString();\n }", "title": "" }, { "docid": "46ee6e81a007a566e7cc3279d0f85284", "score": "0.56419516", "text": "static private String LineDisplay(float[] _vector) {\n String line = new String();\n for (int i=0; i< _vector.length; i++) {\n line += _vector[i]+\" \";\n }\n return line;\n }", "title": "" }, { "docid": "213bc6e6fd82846e1316093d5f584f70", "score": "0.5584726", "text": "public String toString() {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif(board[i][j].getType() == Block.BALLOONSPACE)\n\t\t\t\t\tresult += \"{{ }}\"; //track for balloons\n\t\t\t\tif(board[i][j].getType() == Block.TOWERSPACE)\n\t\t\t\t\tresult += \"| |\";\n\t\t\t}\n\t\t\tresult += \"\\n\";\t\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "aec82328c4defd03bdc28034d6ff0b16", "score": "0.5583236", "text": "private static String booleanBlocksToString(List<List<Boolean>> list) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor(List<Boolean> block : list) {\r\n\t\t\tfor(Boolean b : block) \r\n\t\t\t\tsb.append(b==Boolean.FALSE?'0':'1');\r\n\t\t\tsb.append(' ');\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "8ddc5d03518bcfd5ac8222d7f8aa8b87", "score": "0.5544634", "text": "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"BlockInfo [file=\" + file\n\t\t\t\t+ \", Blk_ID=\" + this.getBlockId() \n\t\t\t\t+ \", Blk_size=\" + this.getNumBytes()\n\t\t\t\t+ \", Blk_genTime=\" + this.getGenerationTime()\n\t\t\t\t+ Arrays.toString(triplets) + \"]\";\n\t}", "title": "" }, { "docid": "acd38645064c6eabbd7dc3e79edc9198", "score": "0.5543146", "text": "public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(dim).append('\\n');\n for (int i = 0; i < dim; i++) {\n for (int j = 0; j < dim; j++) {\n sb.append(this.blocks[i][j]).append(\" \");\n }\n sb.append('\\n');\n }\n return sb.toString();\n }", "title": "" }, { "docid": "30ea182f270eabedbe00661f1ca1de91", "score": "0.5494841", "text": "public String showVetor(int v[]) {\n int i;\n String resp = \"\";\n for (i = 0; i < 3; i++) {\n resp += \"[\" + i + \"]: \" + v[i] + \" \";\n }\n resp += \"... \";\n for (i = v.length-3; i < v.length; i++) {\n resp += \"[\" + i + \"]: \" + v[i] + \" \";\n }\n return resp;\n }", "title": "" }, { "docid": "c3936032b029ce69a2adec15a0fc6a51", "score": "0.5489154", "text": "@Override\n\tpublic String toString() {\n\t\tif (this.tamanho() == 0) {\n\t\t\treturn \"{ }\";\n\t\t}\n\t\t\n\t\tStringBuilder string = new StringBuilder();\n\t\tstring.append(\"{ \");\n\n\t\tfor (int i = 0; i < tamanho() - 1; i++) {\n\t\t\tstring.append(vetor[i]);\n\t\t\tstring.append(\", \");\n\t\t\t\n\t\t}\n\n\t\tstring.append(vetor[tamanho()-1]);\n\t\tstring.append(\" }\");\n\t\t// String saida;\n\t\t// saida=new String(string);\n\t\t// return saida;\n\t\treturn string.toString();\n\t}", "title": "" }, { "docid": "c8328f57a1a61a994010f6832ba8ae77", "score": "0.5481266", "text": "public String toString()\r\n/* 57: */ {\r\n/* 58: */ String str;\r\n/* 59:67 */ if (this.a >= 3)\r\n/* 60: */ {\r\n/* 61:68 */ oa localoa = (oa)BlockType.c.c(e());\r\n/* 62:69 */ str = localoa == null ? \"null\" : localoa.toString();\r\n/* 63:71 */ if (this.c > 1) {\r\n/* 64:72 */ str = this.c + \"*\" + str;\r\n/* 65: */ }\r\n/* 66: */ }\r\n/* 67: */ else\r\n/* 68: */ {\r\n/* 69:75 */ str = Integer.toString(BlockType.a(e()));\r\n/* 70:77 */ if (this.c > 1) {\r\n/* 71:78 */ str = this.c + \"x\" + str;\r\n/* 72: */ }\r\n/* 73: */ }\r\n/* 74:82 */ int i = f();\r\n/* 75:83 */ if (i > 0) {\r\n/* 76:84 */ str = str + \":\" + i;\r\n/* 77: */ }\r\n/* 78:87 */ return str;\r\n/* 79: */ }", "title": "" }, { "docid": "dd56b5cb5f86aeb635bb2201fe79bc24", "score": "0.5479261", "text": "public static String[] vectorToString(Vector v) {\n if (v == null) {\n return null;\n }\n String[] res = new String[v.size()];\n for (int i = 0; i < v.size(); i++) {\n res[i] = v.get(i).toString();\n }\n return res;\n }", "title": "" }, { "docid": "6a1b6ba37ddfd5f210290d97a84dd9fd", "score": "0.5459808", "text": "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(super.toString()).append(\"\\n\");\n\t\tsb.append(\"Vector:\").append(\"\\n\");\n\t\tsb.append(\"x: |\").append(getXVector()).append(\"|\");\n\t\tsb.append(\" y: |\").append(getYVector()).append(\"|\");\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "97a6533a43933e0661f908fa02775eae", "score": "0.54374576", "text": "private static final String toHexString(final byte[] block) {\r\n\r\n\t\tfinal StringBuilder buf = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < block.length; i++)\r\n\t\t\tbyte2hex(block[i], buf);\r\n\t\treturn buf.toString();\r\n\t}", "title": "" }, { "docid": "a142ba570bab285f355660590740f83d", "score": "0.5430971", "text": "static String print(Vector<Tuple> content) {\n String res = \"{\";\n int n = content.size();\n for (int i = 0; i < n; i++) {\n res += content.get(i).print();\n if (i < n - 1)\n res += \",\";\n }\n res += \"}\";\n return res;\n }", "title": "" }, { "docid": "b652b030d3ed928f9287dc75c59c5c29", "score": "0.54286826", "text": "private String resultString(Vector result) {\n StringBuilder sb = new StringBuilder();\n\n double[] res = new double[result.size()];\n for (int i = 0; i < result.size(); i++) {\n res[i] = result.get(i);\n }\n\n for (int i = 0; i < 6; i++) {\n sb.append(\"Theta \" + i + \": \" + res[i] + \"\\n\");\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "132d09f8a0b03361478a07f2052d94a3", "score": "0.5416018", "text": "private String toHexString(byte[] block) {\n StringBuffer buf = new StringBuffer();\n\n int len = block.length;\n\n for (int i = 0; i < len; i++) {\n byte2hex(block[i], buf);\n if (i < len-1) {\n buf.append(\":\");\n }\n }\n return buf.toString();\n }", "title": "" }, { "docid": "bf63b5dd7de2c712148c6df4fe40258b", "score": "0.54128635", "text": "public String toString() {\n int chainSize;\n if (this.last == null) { // if BlockChain is length 1\n chainSize = 1;\n } else {\n chainSize = this.last.value.getNum();\n } // else\n String result = new String(\"\");\n Node<Block> current = this.first;\n for (int i = 0; i < chainSize; i++) {\n result += current.value.toString() + \"\\n\";\n current = current.next;\n } // for\n return result;\n }", "title": "" }, { "docid": "eb8d7f320bf79933cdbfc4161ce7f20b", "score": "0.5410147", "text": "private String toHexString(byte[] block) {\n StringBuffer buf = new StringBuffer();\n int len = block.length;\n for (int i = 0; i < len; i++) {\n byte2hex(block[i], buf);\n if (i < len - 1) {\n buf.append(\":\");\n }\n }\n return buf.toString();\n }", "title": "" }, { "docid": "af778dcd806877557b31a38efbbd660e", "score": "0.5396919", "text": "public String blockToString(Block block) {\r\n \t\tif (block != null) {\r\n \t\t\treturn StringUtils.capitalizeFirstLetter(block.getType().toString().replaceAll(\"_\", \" \"));\r\n \t\t}\r\n \r\n \t\treturn \"\";\r\n \t}", "title": "" }, { "docid": "d7b9dd005d32354f0abd0f25255bfffb", "score": "0.53941065", "text": "public void visualizar(final int longitud, int[] vector) {\n System.out.print(\"v={\");\n for (int i = 0; i < longitud; i++) {\n System.out.print(vector[i] + \",\");\n }\n System.out.println(\"}\");\n }", "title": "" }, { "docid": "7bfcd1384766df3e7f4fe7d71b778992", "score": "0.5392572", "text": "public String toString() {\n/* */ String s;\n/* 81 */ if (this.version >= 3) {\n/* */ \n/* 83 */ ResourceLocation resourcelocation = (ResourceLocation)Block.REGISTRY.getNameForObject(getLayerMaterialBlock());\n/* 84 */ s = (resourcelocation == null) ? \"null\" : resourcelocation.toString();\n/* */ \n/* 86 */ if (this.layerCount > 1)\n/* */ {\n/* 88 */ s = String.valueOf(this.layerCount) + \"*\" + s;\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 93 */ s = Integer.toString(Block.getIdFromBlock(getLayerMaterialBlock()));\n/* */ \n/* 95 */ if (this.layerCount > 1)\n/* */ {\n/* 97 */ s = String.valueOf(this.layerCount) + \"x\" + s;\n/* */ }\n/* */ } \n/* */ \n/* 101 */ int i = getFillBlockMeta();\n/* */ \n/* 103 */ if (i > 0)\n/* */ {\n/* 105 */ s = String.valueOf(s) + \":\" + i;\n/* */ }\n/* */ \n/* 108 */ return s;\n/* */ }", "title": "" }, { "docid": "7986a9c5a1dd1680e3eb319651386221", "score": "0.53685975", "text": "private static String toHexString(byte[] block) {\n StringBuffer buf = new StringBuffer();\n\n int len = block.length;\n\n for (int i = 0; i < len; i++) {\n byte2hex(block[i], buf);\n if (i < len-1) {\n buf.append(\":\");\n }\n }\n return buf.toString();\n }", "title": "" }, { "docid": "f1461db1c6f3a5f604500e7fc107010f", "score": "0.5359006", "text": "public String listToString ( Vector list )\r\n\t{\r\n\t\tEnumeration enum = list.elements();\r\n\t\tif ( ! enum.hasMoreElements() )\r\n\t\t\treturn \"[]\";\r\n\r\n\t\tString buildUp = \"[ \";\r\n\r\n\t\twhile ( enum.hasMoreElements() )\r\n\t\t{\r\n\t\t\tObject item = enum.nextElement();\r\n\r\n\t\t\tif ( item instanceof String )\r\n\t\t\t\tbuildUp += \"\\\"\" + conform ( (String) item ) + \"\\\"\";\r\n\t\t\telse if ( item instanceof Vector )\r\n\t\t\t\tbuildUp += listToString ( (Vector) item );\r\n\t\t\telse if ( item instanceof Dictionary )\r\n\t\t\t\tbuildUp += tableToString ( (Dictionary) item );\r\n\r\n\t\t\tbuildUp += \" \";\r\n\t\t}\r\n\r\n\t\treturn buildUp + \"]\";\r\n\t}", "title": "" }, { "docid": "bb446378e8288732bc381d9757060436", "score": "0.53361976", "text": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"[%s, %s, %s]\", getBlockPosition().getX(), getBlockPosition().getY(), getBlockPosition().getY());\n\t}", "title": "" }, { "docid": "8a4b314d9f5c6ce328769358b04cacb2", "score": "0.53295434", "text": "public float getStrVsBlock(ItemStack paramamj, BlockType paramatr)\r\n/* 70: */ {\r\n/* 71:159 */ return 1.0F;\r\n/* 72: */ }", "title": "" }, { "docid": "ed7997d61995f26e7923fb3e27f0c6ee", "score": "0.53176713", "text": "@Override\n public String toString() {\n var len = getCapacity();\n var buf = new StringBuilder(len);\n streamLayers()//\n .mapToInt(Fluid.Type::toChar)//\n .forEach(buf::appendCodePoint);\n // compute padding first so buf only needs to shift (at most) once\n buf.insert(0, \" \".repeat(len - buf.length()));\n return buf.toString();\n }", "title": "" }, { "docid": "a103e691db08c199e583f572022a1be3", "score": "0.5316248", "text": "public static void printVector()\n\t{\n\t\tIterator vItr = v.iterator(); \n\t\tSystem.out.println(\"\\\\nElements in vector:\"); \n\t\twhile(vItr.hasNext()) \n\t\t\t{\n\t\t\t\tSystem.out.print(vItr.next() + \" \"); \n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "title": "" }, { "docid": "4a007f91436baf9d55de6b36ffe59777", "score": "0.5307336", "text": "private String dumpStructureWBC(int[] structure, boolean[] blockedColumns) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0; i<structure.length; i++) {\n\t\t\tchar currentIdx = '+';\n\t\t\tif (structure[i] == -1) {\n\t\t\t\tif (blockedColumns[i]) {\n\t\t\t\t\tcurrentIdx = 'x';\n\t\t\t\t} else {\n\t\t\t\t\tcurrentIdx = '.';\n\t\t\t\t}\n\t\t\t} else if(structure[i] > i) {\n\t\t\t\tcurrentIdx = '(';\n\t\t\t} else if(structure[i] < i) {\n\t\t\t\tcurrentIdx = ')';\n\t\t\t} else {\n\t\t\t\tthrow new InputMismatchException(\"Input was not an int array representing a structure\");\n\t\t\t}\t\n\t\t\tsb.append(currentIdx);\n\t\t}\t\n\t\tString string = sb.toString();\n\t\treturn string;\n\t}", "title": "" }, { "docid": "fb50b1d2370532238d975f11993754ac", "score": "0.53042287", "text": "public String getVectorString(AttributeOptions[] options){\n\t\tVector<Double> tempVec = getVector(options);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t//for csv\n\t\tsb.append(Double.toString(rating.get(0))).append(\",\");\n\t\t//with a space for R\n//\t\tsb.append(Double.toString(rating.get(0))).append(\" \");\n\t\tfor(Double d: tempVec){\n\t\t\t//for csv\n\t\t\tsb.append(d).append(\",\");\n//\t\t\tsb.append(d).append(\" \");\n\t\t}\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "caf8f97d026b101f08358ee7950508a6", "score": "0.5297203", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAmazonProvidedIpv6CidrBlock() != null)\n sb.append(\"AmazonProvidedIpv6CidrBlock: \").append(getAmazonProvidedIpv6CidrBlock()).append(\",\");\n if (getCidrBlock() != null)\n sb.append(\"CidrBlock: \").append(getCidrBlock()).append(\",\");\n if (getVpcId() != null)\n sb.append(\"VpcId: \").append(getVpcId()).append(\",\");\n if (getIpv6CidrBlockNetworkBorderGroup() != null)\n sb.append(\"Ipv6CidrBlockNetworkBorderGroup: \").append(getIpv6CidrBlockNetworkBorderGroup()).append(\",\");\n if (getIpv6Pool() != null)\n sb.append(\"Ipv6Pool: \").append(getIpv6Pool()).append(\",\");\n if (getIpv6CidrBlock() != null)\n sb.append(\"Ipv6CidrBlock: \").append(getIpv6CidrBlock()).append(\",\");\n if (getIpv4IpamPoolId() != null)\n sb.append(\"Ipv4IpamPoolId: \").append(getIpv4IpamPoolId()).append(\",\");\n if (getIpv4NetmaskLength() != null)\n sb.append(\"Ipv4NetmaskLength: \").append(getIpv4NetmaskLength()).append(\",\");\n if (getIpv6IpamPoolId() != null)\n sb.append(\"Ipv6IpamPoolId: \").append(getIpv6IpamPoolId()).append(\",\");\n if (getIpv6NetmaskLength() != null)\n sb.append(\"Ipv6NetmaskLength: \").append(getIpv6NetmaskLength());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "712e3f36a953d02e72aed2a70bb126ed", "score": "0.52963006", "text": "public static String getVectorString(final double[] theVec,\n final String delimiter) {\n String retString = \"\";\n\n for (int i = 0; i < (theVec.length - 1); i++) {\n retString = retString.concat(\"\" + round(theVec[i], 1) + delimiter);\n }\n\n retString = retString.concat(\"\" + round(theVec[theVec.length - 1], 1));\n\n return retString;\n }", "title": "" }, { "docid": "c314a2cf94deddc7b782cba872f74225", "score": "0.52815336", "text": "@Override\n public String toString() {\n char[] encoded = new char[2 * value.size() + 2];\n encoded[0] = '[';\n int cnt = 1;\n ByteIterator iterator = value.iterator();\n while (iterator.hasNext()) {\n byte b = iterator.nextByte();\n encoded[cnt] = HEX[(b & 0xF0) >>> 4];\n ++cnt;\n encoded[cnt] = HEX[b & 0xF];\n ++cnt;\n }\n encoded[cnt] = ']';\n return new String(encoded);\n }", "title": "" }, { "docid": "aaceb5f8be6b5e2bc9fa8f56ce9c5f06", "score": "0.5270531", "text": "public String getFormattedText(Block block, String item, Player player) {\n\t\tString separator = \" x\";\n\t\tString result = getText() + \" : \" + ChatColor.RED;\n\t\tif (item.isEmpty()) {\n\t\t\treturn result;\n\t\t}\n\n\t\t//define range of zero drop items\n\t\tif (item.equalsIgnoreCase(\"CHORUS_FRUIT\") || item.equalsIgnoreCase(\"STICK\") || item.equalsIgnoreCase(\"MELON_SEEDS\") || item.equalsIgnoreCase(\"PUMPKIN_SEEDS\")) {\n\t\t\tseparator = \" # 0 ->\";\n\n\t\t} else if (item.equalsIgnoreCase(\"APPLE\") || item.contains(\"SAPLING\") || item.contains(\"AZALEA\")) {\n\t\t\tif (block.getType().toString().contains(\"LEAVES\")) {\n\t\t\t\tseparator = \" # 0 ->\";\n\t\t\t}\n\n\t\t} else if (item.equalsIgnoreCase(\"WHEAT_SEEDS\") && block.getType() != Material.WHEAT) {\n\t\t\tseparator = \" # 0 ->\";\n\n\t\t} else if (item.equalsIgnoreCase(\"RED_MUSHROOM\") || item.equalsIgnoreCase(\"BROWN_MUSHROOM\")) {\n\t\t\tif (block.getType().toString().contains(\"MUSHROOM_BLOCK\")) {\n\t\t\t\tseparator = \" # 0 ->\";\n\t\t\t}\n\n\t\t} else if (item.contains(\"_VINES\")) {\n\t\t\tseparator = \" # 0 ->\";\n\t\t}\n\n\t\t// Scoreboard max length is 40, so subtract length of result and separator\n\t\tint maxlen = 40 - result.length() - separator.length();\n\n\t\tString translated = null;\n\t\tif (isSlimefunBlock(block) || isNovaBlock(block)) {\n\t\t\ttranslated = item;\n\t\t} else {\n\t\t\ttranslated = translateItemName(item, player);\n\t\t}\n\n\t\treturn result + translated.substring(0, Math.min(translated.length(), maxlen)) + separator;\n\t}", "title": "" }, { "docid": "662dfa09b842c6dd7e5172c8d32278fe", "score": "0.52440596", "text": "public String toString(){\r\n\t\treturn \"Matriz: \\n\"+this.a.toString()+\"\\nVector: \"+this.b.toString();\r\n\t}", "title": "" }, { "docid": "e2969cc9e4fa08b585fee02dcbe6ea18", "score": "0.5242888", "text": "public String toString() {\n StringBuilder temp = new StringBuilder();\n for (int i = bits.nextSetBit(0); i >= 0; i = bits.nextSetBit(i + 1)) {\n temp.append(Character.toChars(i));\n temp.append('|');\n }\n\n if (temp.length() > 0)\n temp.deleteCharAt(temp.length() - 1);\n\n return temp.toString();\n }", "title": "" }, { "docid": "fdeda7f636bcf0f8966ebe2d1bef3332", "score": "0.52255017", "text": "public String toString() {\n String s = \"\";\n s += \"V = \" + V + NEWLINE;\n s += \"E = \" + E + NEWLINE;\n for (int v = 0; v < V && v < 100; v++) {\n String t = v + \" \" + points[v] + \": \";\n for (Node x = adj[v]; x != null; x = x.next)\n t += x.v + \" \";\n s += t + NEWLINE;\n }\n return s;\n }", "title": "" }, { "docid": "59176918d525ae4c2afb3a5bae12ac75", "score": "0.5224776", "text": "@Override\n\tpublic String toString(){\n\t\treturn getVectorString(allOptions);\n\t}", "title": "" }, { "docid": "77c4566aaf688a7634e145a513b38abc", "score": "0.5222933", "text": "public String toString() {\n return \"f \" + vertexIndexList\n .stream()\n .map(i -> i.toString())\n .collect(Collectors.joining(\" \"));\n }", "title": "" }, { "docid": "665d153ccff0efaca4e5f8d94cba111c", "score": "0.5213666", "text": "public String toString() {\n StringBuilder sb = new StringBuilder(\"\");\n int i;\n for(i = 0; i < 4; i++) {\n byte b = this.rawIp[i];\n sb.append(String.valueOf((b < 0) ? (256 + b) : b));\n sb.append((i != 3) ? \".\" : \"\");\n }\n return(sb.toString());\n }", "title": "" }, { "docid": "c277b1ed90d60460625d758199af3cf0", "score": "0.5210681", "text": "public String toString(){\r\n\t\tStringBuilder s = new StringBuilder();\r\n\t\ts.append(V + \" vertices, \" + E + \" edges \" + NEWLINE);\r\n\t\tfor(int v=0; v<V; v++){\r\n\t\t\ts.append(String.format(\"%d: \", v));\r\n\t\t\tfor(int w : adj[v]){\r\n\t\t\t\ts.append(String.format(\"%d \", w));\r\n\t\t\t}\r\n\t\t\ts.append(NEWLINE);\r\n\t\t}\r\n\t\treturn s.toString();\r\n\t}", "title": "" }, { "docid": "a87c65014d8a20472e2f289105aca0b2", "score": "0.520633", "text": "public String toString() {\n return \"Block[location=\" + location + \",color=\" + color + \"]\";\n }", "title": "" }, { "docid": "414b42c53b146a3dd382e573e69ba53d", "score": "0.5195029", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n\n sb.append(label);\n sb.append(\": \\n\\n\");\n\n for(int i = 0; i < height; i++) {\n sb.append(\" \");\n\n for(int j = 0; j < width; j++) {\n if(this.getEntry(j, i) != 0) {\n sb.append(String.format(ANSI_BLUE + \"%10.3f\" + ANSI_RESET, rowVectors[i].getEntry(j)));\n }\n else {\n sb.append(String.format(\"%10.3f\", rowVectors[i].getEntry(j)));\n }\n sb.append(\" \");\n }\n\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "4bcba6cd63aab95090348fcd35de7d75", "score": "0.51942474", "text": "@Override\r\n\tpublic final String toString(){\r\n\t\treturn \"\" + x + delim + y + delim + size + delim + mass + delim + v.x + delim + v.y + delim + fill.getRed() + delim + fill.getGreen() + delim + fill.getBlue();\r\n\t}", "title": "" }, { "docid": "14ea5513af4731a15087c0da429437e2", "score": "0.5150395", "text": "public String generateBlockRelations() {\n\t\tString out = \"\";\n\t\t\n\t\tArrayList<String> relations = new ArrayList<String>();\n\t\tif(NULL){relations.add(\"\\\"null\\\"\");}\n\t\tif(REG){relations.add(\"\\\"reg\\\"\");}\n\t\tif(COM){relations.add(\"\\\"com\\\"\");}\n\t\tif(RDO){relations.add(\"\\\"rdo\\\"\");}\n\t\tif(CDO){relations.add(\"\\\"cdo\\\"\");}\n\t\tif(RRE){relations.add(\"\\\"rre\\\"\");}\n\t\tif(CRE){relations.add(\"\\\"cre\\\"\");}\n\t\tif(DNC){relations.add(\"\\\"dnc\\\"\");}\n\t\t\n\t\tfor (int i = 0; i < relations.size()-1; i++) {\n\t\t\tout += relations.get(i) + \",\";\n\t\t}\n\t\tout += relations.get(relations.size()-1);\n\t\t\n\t\tSystem.out.println(\"***\\nString out: \" + out);\n\t\t\n\t\treturn out;\n\t}", "title": "" }, { "docid": "0361db299ef6ceef756f3e6cb537c971", "score": "0.5130444", "text": "public String toString() {\n\t\tString out = \"\"; //initialize out string with the header of grid\n\t\tfor(int i = 0; i < this.ROWS; i++) { //iterate through each row\n\t\t\tfor(int j = 0; j < this.COLUMNS; j++) { //iterate through each block in row\n\t\t\t\tif(j == this.COLUMNS - 1) { //if j is at the last column of the grid\n\t\t\t\t\tout += this.grid[i][j].display(); //append block.display() value to out string\n\t\t\t\t\tif(i != this.ROWS - 1) //if i is not at the last row in grid \n\t\t\t\t\t\tout += \"\\n\";\n\t\t\t\t}\n\t\t\t\telse //if j is not at the last column in row\n\t\t\t\t\tout += this.grid[i][j].display(); //append block.display() value\n\t\t\t}\n\t\t}\n\t\treturn out; //return out string to the caller\n\t}", "title": "" }, { "docid": "d16a07fa8ff52e4010383f61b9f4be5d", "score": "0.51220524", "text": "public String toString(){\n\t\tString truckString = \"\";\n\t\t//special assignment of i,j,k value for readability purpose.\n\t\tfor(int i=0; i<length; i++) {\n\t\t\tfor(int j=0; j<width; j++) {\n\t\t\t\tfor(int k=0; k<height; k++) {\n\t\t\t\t\ttruckString += truck[j][k][i]+ \" \";\n\t\t\t\t}\n\t\t\t\ttruckString += \"\\n\";\n\t\t\t}\n\t\t\ttruckString += \"\\n\";\n\t\t}\n\t\treturn truckString;\n\t}", "title": "" }, { "docid": "ae619bd583096067bea2e3f27b1ea0da", "score": "0.5121349", "text": "public String toByteString() {\n\t\tUnsignedByte[] ubs = toByteArray();\n\n//\t\tbyte[] bs = tosignedByteArray();\n\t\t// long address = toLong();\n\t\t//\t\t\n\t\t// StringBuffer sb = new StringBuffer();\n\t\t// for (int i = 40; i>=0; i -=8){\n\t\t// int b = ((int) (address >>> i)) & 0xf;\n\t\t// sb.append(b);\n\t\t// }\n\t\t// //\n\t\t byte[] bs = new byte[6];\n\t\t for (int i = 0; i < 6; i++){\n\t\t bs[i] = (byte)ubs[i].toInt() ;\n\t\t }\n\n//\t\tStringBuffer sb = new StringBuffer();\n//\t\tLog.e(TAG, String.format(\"%c\", ubs[5].toInt()));\n//\t\t return new String(bs);\n//\t\treturn String.format(\"%c%c%c%c%c%c\", ubs[0].toInt(), ubs[1].toInt(),\n//\t\t\t\tubs[2].toInt(), ubs[3].toInt(), ubs[4].toInt(), ubs[5].toInt());\n//\t\tfor (int i = 0; i < 6; i+=2){\n//\t\t\tchar r = (char)ubs[i].toInt();\n//\t\t\tr <<= 8;\n//\t\t\tr += (char) ubs[i+1].toInt();\n//\t\t\tsb.append(String.format(\"%c\", (char)r));\n//\t\t}\n//\t\treturn sb.toString();\n//\t\tStringWriter sw = new StringWriter();\n//\t\tsw.write(bs, 0, bs.length);\n//\t\treturn sw.toString();\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\ttry {\n\t\t\tbaos.write(bs);\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG, \"can't write bytearray\");\n\t\t}\n\t\treturn baos.toString();\n\t}", "title": "" }, { "docid": "ad7f6ee928eb8d4c7aca7724d7c3096d", "score": "0.51207536", "text": "public static String dumpbytes(byte[] b) {\n String s = \"\";\n for (byte bb : b) {\n s += Byte.toUnsignedInt(bb) + \", \";\n }\n return s;\n }", "title": "" }, { "docid": "bea9c30e42cbe4a61267b54346e7151f", "score": "0.5111412", "text": "public String toString(){\n\t\tString red = \"\\u001B[31m\", reset = \"\\u001B[0m\";\n\t\tString t = red+\"<\"+reset;\n\t\tfor(int i = 0; i < this.currentsize; i++)\n\t\t\tt += data[i].toString();\n\t\treturn t+red+\">\"+reset;\n\t}", "title": "" }, { "docid": "bc621e9e38448c55f3cf71ec35d9aac1", "score": "0.51044136", "text": "public String toString(){\n \t\tStringBuilder spb = new StringBuilder();\n \t\tfor(int y = 0 ; y < taillePlateau ; y++){\n \t\t\tspb.append(\"|\");\n \t\t\tfor(int x = 0 ; x < taillePlateau ; x++) {\n \t\t\t\tspb.append(\"|\"+ etat.lecture(x, y));\n \t\t\t}\n \t\t\tspb.append(\"||\");\n \t\t\tspb.append(\"\\n\");\n \t\t}\n \t\treturn spb.toString();\n \t}", "title": "" }, { "docid": "7f30996328b04f3b6fd0b0aa8097b03c", "score": "0.5101994", "text": "public String toString(){\n \n //create beginning of JSON text for ds chain\n String blockChainJson = \"{\\\"ds_chain\\\" :[\";\n \n //add JSON of each block to blockchain JSON\n for (Block block : blocks){\n blockChainJson += block.toString() + \",\";\n }\n \n blockChainJson = blockChainJson.substring(0, blockChainJson.length()-1); //Removes extra comma at the end of the string\n \n //add ending and chain hash to blockchain JSON\n blockChainJson += \"],\\\"chainHash\\\":\\\"\" + chainHash + \"\\\"}\";\n \n return blockChainJson;\n }", "title": "" }, { "docid": "8d94ab3717f5a262eec401865b6e5f51", "score": "0.50892204", "text": "java.util.List<toy.proto.Types.Block> \n getVList();", "title": "" }, { "docid": "cd79008e0ee3efaca9d79f3c6151d221", "score": "0.50765353", "text": "public String toString(){\r\n\t\tString Visual=\"\";\r\n\t\tfor(int i=0;i<maze.length;i++){\r\n\t\t\tfor(int j=0;j<maze[0].length;j++){\r\n\t\t\t\tVisual += maze[i][j];\r\n\t\t\t}\r\n\t\t\tVisual+=\"\\n\";\r\n\t\t}\r\n\t\treturn Visual;\r\n\t}", "title": "" }, { "docid": "b1fcf7f5ba74e45c1d100fbe5921d39f", "score": "0.5072171", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"(\");\n\t\tString separator = \"\";\n\t\tfor (Variable variable : positiveVariables) {\n\t\t\tsb.append(separator);\n\t\t\tseparator = \" V \";\n\t\t\tsb.append(variable.toString());\n\t\t}\n\t\tfor (Variable variable : negatedVariables) {\n\t\t\tsb.append(separator);\n\t\t\tseparator = \" V \";\n\t\t\tsb.append(\"-\" + variable.toString());\n\t\t}\n\t\tsb.append(\")\");\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "67cb80ab8bed783f7d2980c50ea04b34", "score": "0.50609773", "text": "@Override\r\n public String toString()\r\n {\r\n // Declare the variable to return\r\n StringBuilder sb = new StringBuilder(120);\r\n \r\n // Iterate over the data\r\n sb.append(\"-----------\\n\");\r\n for (int i = 0; i < NUM_CELLS; ++i)\r\n {\r\n if (aiMatrix[i] != 0)\r\n {\r\n sb.append(Integer.toString(aiMatrix[i]));\r\n }\r\n else\r\n {\r\n sb.append('_');\r\n }\r\n \r\n if (((i + 1) % 27) == 0)\r\n {\r\n sb.append(\"\\n-----------\\n\");\r\n }\r\n else if (((i + 1) % 9) == 0)\r\n {\r\n sb.append(\"\\n\");\r\n }\r\n else if (((i + 1) % 3) == 0)\r\n {\r\n sb.append(\"|\");\r\n }\r\n }\r\n \r\n // Return the string\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "1aabd9e00d1e3cce28ab5be3e61a940f", "score": "0.50472164", "text": "StringBuffer formatTokenBlock(final StringBuffer sb,\n \t\t\t\t final Symbol [] syms,\n \t\t\t\t final int blockSize)\n {\n \t// StringBuffer sb = new StringBuffer(syms.length);\n \n \tfor (int i = 0; i < syms.length; i++)\n \t{\n \t sb.append(syms[i].getToken());\n \t if ((i > 0) && ((i + 1) % blockSize == 0))\n \t\tsb.append(' ');\n \t}\n \treturn sb;\n }", "title": "" }, { "docid": "3cde232b3e3826d13041eb97cab57100", "score": "0.5044805", "text": "public String toString(){\r\n\t\tString stringa=\"Contenuto del vettore\";\r\n\t\tfor(int i=0;i<this.size();i++){\r\n\t\t\tstringa= stringa+ \" \" + this.get(i);\r\n\t\t}\r\n\t\treturn stringa;\r\n\t}", "title": "" }, { "docid": "fe95c2fb0b9dc9f5f01d9d6e27553981", "score": "0.50232625", "text": "private String createRasterString() {\n String rasterString = \"\";\n String line = \"\";\n for (int i = 0; i < size; i++) {\n line += \"------\";\n }\n line += \"-\";\n for (int i = 0; i < size; i++) {\n rasterString += \"|\";\n for (int j = 0; j < size; j++) {\n rasterString += \" \" + raster[i][j] + \" |\";\n }\n rasterString += \"\\n\" + line + \"\\n\";\n }\n return line + \"\\n\" + rasterString;\n }", "title": "" }, { "docid": "79c5b417fc00949bd0e2a80f52077394", "score": "0.5014124", "text": "public String toString() {\n\t\tString x = \"\";\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tif (a == 0 || a == height-1) {\n\t\t\t\t\tif (i == 0 || i == width-1) {\n\t\t\t\t\t\tx += \"+ \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tx += \"- \";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == width-1) {\n\t\t\t\t\t\tx += \"| \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tx += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tx += \"\\n\";\n\t\t}\n\t\t\n\t\treturn x;\n\t}", "title": "" }, { "docid": "6acc2efb9a60e978b391d1a73023e502", "score": "0.50034416", "text": "public static String concatVector(Vector v, String separator) {\n\t\tStringBuffer assembler = new StringBuffer();\n\t\tfor (int i = 0; i < v.size(); i++)\n\t\t\tif (v.get(i) instanceof String) assembler.append(((i > 0) ? separator : \"\") + ((String) v.get(i)));\n\t\treturn assembler.toString();\n\t}", "title": "" }, { "docid": "b7deed3776a97b850074cdaf1e1ef25c", "score": "0.49895346", "text": "public String toVerboseString() {\n byte bitmask = f3.getValue();\n\n return \"1st vertex ID: \" + f0\n + \", 2nd vertex ID: \" + f1\n + \", 3rd vertex ID: \" + f2\n + \", edge directions: \" + f0 + maskToString(bitmask, 4) + f1\n + \", \" + f0 + maskToString(bitmask, 2) + f2\n + \", \" + f1 + maskToString(bitmask, 0) + f2;\n }", "title": "" }, { "docid": "5362095f58c852ecb0b54a2265b3ad0d", "score": "0.49813762", "text": "@Override\n public void writeString(byte[] v) throws IOException {\n beginElement();\n final int length = v.length;\n writeVInt(length);\n output.write(v, 0, length);\n finishElement();\n }", "title": "" }, { "docid": "338ca265ec6747a936ca04664fa86fdd", "score": "0.49809322", "text": "private static void printArray(double[] vector) {\n\t\tSystem.out.print(\"<\");\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\", \");\n\t\t\t}\n\t\t\tSystem.out.print(vector[i]);\n\t\t}\n\t\tSystem.out.println(\">\");\n\t}", "title": "" }, { "docid": "3ebec8aa73df887c80e882fafb50af3b", "score": "0.4980764", "text": "public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(V + \" \" + E + NEWLINE);\n for (int v = 0; v < V; v++) {\n s.append(v + \": \");\n for (Edge e : adj[v]) {\n s.append(e + \" \");\n }\n s.append(NEWLINE);\n }\n return s.toString();\n }", "title": "" }, { "docid": "952a3d1a8011a5bc33e9ebfe39a954d5", "score": "0.49807495", "text": "private String bytesToString(byte[] subject, int characterWidth) {\n\t\tIntHolder codePoints = new IntHolder(subject.length / characterWidth);\n\t\tbyte[] characterBuffer = new byte[characterWidth];\n\t\tfor(int i = 0; i < subject.length; i += characterWidth) {\n\t\t\tfor(int j = 0; j < characterWidth; j++) {\n\t\t\t\tcharacterBuffer[j] = subject[i+j];\n\t\t\t}\n\t\t\tcodePoints.add(arrayToInt(characterBuffer));\n\t\t}\n\t\tString result = new String(codePoints.toArray(), 0, codePoints.size());\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ca890dc998f31df39f06b6358415fcfa", "score": "0.49751905", "text": "toy.proto.Types.Block getV(int index);", "title": "" }, { "docid": "62d24656849b6609dd3715001d974419", "score": "0.49743092", "text": "public String toString() {\n\t\tVector<NFragment> copy = (Vector<NFragment>) ngram.clone();\n\t\t/*for (int i = ngram.size() - 1; i > 0; i--) {\n\t\t\tcopy.add(ngram.get(i));\n\t\t}*/\n\t\tCollections.sort(copy, new Comparator<NFragment>() {\n\t\t\t@Override\n\t\t\tpublic int compare(NFragment fragment, NFragment other) {\n\t\t\t\treturn -fragment.TwoCompareTo(other);\n\t\t\t}\n\t\t});\n\n\t\treturn copy.toString();\n\t}", "title": "" }, { "docid": "2e70f77666fe506aaf9b72f2686ec170", "score": "0.49688554", "text": "@AutoEscape\n\tpublic String getVector_Data();", "title": "" }, { "docid": "c8e03d8776868770b2dadeaf511a8bf4", "score": "0.4964377", "text": "public String toStlString() {\n return \"vertex \" + this.pos.toStlString();\n }", "title": "" }, { "docid": "d7d508d039c4dbfb88778edf779841ef", "score": "0.49595395", "text": "public static String toHexString(byte[] block) {\n StringBuffer buf = new StringBuffer();\n int len = block.length;\n for (int i = 0; i < len; i++) {\n byte2hex(block[i], buf);\n if (i < len - 1) {\n buf.append(\":\");\n }\n }\n return buf.toString();\n }", "title": "" }, { "docid": "5a224e7d209a918cdafc9ab690a22ec6", "score": "0.49574167", "text": "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "title": "" }, { "docid": "aa77ab4fbf68019335d09c3c837fb1c2", "score": "0.49562", "text": "public String toString(){\n\t\tString stringObject= \"\\n\\tName: \"+crop+\"\\n\\tYield: \"+yield+\"\\n\\tPrice: $\"+price;\n\t\treturn stringObject;\n\t}", "title": "" }, { "docid": "0929f6b4b4c7519887abbafc0f7e80f4", "score": "0.49518555", "text": "public String toString() {\n \t// create string builder\n \tStringBuilder sb = new StringBuilder();\n \t\n \t// add opening [\n \tsb.append('[');\n \t\n \t// add capacity\n \tsb.append(\"capacity: \");\n \tsb.append(capacity());\n \t\n \t// add size\n \tsb.append(\", size: \");\n \tsb.append(size());\n\n\n \t// add opening [ for values\n \tsb.append(\", values: [\");\n\n \t// appends values in pop order\n \tfor (int i = size()-1; i >= 0; i--) {\n \t\tsb.append(items[i]);\n \t\tif (i > 0) { // more chars to print\n \t\t\tsb.append(\", \");\n \t\t}\n \t}\n \t\n \t// add closing ] for values\n \tsb.append(\"]\");\n\n \t// add closing ] for queue\n \tsb.append(']');\n\n \t// return builder as string\n \treturn sb.toString();\n }", "title": "" }, { "docid": "9c574c3fea4c03f7f892216396e1b3fd", "score": "0.49451658", "text": "public String toString(){\n int[][] extract = mapPiece.get(kind+orientation);\n String str = kind+orientation +\" -> \" + color + \"\\n- - - - - - - - - - \\n\";\n\n for (int i=0;i<size;i++) {\n str += \"[\";\n for(int j=0;j<size;j++){\n str+= extract[i][j]+ \" \";\n }\n str+=\"]\\n\";\n }\n return str+\"- - - - - - - - -\";\n }", "title": "" }, { "docid": "1e291fe2ec6720f809357914c72dac9a", "score": "0.4945106", "text": "public String toString() {\n StringBuilder s = new StringBuilder();\n int N = size();\n s.append(N + \"\\n\");\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n s.append(String.format(\"%2d \", tileAt(i, j)));\n }\n s.append(\"\\n\");\n }\n s.append(\"\\n\");\n return s.toString();\n }", "title": "" }, { "docid": "b4543e64768c509f602c691b6a84a850", "score": "0.49419504", "text": "private String byteToBynary(byte b) {\n\t\tStringBuilder binary = new StringBuilder();\n\t\t// for (byte b : bytes)\n\t\t// {\n\t\tint val = b;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tbinary.append((val & 128) == 0 ? 0 : 1);\n\t\t\tval <<= 1;\n\t\t}\n\t\tbinary.append(' ');\n\t\t// }\n\t\tSystem.out.println(\"'\" + b + \"' to binary: \" + binary);\n\t\treturn binary.toString();\n\t}", "title": "" }, { "docid": "e194bab38e68fedca47af25b265aadbf", "score": "0.49369362", "text": "public String toString() {\n\t\tString result=\"\";\n\t\tfor (int i=0;i<list.size();i++)\n\t\t\tif (i==0)\n\t\t\t\tresult += list.get(0)+\" \";\n\t\t\telse if (i==1)\n\t\t\t\tresult+=\"+\"+list.get(1)+\"x \";\n\t\t\telse\n\t\t\t\tresult+=(\"+\"+list.get(i)+\"x^\"+i+\" \");\n\t\treturn result;\n\t\t// FIXME\n\t}", "title": "" }, { "docid": "f32d1d36d458c9df146669dccb9894b8", "score": "0.4933198", "text": "@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"[\");\n for (int i = 0; i < this.curSize; i++) {\n stringBuilder.append(this.array[i]);\n if (i != this.curSize - 1)\n stringBuilder.append(\", \");\n }\n stringBuilder.append(\"]\");\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "963dfa38a07fff9f202bca69d71ba451", "score": "0.49291173", "text": "public String toString(){ // I modified this so that pieces are easier to look at\n\t\tchar[] letters = {' ','C','D','H','S'};\n\t\tString output = \"\";\n\t\toutput += getSide(NORTH)>0?\" \" + letters[getSide(NORTH)] + \" \":\" \";\n\t\toutput += getSide(NORTH)>0?\"\\n � � � \\n\":\"\\n � \" + letters[getSide(NORTH)*-1] + \" � \\n\";\n\t\toutput += getSide(WEST)>0? letters[getSide(WEST)] + \" � � \":\" \" + letters[getSide(WEST)*-1] + \" � \";\n\t\toutput += getSide(EAST)>0?\"� \" + letters[getSide(EAST)]: letters[getSide(EAST)*-1] + \" \";\n\t\toutput += getSide(SOUTH)>0?\"\\n � � � \\n\":\"\\n � \" + letters[getSide(SOUTH)*-1] + \" � \\n\";\n\t\toutput += getSide(SOUTH)>0?\" \" + letters[getSide(SOUTH)] + \" \":\" \";\n\t\treturn output;\n\t}", "title": "" }, { "docid": "4644508949e117dc0e42f7a2e5783a5f", "score": "0.49280128", "text": "public String toString() {\n/* 294 */ StringBuilder toString = (new StringBuilder(\"ItemStack{\")).append(getType().name()).append(\" x \").append(getAmount());\n/* 295 */ if (hasItemMeta()) {\n/* 296 */ toString.append(\", \").append(getItemMeta());\n/* */ }\n/* 298 */ return toString.append('}').toString();\n/* */ }", "title": "" }, { "docid": "90f0599f46a9136da5789b84957e2c9a", "score": "0.49274418", "text": "public String toString(){\n\t\tString saida = \"\";\n\t\tfor(int i=0; i<this.size; i++){\n\t\t\tsaida += this.elements[i] + \" \";\n\t\t}\n\t\treturn saida;\n\t}", "title": "" }, { "docid": "06519ebdd9d95e4afe4e8ab95d2c78df", "score": "0.49271214", "text": "public CharSequence getStringValueCS() {\n if (node instanceof List) {\n // This wrapper is mapped to a list of adjacent text nodes\n List nodes = (List) node;\n FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C64);\n for (Object node1 : nodes) {\n Text o = (Text) node1;\n fsb.append(getStringValue(o));\n }\n return fsb;\n } else {\n return getStringValue(node);\n }\n }", "title": "" }, { "docid": "25f989edf7febaaebfff4696335af280", "score": "0.4920155", "text": "public String toString() {\n String s = \"\";\n s += ver + \" vertices, \" + edg + \" edges\" + '\\n';\n for (int v = 0; v < ver; v++) {\n s += vertexes[v] + \": \";\n for (int w : adj[v]) {\n s += vertexes[w] + \" \";\n }\n s += '\\n';\n }\n return s;\n }", "title": "" }, { "docid": "215da9cd9d4d1cbc576e698d1a7b1bf1", "score": "0.49192765", "text": "public String doString( Object current )\n{\n String retval = \"\";\n\n if( current instanceof ContainerState )\n {\n Object contents = ((ContainerState) current).getContents();\n \n \n if (contents instanceof MultiState )\n {\n MultiState me = (MultiState) contents;\n for(int i=0; i < me.size() ; i++)\n {\n retval += ( i + \" \" + doString(me.get(i)) + \"\\n\");\n }\n // chop off extra \"\\n\" \n retval = retval.substring(0, retval.length()-2);\n }\n else if(contents instanceof Object[] || contents instanceof double[] || contents instanceof Double[] \n || contents instanceof Integer[] || contents instanceof int[] )\n retval = ArrayTools.arrayToString(contents, \"\",\" \", \"\") ;\n else\n retval = \"Unknown type: \" + contents.toString() ;\n }\n else if(current instanceof Object[] )\n retval = ArrayTools.arrayToString(current, \"\",\" \", \"\") ;\n else if(current instanceof double[] )\n {\n double[] dbl = (double[]) current;\n for(int i=0; i<dbl.length; i++)\n retval += dbl[i] + \" \";\n }\n else retval = current.toString();\n\n return retval;\n\n}", "title": "" }, { "docid": "4b0a01df800a3c31072059ddd4dc0c65", "score": "0.49157584", "text": "private String text(final boolean complete, final boolean close) {\n StringBuilder buffer = new StringBuilder();\n buffer.append(startDelimiter).append(type).append(name);\n String params = paramsToString(this.params);\n if (params.length() > 0) {\n buffer.append(\" \").append(params);\n }\n String hash = hashToString();\n if (hash.length() > 0) {\n buffer.append(\" \").append(hash);\n }\n if (blockParams.size() > 0) {\n buffer.append(\" as |\").append(paramsToString(this.blockParams)).append(\"|\");\n }\n buffer.append(endDelimiter);\n if (complete) {\n buffer.append(body == null ? \"\" : body.text());\n if (inverse != EMPTY) {\n if (inverse instanceof Block) {\n String elseif = ((Block) inverse).text(true, false);\n buffer.append(elseif);\n } else {\n buffer.append(startDelimiter).append(inverseLabel).append(endDelimiter)\n .append(inverse.text());\n }\n }\n } else {\n buffer.append(\"\\n...\\n\");\n }\n if (close) {\n buffer.append(startDelimiter);\n if (type.equals(\"{{\")) {\n buffer.append(\"{{\");\n }\n buffer.append('/').append(name).append(endDelimiter);\n }\n return buffer.toString();\n }", "title": "" }, { "docid": "4c7672b28ed24a80e193d384f244ac70", "score": "0.4912189", "text": "@Override\n public String toString() {\n String sparseVectorString = \"\";\n Iterator<SparseNumericElement> it = iterator();\n SparseNumericElement x;\n while (it.hasNext()) {\n x = it.next();\n sparseVectorString += \"(index \" + x.getIndex() + \", value \" + x.getValue() + \")\\n\";\n }\n return sparseVectorString;\n }", "title": "" }, { "docid": "59567a1887af91455ac585f851a9a4bd", "score": "0.49025416", "text": "public String toObjTextureString() {\n return \"vt \" + getFloatU() + \" \" + getFloatV();\n }", "title": "" }, { "docid": "c6ebc14ff6e2df9f029cad2a062ecbd4", "score": "0.48862368", "text": "public String toString() {\r\n\t\tStringBuilder s = new StringBuilder();\r\n\t\ts.append(V + \" vertices, \" + E + \" edges \" + \"\\n\");\r\n\t\tfor (int v = 0; v < V; v++) {\r\n\t\t\ts.append(v + \": \");\r\n\t\t\tfor (int w : adj[v]) {\r\n\t\t\t\ts.append(w + \" \");\r\n\t\t\t}\r\n\t\t\ts.append(\"\\n\");\r\n\t\t}\r\n\t\treturn s.toString();\r\n\t}", "title": "" }, { "docid": "3a3ac9f198fec47e918db4551e1bbe97", "score": "0.4873687", "text": "@Override public String toString()\n{\n StringBuffer buf = new StringBuffer();\n buf.append(\"{\");\n buf.append(start_position.toString());\n if (end_position != null) {\n buf.append(\"-\");\n buf.append(end_position.toString());\n }\n else {\n buf.append(\"@\");\n buf.append(region_size);\n }\n if (includes_eol) buf.append(\"&\");\n buf.append(\"}\");\n\n return buf.toString();\n}", "title": "" }, { "docid": "c228a152f9524148cc52f511277d84ee", "score": "0.4873113", "text": "private String cvtToString(List<Position<String>> positions) {\n return positions.stream().map(Position::getElement).collect(Collectors.joining(\" \"));\n }", "title": "" } ]
20a7fe28942a96dfcf4b10e1ac92e52a
Get Name. Alphanumeric identifier of the entity
[ { "docid": "1ab1288c7ef7e817ff2cf7e6989720e1", "score": "0.0", "text": "public String getName() \n{\nreturn (String)get_Value(\"Name\");\n}", "title": "" } ]
[ { "docid": "6ff287a555c18e86ebe9a141b83e2829", "score": "0.7945959", "text": "public String getName() {\n\t\treturn new String(\"E\") + id;\n\t}", "title": "" }, { "docid": "14d9f2e954c020ffb2385e7000f927f1", "score": "0.7864825", "text": "String getEntityName();", "title": "" }, { "docid": "93ce28e22bad14387f7158730be5e54f", "score": "0.7726674", "text": "public final String getName() {\n return identifier.getName();\n }", "title": "" }, { "docid": "06f72c9305e22dccb0e921eccc7a136e", "score": "0.76978284", "text": "String getEntityName(String entityId);", "title": "" }, { "docid": "9a7af350f94c8dcc83a9faa73dccaf82", "score": "0.7670288", "text": "EntityName getEntityName();", "title": "" }, { "docid": "e1f1130b8f4a5a46a87a7461450c4e3b", "score": "0.7604075", "text": "public final String getName() {\n return Entities.Names.getName(entityClass);\n }", "title": "" }, { "docid": "4fa42f7485e358506b4749abc5dcaf7d", "score": "0.7552318", "text": "public java.lang.String entityName(){\n return null; //TODO codavaj!!\n }", "title": "" }, { "docid": "fcaa2af1096b7bbac465a7d65f57517b", "score": "0.7536098", "text": "public String getEntityName() {\n\t\treturn entityKey.name();\n\t}", "title": "" }, { "docid": "638f86ca2b285a5cb1bb855585bd51d4", "score": "0.74900323", "text": "public String getName() {\n\t\treturn name == null ? id : name;\n\t}", "title": "" }, { "docid": "a1e4e41215731474f390395c378d282e", "score": "0.7473321", "text": "@DISPID(21) //= 0x15. The runtime will prefer the VTID if present\n @VTID(28)\n String entityName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.7436644", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.74362326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6220f92c45c1bf88686789c03e3a95f1", "score": "0.7406088", "text": "public Object entityName() {\n return this.entityName;\n }", "title": "" } ]
4987d2ea1e85c0ab449735750e295d34
registrar la baja de las evidencias que recibe como parametro.
[ { "docid": "e1a633ff63f5755c6d80f2e1dcfe091f", "score": "0.65865993", "text": "void registrarBajaEvidencia(List<EvidenciaDTO> evidenciasDto) throws NSJPNegocioException;", "title": "" } ]
[ { "docid": "00828655bb54deeb8fcd521f7fc13192", "score": "0.59291416", "text": "public void entregarPedido() {\n\t\t//mostrar el precio del pedido\n\t\t//long id = vista.getPedido().getId()\n\t\tPedido pedido= preparacion.getPedido(1);//1 serie el id \n\t\t//marcar pedido como pendiente\n\t\tpreparacion.givePedido(pedido);\n\t}", "title": "" }, { "docid": "e89fb48e252d694f4a60981cfbb1426d", "score": "0.5863758", "text": "public void adicionaVendedorLista() throws ProjetoException {\n\t\tif (vendedorSelect.getId()==null) {\n\t\n\t\t\tFacesMessage msg = null;\n\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\"Digite um Vendedor válido!\", \"\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\n\t\t\n\t\tvendedorSelect = vendedorService.findOne(vendedorSelect.getId());\n\t\tthis.loteBean.getListaDeVendedores().add(this.vendedorSelect);\n\t\tcalculaPercVendedor();\t\n\t\tvendedorSelect = new VendedorBean();\n\t\t}\n\t\t//animalSelect = null;\n\t}", "title": "" }, { "docid": "4f9bce42f98534dd853bb04e1539c814", "score": "0.58243024", "text": "public void registrarAvion() {\n try {\n con = new Conexion();\n\n final String SQL = \"Insert Into avion(id_aerolinea, modelo, capacidad, disponibilidad) values(?, ?, ?, ?)\";\n PreparedStatement sentencia = con.obtenerConexion().prepareStatement(SQL);\n\n sentencia.setInt(1, id_aerolinea);\n sentencia.setString(2, modelo);\n sentencia.setInt(3, capacidad);\n sentencia.setString(4, disponibilidad);\n sentencia.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "fce42ca1f74525c43ed8e98f7566ce96", "score": "0.5820484", "text": "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoFormaPagoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoFormaPagoDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "5c9e23a6bb3b585173e6d698d339c1b7", "score": "0.58132625", "text": "private static void registrarAuditoriaDetallesTipoFormaPago(Connexion connexion,TipoFormaPago tipoformapago)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_empresa().equals(tipoformapago.getTipoFormaPagoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_sucursal().equals(tipoformapago.getTipoFormaPagoOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_modulo().equals(tipoformapago.getTipoFormaPagoOriginal().getid_modulo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_modulo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_modulo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_modulo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_modulo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDMODULO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_tipo_grupo_forma_pago().equals(tipoformapago.getTipoFormaPagoOriginal().getid_tipo_grupo_forma_pago()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_tipo_grupo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_tipo_grupo_forma_pago().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_tipo_grupo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_tipo_grupo_forma_pago().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDTIPOGRUPOFORMAPAGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getnombre().equals(tipoformapago.getTipoFormaPagoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getsiglas().equals(tipoformapago.getTipoFormaPagoOriginal().getsiglas()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getsiglas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getsiglas();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getsiglas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getsiglas() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.SIGLAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getcon_detalle().equals(tipoformapago.getTipoFormaPagoOriginal().getcon_detalle()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getcon_detalle()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getcon_detalle().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getcon_detalle()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getcon_detalle().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.CONDETALLE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getcon_cuotas().equals(tipoformapago.getTipoFormaPagoOriginal().getcon_cuotas()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getcon_cuotas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getcon_cuotas().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getcon_cuotas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getcon_cuotas().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.CONCUOTAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_tipo_transaccion_modulo().equals(tipoformapago.getTipoFormaPagoOriginal().getid_tipo_transaccion_modulo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_tipo_transaccion_modulo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_tipo_transaccion_modulo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_tipo_transaccion_modulo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_tipo_transaccion_modulo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDTIPOTRANSACCIONMODULO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_transaccion().equals(tipoformapago.getTipoFormaPagoOriginal().getid_transaccion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_transaccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_transaccion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_transaccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_transaccion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDTRANSACCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getid_cuenta_contable().equals(tipoformapago.getTipoFormaPagoOriginal().getid_cuenta_contable()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getid_cuenta_contable()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getid_cuenta_contable().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getid_cuenta_contable()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getid_cuenta_contable().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.IDCUENTACONTABLE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoformapago.getIsNew()||!tipoformapago.getdescripcion().equals(tipoformapago.getTipoFormaPagoOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoformapago.getTipoFormaPagoOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoformapago.getTipoFormaPagoOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoformapago.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoformapago.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoFormaPagoConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "title": "" }, { "docid": "338eec776c1d929f1ea0b14c723120d2", "score": "0.5790934", "text": "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DetalleNotaCreditoPuntoVentaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,DetalleNotaCreditoPuntoVentaDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "c0fc37b0b53b5fac32b7748fd4f305db", "score": "0.57712823", "text": "public void carregarVendedores(){\n VendedorController vendedorController= new VendedorController();\n List<Vendedor> listaVendedor = vendedorController.consultarVendedor(\"\", config.getEmpresa().getIdempresa());\n if (listaVendedor!=null){\n for(int i=0;i<listaVendedor.size();i++){\n vendedorjComboBox.addItem(listaVendedor.get(i));\n }\n }\n }", "title": "" }, { "docid": "c7d77d158390480715994d0797086e1f", "score": "0.5759711", "text": "private static void registrarAuditoriaDetallesDetalleNotaCreditoPuntoVenta(Connexion connexion,DetalleNotaCreditoPuntoVenta detallenotacreditopuntoventa)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getid_factura_punto_venta().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_factura_punto_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_factura_punto_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_factura_punto_venta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getid_factura_punto_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getid_factura_punto_venta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IDNOTACREDITOPUNTOVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getid_empresa().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getid_sucursal().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getid_bodega().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_bodega()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_bodega()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_bodega().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getid_bodega()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getid_bodega().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IDBODEGA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getid_producto().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_producto()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_producto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_producto().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getid_producto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getid_producto().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IDPRODUCTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getid_unidad().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_unidad()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_unidad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getid_unidad().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getid_unidad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getid_unidad().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IDUNIDAD,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getserie().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getserie()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getserie()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getserie();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getserie()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getserie() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.SERIE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getcantidad().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getcantidad()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getcantidad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getcantidad().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getcantidad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getcantidad().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.CANTIDAD,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getprecio().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getprecio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getprecio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getprecio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getprecio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getprecio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.PRECIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getdescuento().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescuento()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescuento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescuento().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getdescuento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getdescuento().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.DESCUENTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getdescuento_valor().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescuento_valor()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescuento_valor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescuento_valor().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getdescuento_valor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getdescuento_valor().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.DESCUENTOVALOR,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getiva().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getiva()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getiva()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getiva().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getiva()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getiva().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IVA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getiva_valor().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getiva_valor()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getiva_valor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getiva_valor().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getiva_valor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getiva_valor().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.IVAVALOR,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getice().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getice()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getice()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getice().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getice()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getice().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.ICE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getice_valor().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getice_valor()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getice_valor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getice_valor().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getice_valor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getice_valor().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.ICEVALOR,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getsub_total().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getsub_total()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getsub_total()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getsub_total().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getsub_total()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getsub_total().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.SUBTOTAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.gettotal().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().gettotal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().gettotal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().gettotal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.gettotal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.gettotal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.TOTAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(detallenotacreditopuntoventa.getIsNew()||!detallenotacreditopuntoventa.getdescripcion().equals(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=detallenotacreditopuntoventa.getDetalleNotaCreditoPuntoVentaOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(detallenotacreditopuntoventa.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=detallenotacreditopuntoventa.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DetalleNotaCreditoPuntoVentaConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "title": "" }, { "docid": "073b6f1748ebda79a12b94585f978c6e", "score": "0.57579625", "text": "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoRiesgoClienteConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoRiesgoClienteDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "08a903a192fa1d165fd1fe08d724b116", "score": "0.57561666", "text": "@Override\n public void agregarPaquete(Envio envio, Paquete paquete) {\n }", "title": "" }, { "docid": "affdd69800000d8a393fea20ca8d19fa", "score": "0.5755909", "text": "void ingresarVehiculoParqueadero (VehiculoEntity vehiculoEntity);", "title": "" }, { "docid": "fcbb886fcbed3bb8420f5ff95e1df911", "score": "0.5741651", "text": "Pedido registrar(PedidoNuevo pedido);", "title": "" }, { "docid": "dd2731b035a83c53329e571a8d73b063", "score": "0.57389075", "text": "public void Registrar(){\t\t\t\t\r\n\t\t\r\n\t\tEntidad en=entidadejb.buscar(idEntidad);\r\n\t\tPagoServicio p= new PagoServicio();\r\n\t\tp.setCodigoFactura( idfactura);\r\n\t\tp.setEntidad(en);\r\n\t\tp.setMontoApagar(valor);\r\n\t\t//para sacar la sucursal de donde nos loguiamos\r\n\t\tString cedula=login.getCuentaempleado().getCedula();\t\r\n\t\tSucursal sc=sucursalejb.buscarSucursal(cedula);\r\n\t\tp.setSucursal(sc);\r\n\t\t\r\n\t\t//verificamos que el codigo que nos ingresan por la vista del cliente exista dependiendo de la entidad\r\n\t\tboolean verificaccion=ejb.verificarFactura(idfactura, en.getNombre());\r\n\r\n\t\tif(verificaccion==true){\r\n\t\t\t\r\n\t\t\tboolean verificador=ejb.vereficardoblePago(idfactura,idEntidad);\r\n\t\t\tif(verificador==false){\r\n\t\t\tejb.registrarPagos(p);\r\n\t\t\tidfactura=0;\r\n\t\t\tvalor=0;\r\n\t\t\t\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\tnull,\r\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\r\n\t\t\t\t\t\t\t\"el servicio lo emos registrado con exito\", null));\r\n\t\t\t}else{\r\n\t\t\t\t\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\r\n\t\t\t\t\t\t\t\t\"el servicio ya esta pago\", null));\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}else{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\tnull,\r\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_ERROR,\r\n\t\t\t\t\t\t\t\"no existe\", null));\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f9282e63649549b07f9ae24d8e25b514", "score": "0.57342154", "text": "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoInstruccionConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoInstruccionDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "dbc352315a9c946ab8100c6f456521d9", "score": "0.57321054", "text": "private static void addVeiculos(Connection con, int cliente_id,\n\t\t\tDate aquisicao) throws SQLException {\n\t\tString insertSQL = \"INSERT INTO veiculos(cliente_id, aquisicao) VALUES (?,?)\";\n\n\t\tPreparedStatement preparedStatement = con.prepareStatement(insertSQL);\n\t\tpreparedStatement.setInt(1, cliente_id);\n\t\tpreparedStatement.setDate(2,new java.sql.Date(aquisicao.getTime()));\n\t\tpreparedStatement.executeUpdate();\n\t}", "title": "" }, { "docid": "d6df440be76ca40a47e6bd7fa933fbd2", "score": "0.56891316", "text": "private static void registrarAuditoriaDetallesTipoRiesgoCliente(Connexion connexion,TipoRiesgoCliente tiporiesgocliente)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(tiporiesgocliente.getIsNew()||!tiporiesgocliente.getid_empresa().equals(tiporiesgocliente.getTipoRiesgoClienteOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tiporiesgocliente.getTipoRiesgoClienteOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tiporiesgocliente.getTipoRiesgoClienteOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tiporiesgocliente.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tiporiesgocliente.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoRiesgoClienteConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tiporiesgocliente.getIsNew()||!tiporiesgocliente.getnombre().equals(tiporiesgocliente.getTipoRiesgoClienteOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tiporiesgocliente.getTipoRiesgoClienteOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tiporiesgocliente.getTipoRiesgoClienteOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(tiporiesgocliente.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tiporiesgocliente.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoRiesgoClienteConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "title": "" }, { "docid": "b3756267c70e74819611abcd41291438", "score": "0.5688295", "text": "public void cadastra_veiculo(Veiculos v){\n\t\tveiculos.add(v);\n\t}", "title": "" }, { "docid": "56217b343c75f840830be299839018dd", "score": "0.56692034", "text": "@Override\n\t//si no hay adaptador falta algo que sirva como pa eso\n\tpublic synchronized void entrarAlParque(String puerta) {\n\t\tif (contadoresPersonasPuerta.get(puerta) == null){\n\t\t\tcontadoresPersonasPuerta.put(puerta, 0);\n\t\t}\n\t\t\n\t\tcomprobarAntesDeEntrar(puerta);\t\t\t\n\t\t\n\t\t\n\t\t// Aumentamos el contador total y el individual\n\t\tcontadorPersonasTotales++;\t\n\t\tcontadoresPersonasPuerta.put(puerta, contadoresPersonasPuerta.get(puerta)+1);\n\t\t\n\t\t// Imprimimos el estado del parque\n\t\timprimirInfo(puerta, \"Entrada\");\n\t\t\n\t\tcheckInvariante();\n\t\t\n\t\tnotify();\n\t\t\n\t\tveces++;\n\t}", "title": "" }, { "docid": "6c567e40d8122b5891c686290811f796", "score": "0.56413054", "text": "public JIFRegistroVenta(Empresa empresa) {\n this.controlador = new ControladorRegistroDeVentas(\n empresa.getRegistroDeVentas(),\n empresa.getCatalogoTiquetesPrepago(),\n empresa.getCatalogoFormasDePago(),\n empresa.getRegistroDeClientes(),\n empresa.getCatalogoCuentasBancarias()\n \n ); \n \n initComponents(); \n \n ResultSet obj=nuevaCone.executeQuery(\"SELECT estacion_peaje FROM dependencias.peajes ORDER BY estacion_peaje ASC \");\n try { \n while(obj.next())\n {\n cb_estacion.addItem(obj.getString(\"estacion_peaje\"));\n }\n nuevaCone.desconectar();\n } catch (SQLException ex) {\n Logger.getLogger(JIFRegistroVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "title": "" }, { "docid": "9bd1ebe472a821975c3a8143e0e67c8c", "score": "0.55975133", "text": "public void finalizarVenda(){\n try{\n Cliente cliente;\n cliente = administrador.buscarClienteCod(Integer.parseInt(jTextFieldCodCliente.getText().trim()));\n cliente.getCompras().add(venda);\n adm.getListaVendas().add(venda);\n adm.setIdVendas();\n resetarTela();\n }catch(NullPointerException ex){\n System.out.println(ex.getMessage());\n }catch(NumberFormatException e){\n System.out.println(e.getMessage());\n } \n }", "title": "" }, { "docid": "cc0dd061aef17961e85938cca17c4fcf", "score": "0.5582388", "text": "public String registrarVisita (String fecha, String altura, String diametro, String observaciones, String vigor, String condicion, String sanidad,\n String id_arbol, String fe_registro, String lat, String lng){\n openBD();\n\n ContentValues values = new ContentValues();\n values.put(\"fecha_visita\", fecha);\n values.put(\"altura\", altura);\n values.put(\"diametro\", diametro);\n values.put(\"observaciones\", observaciones);\n values.put(\"vigor\", vigor);\n values.put(\"condicion\", condicion);\n values.put(\"sanidad\", sanidad);\n values.put(\"id_a\", id_arbol);\n values.put(\"fecha_registro\", fe_registro);\n values.put(\"latitud\", lat);\n values.put(\"longitud\", lng);\n\n Long id = db.insert(\"visitas\",null,values);\n closeBD();\n\n return id.toString();\n }", "title": "" }, { "docid": "a56baf65115f5c9bb7c281e45a9ce309", "score": "0.5580978", "text": "private void addEmpresas(Empresa_TransportadoraI e){\r\n this.empresas.put(e.getCodigo(), e.clone());\r\n }", "title": "" }, { "docid": "854733c3ab8c457c6c8e1b4f74844d3c", "score": "0.555987", "text": "private void registrarFactura() {\n String fecha = jtxtFechaEmision.getText();\n String horaEmision = Metodos.ObtenerHora();\n String fechaVencimiento = Metodos.getFechaJDC(jdcFechaVencimiento);\n String moneda = jcbxMoneda.getSelectedItem().toString();\n String formaPago = jcbxFormaPago.getSelectedItem().toString();\n String cuotas = jcbxCuotas.getSelectedItem().toString();\n String montoCuota = jtxtMontoCuota.getText();\n String medioPago = \"\";\n String totalVentasGravadas = jtxtImporte.getText();\n String totalGratuito = jtxtTotalGratuito.getText();\n String igv = jtxtIgv.getText();\n String totalImporteVenta = jtxtImporteTotal.getText();\n try {\n Factura.registrarFactura(id, idCliente, fecha, horaEmision,\n fechaVencimiento, moneda, formaPago, cuotas, montoCuota,\n medioPago, totalVentasGravadas, totalGratuito, igv,\n totalImporteVenta);\n } catch (Exception e) {\n System.out.println(\"Error registrando factura a la base de datos: \\n\" + e);\n Metodos.mensajeError(\"Error registrando factura a la base de datos: \\n\" + e);\n }\n }", "title": "" }, { "docid": "e79663f32f9bca75951a14b9c62e5214", "score": "0.5557112", "text": "public Retorno registrarIntegrante(int identidad,int carnet,String primerNom,String segundoNom,String primerApe,String segundoApe,String ocupacion,int celular,\r\n\t\t\t\t\t\t\t\t\t\tString sexo,String estadoCivil, String fechaNac,Blob getblob,String cargos,String observaciones,int lumisialCod ){\r\n\t\t\r\n Retorno objRetorno = null;\r\n boolean registro = false;\r\n boolean error = false;\r\n String errorMsg = \"\";\r\n Blob blob = null;\r\n\r\n try{\r\n\r\n UUID integranteUUID = UUID.randomUUID();\r\n\r\n if(getblob != null){\r\n blob = getblob;\r\n\r\n }else{\r\n blob = null;\r\n }\r\n\r\n String querySQL = \"INSERT INTO asistente(asistenteUUID, identidad, carnet, primerNom, segundoNom, primerApe, segundoApe,ocupacion,celular,sexo, fechaNac, foto, cargos, observaciones, active, createBy, createDT, updateBy, updateDT, fk_lumisialCod,fk_estadoCivilCod) values ('\"\r\n + integranteUUID + \"',\" + identidad + \", \"+ carnet +\",'\" + primerNom + \"','\"+ segundoNom + \"','\"\r\n + primerApe + \"','\"+ segundoApe +\"','\"+ ocupacion + \"',\" + celular +\",'\" + sexo +\"','\" + fechaNac + \"','\"+ blob + \"','\" + cargos + \"',' \" + observaciones + \"',true,'\"\r\n + nombreUsuario +\"','\" + fecha + \"','\" + nombreUsuario +\"','\" + fecha + \"',\"+ lumisialCod + \",'\"+ estadoCivil +\"')\"; \r\n\r\n objConexionDataBase.executeUpdateQuery(querySQL);\r\n registro = true;\r\n\r\n }catch(Exception e){\r\n\r\n error = true;\r\n errorMsg = \"ERROR AL REGISTRAR UN INTEGRANTE EN LA BASE DE DATOS\";\r\n\r\n }\r\n\r\n objRetorno = new Retorno(registro, error, errorMsg);\r\n return objRetorno;\r\n\t}", "title": "" }, { "docid": "1c2d34cd6437710d1eb2ea04411ac991", "score": "0.55467534", "text": "public void adicionar() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tgdao.adicionar(this.gerencia);\n\t\t\tthis.gerencia = new Gerencia();\n\t\t\tFacesContext.getCurrentInstance().addMessage(null,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Gerencia cadastrada com sucesso!\", null));\n\t\t}\n\n\t\tcatch (PersistenceException e) {\n\t\t\tFacesContext.getCurrentInstance().addMessage(null,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), null));\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "231a2d920565669ce77f7c9373b160aa", "score": "0.55427074", "text": "public void registrarPaciente() {\n RequestContext requestContext = RequestContext.getCurrentInstance();\n selected.setTipoIdentificacion(tipoIdentificacion);\n selected.setRaza(raza);\n selected.setFacultad(facultad);\n selected.setPrograma(programa);\n selected.setEstadoCivil(estadoCivil);\n selected.setEscolaridad(escolaridad);\n selected.setEstrato(estrato);\n selected.setCategoriaAfiliado(categoriaAfiliado);\n selected.setTipoAfiliado(tipoAfiliado);\n selected.setTipoRegimen(tipoRegimen);\n selected.setEps(eps);\n selected.setMunicipioResidencia(municipioResidencia);\n selected.setDeptoResidencia(deptoResidencia);\n selected.setMunicipioNacimiento(municipioNacimiento);\n selected.setDeptoNacimiento(deptoNacimiento);\n selected.setParentesco(parentesco);\n asignarFechaApertura();\n ejbFacade.create(selected);\n requestContext.execute(\"PF('RegistroExitoso').show()\");\n \n selected= new Paciente();\n tipoIdentificacion = new TipoIdentificacion();\n selected.setSexo('F');\n selected.setEstado(\"1\");\n this.raza = new Raza();\n facultad = new Facultad();\n programa = new Programas();\n estadoCivil = new EstadoCivil();\n escolaridad = new Escolaridad();\n estrato = new Estrato();\n categoriaAfiliado = new CategoriaAfiliado();\n tipoAfiliado = new TipoAfiliado();\n tipoRegimen = new TipoRegimen();\n eps = new Eps();\n municipioResidencia = new Municipio();\n deptoResidencia = new Depto();\n municipioNacimiento = new Municipio();\n deptoNacimiento = new Depto();\n parentesco= new Parentesco();\n\n }", "title": "" }, { "docid": "42972524b5a9b7e016c24065e754161c", "score": "0.55311507", "text": "public void addViniloVenta(ViniloEntity vinilo){\r\n vinilosVenta.add(vinilo);\r\n }", "title": "" }, { "docid": "4ef7c9b1ab4e6b61a3bbdbcfb17a2702", "score": "0.5523083", "text": "private void agregarDatosPrueba()\n {\n coleccionAdministrador.altaAdministrador(new Administrador(\"a\", \"a\", \"Pedro\", \"Riera Cortés\", LocalDate.of(1984, 2, 5), \"43127814P\", TipoGenero.MASCULINO, \"Av. Argentina\", \"999198963\"));\n coleccionEnfermero.altaEnfermero(new Enfermero(\"e\", \"e\", \"Pedro\", \"Riera Cortés\", LocalDate.of(1984, 2, 5), \"43127814P\", TipoGenero.MASCULINO, \"Av. Argentina\", \"999198963\"));\n coleccionTecnico.altaTecnico(new Tecnico(\"t\", \"t\", \"Pedro\", \"Riera Cortés\", LocalDate.of(1984, 2, 5), \"43127814P\", TipoGenero.MASCULINO, \"Av. Argentina\", \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Francisco\", \"Martinez Soria\", LocalDate.of(1984, 2, 5), \"11111111A\", TipoGenero.MASCULINO, \"Av. Argentina\", true, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Laura\", \"Garcia\", LocalDate.of(1984, 2, 5), \"22222222A\", TipoGenero.FEMENINO, \"Av. Argentina\", false, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Beatriz\", \"Ceballos\", LocalDate.of(1984, 2, 5), \"33333333A\", TipoGenero.FEMENINO, \"Av. Argentina\", true, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Sofia\", \"Caceres\", LocalDate.of(1984, 2, 5), \"44444444A\", TipoGenero.FEMENINO, \"Av. Argentina\", false, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Patricia\", \"Farfán\", LocalDate.of(1984, 2, 5), \"55555555A\", TipoGenero.FEMENINO, \"Av. Argentina\", true, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Lesly\", \"Abellaneda\", LocalDate.of(1984, 2, 5), \"666666666A\", TipoGenero.FEMENINO, \"Av. Argentina\", false, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Andrea\", \"Inga Vilchez\", LocalDate.of(1984, 2, 5), \"77777777A\", TipoGenero.FEMENINO, \"Av. Argentina\", true, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Monica\", \"Zuazu\", LocalDate.of(1984, 2, 5), \"88888888A\", TipoGenero.FEMENINO, \"Av. Argentina\", false, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Juana\", \"Juaneda\", LocalDate.of(1984, 2, 5), \"99999999A\", TipoGenero.FEMENINO, \"Av. Argentina\", true, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Isabel\", \"La católica\", LocalDate.of(1984, 2, 5), \"00000000A\", TipoGenero.FEMENINO, \"Av. Argentina\", false, \"999198963\"));\n coleccionPaciente.altaPaciente(new Paciente(\"Mercedes\", \"García\", LocalDate.of(1984, 2, 5), \"11110000A\", TipoGenero.FEMENINO, \"Av. Argentina\", true, \"999198963\"));\n\n }", "title": "" }, { "docid": "aa9f1238769b1c3d8519f6e08a2b3b2b", "score": "0.55094194", "text": "public void agregar() {\n Cliente registro = new Cliente();\n registro.setNombre(txtNombre.getText());\n registro.setDireccion(txtDireccion.getText());\n registro.setNit(txtNit.getText());\n try {\n PreparedStatement procedimiento = Conexion.getInstancia().getConexion().prepareCall(\"{call sp_AgregarCliente(?,?,?)}\");\n procedimiento.setString(1, registro.getNombre());\n procedimiento.setString(2, registro.getDireccion());\n procedimiento.setString(3, registro.getNit());\n procedimiento.execute();\n listaCliente.add(registro);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "248fa1448b8513cd9fcdad61393fe250", "score": "0.55087584", "text": "public static void registrarAuditoria(Connexion connexion,Long idUsuario,DetalleNotaCreditoPuntoVenta detallenotacreditopuntoventa,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DetalleNotaCreditoPuntoVentaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(detallenotacreditopuntoventa.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DetalleNotaCreditoPuntoVentaDataAccess.TABLENAME, detallenotacreditopuntoventa.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DetalleNotaCreditoPuntoVentaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DetalleNotaCreditoPuntoVentaLogic.registrarAuditoriaDetallesDetalleNotaCreditoPuntoVenta(connexion,detallenotacreditopuntoventa,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(detallenotacreditopuntoventa.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!detallenotacreditopuntoventa.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,DetalleNotaCreditoPuntoVentaDataAccess.TABLENAME, detallenotacreditopuntoventa.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////DetalleNotaCreditoPuntoVentaLogic.registrarAuditoriaDetallesDetalleNotaCreditoPuntoVenta(connexion,detallenotacreditopuntoventa,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DetalleNotaCreditoPuntoVentaDataAccess.TABLENAME, detallenotacreditopuntoventa.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(detallenotacreditopuntoventa.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DetalleNotaCreditoPuntoVentaDataAccess.TABLENAME, detallenotacreditopuntoventa.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DetalleNotaCreditoPuntoVentaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DetalleNotaCreditoPuntoVentaLogic.registrarAuditoriaDetallesDetalleNotaCreditoPuntoVenta(connexion,detallenotacreditopuntoventa,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "8a7e128bc40f08a5007c2a9249afd152", "score": "0.5500418", "text": "public void agregarPaquetePersonalizado(String id, String region, String ciudad, String vuelos, String horaSalida, String horallegada, String valorVuelos, String valorHoteles) throws ClassNotFoundException, SQLException{\r\n conector.conectarse();\r\n conector.actualizar(\"INSERT INTO PAQUETEPERSONALIZADO\"\r\n + \" (\"\r\n + \"'\" + id + \"',\"\r\n + \"'\" + region + \"',\"\r\n + \"'\" + ciudad + \"',\"\r\n + \"'\" + vuelos + \"',\" \r\n + \"'\" + horaSalida + \"',\"\r\n + \"'\" + horallegada + \"',\"\r\n + \"'\" + valorVuelos + \"',\"\r\n + \"'\" + valorHoteles + \"',\"\r\n + \")\");\r\n conector.desconectarse();\r\n }", "title": "" }, { "docid": "705da24b7fb42abc9b715118bb7978a3", "score": "0.54915863", "text": "public void agregarParametro(Nodo parametro){\r\n this.listaParametros.add(parametro);\r\n }", "title": "" }, { "docid": "fb0c56c87d2a5b1346b0bfbd29d26fe7", "score": "0.54857856", "text": "@Override\n\tpublic synchronized void entrarAlParque(String puerta){\n\t\tif (contadoresPersonasPuerta.get(puerta) == null){\n\t\t\tcontadoresPersonasPuerta.put(puerta, 0);\n\t\t}\n\t\t\n\t\t// Comprueba si el parque está lleno\n\t\tcomprobarAntesDeEntrar();\n\t\t\n\t\t// Aumentamos el contador total y el individual\n\t\tcontadorPersonasTotales++;\t\t\n\t\tcontadoresPersonasPuerta.put(puerta, contadoresPersonasPuerta.get(puerta)+1);\n\t\t\n\t\t// Imprimimos el estado del parque\n\t\timprimirInfo(puerta, \"Entrada\");\n\t\t\n\t\t// Realizamos las comprobaciones necesarias par ver si nos pasamos de los salimos de los rangos establecidos\n\t\tcheckInvariante();\n\t\t\n\t\t//\n\t\tnotifyAll();\n\t}", "title": "" }, { "docid": "9981066cf12a19fe2212ddb2221bbcdf", "score": "0.5482133", "text": "@Override\n public void asignaParametros() {\n paso = request.getParameter(\"pasoSig\")!=null?request.getParameter(\"pasoSig\"):\"0\";\n String paginaSig = \"\";\n HashMap param = new HashMap();\n switch (Integer.parseInt(paso)){\n case 0:\n //paso inicial: obtener la vista de los parametros\n datos.clear();\n String vista = request.getParameter(\"vista\")!=null?request.getParameter(\"vista\"):\"\";\n String idoperacion = request.getParameter(\"operacion\")!=null?request.getParameter(\"operacion\"):\"\";\n //cargar los parametros al hash de datos\n datos.put(\"idoperacion\", idoperacion);\n sesion.setPaginaSiguiente(vista);\n break;\n case 1: //obtener empleados que cumplan con los filtros establecidos\n HashMap filtros = new HashMap();\n filtros.put(\"documentos\", request.getParameter(\"docs\"));\n filtros.put(\"sucursal\", request.getParameter(\"sucursal\"));\n filtros.put(\"estatus\", request.getParameter(\"estatus\"));\n filtros.put(\"cotiza\", request.getParameter(\"cotiza\"));\n datos.put(\"filtros\", filtros);\n paginaSig = request.getParameter(\"paginaSig\")!=null?request.getParameter(\"paginaSig\"):\"\";\n sesion.setPaginaSiguiente(paginaSig);\n break;\n case 2:\n //imprimir documentacion de empleados\n String emples = request.getParameter(\"dato1\");\n HashMap fil = (HashMap)datos.get(\"filtros\");\n String docs = fil.get(\"documentos\").toString();\n datos.put(\"reporte\", application.getRealPath(\"WEB-INF/Reportes/Nomina/Personal/documentos.jasper\"));\n param = new HashMap();\n param.put(\"RUTAIMGS\", application.getRealPath(\"/Imagenes/Personal/Documentos\"));\n param.put(\"EMPLEADOS\", emples);\n param.put(\"DOCS\", docs);\n datos.put(\"parametros\", param);\n break;\n case 3: case 99:\n paginaSig = request.getParameter(\"paginaSig\")!=null?request.getParameter(\"paginaSig\"):\"\";\n sesion.setPaginaSiguiente(paginaSig);\n break;\n }\n datos.put(\"paso\", paso);\n }", "title": "" }, { "docid": "b652963af29c5d1788603a533610cdc1", "score": "0.54819983", "text": "public void registrarPasaje(int nroIdClient,String nombCl,String origen,String destino,String fechaIda,String fechaVuelta,String tipoTransporte,String nombrEmpresa, int precio) {\n //en aqui se añadira el pasaje\n Date fechaId,fechaVuelt;\n SimpleDateFormat formatoFecha=new SimpleDateFormat(\"dd/MM/yyyy\");\n fechaId=null;\n fechaVuelt=null;\n try{\n fechaId=formatoFecha.parse(fechaIda);\n fechaVuelt=formatoFecha.parse(fechaVuelta);\n }catch(ParseException e){\n System.out.println(\"fecha formato incorrecto registro pasaje no hecho\");\n }\n Pasaje p;\n Cliente c1=agen.verificarExistencia(nombCl, nroIdClient);\n if(c1!=null){\n Reserva reserv=c1.getHistorial().getUltReserv();\n p=new Pasaje(origen, destino, fechaId, fechaVuelt, nombrEmpresa, tipoTransporte, nombrEmpresa, precio);\n agen.reservaPasaje(origen, destino, nroIdClient, nombCl, fechaId, fechaVuelt, tipoTransporte, nombrEmpresa, precio);\n //si la ultima reserva tiene estado!= \"activo\" se crea reserva nueva(deberia)\n reserv.setPasaje(p);\n reserv.setCliente(c1);\n XMLClientes.insertPasaje(reserv, nroIdClient);\n }else{}\n }", "title": "" }, { "docid": "6c0ebf74c9c67a68d23befd1e2ffe113", "score": "0.54708153", "text": "public void addListaDeseos(ViniloEntity vinilo){\r\n listaDeseos.add(vinilo);\r\n }", "title": "" }, { "docid": "b316aa5db1f46022beeaf72f30e2dcf4", "score": "0.5467978", "text": "public void addPruebasfarmacologica(com.sorin.idea.integracion.canal.FuncionSinusalPfEF param){\n if (localPruebasfarmacologica == null){\n localPruebasfarmacologica = new com.sorin.idea.integracion.canal.FuncionSinusalPfEF[]{};\n }\n\n \n //update the setting tracker\n localPruebasfarmacologicaTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localPruebasfarmacologica);\n list.add(param);\n this.localPruebasfarmacologica =\n (com.sorin.idea.integracion.canal.FuncionSinusalPfEF[])list.toArray(\n new com.sorin.idea.integracion.canal.FuncionSinusalPfEF[list.size()]);\n\n }", "title": "" }, { "docid": "af438c07a0456d89a55374215430646a", "score": "0.5439617", "text": "private void PegaValores(){\n fatal = \"N\";\n bparges.idEmpresa = parametrosNS.be.IdEmpresa;\n bparges.codigoGrupo = parametrosNS.bge.CodigoGrupo;\n bparges.codigoEmpresa = parametrosNS.be.CodigoEmpresa;\n bparges.dataGestao = txt_dataGestao.getText().replace(\" \", \"\");\n bparges.dataGestao = bparges.dataGestao.replace(\"/\", \"\");\n if(bparges.dataGestao.equals(\"\")){\n Mensagem = \"Data Administrativa Inválida!\";\n new MostraMensagem(Mensagem);\n fatal = \"S\";\n return;\n }\n bparges.dataGestao = invdata.inverterData(txt_dataGestao.getText(), 2);\n bparges.codigoContaCorrenteBoleto = 0;\n bparges.codigoContaCorrenteOrdemServico = 0;\n bparges.codigoContaCorrenteRecibo = 0;\n bparges.codigoContaCorrenteVenda = 0;\n }", "title": "" }, { "docid": "147e9f61b62b1ec0536ca8f53e0e370b", "score": "0.5402534", "text": "public void registrarCliente(Clientes c) {\n Conexion.Connection();\r\n Connection conn = Conexion.getCnnection(); //Para establecer conexiones con las bases de datos\r\n Statement st; //Para ejecutar sentecias SQL y enviarlas a las BBDD\r\n //Creamos la sentencia SQL\r\n String sql = \"insert into Clientes(identificacion, nombre_empresa, nombre_contacto, direccion, correo, url, telefono,ciudad_id) values ('\" + c.getIdentificacion() + \"','\" + c.getNombre_empresa() + \"','\" + c.getNombre_contacto() + \"','\" + c.getDireccion() + \"','\" + c.getCorreo() + \"','\" + c.getURL() + \"','\" + c.getTelefono() + \"',(select CIUDAD_ID from CIUDADES where CIUDAD='\" + c.getCiudad() + \"'))\";\r\n //Ejecuta la sentencia SQL\r\n try {\r\n st = conn.createStatement();\r\n st.executeUpdate(sql);\r\n //Cerramos conexiones\r\n conn.close();\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Se ha registrado un Cliente Exitosamente\", \"Información\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n JOptionPane.showMessageDialog(null, \"No se Registro el Cliente\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "eb35e691da164254e1d8e48ef0a03cc4", "score": "0.53676164", "text": "public void addAlojamientosDeOferta(AlojamientosDeOferta alojamientosDeOferta) throws SQLException, Exception {\n\n\t\tString sql = String.format(\"INSERT INTO %1$s.ALOJAMIENTOSDEOFERTA (IDALOJAMIENTO, IDOFERTA) VALUES (%2$s, '%3$s')\", \n\t\t\t\tUSUARIO, \n\t\t\t\talojamientosDeOferta.getIdAlojamiento(),\n\t\t\t\talojamientosDeOferta.getIdOferta());\n\t\tSystem.out.println(sql);\n\n\t\tPreparedStatement prepStmt = conn.prepareStatement(sql);\n\t\trecursos.add(prepStmt);\n\t\tprepStmt.executeQuery();\n\n\t}", "title": "" }, { "docid": "03b448e17a9382459581f47563d97ef8", "score": "0.53537273", "text": "public void obtenerDatosVendedor(String[] datosvendedor) {\n\t\tthis.datosVendedor = datosvendedor;\n\t}", "title": "" }, { "docid": "80a42bd96e5b2d981c5a5458e20a3d7d", "score": "0.5349245", "text": "public void cadastrarItemVenda(int codigovenda, int codigoproduto, int quantidade){\r\n String query = \" insert into itemvenda (codigovenda, codigoproduto, quantidade )\"\r\n + \" values (?, ?, ?)\"; \r\n \r\n try {\r\n PreparedStatement preparedStatement = conn.prepareStatement(query);\r\n preparedStatement.setInt(1, codigovenda);\r\n preparedStatement.setInt(2, codigoproduto);\r\n preparedStatement.setInt(3, quantidade);\r\n\r\n preparedStatement.execute();\r\n preparedStatement.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"Erro ao salvar item venda\");\r\n }\r\n }", "title": "" }, { "docid": "1e51c3f52d7d69693503296f6ee4cf58", "score": "0.53347164", "text": "public String agregarImagenVisita(String origen, String id_referencia, String nombre, byte[] imagen, String fecha_registro){\n\n ContentValues values = new ContentValues();\n values.put(\"origen\",origen);\n values.put(\"id_referencia\",id_referencia);\n values.put(\"nombre\",nombre);\n values.put(\"imagen\",imagen);\n values.put(\"fecha_registro\",fecha_registro);\n\n Long dato = null;\n\n openBD();\n\n dato = db.insert(\"imagenes\",null,values);\n\n closeBD();\n return dato.toString();\n }", "title": "" }, { "docid": "7cde774ce745d784c3a5c6fb52273787", "score": "0.5334594", "text": "public static void registrarAuditoria(Connexion connexion,Long idUsuario,TipoFormaPago tipoformapago,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoFormaPagoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tipoformapago.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoFormaPagoDataAccess.TABLENAME, tipoformapago.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TipoFormaPagoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TipoFormaPagoLogic.registrarAuditoriaDetallesTipoFormaPago(connexion,tipoformapago,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tipoformapago.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tipoformapago.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TipoFormaPagoDataAccess.TABLENAME, tipoformapago.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TipoFormaPagoLogic.registrarAuditoriaDetallesTipoFormaPago(connexion,tipoformapago,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoFormaPagoDataAccess.TABLENAME, tipoformapago.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tipoformapago.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoFormaPagoDataAccess.TABLENAME, tipoformapago.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TipoFormaPagoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TipoFormaPagoLogic.registrarAuditoriaDetallesTipoFormaPago(connexion,tipoformapago,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "b81b168c2e3c54b161c2d98bd7564002", "score": "0.5318139", "text": "public void crearventana(){\n \n configurarVentana(); //Llamada a la funcion de creacion de la ventana\n \n }", "title": "" }, { "docid": "b1df92a7610f2f92ceb862948bde77ba", "score": "0.530968", "text": "@Override\n public void Guardar(Estado_Ventana estado_Ventana ) {\n try {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"R-C_Unicor_LoricaPU\");\n FacultadJpaController facultadJpaController = new FacultadJpaController(entityManagerFactory);\n facultad.setNombre(TFieldNombreFacultad.getText());\n facultad.setUniversidadid((Universidad) CBUniversidad.getSelectedItem());\n facultad.setDecano(TFieldNombreDecano.getText());\n facultad.setUbicacion(TFieldUbicacion.getText()); \n \n if (estado_Ventana.equals(Estado_Ventana.NUEVO)) {\n facultadJpaController.create(facultad);\n } else {\n facultad.setId(facultad.getId());\n facultadJpaController.edit(facultad);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "a645a0650567bd3797bcffbad7231434", "score": "0.5306128", "text": "public void registrarAfiliado(String nombre, String codigo, String correo, String telefono){\n int valorantiguos = 8000;\n int valornuevos = 10000;\n Afiliado nuevoafiliado = new Afiliado(nombre,codigo,correo,telefono);\n afiliados.add(nuevoafiliado);\n if(afiliadosantiguos.contains(nuevoafiliado)){\n Ganancias.SumarGanancia(valorantiguos);\n }\n else{\n Ganancias.SumarGanancia(valornuevos);\n }\n }", "title": "" }, { "docid": "57a6f34f59bb3f60b0d77addc4106788", "score": "0.5302475", "text": "TiqueteEntity salidaVehiculoParqueado (VehiculoEntity vehiculoEntity);", "title": "" }, { "docid": "c86043bf33856339bfd1540548a8fc54", "score": "0.530118", "text": "public Entrada (K clave,V valor) {\n\t\tthis.clave=clave;\n\t\tthis.valor=valor;\n\t}", "title": "" }, { "docid": "a4e050528244007abdb3c1d29bd9ff1d", "score": "0.52977866", "text": "public void addCarrito(ViniloEntity vinilo){\r\n carrito.add(vinilo);\r\n }", "title": "" }, { "docid": "4a88649e94f6b93e29f368222bd816a9", "score": "0.52958566", "text": "public void escolheEncVol(Voluntario v) {\n ArrayList<String> aux = new ArrayList<>();\n List<Encomenda> enc = getEncomendasAcsVol(v);\n if(enc.size() != 0) {\n for (Encomenda e : enc){\n aux.add(e.getCodEnc() + \"(\" + ((int) (getDisEncVol(e, v) + 0.5)) + \"Km)\");\n }\n String[] s = new String[aux.size()];\n for (int i = 0; i < aux.size(); i++) {\n s[i] = aux.get(i);\n }\n\n UInterface ui = new UInterface(s);\n System.out.println(\"\\n\\n\\n\\n\\n\\nEscolha encomenda a transportar:\");\n int op = ui.exec();\n\n if(op != 0) {\n Encomenda e = enc.get(op - 1).clone();\n e.setEstado(0);\n Loja l = codLojaToL(e.getCodLoja());\n Utilizador u = codUserToU(e.getCodUser());\n String data = geraDataVol(v,l,u);\n e.setData(data);\n LocalDateTime ldt = LocalDateTime.parse(data);\n DateTimeFormatter formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT, FormatStyle.SHORT);\n System.out.println(\"Chegada ao utilizador as: \" + ldt.format(formatter));\n int ind = 0;\n for (Encomenda ed : encomendas) {\n if (e.getCodEnc().equals(ed.getCodEnc())) {\n break;\n }\n ind++;\n }\n encomendas.set(ind, e);\n v.addEncomenda(e);\n voluntarios.put(v.getEmail(), v.clone());\n updateEncs();\n System.out.println(\"Encomenda entregue!\\n\");\n }\n }else System.out.println(\"\\nNao existem encomendas disponiveis!\");\n }", "title": "" }, { "docid": "f7a7f7673074fd385af47b4f9f163ab3", "score": "0.5292038", "text": "public void registrarse(Usuario usuario);", "title": "" }, { "docid": "4d3c86be9bebc22aa6348ce26cb612c0", "score": "0.52707386", "text": "public void registrarDescripcion_Pedido (DESCRIPCION_PEDIDO subPedido){\n String sql = \"INSERT INTO DESCRIPCION_PEDIDO (Id_pedido, Id_Producto, Cantidad_Tienda, Total_Producto) VALUES (?,?,?,?)\";\n try {\n //registrado pedido\n ps = conexion.prepareStatement(sql);\n ps.setInt(1, subPedido.getIdPedido());\n ps.setString(2, subPedido.getIdProducto());\n ps.setInt(3, subPedido.getCantidadTienda());\n ps.setDouble(4, subPedido.getTotalProducto());\n ps.execute(); \n System.out.println(\"REGISTRO DESCRIPCION PEDIDO CREADO CON EXITO!\");\n } catch (SQLException e) {\n System.out.println(\"ERROR AL INTENTAR REGISTRAR DESCRIPCION PEDIDO\");\n }\n }", "title": "" }, { "docid": "f836dc2974d5adae862b14c9e61e110d", "score": "0.5257621", "text": "protected void regolaViste() {\n /* variabili e costanti locali di lavoro */\n Vista vista;\n Campo campo;\n Ordine ordine;\n Modulo modListino;\n Modulo modConto;\n Modulo modSottoconto;\n Campo campoOrdSottoconto;\n\n try { // prova ad eseguire il codice\n\n modConto = ContoModulo.get();\n modListino = ListinoModulo.get();\n modSottoconto = AlbSottocontoModulo.get();\n\n /* regola la vista di default */\n vista = this.getVistaDefault();\n\n campo = modConto.getCampo(Conto.Cam.sigla.get());\n campo = vista.getCampo(campo);\n campo.setTitoloColonna(\"conto\");\n campo.setLarLista(150);\n\n campo = modListino.getCampo(Listino.Cam.descrizione.get());\n campo = vista.getCampo(campo);\n campo.setLarLista(200);\n\n campo = vista.getCampo(Addebito.Cam.quantita.get());\n campo.setTitoloColonna(\"Q.tà\");\n campo.setLarLista(30);\n\n /* regola la vista per il navigatore nel conto */\n campoOrdSottoconto = modSottoconto.getCampoOrdine();\n vista = this.getVista(AddebitoFisso.Vis.vistaConto.get());\n campo = modListino.getCampo(Listino.Cam.descrizione.get());\n campo = vista.getCampo(campo);\n ordine = new Ordine();\n ordine.add(campoOrdSottoconto);\n ordine.add(AddebitoFisso.Cam.dataInizioValidita.get());\n if (campo != null) {\n campo.setOrdine(ordine);\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "8ae70789bec75c9696c107373b955565", "score": "0.5252066", "text": "public void registrarResultado() {\n\t\t//TODO: Falta Implementar\n\t}", "title": "" }, { "docid": "81e03d256703d7bf16e31109ca5aa350", "score": "0.5249971", "text": "public void onInsertarResidencia() {\n\t\t\n\t\tInsertResiDialog dialog = new InsertResiDialog(app.getUniversidades());\n\t\t\n\t\tOptional<Residencia> resiOp = dialog.showAndWait();\n\t\t\n\t\tif( resiOp.isPresent() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Insertamos el código de la residencia\n\t\t\t\tresiOp.get().setCodUniversidad(app.getUniMap().get(resiOp.get().getNombreUniversidad()));\n\t\t\t\t\n\t\t\t\t// Simplemente lo añadimos a la base de datos, ya que aquí no hay un listado de residencias\n\t\t\t\tMap<String,Boolean> results = app.getDBManager().proc_insertarResidencia(resiOp.get());\n\t\t\t\t\n\t\t\t\t// Analizamos los resultados de la sentencia\n\t\t\t\tif( !results.get(\"UNIVERSIDAD_OK\")) { // Aunque debido al ComboBox esto no podría pasar\n\t\t\t\t\t\n\t\t\t\t\tAlert alert = new Alert(AlertType.WARNING);\n\t\t\t\t\talert.setTitle(\"Residencia\");\n\t\t\t\t\talert.setHeaderText(\"La universidad introducida no existe\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\t\n\t\t\t\t} else if( !results.get(\"RESIDENCIA_OK\")) {\n\t\t\t\t\t\n\t\t\t\t\tAlert alert = new Alert(AlertType.WARNING);\n\t\t\t\t\talert.setTitle(\"Residencia\");\n\t\t\t\t\talert.setHeaderText(\"La residencia no pudo ser insertada\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t// Si todo sale bien\n\t\t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\t\t\talert.setTitle(\"Confirmación\");\n\t\t\t\t\talert.setHeaderText(\"La residencia ha sido introducida con éxito\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch( RuntimeException e) {\n\t\t\t\t// No se ha podido insertar\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "6c77ad9a6672108c05b8b87f035280aa", "score": "0.52446526", "text": "public void carregarDados(String fichVendas){\n lerFichWithBuff_Produtos(\"Produtos.txt\");\n \n lerFichWithBuff_Clientes(\"Clientes.txt\");\n \n lerFichWithBuff_Vendas(fichVendas);\n }", "title": "" }, { "docid": "7eaf6e54551821ab4b2e262607d6c655", "score": "0.5237963", "text": "public void addParticipantes(Participante participanteRecibido) throws IOException {\n listaParticipantes.add(participanteRecibido);\n\n }", "title": "" }, { "docid": "af78ce614781ecb4d0f13dea1c738075", "score": "0.5234411", "text": "public void setDados(byte[] value) {\n this.dados = value;\n }", "title": "" }, { "docid": "adfb9f8b9c2024bc5d07e03f3b5e4ab8", "score": "0.5222848", "text": "public void registrarCliente(ClienteVO cliente) {\n\t//llama ycrea una instancia de la clase encargada de hacer la conexión\n\tConexion conex = new Conexion();\n\ttry {\n\t\t//sentencia que se ejecutara en la base de datos\n\t\tStatement estatuto = conex.getConnection().createStatement();\n\t\t//String que contiene la sentencia insert a ejecutar\n\t\tString sentencia = \"INSERT INTO clientes VALUES(\"\n\t\t\t\t+ cliente.getCedula_cliente() + \",\" + \"'\"\n\t\t\t\t+ cliente.getDireccion_cliente() + \"',\" + \"'\"\n\t\t\t\t+ cliente.getEmail_cliente() + \"',\" + \"'\"\n\t\t\t\t+ cliente.getNombre_cliente() + \"',\" + \"'\"\n\t\t\t\t+ cliente.getTelefono_cliente() + \"'\"\n\t\t\t\t+ \");\";\n\t\t//se ejecuta la sentencia en la base de datos\n\t\testatuto.executeUpdate(sentencia);\n\t\t//impresión en consola para verificación\n\t\tSystem.out.println(\"Registrado\" + sentencia);\n\t\t//cerrando la sentencia y la conexión\n\t\testatuto.close();\n\t\tconex.desconectar();\n\t\t\n\t}catch (SQLException e) {\n\t\t//si hay un error en el sql mostrarlo\n\t\tSystem.out.println(\"--------------------ERROR------------------\");\n\t\tSystem.out.println(\"No se pudo insertar el cliente\");\n\t\tSystem.out.println(e.getMessage());\n\t\tSystem.out.println(e.getErrorCode());\n\t\t\n\t}catch (Exception e) {\n\t\t//si hay cualquier otro error mostrarlo\n\t\tSystem.out.println(\"--------------------ERROR------------------\");\n\t\tSystem.out.println(\"No se pudo insertar el cliente\");\n\t\tSystem.out.println(e.getMessage());\n\t\tSystem.out.println(e.getLocalizedMessage());\n\t}\n}", "title": "" }, { "docid": "ba61e279fe5108c002b6ecd19d28b57e", "score": "0.5222449", "text": "private static void registrarAuditoriaDetallesTipoInstruccion(Connexion connexion,TipoInstruccion tipoinstruccion)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(tipoinstruccion.getIsNew()||!tipoinstruccion.getcodigo().equals(tipoinstruccion.getTipoInstruccionOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoinstruccion.getTipoInstruccionOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoinstruccion.getTipoInstruccionOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoinstruccion.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoinstruccion.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoInstruccionConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tipoinstruccion.getIsNew()||!tipoinstruccion.getnombre().equals(tipoinstruccion.getTipoInstruccionOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tipoinstruccion.getTipoInstruccionOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tipoinstruccion.getTipoInstruccionOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoinstruccion.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tipoinstruccion.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TipoInstruccionConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "title": "" }, { "docid": "05fa8c140a5287882025b19cecb482ae", "score": "0.521447", "text": "public Caso afegirCaso(String nombre, String apellidos, String idCaso, Date fechaNacimiento, Date fechaInforme, String clasificacion, String genero, String correo, String telefono, String direccion, String idBrote);", "title": "" }, { "docid": "6749c984b4760885674b91986f8c3ace", "score": "0.5202467", "text": "public void enviarDadesReserva(TuplaEnviarDadesAReserva tuplaEnviaDadesAReserva) {\n }", "title": "" }, { "docid": "91b7eea01435b35579db7c114857c3b0", "score": "0.5187763", "text": "public void addVoluntario(Voluntario v) { this.voluntarios.addVoluntario(v);}", "title": "" }, { "docid": "99e729c3ff49260b9e0aa8e9d2efe619", "score": "0.5187629", "text": "public void registrarEquipamiento(String unTipoEquipamiento, String unNombre, String unaDireccion, Calendar unaFechaAdquisicion, Calendar unaFechaUltimoMantenimiento, String unaCapacidadMaxima, String unaUnidadDeMedida, Bascula unaBasculaAsociada, String unaDuracionMaximaEstacionamiento) throws SQLException, ExcepcionCargaParametros{\r\n \r\n float capacidadMaxima = 0;\r\n float duracionMaximaEstacionamiento = 0;\r\n if (!(unTipoEquipamiento.equals(\"Bascula\") || unTipoEquipamiento.equals(\"Laboratorio\")) && unaBasculaAsociada == null)\r\n throw new ExcepcionCargaParametros(\"No se ingresó una bascula para asociar\");\r\n if (this.existeEquipamiento(unNombre)){\r\n throw new ExcepcionCargaParametros(\"Ya existe un equipamiento con ese nombre.\");\r\n }\r\n if (unaBasculaAsociada != null && !unaBasculaAsociada.estaActivo())\r\n throw new ExcepcionCargaParametros(\"La bascula que desea asociar no se encuentra activa.\");\r\n if (unNombre.isEmpty())\r\n throw new ExcepcionCargaParametros(\"Se requiere especificar un nombre\");\r\n if (unaDireccion.isEmpty())\r\n throw new ExcepcionCargaParametros(\"Se requiere especificar una direccion\");\r\n if (unaFechaAdquisicion == null)\r\n throw new ExcepcionCargaParametros(\"Se requiere especificar una fecha de adquisicion.\");\r\n if (unaFechaUltimoMantenimiento == null)\r\n throw new ExcepcionCargaParametros(\"Se requiere especificar una fecha de Ultimo mantenimiento.\");\r\n if (unaFechaAdquisicion.after(Calendar.getInstance()))\r\n throw new ExcepcionCargaParametros(\"No se puede cargar una fecha de adquisicion posterior a la fecha actual.\");\r\n if (unaFechaUltimoMantenimiento.after(Calendar.getInstance()))\r\n throw new ExcepcionCargaParametros(\"No se puede cargar una fecha de ultimo mantenimiento posterior a la fecha actual.\");\r\n \r\n \r\n if (!unTipoEquipamiento.equals(\"Laboratorio\") && !Validaciones.esUnNumeroFraccionarioValido(unaCapacidadMaxima))\r\n throw new ExcepcionCargaParametros(\"Verifique la capacidad maxima ingresada (Utilice solo numeros y una coma).\");\r\n if (!unTipoEquipamiento.equals(\"Laboratorio\")){\r\n unaCapacidadMaxima = unaCapacidadMaxima.replace(\".\", \"\");\r\n unaCapacidadMaxima = unaCapacidadMaxima.replace(\",\", \".\"); \r\n capacidadMaxima = Float.parseFloat(unaCapacidadMaxima);\r\n if (capacidadMaxima <= 0)\r\n throw new ExcepcionCargaParametros(\"Por favor ingrese una capacidad máxima positiva.\");\r\n }\r\n if (unTipoEquipamiento.equals(\"Camara de estacionamiento acelerado\") && !Validaciones.esUnNumeroFraccionarioValido(unaDuracionMaximaEstacionamiento))\r\n throw new ExcepcionCargaParametros(\"Verifique la duración máxima ingresada (Utilice solo numeros y una coma).\");\r\n if (unTipoEquipamiento.equals(\"Camara de estacionamiento acelerado\")){\r\n unaDuracionMaximaEstacionamiento = unaDuracionMaximaEstacionamiento.replace(\".\", \"\");\r\n unaDuracionMaximaEstacionamiento = unaDuracionMaximaEstacionamiento.replace(\",\", \".\");\r\n duracionMaximaEstacionamiento = Float.parseFloat(unaDuracionMaximaEstacionamiento); \r\n if (duracionMaximaEstacionamiento <= 0)\r\n throw new ExcepcionCargaParametros(\"Por favor ingrese una duracion maxima de estacionamiento valida.\");\r\n }\r\n \r\n \r\n \r\n \r\n switch (unTipoEquipamiento){\r\n case \"Molino\": \r\n Molino unMolino = new Molino(unNombre.toUpperCase(), unaDireccion.toUpperCase(), unaFechaAdquisicion, unaFechaUltimoMantenimiento, capacidadMaxima, unaUnidadDeMedida, unaBasculaAsociada);\r\n unaBasculaAsociada.agregarEquipamiento(unMolino);\r\n this.persistencia.persistirObjeto(unMolino);\r\n this.equipamientos.put(unMolino.getId(), unMolino);\r\n break;\r\n case \"Bascula\":\r\n Bascula unaBascula = new Bascula(unNombre.toUpperCase(), unaDireccion.toUpperCase(), unaFechaAdquisicion, unaFechaUltimoMantenimiento, capacidadMaxima, unaUnidadDeMedida);\r\n this.persistencia.persistirObjeto(unaBascula);\r\n this.equipamientos.put(unaBascula.getId(), unaBascula);\r\n break;\r\n case \"Camara de estacionamiento acelerado\":\r\n CamaraEstacionamiento unaCamara = new CamaraEstacionamiento(unNombre.toUpperCase(), unaDireccion.toUpperCase(), unaFechaAdquisicion, unaFechaUltimoMantenimiento, capacidadMaxima, unaUnidadDeMedida, duracionMaximaEstacionamiento, unaBasculaAsociada);\r\n unaBasculaAsociada.agregarEquipamiento(unaCamara);\r\n this.persistencia.persistirObjeto(unaCamara);\r\n this.equipamientos.put(unaCamara.getId(), unaCamara);\r\n break;\r\n case \"Deposito\":\r\n Deposito unDeposito = new Deposito(unNombre.toUpperCase(), unaDireccion.toUpperCase(), unaFechaAdquisicion, unaFechaUltimoMantenimiento, capacidadMaxima, unaUnidadDeMedida, unaBasculaAsociada);\r\n unaBasculaAsociada.agregarEquipamiento(unDeposito);\r\n this.persistencia.persistirObjeto(unDeposito);\r\n this.equipamientos.put(unDeposito.getId(), unDeposito);\r\n break;\r\n case \"Laboratorio\":\r\n Laboratorio unLaboratorio = new Laboratorio(unNombre.toUpperCase(), unaDireccion.toUpperCase(), unaFechaAdquisicion, unaFechaUltimoMantenimiento, capacidadMaxima, unaUnidadDeMedida);\r\n this.persistencia.persistirObjeto(unLaboratorio);\r\n this.equipamientos.put(unLaboratorio.getId(), unLaboratorio);\r\n break;\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "cf865baeba03d61d8a3fe1ff826ed529", "score": "0.5186623", "text": "private void registroProcesado(InterfazParams interfazParams) {\n\t\tLong registrosProcesados = (Long) interfazParams.getQueryParams().get(\n\t\t\t\t\"registrosProcesados\");\n\t\tregistrosProcesados = new Long(registrosProcesados.longValue() + 1);\n\t\tinterfazParams.getQueryParams().put(\"registrosProcesados\",\n\t\t\t\tregistrosProcesados);\n\t}", "title": "" }, { "docid": "3127776535c1c5fbaf96bbd1c83278fc", "score": "0.51775765", "text": "public void add(Veiculo v) { // OK\n listaDeVeiculos.add(v);\n }", "title": "" }, { "docid": "ba8c077c85e69a91ed9610947c3dc254", "score": "0.5172285", "text": "public Videojuego crear(Videojuego videojuego);", "title": "" }, { "docid": "a262dbccd1c1b6f6bdaf38ee93db8562", "score": "0.5168718", "text": "public void InserePessoa(Pessoa p) \r\n {\r\n participantes[qtddParticipantes] = p;\r\n qtddParticipantes++;\r\n }", "title": "" }, { "docid": "ee0560fcaf05661d41c60f9a23816070", "score": "0.5166361", "text": "public void agregarProducto(DTO_Producto producto, int idEncomienda)\r\n\t\t\tthrows RemoteException {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0b39739974987fed0359cc5ab67e6ed", "score": "0.51650155", "text": "public RespuestaBD crearRegistro(int codigoActividad, String descripcion, String tipoActividad, int area, String estado, String usuarioInsercion) {\n/* 269 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* 271 */ int elSiguiente = siguienteRegistro();\n/* 272 */ if (elSiguiente == 0) {\n/* 273 */ rta.setMensaje(\"Generando secuencia\");\n/* 274 */ return rta;\n/* */ } \n/* */ \n/* */ try {\n/* 278 */ String s = \"insert into POA_ACTIVIDADES(codigo_actividad,descripcion,tipo_actividad,area,estado,fecha_insercion,usuario_insercion) values (\" + elSiguiente + \",\" + \"'\" + descripcion + \"',\" + \"'\" + tipoActividad + \"',\" + \"\" + area + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 295 */ rta = this.dat.executeUpdate2(s);\n/* 296 */ rta.setSecuencia(elSiguiente);\n/* */ }\n/* 298 */ catch (Exception e) {\n/* 299 */ e.printStackTrace();\n/* 300 */ Utilidades.writeError(\"%PoaActividadesDAO:crearRegistro \", e);\n/* 301 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 303 */ return rta;\n/* */ }", "title": "" }, { "docid": "f7c5e0ef883310d9555cc2c80e102938", "score": "0.5163926", "text": "protected void creaViste() {\n /* variabili e costanti locali di lavoro */\n ArrayList<String> lista;\n Vista vista;\n VistaElemento elem;\n Modulo mod;\n Campo campoIvaBreve;\n\n try { // prova ad eseguire il codice\n\n /* recupera il campo codice iva breve */\n mod = IvaModulo.get();\n campoIvaBreve = mod.getCampo(Iva.Cam.codbreve.get());\n\n /* crea la vista per la riga all'interno della fattura */\n vista = new Vista(Vis.fattura.toString(), this.getModulo());\n vista.addCampo(this.getCampoOrdine());\n vista.addCampo(Cam.descrizione.get());\n elem = vista.addCampo(Cam.unita.get());\n elem.setLarghezzaColonna(40);\n elem.setRidimensionabile(false);\n vista.addCampo(Cam.quantita.get());\n vista.addCampo(Cam.prezzoUnitario.get());\n vista.addCampo(Cam.percSconto.get());\n vista.addCampo(Cam.imponibile.get());\n elem = vista.addCampo(campoIvaBreve);\n elem.setTitoloColonna(\"iva\");\n\n /* rende invisibile il campo ordine\n * e lo regola come ordine di default */\n elem = vista.getElemento(0);\n elem.setVisibile(false);\n vista.setCampoOrdineDefault(this.getCampoOrdine());\n\n this.addVista(vista);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "eab47095522ab92ceeaa3839271926bd", "score": "0.51639086", "text": "public void agregarPaqueteTodoIncluido(String id, String nombre, String fechaLLegada, String fechaSalida, String descripcion, String costo) throws ClassNotFoundException, SQLException{\r\n conector.conectarse();\r\n conector.actualizar(\"INSERT INTO PAQUETESTODOINCLUIDO\"\r\n + \" (\"\r\n + \"'\" + id + \"',\"\r\n + \"'\" + nombre + \"',\"\r\n + \"'\" + fechaLLegada + \"',\"\r\n + \"'\" + fechaSalida + \"',\" \r\n + \"'\" + descripcion + \"',\"\r\n + \"'\" + costo + \"',\"\r\n + \")\");\r\n conector.desconectarse();\r\n }", "title": "" }, { "docid": "486e68350a89fe5301085728baca9a86", "score": "0.51631373", "text": "public void addObjeto(String p){\n inventario.add(p);\n }", "title": "" }, { "docid": "f1f684c37487a1aac720ebbc38dd29df", "score": "0.51615316", "text": "public void reqEntrega(Loja l) {\n List<Encomenda> enc = l.getEncomendasEstado(1);\n if (enc.size() != 0){\n String[] encs = new String[enc.size()];\n int i = 0;\n for (Encomenda e : enc) {\n //System.out.println(e);\n encs[i] = e.getCodEnc();\n i++;\n }\n\n UInterface ui = new UInterface(encs);\n int op = ui.exec();\n if (op == 0) return;\n Encomenda es = enc.get(op - 1);\n es.setEstado(2);\n int indd = 0;\n for (Encomenda e : encomendas) {\n if (es.getCodEnc().equals(e.getCodEnc())) break;\n indd++;\n }\n encomendas.set(indd, es.clone());\n System.out.println(\"\\nEncomenda disponibilizada com pronta para entrega!\\n\");\n\n //System.out.println(\"abcd\");\n } else System.out.println(\"\\nNao ha encomendas pendentes!\\n\");\n\n updateEncs();\n }", "title": "" }, { "docid": "4a49af3e6992a9356dc40e0febbb3c78", "score": "0.51553804", "text": "public void setVendedores(Set<Vendedor> vendedores) {\n this.vendedores = vendedores;\n }", "title": "" }, { "docid": "4bc3bdef0f63b86780366d4558258f8c", "score": "0.51482016", "text": "public Entrada(K llave, V valor) {\n this.llave = llave;\n this.valor = valor;\n }", "title": "" }, { "docid": "1c58776284d14621631072d45a0ec457", "score": "0.51457155", "text": "com.soa.EntradaPaqueteDocument.EntradaPaquete addNewEntradaPaquete();", "title": "" }, { "docid": "42d07fe54d3842f1c9eafa879f5a7d0e", "score": "0.5136703", "text": "@Override\n public void registrarIniciativa(String descripcion, Date fecha, int usuario, String palabraclave) throws PersistenceException {\n try{\n iniciativaMapper.registrarIniciativa(descripcion, fecha, usuario, palabraclave);\n }catch(org.apache.ibatis.exceptions.PersistenceException e) {\n \tSystem.out.println(e.getMessage());\n throw new PersistenceException(\"Error al registrar iniciativa \");\n }\n }", "title": "" }, { "docid": "fe583f802430c41300fab8612027c37b", "score": "0.51351565", "text": "public void setParametros(br.com.gvt.www.tv.configuracaoTV.Parametro[] parametros) {\r\n this.parametros = parametros;\r\n }", "title": "" }, { "docid": "b5ba2e9de1bb2299b326649f6e28c960", "score": "0.5134661", "text": "@Override\r\n\tpublic void voltar(Produtos_venda produtos_venda) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6871d5f54fe8527b90611094c917df85", "score": "0.5131682", "text": "private void homologarEvidencias(List<ProcesaEvidenciaDTO> procesaEvidencias, ComparendoWSDTO comparendo,\n RespuestaRecibirComparendoWSDTO respuestaWSDTO, LogRecibirComparendo logRecibirComparendo) {\n // para cada uno se homologan sus catalogos\n for (ProcesaEvidenciaDTO procesaEvidenciaDTO : procesaEvidencias) {\n for (EvidenciaWSDTO evidenciaWSDTO : comparendo.getEvidencias()) {\n if (evidenciaWSDTO != null) {\n if (evidenciaWSDTO.getNombre().equals(procesaEvidenciaDTO.getArchivoTransportable().getNombre())\n && evidenciaWSDTO.getArchivo()\n .equals(procesaEvidenciaDTO.getArchivoTransportable().getContenido())) {\n // HOMOLOGA SU TIPO DE EVIDENCIA\n if (StringUtils.isNotBlank(evidenciaWSDTO.getCodigoTipoEvidencia())) {\n Integer idTipoEvidencia = consultarItemCatalogo(TipoEvidencia.class,\n evidenciaWSDTO.getCodigoTipoEvidencia());\n if (idTipoEvidencia == null) {\n procesarErrorCatalogo(respuestaWSDTO, logRecibirComparendo,\n EnumCatalogosHomologacion.codigoTipoEvidencia,\n evidenciaWSDTO.getCodigoTipoEvidencia());\n return;\n }\n procesaEvidenciaDTO.setCodigoTipoEvidencia(idTipoEvidencia);\n }\n break;\n }\n }\n }\n }\n\n }", "title": "" }, { "docid": "6f2482646eb628884e7c7cc581a91c36", "score": "0.513016", "text": "public void navegarPropiedadesEnlazadas( ) {\n\n\t\tSystem.out.println(\"----------- Navegar por varias propiedades enlazadas-----------\");\n /* Query query = session.createQuery(\"SELECT p.nombre.ape1,p.direccion.municipio.nombre FROM Profesor p WHERE p.id IN (1,2,3)\");\n List<Object[]> listDatos = (List<Object[]>) query.list();\n for (Object[] datos : listDatos) {\n System.out.println(\"El profesor \" + datos[0] + \" vive en \" + datos[1]);\n }*/\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> listDatos = man.createQuery(\"SELECT p.nombre.ape1,p.direccion.municipio.nombre FROM ProfesorDireccion p WHERE p.id IN (1,2,3)\").getResultList();\n\n\t\tfor (Object[] datos : listDatos) {\n System.out.println(\"El profesor \" + datos[0] + \" vive en \" + datos[1]);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "88e6ad222d7ee9823df14e698ee4c076", "score": "0.51239234", "text": "public void agregarPadecimiento(String id_antHeredo, String padecimiento_antHeredo, String familiares_antHeredo, \n boolean finado_antHeredo, String id_paciente, Connection conex){\n String sqlst = \"INSERT INTO ant_heredo_familiar (id_antHeredo, padecimiento_antHeredo,\\n\"+\n \"familiares_antHeredo, finado_antHeredo, id_paciente)\\n\"+\n \"VALUES (?,?,?,?,?)\";\n try(PreparedStatement sttm = conex.prepareStatement(sqlst)) {\n conex.setAutoCommit(false);\n sttm.setString (1, id_antHeredo);\n sttm.setString (2, padecimiento_antHeredo);\n sttm.setString (3, familiares_antHeredo);\n sttm.setBoolean (4, finado_antHeredo);\n sttm.setString (5, id_paciente);\n sttm.addBatch();\n sttm.executeBatch();\n conex.commit();\n aux.informacionUs(\"El padecimiento ha sido guardado\", \n \"El padecimiento ha sido guardado\", \n \"El padecimiento ha sido guardado exitosamente en la base de datos\");\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "e44e57549931ff74e7b153b704bd498c", "score": "0.5116574", "text": "public void registrar() throws Exception {\n try {\n for (Nota agreNot : listarEstud) {\n nota.setIDMATRI(agreNot.getIDMATRI());\n nota.setREGNOT(agreNot.getREGNOT());\n dao.Registrar(nota);\n }\n limpiar();\n listarPorAula();\n FacesContext.getCurrentInstance().addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_INFO, \"Registrado\", \"Correctamente\"));\n } catch (Exception e) {\n throw e;\n }\n\n }", "title": "" }, { "docid": "7240378ce925ce37263eb8343b30f7a3", "score": "0.51154184", "text": "public boolean registrarVenta(String fecha, String datosCliente) {\n SQLiteDatabase miBDD = getWritableDatabase(); //objeto para manejar la bdd\n String sql = \"INSERT INTO venta(f_vent, subtotal_vent, iva_vent, total_vent, estado_vent, fk_id_cli) \" +\n \"VALUES ('\" + fecha + \"',0 ,0 ,0 ,0 ,'\" + datosCliente + \"')\";\n if (miBDD != null)//validando que la base de datos exista no sea nula\n {\n miBDD.execSQL(sql);\n miBDD.close();\n return true;\n }\n return false; //retorno cuando no exista la bdd\n }", "title": "" }, { "docid": "7bc8a434e73277a44df18a815201728c", "score": "0.5111774", "text": "public void addEncomenda(EncomendaI e){\r\n this.encomendas.put(e.getCodEncomenda(), e.clone());\r\n }", "title": "" }, { "docid": "e2c6a649a481d3ce23b79f0f114afc9e", "score": "0.51104736", "text": "public void insertarMapeo(String[] valores, ServidorDTO servidorDTO);", "title": "" }, { "docid": "046abc20323fa0596ebe9bada8da9bb5", "score": "0.510871", "text": "public void addVolu(Voluntario v) {\n voluntarios.put(v.getEmail(), v);\n }", "title": "" }, { "docid": "2098328ecdc060dd8f4d39b508616691", "score": "0.5102234", "text": "private void cargaEmpleadosEmpresa() {\n\n db.collection(EMPLEADOS)\n .whereArrayContains(\"uidProyectos\", uidProyecto)\n .get()\n .addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n if (!task.getResult().isEmpty()) {\n mapEmpleados.put(\"-- Sin asignar --\", \"noasignado\");\n for (QueryDocumentSnapshot documentSnapshot : task.getResult()) {\n mapEmpleados.put(documentSnapshot.getString(\"nombre\").concat(\" \").concat(documentSnapshot.getString(\"apellidos\")), documentSnapshot.getId());\n }\n ArrayList<String>nombreEmpleados = new ArrayList<>(mapEmpleados.keySet());\n //La posicion 0 es el texto de -- Sin asignar -- que va a ser el valor por defecto\n atvEmpleados.setText(nombreEmpleados.get(0));\n atvEmpleados.setAdapter(new ArrayAdapter<>(AniadirTareaActivity.this, R.layout.lista_empleados_empresa, nombreEmpleados));\n\n } else {\n //Si task.isEmpty() devuelve true entonces no se han encontrado registros, se lo indico al usuario\n Toast.makeText(AniadirTareaActivity.this, getString(R.string.errorGeneral), Toast.LENGTH_LONG).show();\n Log.d(\"AniadirTareaActivity\", \"No se han encontrado empleados\");\n }\n } else {\n Log.d(\"AniadirTareaActivity\", \"Error en BD al leer empleados\");\n //Si hay algun problema al recuperar datos de la base de datos le muestro al usuario que hay un problema\n Toast.makeText(AniadirTareaActivity.this, getString(R.string.errorAccesoBD), Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "d3696ab12deafd9336ff613dfcca9809", "score": "0.51005083", "text": "public void registrarObservador(Observador a);", "title": "" }, { "docid": "ca066c6fe221733812b83f3428f6ea17", "score": "0.5099564", "text": "private Long inserirPedidoVenda(ContentValues values) throws SQLException {\n Long id = conn.insert(NOME_TABELA_VENDA, null, values);\n return id;\n }", "title": "" }, { "docid": "f5b497c9da844f61fc8127fd69b62980", "score": "0.50985354", "text": "private void cargarDatosCabecera(HashMap<String, Object> params) {\n /*params.put(InformeDePlanificacion.PARAM_PLAN_NRO,this.eje.getNroCotizacionPlanificada());\n \n gestorBDvarios utils = new gestorBDvarios();\n EmpresaCliente ec = utils.buscarEmpresaCliente(this.obra.getPlanta());\n\n if(ec==null)\n {\n params.put(InformeDePlanificacion.PARAM_PLAN_EMPRESA,\"\");\n }\n else\n {\n params.put(InformeDePlanificacion.PARAM_PLAN_EMPRESA,ec.toString());\n }\n if(this.obra.getPlanta()!=null)\n {\n params.put(InformeDePlanificacion.PARAM_PLAN_PLANTA,this.obra.getPlanta().toString());\n }\n else\n {\n params.put(InformeDePlanificacion.PARAM_PLAN_PLANTA,\"\");\n }\n \n params.put(InformeDePlanificacion.PARAM_PLAN_OBRA,this.obra.getNombre());\n \n params.put(InformeDePlanificacion.PARAM_PLAN_FINICIO,FechaUtil.getFecha(this.eje.getFechaInicio()));\n \n params.put(InformeDePlanificacion.PARAM_PLAN_FFIN,FechaUtil.getFecha(this.eje.getFechaInicio()));*/\n }", "title": "" }, { "docid": "1ddc64b3234f6f5546b103cc8fceec9a", "score": "0.5096418", "text": "public void guardar() \n\t{\n\t\tlog.debug(\"Entering 'save' method\");\n\t\tMantenimientoOCRCapturaPedidosForm f = (MantenimientoOCRCapturaPedidosForm) this.formBusqueda;\n\n\t\tf.setCodigoConsultora(f.getCodigoConsultora2());\n\t\tString[] arrCodigosEliminar = new String[]{\"\"};\n\t\t\n\t\tif(this.listaEliminados != null && this.listaEliminados.size() > 0){\n\t\t\tarrCodigosEliminar = new String[this.listaEliminados.size()];\n\t\t\tfor (int i = 0; i < this.listaEliminados.size(); i++) {\n\t\t\t\tMantenimientoOCRCapturaPedidosForm elim = (MantenimientoOCRCapturaPedidosForm)this.listaEliminados.get(i);\n\t\t\t\tarrCodigosEliminar[i] = elim.getLabel();\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\n\t\tif (f.getRepinta().equals(\"N\")) {\n\t\t\t// aqui se cargara los datos de consultora procedente de la eleccion\n\t\t\t// de una de ellas\n\t\t\t//return mapping.findForward(\"edit\");\n\t\t} else {\n\t\t\tLabelDatosConsultoraValue objDatosConsultora = new LabelDatosConsultoraValue();\n\t\t\t// seteo los datos de la cabecera de la consultora\n\t\t\tobjDatosConsultora.setPeriodoFacturacion(f.getPeriodo());\n\t\t\tobjDatosConsultora.setNumeroPedidosRegistrado(f.getTxtnumPedidos());\n\t\t\tobjDatosConsultora.setCodigoConsultora(f.getCodigoConsultora());\n\t\t\tobjDatosConsultora.setNombreConsultora(f.getNombreConsultora());\n\t\t\tobjDatosConsultora.setTelefono(f.getTelefono());\n\t\t\tobjDatosConsultora.setEstatus(f.getEstatus());\n\t\t\tobjDatosConsultora.setBloqueado(f.getChkBloqueado());\n\t\t\tobjDatosConsultora.setPrimerPedido(f.getPrimerPedido());\n\t\t\tobjDatosConsultora.setUltimoPedido(f.getUltimoPedido());\n\t\t\tobjDatosConsultora.setRegion(f.getRegion());\n\t\t\tobjDatosConsultora.setZona(f.getCodZona());\n\t\t\tobjDatosConsultora.setFechaFacturacion(f.getFechaFacturacion());\n\t\t\tobjDatosConsultora.setTotalUnidades(f.getTotalUnid());\n\t\t\tobjDatosConsultora.setCodPais(f.getCodigoPais());\n\t\t\tobjDatosConsultora.setNumLote(f.getNumLote());\n\t\t\tobjDatosConsultora.setCodRegion(f.getCodRegion());\n\t\t\tobjDatosConsultora.setCodZona(f.getCodZona());\n\t\t\t\n\t\t\t// Setea los datos de los detalles\n\t\t\tArrayList objListaPedidos = new ArrayList();\n\t\t\tif(this.listaTablaDetalle != null && this.listaTablaDetalle.size() >0)\n\t\t\t{\n\t\t\t\tString[] objlistaCodigos = new String[this.listaTablaDetalle.size()];\n\t\t\t\tString[] objlistaUnidades = new String[this.listaTablaDetalle.size()];\n\t\t\t\tfor (int i = 0; i < this.listaTablaDetalle.size(); i++) {\n\t\t\t\t\tMantenimientoOCRCapturaPedidosForm f1 = (MantenimientoOCRCapturaPedidosForm) this.listaTablaDetalle.get(i);\n\t\t\t\t\tobjlistaCodigos[i] = f1.getLabel();\n\t\t\t\t\tobjlistaUnidades[i] = f1.getLabel4();\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint tamcodigos = objlistaCodigos.length;\t\t\t\t\t\n\t\t\t\tint j = 0;\n\t\t\t\tString auxPosi = \"\";\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < tamcodigos; i++) \n\t\t\t\t{\n\t\t\t\t\tString codigo = objlistaCodigos[i];\n\t\t\t\t\tString unidades = objlistaUnidades[i];\n\t\t\t\t\t\n\t\t\t\t\tif (!codigo.equals(\"\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tauxPosi = String.valueOf(j);\n\t\t\t\t\t\tLabelPedidosValue objPedido = new LabelPedidosValue();\n\t\t\t\t\t\tobjPedido.setCodigoVta(codigo);\n\t\t\t\t\t\tobjPedido.setUnidades(unidades);\n\t\t\t\t\t\tobjPedido.setCodPais(f.getCodigoPais());\n\t\t\t\t\t\tobjPedido.setCodPeriodo(f.getPeriodo());\n\t\t\t\t\t\tobjPedido.setCodCliente(f.getCodigoConsultora());\n\t\t\t\t\t\tobjPedido.setFechaSolicitud(f.getFechaFacturacion());\n\t\t\t\t\t\tobjPedido.setNumPosicion(auxPosi);\n\t\t\t\t\t\tobjPedido.setNumLote(f.getNumLote());\n\t\t\t\t\t\tobjListaPedidos.add(objPedido);\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tMantenimientoOCRCapturaPedidoService service = (MantenimientoOCRCapturaPedidoService) getBean(\"spusicc.pedidos.mantenimientoOCRCapturaPedidoService\");\n\t\t\tUsuario usuario = this.mPantallaPrincipalBean.getCurrentUser();\n\t\t\tMap filter = new HashMap();\n\t\t\tfilter.put(\"codPais\", f.getCodigoPais());\n\t\t\tfilter.put(\"codCliente\", f.getCodigoConsultora());\n\t\t\tfilter.put(\"periodo\", f.getPeriodo());\n\t\t\tfilter.put(\"numeroLote\", f.getNumLote());\n\n\t\t\tservice.insertarPedido(objDatosConsultora, objListaPedidos, usuario, filter, arrCodigosEliminar);\n\t\t\tthis.addInfo(\"\", this.getResourceMessage(\"mantenimientoOCRCargaPedidosForm.msj.registrar\"));\n\t\t\tthis.fecha_facturacion_cte = f.getFechaFacturacion();\n\n\t\t\t// //////////////////////////\n\n\t\t\tf.setCodigoConsultora(\"\");\n\t\t\tf.setNombreConsultora(\"\");\n\t\t\tf.setRegion(\"\");\n\t\t\tf.setZona(\"\");\n\t\t\tf.setIndicadorActiva(\"\");\n\t\t\tf.setEstadoConsultora(\"\");\n\t\t\tf.setIndicadorBloqueo(\"\");\n\t\t\tf.setIndicadorDatos(\"N\");\n\n\t\t\tString indicadorHiperConsulta = f.getIndicadorHiperConsulta();\n\t\t\tif (StringUtils.equals(indicadorHiperConsulta, Constants.SI))\n\t\t\t\tf.setIndicadorCerrarPopup(Constants.SI);\n\t\t\t\n\t\t\treiniciarPantalla();\n\t\t}\n\t}", "title": "" }, { "docid": "1a944dd4a84c375ad6da3217707da32b", "score": "0.50963664", "text": "@Override\n public boolean vender() {\n boolean encontrado = false;\n int j = 0;\n System.out.print(\"Ingresa codigo del vehiculo que va a vender: \");\n String codigo = leer.nextLine();\n \n while(encontrado == false && j<deportivo.size()){\n if(deportivo.get(j).getCodigo().compareToIgnoreCase(codigo)==0){\n encontrado = true;\n }else{\n j++;\n }\n }\n if(encontrado == true){\n System.out.println(\"existe\");\n System.out.println(deportivo.get(j).getCodigo()+\"/\"+deportivo.get(j).getMarca()+\"/\"+deportivo.get(j).getReferencia()+\"/\"+deportivo.get(j).getVelocidad()+\"/\"+deportivo.get(j).getColor()+\"/\"+deportivo.get(j).getPuertas()+\"/\"+deportivo.get(j).getPrecio());\n System.out.print(\"Ingresa nombre cliente: \");\n String nombre = leer.nextLine();\n System.out.print(\"Ingresa apellido cliente: \");\n String apellido = leer.nextLine();\n \n String code = deportivo.get(j).getCodigo();\n String marca = deportivo.get(j).getMarca();\n double velocidad = deportivo.get(j).getVelocidad();\n String referencia =deportivo.get(j).getReferencia();\n String color =deportivo.get(j).getColor();\n int puertas = deportivo.get(j).getPuertas();\n double precio = deportivo.get(j).getPrecio();\n \n \n Venta ven = new Venta(nombre,apellido,code,referencia,velocidad,marca,color,puertas,precio);\n ven.setNombre(nombre);\n ven.setApellido(apellido);\n ven.setCodigo(codigo);\n ven.setMarca(marca);\n ven.setVelocidad(velocidad);\n ven.setReferencia(referencia);\n ven.setColor(color);\n ven.setPuertas(puertas);\n ven.setPrecio(precio);\n \n vendidos.incluirDeportivoVendido(ven);\n \n System.out.println(\"\\n\\n [::::::::::FACTURA:::::::::::]\\n\"+\" El auto: \"+marca+\" \"+referencia+ \"\\n Ha sido vendido al cliente: \"+ nombre + \" \"+ apellido + \"\\n con el valor de: \"+ precio+\"\\n [::::::::::FACTURA:::::::::::]\\n\\n\");\n deportivo.remove(j); \n return true;\n \n }else{\n System.out.println(\"el auto no existe\");\n return false;\n }\n }", "title": "" }, { "docid": "10e86468b62ebc5c2dd899dcf61a7b43", "score": "0.50868493", "text": "@ApiOperation(value = \"Ingresa a la BD, la Información enviada por el Bean del Vida Mejor de proyecto\", authorizations = {@Authorization(value = \"Token-PGC\")})\n @PostMapping(value = PROGRAMAS_VIDA_MEJOR_ENDPOINT_NEW, produces = \"application/json; charset=UTF-8\")\n public HashMap<String, Object> addActividadVidaMejor(@ApiParam(value = \"Json de Vida Mejor del Proyecto a Ingresar\", required = true)\n @RequestBody @Valid final TblActividadProgramaVidaMejor _actividadVidaMejorJson) throws Exception {\n // Ejecuta el try Cacth\n msgExceptions msgExeptions = new msgExceptions();\n\n // Fecha de Ingrso\n Date dateActual = new Date();\n\n try {\n // Busca la Actividad, desde el Reporsitorio con el Parametro del Json enviado ( \"idActividad\": {\"idActividad\": valor })\n TblActividad _tblActividad = _actividadRepository.findByIdActividad(_actividadVidaMejorJson.getIdActividad().getIdActividad());\n\n try {\n // Busca la Vida Mejor, desde el Reporsitorio con el Parametro del Json enviado ( \"idSector\": {\"idSector\": valor })\n TblProgramaVidaMejor _tblProgramaVidaMejor = _programaVidaMejorRepository.findByIdPrograma(_actividadVidaMejorJson.getIdProgramaVidaMejor().getIdPrograma());\n\n // Busca el Proyecto con el Proposito de validar que no se meta otro Item mas,\n // desde el Reporsitorio de Vida Mejor con el Parametro del Json enviado ( \"idActividad\": _tblActividad )\n\n if (_actividadProgramaVidaMejorRepository.countByCodigoActividad(_actividadVidaMejorJson.getCodigoActividad()) > 0) {\n msgMethod = \"Ya Existe un registro con el Código de Vida Mejor para este Proyecto !! \" + _actividadVidaMejorJson.getCodigoActividad();\n\n msgExeptions.map.put(\"findRecord\", false);\n return msgExeptions.msgJson(msgMethod, 200);\n } else {\n // Seteo de las Fecha y Hora de Creacion\n _actividadVidaMejorJson.setFechaCreacion(dateActual);\n _actividadVidaMejorJson.setHoraCreacion(dateActual);\n\n // Seteamos la Actividad de Actividad y Vida Mejor\n _actividadVidaMejorJson.setIdActividad(_tblActividad);\n _actividadVidaMejorJson.setIdProgramaVidaMejor(_tblProgramaVidaMejor);\n\n // Realizamos la Persistencia de los Datos\n _actividadProgramaVidaMejorRepository.save(_actividadVidaMejorJson);\n _actividadProgramaVidaMejorRepository.flush();\n\n // Retorno de la Funcion\n msgMethod = \"El Vida Mejor para este Proyecto, se ha Ingresado de forma satisfactoria!!\";\n\n //Retorno del json\n return msgExeptions.msgJson(msgMethod, 200);\n }\n } catch (Exception ex) {\n msgMethod = \"Ha Ocurrido un error al Intentar Grabar el Vida Mejor del Proyecto, con la informacion indicada !!\";\n throw new SQLException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\n }\n } catch (Exception ex) {\n msgMethod = \"No existe el Proyecto que buscas, por favor verfica que lo has ingresado correctamente.\";\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\n }\n }", "title": "" }, { "docid": "93fbfb78435e913652a3a92f635797b3", "score": "0.5080619", "text": "private void registrarCliente() {\n //istanciar la clase cliente\n Cliente cliente = new Cliente();\n //setear los valores\n cliente.setNombre(tfNombre.getText());\n cliente.setApellido(tfApellido.getText());\n cliente.setDireccion(tfDireccion.getText());\n cliente.setCodigo(Integer.getInteger(tfCodigo.getText()));\n \n //le pasamos el cleinte cargado\n clienteController.registrarCliente(cliente);\n verMensaje(\"El registro se ha guardado correctamente\"); \n }", "title": "" }, { "docid": "a8adcbe97ac788e6a27833d7ea8da85e", "score": "0.5071811", "text": "public void adicionarEmpresa(Empresa empresa){\r\n\t\tthis.empresas.add(empresa);\r\n\t\tthis.salvarArquivo();\r\n\t}", "title": "" }, { "docid": "1cbe97af2f2872d53800b4ec01606fae", "score": "0.5066691", "text": "public void siguienteRegistro(){\n if (posicion < (acumulador.size()-1)){\n posicion = posicion + 1;\n String lista = acumulador.get(posicion);\n String datos [] = lista.split(\",\");\n nombre = datos[0];\n email = datos[1];\n }\n \n }", "title": "" }, { "docid": "01cbd9182e22c1d2f78864ae4acad0bd", "score": "0.506502", "text": "public void agregar(String id,String año,String periodo){\n\t\tsuper.sentencia(\"INSERT INTO \"+tabla+\" VALUES('\"+id+\"','\"+año+\"','\"+periodo+\"');\");\n\t\t\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a1af1f813d6cb106f1f11ddbd8e53652", "score": "0.0", "text": "public static void main(String[] args) throws ParseException {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t // java.util.Date bDate = sdf.parse(\"12-12-1990\");\n\t // java.util.Date eDate =sdf.parse(\"12-12-2012\");\n\t\tCustomer c1 = new Customer(1,\"John\",\"9876543210\",sdf.parse(\"12-12-1990\"),5000.0,25000.0,sdf.parse(\"12-12-2012\"),3.0 );\n\t\tCustomer c2 =new Customer(2, \"John\", \"9876543210\",sdf.parse (\"12-12-1990\"), 8000.0, 28000.0,sdf.parse(\"12-11-2012\"), 3.5 );\n\t\tSystem.out.println(c1+\"\\n\\n\");\n\t\tSystem.out.println(c2);\n\t\t\n\t\tif(c1.equals(c2)) {\n\t\t\tSystem.out.println(\"\\nCustomer 1 is same as Customer 2\");\n\t\t}\n\t\t\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
96c39d8edd39d6962a8adbc90b31694c
Returns an iterator for all DrawFillImageElement elements.
[ { "docid": "3d4f633e03e072c474d54b136ef8ff99", "score": "0.79469496", "text": "public Iterable<DrawFillImageElement> getFillImages() {\n if (mFillImages != null) {\n return mFillImages.values();\n } else {\n return new ArrayList<DrawFillImageElement>();\n }\n }", "title": "" } ]
[ { "docid": "7662bbcfc2fa84caac1e9bd6b13742d0", "score": "0.64058816", "text": "public Iterator<ImageData> iterator() {\n return Arrays.asList(_imageDataAry).iterator();\n }", "title": "" }, { "docid": "4a2183aaa83ad73b1be1fe2c689d903e", "score": "0.6205426", "text": "java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTFillEffect> getFillList();", "title": "" }, { "docid": "2c30d0e0bbf9b1efad7fac6630ccd9dc", "score": "0.61876714", "text": "public synchronized Iterator iterator() {\n return graphics.iterator();\n }", "title": "" }, { "docid": "f76df82ee842edb3eac9bf9b51c38ea4", "score": "0.6154688", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTFillEffect getFillArray(int i);", "title": "" }, { "docid": "5cfe6c20fb3836c12c7aebffb927741a", "score": "0.57948697", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTFillOverlayEffect getFillOverlayArray(int i);", "title": "" }, { "docid": "ed51aa067d82b605191adb05c6f0af1f", "score": "0.5778696", "text": "java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTFillOverlayEffect> getFillOverlayList();", "title": "" }, { "docid": "0339a76b45aa966b36d6b2a0e5ac4cbd", "score": "0.56629664", "text": "@Override\n\tpublic Iterator<Widget> iterator() {\n\t\treturn roundedContainer.iterator();\n\t}", "title": "" }, { "docid": "91778541b944b721d59eb5b0a9b28642", "score": "0.56536186", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTFillEffect[] getFillArray();", "title": "" }, { "docid": "98af6025e44ecc9e034ccbd9a791458a", "score": "0.54941577", "text": "public DrawFillImageElement getFillImage(String name) {\n if (mFillImages != null) {\n return mFillImages.get(name);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "f301efbb9eaee1251887e240110570d7", "score": "0.5442669", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTFillOverlayEffect[] getFillOverlayArray();", "title": "" }, { "docid": "a4b0eaa837e1bbffbefdfef901459ef4", "score": "0.5428283", "text": "public Iterator<T> iterator() {\n\t\treturn shapes.iterator();\n\t}", "title": "" }, { "docid": "f4dd4b54774ebb2da6c6cc8983c5d529", "score": "0.5427705", "text": "void setFillArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTFillEffect fill);", "title": "" }, { "docid": "63b2e05ad5744517af9105732f71e124", "score": "0.5402227", "text": "public Iterator<JtonElement> iterator() {\n return elements.iterator();\n }", "title": "" }, { "docid": "cbd98a5817cf95bd0a794234c7c414c5", "score": "0.5382335", "text": "public Iterator<Replaceable> iterator() {\n return _elements.iterator();\n }", "title": "" }, { "docid": "0b6863dedbe8f1f598c2fb72d042894b", "score": "0.5357004", "text": "@Override\n public Iterator<T> iterator() {\n return elements.iterator();\n }", "title": "" }, { "docid": "fb7a896e6bb0ff2402024e782afa30ff", "score": "0.5303149", "text": "public java.awt.Color[] getFillColors();", "title": "" }, { "docid": "ec2c6123d0f6542a75bacb332068e90c", "score": "0.52968836", "text": "@Override\r\n\tpublic Iterator iterator() {\r\n\t\treturn new Iterator<Widget>() {\r\n\r\n\t\t\tint state = 0;\r\n\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\treturn this.state == 0 && ResizablePanel.this.getWidget() != null;\r\n\t\t\t}\r\n\r\n\t\t\tpublic Widget next() {\r\n\t\t\t\tif (false == this.hasNext()) {\r\n\t\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\t\t}\r\n\t\t\t\tthis.state = 1;\r\n\t\t\t\treturn ResizablePanel.this.getWidget();\r\n\t\t\t}\r\n\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tif (this.state != 1) {\r\n\t\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t\t}\r\n\t\t\t\tthis.state = 2;\r\n\t\t\t}\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "380bf9e39015469b17b9292de904b9ca", "score": "0.52623594", "text": "public Iterator<Item> iterator() {\n return new RndIterator<>();\n }", "title": "" }, { "docid": "039614560151ef4713ec1b64037da393", "score": "0.5243357", "text": "Iterable<I> listImages();", "title": "" }, { "docid": "284565712578033a63ba87901d01fcab", "score": "0.523749", "text": "@Override\n public Iterator<Edge<T>> iterator() {\n // First, make a edges of all edges we can reach.\n ArrayList<Edge<T>> edges = edges();\n\n // Now, return the iterator over this array edges.\n return edges.iterator();\n }", "title": "" }, { "docid": "2f23881fef5fb3067c456a3ef0c5c646", "score": "0.5234473", "text": "@Override\r\n\t\tpublic Iterator<Point2D> iterator() {\n\t\t\treturn tempList.iterator();\r\n\t\t}", "title": "" }, { "docid": "aff7a07e14a6c211acf83b510bd4d1fc", "score": "0.52017885", "text": "public OpIterator iterator() {\n // some code goes here\n Set<Map.Entry<Field, Integer>> entries = groupMap.entrySet();\n List<Tuple> tupleList = new ArrayList<>();\n TupleDesc tupleDesc = new TupleDesc(new Type[]{groupFieldType, Type.INT_TYPE}, new String[]{null, null});\n for (Map.Entry<Field, Integer> entry : entries) {\n Tuple tuple = new Tuple(tupleDesc);\n tuple.setField(0, entry.getKey());\n\n tuple.setField(1, new IntField(entry.getValue()));\n\n tupleList.add(tuple);\n }\n return new TupleIterator(tupleDesc, tupleList);\n }", "title": "" }, { "docid": "f024b71cfda2ec36a700c480919313ca", "score": "0.51905644", "text": "public Iterator<T> iterator() {\n\t\tassert generatableStack.isEmpty() : \"Generatable stack was not empty at the time Iterator was accessed.\";\n\n\t\treturn elements.iterator();\n\t}", "title": "" }, { "docid": "e1b3a62858d82c39639e1848557e2486", "score": "0.50938344", "text": "public abstract Iterator<AbstractHalfEdge> fanIterator();", "title": "" }, { "docid": "c1722e4ab7ab61b6edd442e408f9e7cf", "score": "0.5085049", "text": "List<List<Pixel>> getPixels();", "title": "" }, { "docid": "01d7482e8b0d6bb049f61d020325488a", "score": "0.50697625", "text": "public BufferedImage gris() {\n int aux;\n for (int i = 0; i < imagen.getWidth(); i++) {\n for (int j = 0; j < imagen.getHeight(); j++) {\n Color c = new Color(this.imagen.getRGB(i, j));\n aux = (int) ((c.getRed() + c.getGreen() + c.getBlue()) / 3);\n int p = (aux << 16) | (aux << 8) | aux;\n\n imagen.setRGB(i, j, p);\n }\n }\n\n return imagen;\n }", "title": "" }, { "docid": "3565657a6322f9f58e6c96b28dc7beae", "score": "0.50624216", "text": "public Iterator<Polygon> iterator() { return list.iterator(); }", "title": "" }, { "docid": "9ad5101d4270c1b4af77fb4ccf3d1180", "score": "0.50394166", "text": "void setFillOverlayArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTFillOverlayEffect fillOverlay);", "title": "" }, { "docid": "06764b678b3f847d12ffe95b08479ba0", "score": "0.5005971", "text": "public Iterable<DrawGradientElement> getGradients() {\n if (mGradients != null) {\n return mGradients.values();\n } else {\n return new ArrayList<DrawGradientElement>();\n }\n }", "title": "" }, { "docid": "ffd229618c40cf977c278207290a1db8", "score": "0.49972263", "text": "@DISPID(-4)\r\n @PropGet\r\n java.util.Iterator<Com4jObject> iterator();", "title": "" }, { "docid": "34848eee102239ffd0fe6e0a62d7135d", "score": "0.4975707", "text": "public BufferedImage gris4() {\n int aux;\n for (int i = 0; i < imagen.getWidth(); i++) {\n for (int j = 0; j < imagen.getHeight(); j++) {\n Color c = new Color(this.imagen.getRGB(i, j));\n aux = (int) ((c.getBlue() + c.getGreen()) / 2);\n int p = (aux << 16) | (aux << 8) | aux;\n imagen.setRGB(i, j, p);\n }\n }\n\n return imagen;\n }", "title": "" }, { "docid": "ce687f557f9ca903a5b64ee23ab956b5", "score": "0.49755698", "text": "@Override\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0e6c346e621a40f2b32905591fb08ad4", "score": "0.49523944", "text": "public RIterator<T> iterator()\r\n\t{\r\n\t\treturn new ElementIterator();\r\n\t}", "title": "" }, { "docid": "dca2aa8416069259bd365d9a61e20c07", "score": "0.4951878", "text": "public Iterator<E> elementIterator() {\n return new ElementIterator();\n }", "title": "" }, { "docid": "8d512fcae4d5cbf9678a898f661add55", "score": "0.49422532", "text": "public Mat getFilledImage() { return this.filledImage; }", "title": "" }, { "docid": "cb0781c5c425130793f38f6aea341e91", "score": "0.49278808", "text": "@DISPID(-4)\r\n\t// = 0xfffffffc. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tjava.util.Iterator<Com4jObject> iterator();", "title": "" }, { "docid": "9a3e24816ebf01893c66af08709bc975", "score": "0.49188846", "text": "public Iterator<Resource> iterator() {\n //return isReference() ? ((Resource) getCheckedRef()).iterator()\n // : new Iterator<Resource>() {\n return new Iterator<Resource>() {\n private boolean done = false;\n\n public boolean hasNext() {\n return !done;\n }\n\n public Resource next() {\n if (done) {\n throw new NoSuchElementException();\n }\n done = true;\n return Resource.this;\n }\n\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }", "title": "" }, { "docid": "4bc9149959b6927e31b7895602a786e3", "score": "0.49171835", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTFillEffect insertNewFill(int i);", "title": "" }, { "docid": "6b26b9b12375922bcb2eb9352bb593d7", "score": "0.49050796", "text": "@Override\n public Iterator<T> iterator() {\n\t return this._ringBuffer.iterator();\n }", "title": "" }, { "docid": "4f7e010dc084c03e98fb57cd20d9d8b5", "score": "0.48882192", "text": "public Iterator iterator();", "title": "" }, { "docid": "287e979d37a453d0b2157c5d70e6be04", "score": "0.485684", "text": "static Iterator<Square> iterator() {\n return SQUARE_LIST.iterator();\n }", "title": "" }, { "docid": "73b30b04d706f122b6b75d697ea930f7", "score": "0.48560774", "text": "@VTID(12)\n java.util.Iterator<Com4jObject> iterator();", "title": "" }, { "docid": "03de49f17d373a4e8eac191ad5a7aa09", "score": "0.48527437", "text": "private void getImages() {\n Field[] fields = R.drawable.class.getFields();\n drawables = new ArrayList<Integer>();\n imageNames = new ArrayList<Integer>();\n thumbnails = new ArrayList<Integer>();\n for (Field field : fields) {\n if (field.getName().startsWith(\"background\")) {\n try {\n if(field.getName().contains(\"small\")){\n thumbnails.add((Integer) field.get(null));\n }else{\n drawables.add((Integer) field.get(null));\n imageNames.add(field.getInt(null));\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "4c05f68beddd64751f3510aa1cc4ead8", "score": "0.4844651", "text": "public Iterator getIterator();", "title": "" }, { "docid": "610a3f93857cb47e36e0f8b0370b307c", "score": "0.4824181", "text": "@Override\n\tpublic void draw(final Graphics2D g)\n\t{\n\t\tfor(Drawable o : this.elements)\n\t\t\to.draw(g);\n\t}", "title": "" }, { "docid": "25439b00519ef2959908df71e70ed88d", "score": "0.48154444", "text": "public List<IElementGraphicalModel> getElements(){\n \t\treturn mElements;\n \t}", "title": "" }, { "docid": "1bd2ad2b515bd2a985618c7bdcd25f17", "score": "0.48068258", "text": "@Test\n public void rowmajorpixeliteratoTest() {\n\tIterator<Pixel> iter = p.iterator();\n\tp.setPixel(3, 2, BLUE);\n\tfor (int i = 0; i < 15; i++) {\n\t iter.next();\n\t}\n\tassertTrue(iter.next().equals(p.getPixel(3, 2)));\n\n\t// hasNext() true test\n\tassertTrue(iter.hasNext());\n\n\t// hasNext() false test with next() usage\n\tPicture p2 = new PictureImpl(1, 1);\n\tIterator<Pixel> iter2 = p2.iterator();\n\titer2.next();\n\tassertFalse(iter2.hasNext());\n\n }", "title": "" }, { "docid": "ab32534a03c60a3deae4ec74226af1bd", "score": "0.47889194", "text": "public Color getFillColor() {\r\n return fillColor;\r\n }", "title": "" }, { "docid": "43516b9228f2e11ba9d47f2c4ed31f25", "score": "0.47845018", "text": "@Override\n\tpublic Pixel next() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7ac289f0ad8b343fac82706f2f11e971", "score": "0.47778705", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTFillOverlayEffect insertNewFillOverlay(int i);", "title": "" }, { "docid": "03170dfb4d9a0aa98436d3711bb327e9", "score": "0.4777447", "text": "public Iterator<GraphNode> iterator() {\n return vlist.iterator();\n }", "title": "" }, { "docid": "feb44ec5e5391d044bf6e87596e2929d", "score": "0.47570705", "text": "public Iterator getImageTypes(int imageIndex) {\n\tjava.util.List l = new java.util.ArrayList();;\n int bits = 8;\n\n\t/*\n\t * can convert ch5 format into 8 bit grayscale image with no alpha\n\t */\n l.add(ImageTypeSpecifier.createGrayscale(bits,\n\t\t\t\t\t\t DataBuffer.TYPE_BYTE,\n\t\t\t\t\t\t false));\n\treturn l.iterator();\n }", "title": "" }, { "docid": "ecc6b17d60ff2c79b354a9842b351660", "score": "0.47551313", "text": "public Iterator<T> iterator()\r\n{\r\n List<T> vals = new ArrayList<T>();\r\n if (root != null)\r\n root.getVals(vals);\r\n return vals.iterator();\r\n}", "title": "" }, { "docid": "c0932cace31ef6d358c3c7de374ab88e", "score": "0.47536469", "text": "public Color getFillColor() {\n return fillColor;\n }", "title": "" }, { "docid": "8f498176e3b1aca304a6ba59839b047d", "score": "0.4751706", "text": "@Override\n public Iterator<T> iterator() {\n return new ArrayRingIterator();\n }", "title": "" }, { "docid": "f3b9db09ca769478b04d5409e7c2f295", "score": "0.4743144", "text": "public Iterator<GraphNode> iterator() {\n\t\treturn vlist.iterator();\n\t}", "title": "" }, { "docid": "3ea05bcec7ac1f041a63bb9fd06fad54", "score": "0.47396263", "text": "@Override\n\tpublic Iterator<E> iterator() {\n\t\t\n\t\t/* Create new iterator method */\n\t\tIterator<E> it = new Iterator<E>() {\n\t\t\tint r = 0, c = 0;\n\n\t\t\t/* Indicates when the iteration has completed */\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\tif((r * columns + c) == plane.size()){\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Returns next object in collection */\n\t\t\t@Override\n\t\t\tpublic E next() {\n\t\t\t\tif(c == columns){\n\t\t\t\t\tc = 0;\n\t\t\t\t\tr++;\n\t\t\t\t}\n\t\t\t\treturn plane.get(r * columns + c++);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\t\t\t}\n\t\t};\n\t\treturn it;\n\t}", "title": "" }, { "docid": "fe0040d63545cd18b58d7c579b39fe27", "score": "0.47379807", "text": "public Iterator<IntervalTree<DiskIntervalGenomicRegion<T>,T>> groupIterator() {\n\t\treturn groupIterator(0);\n\t}", "title": "" }, { "docid": "80df198e4e1e6a83bc207a2e7820f870", "score": "0.4732904", "text": "public Iterator<E> iterator();", "title": "" }, { "docid": "08915cf5531e2546fc5e838a085957fa", "score": "0.47299242", "text": "private void renderAll() {\n\t\t//Iterates over the whole image\n\t\tfor(int x=0;x<this.scaled.getWidth();x++)\n\t\t\tfor(int y=0;y<this.scaled.getHeight();y++) {\n\t\t\t\t//Get color\n\t\t\t\tColor color = new Color(this.scaled.getRGB(x, y));\n\t\t\t\t\n\t\t\t\t//Renders the pixel\n\t\t\t\tGL11.glColor3f(color.getRed()/255f, color.getGreen()/255f, color.getBlue()/255f);\n\t\t\t\tRenderUtil.getInstance().renderBlockOverlay(this.pos.getX()+x, this.pos.getY(), this.pos.getZ()+y, .7f);\n\t\t\t}\n\t}", "title": "" }, { "docid": "c48e6fd1defaddbc5837b00a34fcc8ff", "score": "0.47291967", "text": "public Image getImage(int elementNum);", "title": "" }, { "docid": "f3f295070621a376846813c912f78932", "score": "0.47198567", "text": "public OpIterator iterator() {\n ArrayList<Tuple> tuples = new ArrayList<Tuple>(); // to iterate over\n String[] fieldNames;\n Type[] fieldTypes;\n if (gbfieldIndex == Aggregator.NO_GROUPING) {\n fieldNames = new String[] {\"aggregateVal\"};\n fieldTypes = new Type[] {Type.INT_TYPE};\n }\n else {\n fieldNames = new String[] {\"groupValue\", \"aggregateValue\"};\n fieldTypes = new Type[] {gbfieldType, Type.INT_TYPE};\n }\n TupleDesc td = new TupleDesc(fieldTypes, fieldNames);\n\n // create tuple for every field to be grouped over\n for(Field fieldName: agg.keySet()){\n int aggVal;\n Tuple toAdd;\n if (op==Op.AVG){\n aggVal=agg.get(fieldName) / count.get(fieldName);\n }\n else if(op==Op.COUNT){\n aggVal=count.get(fieldName);\n }\n else{\n aggVal=agg.get(fieldName);\n }\n toAdd = new Tuple(td);\n if(gbfieldIndex==NO_GROUPING){\n toAdd.setField(0, new IntField(aggVal));\n }\n else{\n toAdd.setField(0, fieldName);\n toAdd.setField(1, new IntField(aggVal));\n }\n tuples.add(toAdd);\n }\n return new TupleIterator(td, tuples);\n }", "title": "" }, { "docid": "129eb93e43195d9c1388492c403e7a16", "score": "0.47168738", "text": "Collection<IExperimentElement> iterateToNext();", "title": "" }, { "docid": "404915c7b0cc5b929ac489fd1c46f729", "score": "0.47127917", "text": "public Iterator<Point2D> iterator() {\n return new ListIterator<Point2D>(first);\n }", "title": "" }, { "docid": "ecf252f068e35b422ee27f58a63bab61", "score": "0.46942797", "text": "public Iterator<LatLon> iterator()\n {\n return new Iterator<LatLon>()\n {\n private int position = 0;\n\n public boolean hasNext()\n {\n return this.position < 4;\n }\n\n public LatLon next()\n {\n if (this.position > 3)\n throw new NoSuchElementException();\n\n return boundary[position++].getStartPoint();\n }\n\n public void remove()\n {\n throw new UnsupportedOperationException();\n }\n };\n }", "title": "" }, { "docid": "377149183ca257ebd9ea1df909805387", "score": "0.46935862", "text": "public abstract Iterator getAttachments();", "title": "" }, { "docid": "0bea40cb2f1fdebc979ef3c50186384c", "score": "0.46861386", "text": "@Override\r\n\tpublic Iterator<E> iterator() {\r\n\t\treturn new IteratorPair<E>(iteA.iterator(), iteB.iterator());\r\n\t}", "title": "" }, { "docid": "a388e87026c51e75a6b787ddbf2407ec", "score": "0.46832296", "text": "public GraphEnumeration elements() {\n\t\treturn new Enumerator(NODE | EDGE | SUBGRAPH);\n\t}", "title": "" }, { "docid": "388aedc037e195c78ddce1b20c322bd3", "score": "0.46818063", "text": "public void beginBitmapFill(BitmapData bitmap) {}", "title": "" }, { "docid": "eadc037304bdbb285f51c53d34b22c43", "score": "0.46725458", "text": "@Override\r\n\tpublic Iterator<Form> iterator()\r\n\t\t{\r\n\t\treturn listeForm.iterator();\r\n\t\t}", "title": "" }, { "docid": "5aae85aced7da7eade6225a33deaf62a", "score": "0.46716127", "text": "private BufferedImage[] getImages() {\n\n\t\t// create an array of buffered image\n\t\tBufferedImage[] imageArray = new BufferedImage[18];\n\n\t\t// load images require exception handling\n\t\ttry {\n\n\t\t\t// get the images for each element\n\t\t\timageArray[0] = ImageIO.read(new File(\"support/images/face-sunscreen.png\"));\n\t\t\timageArray[1] = ImageIO.read(new File(\"support/images/eye-cream.png\"));\n\t\t\timageArray[2] = ImageIO.read(new File(\"support/images/lip-balm.png\"));\n\t\t\timageArray[3] = ImageIO.read(new File(\"support/images/sheet-mask.png\"));\n\t\t\timageArray[4] = ImageIO.read(new File(\"support/images/face-mask.png\"));\n\t\t\timageArray[5] = ImageIO.read(new File(\"support/images/anti-aging.png\"));\n\t\t\timageArray[6] = ImageIO.read(new File(\"support/images/face-serum.png\"));\n\t\t\timageArray[7] = ImageIO.read(new File(\"support/images/face-oil.png\"));\n\t\t\timageArray[8] = ImageIO.read(new File(\"support/images/moisturizer.png\"));\n\t\t\timageArray[9] = ImageIO.read(new File(\"support/images/night-cream.png\"));\n\t\t\timageArray[10] = ImageIO.read(new File(\"support/images/body-sunscreen.png\"));\n\t\t\timageArray[11] = ImageIO.read(new File(\"support/images/hair-removal.png\"));\n\t\t\timageArray[12] = ImageIO.read(new File(\"support/images/cleansing-device.png\"));\n\t\t\timageArray[13] = ImageIO.read(new File(\"support/images/teeth-whitening.png\"));\n\t\t\timageArray[14] = ImageIO.read(new File(\"support/images/makeup-remover.png\"));\n\t\t\timageArray[15] = ImageIO.read(new File(\"support/images/exfoliator.png\"));\n\t\t\timageArray[16] = ImageIO.read(new File(\"support/images/face-wash.png\"));\n\t\t\timageArray[17] = ImageIO.read(new File(\"support/images/toner.png\"));\n\t\t} catch (Exception e) {\n\n\t\t\t// print out the exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// loop through the array of images\n\t\tfor (int i = 0; i < imageArray.length; i++) {\n\n\t\t\t// update each image (resize the image)\n\t\t\timageArray[i] = updateImage(imageArray[i], 200, 200);\n\t\t}\n\n\t\t// return the array of images\n\t\treturn imageArray;\n\t}", "title": "" }, { "docid": "fd782f161c849cf7770e4949591ae8ec", "score": "0.4666767", "text": "public Cursor iterator() {\n return cards.iterator(0);\n }", "title": "" }, { "docid": "d38f9fcaef9dea2870396d23e87554ca", "score": "0.4659369", "text": "void getImages(){\r\n for(int i = 0; i < areas.size(); i++){\r\n areas.get(i).getAreaImage();\r\n }\r\n for(int i = 0; i < crates.size(); i++){\r\n crates.get(i).getCrateImage();\r\n }\r\n player.getPlayerImage(2);\r\n }", "title": "" }, { "docid": "9de61b984a43fa28d0ec6400ee198e28", "score": "0.46585992", "text": "@Test\n @DependsOnMethod({\"testOnImage\", \"testOnRasterFullArea\"})\n public void testOnImageFullArea() {\n xmin = -5;\n ymin = -3;\n width = 60;\n height = 50;\n tileWidth = 6;\n tileHeight = 5;\n numBands = 1;\n minTileX = 999;\n minTileY = -99;\n final Rectangle subArea = new Rectangle(-10, -10, 150, 80);\n createPixelIterator(createImage(subArea), subArea);\n assertTrue(\"Expected a non-empty set of values.\", expected.length != 0);\n verifyIterationOrder(false);\n verifyIteration(false);\n }", "title": "" }, { "docid": "da44d72ede141513c282c5eaa52b8d12", "score": "0.46524414", "text": "public Iterator iterator() {\r\n return baralho.iterator();\r\n }", "title": "" }, { "docid": "745e8a20e5090c22a4b5574a0bf649d0", "score": "0.46523857", "text": "public MorphiaIterator<T,T> get_morphia_iterator () {\n\t\treturn morphia_iterator;\n\t}", "title": "" }, { "docid": "dc2a68ed56861cf7ba16c8686e0ee31b", "score": "0.4652035", "text": "void setFillArray(org.openxmlformats.schemas.drawingml.x2006.main.CTFillEffect[] fillArray);", "title": "" }, { "docid": "7a2b27939c829ba8e16abf083011eeeb", "score": "0.46517903", "text": "public interface LoopStrategy extends Iterable<ImageData>{\n\n\n\n\n}", "title": "" }, { "docid": "4b74a0fafd64837b0e9fb4b9d15b5bc5", "score": "0.46512654", "text": "public ElementIterator() {\n\t // TODO code to be provided\n\t \tindex = 0;\n\t }", "title": "" }, { "docid": "05636eb6847205ccdc6f0ab03bbdd692", "score": "0.46483266", "text": "public ArrayList getCanvasElements() {\r\n return this.canvasElements;\r\n }", "title": "" }, { "docid": "79d94bfcaad55aca5431d0f7b58b2755", "score": "0.46481642", "text": "@Override\n\t@SuppressWarnings(\"unchecked\") //TODO: remove when Guava uses @SafeVarargs (Guava issue 1073)\n\tpublic Iterator<Type> iterator() {\n\t\treturn Iterables.unmodifiableIterable(Iterables.<Type>concat(\n\t\t\t\ttypeMap.values(),\n\t\t\t\tmethodTypes,\n\t\t\t\tstaticFieldTypes,\n\t\t\t\tinstanceFieldTypes,\n\t\t\t\tImmutableList.of(basicBlockType, nullType))\n\t\t\t\t).iterator();\n\t}", "title": "" }, { "docid": "d120f777a69821968308a68a4b36af54", "score": "0.464355", "text": "static void FloodFillOutline()\n\t{\n\t\tboolean shouldContinue = true;\n\t\twhile(shouldContinue)\n\t\t{\n\t\t\tshouldContinue = false;\n\t\t\tfor(int x = 0; x < pixelArray.length; x++)\n\t\t\t{\n\t\t\t\tfor(int y = 0; y < pixelArray[x].length; y++)\n\t\t\t\t{\n\t\t\t\t\tif(pixelArray[x][y] == PixelType.ToCheck)\n\t\t\t\t\t{\n\t\t\t\t\t\tCheckAPixel(x, y);\n\t\t\t\t\t\tshouldContinue = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\t\n\t}", "title": "" }, { "docid": "810a4d6aa6e05ebbabb7dff961bd59df", "score": "0.46300876", "text": "public Iterator<RpmFile> iterator() {\n return rpms.listIterator();\n }", "title": "" }, { "docid": "6004fac7bb7992dfb1ec285143fb3435", "score": "0.46280965", "text": "@Override\n protected void fillImageHandler() {\n }", "title": "" }, { "docid": "0b24354e03bef16c205ac70a3d833fa1", "score": "0.462059", "text": "private static List<WebElement> elementsMaps() {\n\t\treturn driver.findElements(By.cssSelector(\"div.col-md-9 img\"));\n\t}", "title": "" }, { "docid": "5322aa5cf0047cbf18d20938d2605d23", "score": "0.46203464", "text": "public Iterable<Key> iterator() {\n return null;\n }", "title": "" }, { "docid": "c8649dad29c52d6ff8d499c401f9f5b4", "score": "0.4619548", "text": "Iterator<GoldDatum> iterator();", "title": "" }, { "docid": "0c2c6c4e28717e731f49a06f2f7c9536", "score": "0.4618634", "text": "public Iterator<E> iterator() {\n\t\treturn new IteratorHelper();\n\t}", "title": "" }, { "docid": "34b42fbc725bf58f88a6137e4c4ee8bb", "score": "0.46174756", "text": "public DbIterator iterator() {\n ArrayList<Tuple> tupleList = new ArrayList<>();\n Set<Field> candidate;\n if (what == Op.COUNT) candidate = cntMap.keySet();\n else candidate = resultMap.keySet();\n for (Field groupKey : candidate) {\n Field result;\n if (what == Op.COUNT) result = new IntField(cntMap.get(groupKey));\n else if (what == Op.AVG) result = new IntField(resultMap.get(groupKey) / cntMap.get(groupKey));\n else result = new IntField(resultMap.get(groupKey));\n\n Tuple t = new Tuple(td);\n if (gbField == NO_GROUPING) t.setField(0, result);\n else {\n t.setField(0, groupKey);\n t.setField(1, result);\n }\n tupleList.add(t);\n }\n return new TupleIterator(td, tupleList);\n }", "title": "" }, { "docid": "16d90d4dc471bde18bf9e51c856ddf1c", "score": "0.46125036", "text": "public final List<Drawable> getDrawableList() {\n return this.f102955d;\n }", "title": "" }, { "docid": "24bae8ed26b58de2b545e78e45095ae7", "score": "0.46103525", "text": "Iterator iterator();", "title": "" }, { "docid": "24bae8ed26b58de2b545e78e45095ae7", "score": "0.46103525", "text": "Iterator iterator();", "title": "" }, { "docid": "c514c2d80c12a8df9d986776b591e60f", "score": "0.4601423", "text": "public BufferedImage grsi1() {\n\n for (int i = 0; i < imagen.getWidth(); i++) {\n for (int j = 0; j < imagen.getHeight(); j++) {\n Color c = new Color(this.imagen.getRGB(i, j));\n int gray = (int) (c.getRed() * 0.3 + c.getGreen() * 0.59 + c.getBlue() * 0.11);\n int p = (gray << 24) | (gray << 16) | (gray << 8) | gray;\n\n imagen.setRGB(i, j, p);\n }\n }\n\n return imagen;\n }", "title": "" }, { "docid": "5ef079a6b6a1757a1585c75710bf6cf5", "score": "0.45984825", "text": "public java.util.Iterator <Arc> arcs(){\n\n\t\treturn arcList.iterator();\n\t}", "title": "" }, { "docid": "1b5073a7b0d3e5392ef6ca57cb53dd63", "score": "0.45909023", "text": "public Iterator<T> iterator() {\n return uiObjectList.iterator();\n }", "title": "" }, { "docid": "88b4a7693287d0a22721b20b456a7c36", "score": "0.45873863", "text": "public OpIterator iterator() {\n // some code goes here\n ArrayList<Tuple> tuples = new ArrayList<>();\n\n if(gbfieldIndex==NO_GROUPING){\n Tuple tuple = new Tuple(tupleDesc);\n tuple.setField(0,new IntField(counts.get(null)));\n tuples.add(tuple);\n }else{\n for(Field key: counts.keySet()){\n Tuple tuple = new Tuple(tupleDesc);\n tuple.setField(0,key);\n tuple.setField(1,new IntField(counts.get(key)));\n tuples.add(tuple);\n }\n }\n return new TupleIterator(tupleDesc,tuples);\n }", "title": "" }, { "docid": "adcdb1034d70365a3b0a7ebbb4556d78", "score": "0.45803", "text": "public void draw(Graphics graphics)\n {\n for(Drawable d : elements)\n {\n d.draw(graphics);\n }\n }", "title": "" }, { "docid": "e7cf4085d64ef518102ed1b485f9fb67", "score": "0.45778656", "text": "public interface Image {\n\n\n /**\n * Returns the image's pixels.\n *\n * @return the image's pixels as a list of lists.\n */\n List<List<Pixel>> getPixels();\n}", "title": "" }, { "docid": "4a01ee1f6efe9a50cec43a8b53de44c7", "score": "0.457169", "text": "public Iterator<Edge> getEdgeResultIterator() {\n\t\tArrayList<Edge> edges = new ArrayList<Edge>();\n\t\tfor(int i = 0; i < this.data.length(); i++) {\n\t\t\ttry {\n\t\t\t\tif(! this.data.isNull(i))\t\t\t\t\n\t\t\t\t\tedges.add(Edge.fromJSONObject(this.data.getJSONObject(i)));\n\t\t\t}\n\t\t\tcatch(Exception ex) {\n\t\t\t\t// suppress error\n\t\t\t\tlogger.debug(\"Result set could not be interpreted as an Edge array.\", ex);\n\t\t\t\tlogger.debug(\"Result set: \" + this.data.toString());\n\t\t\t\treturn null;\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\treturn edges.iterator();\n\t}", "title": "" }, { "docid": "38e2106e8e6f3138cc5fc6ab73bb5e11", "score": "0.45684284", "text": "public Iterator<bd> m9828y() {\r\n return this.f6293g == null ? null : this.f6293g.iterator();\r\n }", "title": "" } ]
3064aedb2a64a2c92f1b42de3ecf58f8
required .protobuf.AirConditionerSendorSpecificInfo.AirConditionerOperatironMode operationMode = 4;
[ { "docid": "86b7cbb2c4e35748c2e98ea95645cee0", "score": "0.76971596", "text": "public com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerOperatironMode getOperationMode() {\n return operationMode_;\n }", "title": "" } ]
[ { "docid": "81f62dd4ea621e6f97dd069928a5b5dd", "score": "0.8566893", "text": "com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerOperatironMode getOperationMode();", "title": "" }, { "docid": "7c974330759fa8d632e468b636294db2", "score": "0.77722776", "text": "public com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerOperatironMode getOperationMode() {\n return operationMode_;\n }", "title": "" }, { "docid": "4663e5e81c5019d0d9d3564eea8e39bb", "score": "0.73797596", "text": "public Builder setOperationMode(com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerOperatironMode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n operationMode_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "02fa1309928c68a0bf5fe4cd4f35b49b", "score": "0.6556293", "text": "com.harmazing.protobuf.CommandProtos.AirConditionerControl.CommandType getType();", "title": "" }, { "docid": "0ff63f4d0ab799f6b0115bbf1628191b", "score": "0.6510294", "text": "public Builder clearOperationMode() {\n bitField0_ = (bitField0_ & ~0x00000008);\n operationMode_ = com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerOperatironMode.FANONLY;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fe87aec6dacf68adaf9a571519c6bf87", "score": "0.63990706", "text": "com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerFanMode getFanMode();", "title": "" }, { "docid": "0d1d67ea0c2aa058b88bba3d29bbe5d7", "score": "0.61118174", "text": "com.harmazing.protobuf.CommandProtos.AirConditionerControlOrBuilder getAcControlOrBuilder();", "title": "" }, { "docid": "d506a0d6eadb6d7de4b8b07620d15b58", "score": "0.5633935", "text": "com.clarifai.grpc.api.OperationOrBuilder getOperationOrBuilder();", "title": "" }, { "docid": "b39ed190b58c81beb5483137e92eed58", "score": "0.5603215", "text": "private AirConditionerControl(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "65a30e90d03af99d88352a6d5e6ff278", "score": "0.557287", "text": "org.jetbrains.kotlin.backend.common.serialization.proto.IrExpression getCondition();", "title": "" }, { "docid": "17c629574a23d79c0f81825771cc3ccb", "score": "0.5488631", "text": "com.harmazing.protobuf.CommandProtos.AirConditionerControl getAcControl();", "title": "" }, { "docid": "21fe90773ea3578e736961b542287947", "score": "0.54467165", "text": "@Override\n public void setOperationMode(OperationMode operationMode) throws InstrumentException {\n\n }", "title": "" }, { "docid": "da3e4afc2788f35b141a7695fcf17bc2", "score": "0.54412985", "text": "public GWCAPacket(GWCAOperation operation, short operationType, byte[] wparam, byte[] lparam) {\n this.operation = operation;\n \n //FIXME: we currently only support NUMERIC commands, so add support for TEXT\n // calculate whether this command is a REQUEST or a COMMAND\n short operationId = operation.getOperationId();\n if(operationId > COMMANDS_BEGIN && operationId < COMMANDS_END) {\n this.operationType = COMMAND;\n } else if(operationId > REQUEST_BEGIN && operationId < REQUESTS_END) {\n this.operationType = REQUEST;\n } else {\n // Cannot happen if the enum is currently coded\n }\n \n this.operationType = operationType;\n this.wparam = wparam;\n this.lparam = lparam;\n }", "title": "" }, { "docid": "437928e4260f6b9d39d169cf9b6caaf6", "score": "0.5396797", "text": "public void setOperation(String operation){\n this.operation = operation;\n }", "title": "" }, { "docid": "9c42175baf6215bb468c0e1a94fe0c00", "score": "0.53806823", "text": "public boolean hasOperationMode() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "79189b377cb05a6d79ed1dc77f1e2c3a", "score": "0.53740263", "text": "public boolean hasOperationMode() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "f74a2c7057fd09aaa83390737185d547", "score": "0.53495735", "text": "private ReqBattleModeMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "1ce55777402211ec14ac3b11ffd55531", "score": "0.534852", "text": "public CE getTransmissionModeCode() { return _transmissionModeCode; }", "title": "" }, { "docid": "296286cf5f24d7600849d0f59592344a", "score": "0.5336393", "text": "@JsonProperty(\"featuresConditionedAir\")\n public void setConditionedAir(Boolean conditionedAir) {\n this.conditionedAir = conditionedAir;\n }", "title": "" }, { "docid": "bd3fa4874f18d06444c2f5bb6e59a681", "score": "0.532874", "text": "public com.harmazing.protobuf.CommandProtos.AirConditionerControl.CommandType getType() {\n return type_;\n }", "title": "" }, { "docid": "b5602e217e97ce3356e16cdc4d8a78b9", "score": "0.53266585", "text": "public void setOperation(int operation);", "title": "" }, { "docid": "934a43a5af2bd28dfeb6aa59d90a8d46", "score": "0.53140324", "text": "public void setOperationpriorityflag(Boolean operationpriorityflag) {\n this.operationpriorityflag = operationpriorityflag;\n }", "title": "" }, { "docid": "353cc14e019751f0664af3acb2e64cb7", "score": "0.5283175", "text": "public com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerFanMode getFanMode() {\n return fanMode_;\n }", "title": "" }, { "docid": "7ab2396a7e4bb98c56d2c31fa8aa1003", "score": "0.52786267", "text": "public GWCAPacket(GWCAOperation operation, byte[] wparam, byte[] lparam) {\n this.operation = operation;\n \n //FIXME: we currently only support NUMERIC commands, so add support for TEXT\n // calculate whether this command is a REQUEST or a COMMAND\n short operationId = operation.getOperationId();\n if(operationId > COMMANDS_BEGIN && operationId < COMMANDS_END) {\n this.operationType = COMMAND;\n } else if(operationId > REQUEST_BEGIN && operationId < REQUESTS_END) {\n this.operationType = REQUEST;\n } else {\n // Cannot happen if the enum is currently coded\n }\n \n this.wparam = wparam;\n this.lparam = lparam;\n }", "title": "" }, { "docid": "1470e0ccd49f0b29ad0f8d1f6d7f3224", "score": "0.52544343", "text": "public void setOperation (String operation) {\n this.operation = operation;\n }", "title": "" }, { "docid": "ce269ebde60e670d41d4a5b9f1796f12", "score": "0.5237918", "text": "com.harmazing.protobuf.CommandProtos.OoControlOrBuilder getOoControlOrBuilder();", "title": "" }, { "docid": "dcd1c820b57d35f43e6fee624fb0a572", "score": "0.52298504", "text": "public com.harmazing.protobuf.CommandProtos.AirConditionerControl.CommandType getType() {\n return type_;\n }", "title": "" }, { "docid": "04701e31bb22d26345a44e255973228f", "score": "0.5158508", "text": "public String getOperation() {\n return this.operation;\n }", "title": "" }, { "docid": "2ca7804d9079217739efb13f9570415f", "score": "0.5155948", "text": "public com.harmazing.protobuf.SensorProtos.AirConditionerSendorSpecificInfo.AirConditionerFanMode getFanMode() {\n return fanMode_;\n }", "title": "" }, { "docid": "2ad59dd60edfe059198195948ff32525", "score": "0.51361465", "text": "public Boolean getOperationpriorityflag() {\n return operationpriorityflag;\n }", "title": "" }, { "docid": "9f75ea640d978d77d3e619242f942eb7", "score": "0.51312774", "text": "boolean hasOperationMode();", "title": "" }, { "docid": "f6f9ee92f19ee81f4be7259bff0d9a93", "score": "0.512469", "text": "public abstract boolean isAppropriateOperator(VehicleOperator operator);", "title": "" }, { "docid": "30b6180282ba1193894568262d0fe612", "score": "0.5118396", "text": "public interface OrderConstant {\n \n//\tlong CREATE_SUCCESS = 0X00;//提交订单成功\n// long ORDER_PROCESSING = 0X01;//处理中\n// long ORDER_COMPLETE = 0X02;//已完成\n// long ORDER_CANCELED = 0X03;//已取消\n// long ORDER_WAITING_PAY = 0X04;//待付款\n// long ORDER_WAITING_RECEIPT = 0X05;//待收货\n// long ORDER_PART_RAY = 0X06;//部分付款\n\n long ORDER_TYPE_SINGLE = 0X00;\n long ORDER_TYPE_COMPOSITE = 0X01;\n long ORDER_TYPE_COMPOSITE_PART = 0X02;\n\n Integer SOURCE_IPHONE = 1;//iPhone客户端 客户自主下单\n Integer SOURCE_ANDROID = 2;//Android客户端 客户自主下单\n Integer SOURCE_H5 = 3;//H5网站 客户自主下单\n Integer SOURCE_PC = 4;//PC网站\n Integer SOURCE_CSH = 5;//客服&销售电话下单\n Integer SOURCE_RECEPTION = 6;//客服&销售现场下单 BOSS \n Integer SOURCE_RECEPTION_IHOME = 7;//客服&销售APP下单iPhone\n Integer SOURCE_RECEPTION_ANDROID = 8;//客服&销售APP下单Android\n String SOURCE_IPHONE_STR = \"iPhone客户端\";//iPhone客户端 客户自主下单\n String SOURCE_ANDROID_STR = \"Android客户端\";//Android客户端 客户自主下单\n String SOURCE_H5_STR = \"Android客户端\";//H5网站 客户自主下单\n String SOURCE_PC_STR = \"PC网站\";//PC网站\n String SOURCE_CSH_STR = \"客服电话下单\";//客服&销售电话下单\n String SOURCE_RECEPTION_STR = \"客服BOSS代客下单\";//客服&销售现场下单 BOSS \n String SOURCE_RECEPTION_IHOME_STR = \"客服iPhone代客下单\";//客服&销售APP下单iPhone\n String SOURCE_RECEPTION_ANDROID_STR = \"客服Android代客下单\";//客服&销售APP下单Android\n \n// Integer ORDER_STATUS_WAITING_PAY =0;\n// Integer ORDER_STATUS_WAITING_RECEIPT =1;\n// Integer ORDER_STATUS_CANCLE =3;\n \n /**\n * @see com.ihomefnt.oms.trade.order.enums.OrderState\n * CREATE(\"提交订单\", 0), \n * PROCESSING(\"处理中\", 1), \n * FINISH(\"已完成\", 2), //\n * CANCEL(\"已取消\", 3), \n * NO_PAYMENT(\"待付款\", 4), \n * NO_RECEIVE(\"待收货\", 5),//\n * PART_PAYMENT(\"部分付款\", 6), //\n * NO_CONSTRUCT(\"待施工\", 7), //\n * CONSTRUCTING(\"施工中\", 8), //\n * NO_REFUND(\"待退款\", 9), \n * NO_SEND(\"待发货\", 10), //\n * NO_FOR_PAYMENT(\"待结款\", 11), \n * CLOSED(\"交易关闭\", 12); -- 已废弃\n * (\"待交付\",12),\n * (\"接触阶段\",13)\n * (\"意向阶段\",14)\n * (\"定金阶段\",15)\n * (\"签约阶段\",16)\n * (\"交付中\",17)\n\t *\n\t * 0 1 3 4 9 11 12 13\n\t * 2 5 6 7 8 10 14 15 16 17\n */\n\tInteger ORDER_OMSSTATUS_CREATE = OrderStateEnum.CREATE.getCode();// 0\n\tInteger ORDER_OMSSTATUS_PROCESSING = OrderStateEnum.PROCESSING.getCode();// 1\n\tInteger ORDER_OMSSTATUS_FINISH = OrderStateEnum.FINISH.getCode();// 2\n\tInteger ORDER_OMSSTATUS_CANCEL = OrderStateEnum.CANCEL.getCode();// 3\n\tInteger ORDER_OMSSTATUS_NO_PAYMENT = OrderStateEnum.NO_PAYMENT.getCode();// 4\n\tInteger ORDER_OMSSTATUS_NO_RECEIVE = OrderStateEnum.NO_RECEIVE.getCode();// 5\n\tInteger ORDER_OMSSTATUS_PART_PAYMENT = OrderStateEnum.PART_PAYMENT.getCode();// 6\n\tInteger ORDER_OMSSTATUS_NO_CONSTRUCT = OrderStateEnum.NO_CONSTRUCT.getCode();// 7\n\tInteger ORDER_OMSSTATUS_CONSTRUCTING = OrderStateEnum.CONSTRUCTING.getCode();// 8\n\tInteger ORDER_OMSSTATUS_NO_REFUND = OrderStateEnum.NO_REFUND.getCode();// 9\n\tInteger ORDER_OMSSTATUS_NO_SEND = OrderStateEnum.NO_SEND.getCode();// 10\n\tInteger ORDER_OMSSTATUS_NO_FOR_PAYMENT = OrderStateEnum.NO_FOR_PAYMENT.getCode();// 11\n\tInteger ORDER_OMSSTATUS_PRE_DELIVERY = 12; // 目前按照 \"签约阶段\",16 来处理\n\tInteger ORDER_OMSSTATUS_TOUCH = 13;\n\tInteger ORDER_OMSSTATUS_PURPOSE = 14;\n\tInteger ORDER_OMSSTATUS_HANDSEL = 15;\n\tInteger ORDER_OMSSTATUS_SIGN = 16;\n\tInteger ORDER_OMSSTATUS_DELIVERY = 17;\n\n Integer PAY_TYPE_ALIPAY =1;\n Integer PAY_TYPE_WEIXIN =2;\n \n /**\n\t * 订单类型 1 软装类型 2 硬装类型 3 全品家类型 5 艺术品类型 6文旅商品 15小星星艺术类型\n\t */\n\tInteger ORDER_TYPE_SOFT = 1;\n\tInteger ORDER_TYPE_HARD = 2;\n\tInteger ORDER_TYPE_FAMILY = 3;\n\tInteger ORDER_TYPE_ART = 5;\n\tInteger ORDER_TYPE_CLUTRUE =6;\n\tInteger ORDER_TYPE_STAR_ART = 15;\n\t// add by jerfan cang\n\tInteger ORDER_TYPE_COLLAGE=16;\n\n\t//BOE画屏订单\n\tInteger ORDER_TYPE_BOE = 17;\n\n\t//画作订单\n\tInteger ORDER_TYPE_SCREEN = 18;\n\n\t//套装:9,和空间组合:10\n\tInteger ORDER_TYPE_SUIT=9;\n\tInteger ORDER_TYPE_ROOM=10;\n\t\n\t//全品家订单类型\n\tInteger ORDER_TYPE_ALADDIN = 13;//全品家订单\n\t\n\tInteger ORDER_TYPE_B2B = 8;//b2b 暂时按照 全品家订单来处理\n\t\n\t/**\n\t * 商品类型: 5 艺术品类型 6文旅商品 15小星星艺术类型\n\t */\n\tInteger PRODUCT_TYPE_ART = 5;\n\tInteger PRODUCT_TYPE_CLUTRUE =6;\n\tInteger PRODUCT_TYPE_STAR_ART = 15;\n\n// int CULTURE_ORDER_CREATE_SUCCESS = 0X01; //订单提交成功,未付款\n// int CULTURE_ORDER_WAIT_SEND = 0X03; //订单支付完成,待发货\n// int CULTURE_ORDER_PAY_COMPLETE = 0X04; //订单支付成功,待收货\n// int CULTURE_ORDER_COMPLETE = 0X05; //订单完成\n// int CULTURE_ORDER_CANCELED = 0X06; //订单取消\n\t\n\tInteger LOGISTIC_SKIP_DETAIL = 0;//跳转到物流详情页\n\t\n\tInteger LOGISTIC_SKIP_ALL = 1;//跳转到所有物流页\n\t\n\tInteger LOGISTIC_SUB_DELIVER = 1;//待发货\n\t\n\tString LOGISTIC_SUB_DELIVER_DESC = \"已开始定制\";\n\t\n\tInteger LOGISTIC_PART_DELIVER = 2;//部分发货\n\t\n\tString LOGISTIC_PART_DELIVER_DESC = \"已发货\";\n\n\t// 订单来源 6代客下单\n\tpublic static Integer VALETORDER_SOURCE = 6;\n\n}", "title": "" }, { "docid": "66d46abafcea2c76d64523ea54dc653b", "score": "0.5113438", "text": "public String getOperation() {\n return operation;\n }", "title": "" }, { "docid": "c97218a600c877fff3b49947f0238530", "score": "0.51061535", "text": "public GWCAPacket(GWCAOperation operation, int wparam, int lparam) {\n this.operation = operation;\n \n //FIXME: we currently only support NUMERIC commands, so add support for TEXT\n // calculate whether this command is a REQUEST or a COMMAND\n short operationId = operation.getOperationId();\n if(operationId > COMMANDS_BEGIN && operationId < COMMANDS_END) {\n this.operationType = COMMAND;\n } else if(operationId > REQUEST_BEGIN && operationId < REQUESTS_END) {\n this.operationType = REQUEST;\n } else {\n // Cannot happen if the enum is currently coded\n }\n \n this.wparam = intToByteArray(wparam);\n this.lparam = intToByteArray(lparam);\n }", "title": "" }, { "docid": "999ff9f987ce10fda9714aaaa89d95b9", "score": "0.5102939", "text": "com.harmazing.protobuf.CommandProtos.OoElectricityMeterControlOrBuilder getOoemControlOrBuilder();", "title": "" }, { "docid": "8babf8266bf4a6aae9663f145cd79fac", "score": "0.5082431", "text": "public void setOperation(String operation) {\n this.operation = operation;\n }", "title": "" }, { "docid": "d5ca47e6e889d5bf1b7608718a76793d", "score": "0.50792885", "text": "com.harmazing.protobuf.CommandProtos.IrControlOrBuilder getIrControlOrBuilder();", "title": "" }, { "docid": "ae3d6ccce6df4259cedc66c03cc8c1f0", "score": "0.5078336", "text": "public String getOperation() {\r\n\t\treturn operation;\r\n\t}", "title": "" }, { "docid": "9b8717a32c5e0f3df6a4e400dfc04e83", "score": "0.5072501", "text": "public interface ServerOperator {\n public boolean isOp();\n\n public void setOp(boolean value);\n}", "title": "" }, { "docid": "8bf7118ae0759c3a0ebc1a99c9af0ef4", "score": "0.5071887", "text": "private void setOperation(String operation) {\r\n\t\tthis.operation = operation;\r\n\t}", "title": "" }, { "docid": "d69349e2c10451ea6cc5ff2dc24a6696", "score": "0.5069473", "text": "public String getOperation () {\n return operation;\n }", "title": "" }, { "docid": "f6c2cada463fad57f4c8aa1baf39e022", "score": "0.5060544", "text": "com.clarifai.grpc.api.Operation getOperation();", "title": "" }, { "docid": "5bcd4b997a0e78f08f4f79778ce0970d", "score": "0.50533336", "text": "com.harmazing.protobuf.CommandProtos.IrControl.CommandType getType();", "title": "" }, { "docid": "8943e9558446b41383e4455ae669f3f4", "score": "0.50415426", "text": "@JsonProperty(\"featuresConditionedAir\")\n public Boolean getConditionedAir() {\n return conditionedAir;\n }", "title": "" }, { "docid": "29b8363270dacfc387daa54d861f8a8e", "score": "0.50338805", "text": "public void setOperationtype(Boolean operationtype) {\n this.operationtype = operationtype;\n }", "title": "" }, { "docid": "4f2f2b5555508243909f423ef4a4628d", "score": "0.5030275", "text": "public Actuation(HardwareMap hardwareMap, StandardMechanumDrive drive, LinearOpMode linearOpMode, OpMode opMode) {\n this.hardwareMap = hardwareMap;\n this.drive = drive;\n this.linearOpMode = linearOpMode;\n this.opMode = opMode;\n\n if(linearOpMode == null)\n frame = new CVShooting(opMode.telemetry);\n else frame = new CVShooting(linearOpMode.telemetry);\n\n if (hardwareMap.dcMotor.contains(\"intake\")) {\n intake = hardwareMap.dcMotor.get(\"intake\");\n intake.setMode(STOP_AND_RESET_ENCODER);\n intake.setMode(RUN_WITHOUT_ENCODER);\n }\n\n if(hardwareMap.dcMotor.contains(\"backIntakeBelt\")) {\n backIntakeBelt = hardwareMap.dcMotor.get(\"backIntakeBelt\");\n backIntakeBelt.setMode(STOP_AND_RESET_ENCODER);\n backIntakeBelt.setMode(RUN_WITHOUT_ENCODER);\n }\n\n if (hardwareMap.dcMotor.contains(\"shooter\")) {\n shoot = hardwareMap.get(DcMotorEx.class, \"shooter\");\n shoot.setMode(STOP_AND_RESET_ENCODER);\n shoot.setMode(RUN_USING_ENCODER);\n shoot.setZeroPowerBehavior(BRAKE);\n shoot.setPIDFCoefficients(RUN_USING_ENCODER, shooterPIDF);\n }\n\n if (hardwareMap.servo.contains(\"wobbleGrab\")) {\n wobbleGrab = hardwareMap.servo.get(\"wobbleGrab\");\n if (linearOpMode != null)\n wobbleClawClose();\n else\n wobbleClawOpen();\n }\n\n if (hardwareMap.servo.contains(\"wobbleArm\")) {\n wobbleArm = hardwareMap.servo.get(\"wobbleArm\");\n wobbleArmUp();\n }\n\n if (hardwareMap.colorSensor.contains(\"colorSensor\")) {\n colorsensor = hardwareMap.get( RevColorSensorV3.class, \"colorSensor\");\n colorsensor.enableLed(true);\n }\n\n if (hardwareMap.servo.contains(\"feeder\")) {\n feeder = hardwareMap.servo.get(\"feeder\");\n feeder.setPosition(FEEDER_REST);\n }\n shot = false;\n\n if(hardwareMap.servo.contains(\"cameraServo\")) {\n cameraServo = hardwareMap.servo.get(\"cameraServo\");\n cameraServo.setPosition(CAMERA_POS_RINGS);\n }\n if(hardwareMap.servo.contains(\"rightStick\") && hardwareMap.servo.contains(\"leftStick\")) {\n rightStick = hardwareMap.servo.get(\"rightStick\");\n leftStick = hardwareMap.servo.get(\"leftStick\");\n\n rightStick.setPosition(RIGHT_STICK_UP);\n leftStick.setPosition(LEFT_STICK_UP);\n }\n }", "title": "" }, { "docid": "278195877da1e6785b8ef69e11e4a806", "score": "0.5027104", "text": "public interface ICoreRequest {\n\n String getTransactionRef();\n\n boolean isAutogeneratedRef();\n\n boolean isAsync();\n\n boolean isQueue();\n\n boolean isWaitForRemovedCard();\n\n boolean isForce();\n\n String getOrderRef();\n\n String getDestinationAccount();\n\n String getTestCase();\n\n\n}", "title": "" }, { "docid": "d6a4a7c059e9a7e1c532b03984769087", "score": "0.50199103", "text": "public VehicleOperator getOperator() {\n\t\treturn vehicleOperator;\n\t}", "title": "" }, { "docid": "6103b140831d5dc4971a64bdcced1dff", "score": "0.5017146", "text": "com.harmazing.protobuf.CommandProtos.OoControl getOoControl();", "title": "" }, { "docid": "a65562267623e037fc7ad6e87b7068ed", "score": "0.49983305", "text": "public Boolean getOperationtype() {\n return operationtype;\n }", "title": "" }, { "docid": "6df831693e399bb193a1914abddceebf", "score": "0.49975336", "text": "com.xh.demo.grpc.WrTy.Interest.InterestOperator getOperator();", "title": "" }, { "docid": "ab15bdf42b7e079966a1defab40cb4da", "score": "0.49836445", "text": "@Override\n public void runOpMode() {\n motorFL = hardwareMap.get(DcMotor.class, \"motor_fl\");\n motorFR = hardwareMap.get(DcMotor.class, \"motor_fr\");\n motorBL = hardwareMap.get(DcMotor.class, \"motor_bl\");\n motorBR = hardwareMap.get(DcMotor.class, \"motor_br\");\n linearSlide = hardwareMap.dcMotor.get(\"linearSlide\");\n linearRetract = hardwareMap.dcMotor.get(\"linearRetract\");\n servoMarker = hardwareMap.servo.get(\"servoMarker\");\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Ready to run\"); //\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n //team marker code\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < .5)) {\n servoMarker.setPosition(0.5);\n telemetry.addData(\"TeamMarker\", \"Servo moved\");\n telemetry.update();\n }\n\n //extend the arm\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < 3.8)) {\n linearSlide.setPower(FORWARD_SPEED);\n linearRetract.setPower(FORWARD_SPEED);\n telemetry.addData(\"Path\",\"Linear 1: %2.5f S Elapsed\", runtime.seconds());\n telemetry.update();\n }\n\n while (opModeIsActive() && (runtime.seconds() < 2.0)) {\n linearSlide.setPower(STOP_SPEED);\n linearRetract.setPower(STOP_SPEED);\n telemetry.addData(\"Motor\", \"Stopped\"); //\n telemetry.update();\n }\n\n // strafe to the right\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < 1.0)) {\n motorFL.setPower(-FORWARD_SPEED);\n motorFR.setPower(-FORWARD_SPEED);\n motorBR.setPower(FORWARD_SPEED);\n motorBL.setPower(FORWARD_SPEED);\n\n telemetry.addData(\"Path\", \"Leg 2: %2.5f S Elapsed\", runtime.seconds());\n telemetry.update();\n }\n\n while (opModeIsActive() && (runtime.seconds() < 2.0)) {\n motorFL.setPower(STOP_SPEED);\n motorFR.setPower(STOP_SPEED);\n motorBR.setPower(STOP_SPEED);\n motorBL.setPower(STOP_SPEED);\n telemetry.addData(\"Motor\", \"Stopped\"); //\n telemetry.update();\n }\n\n // Drive forward for 0.3 seconds\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < 0.3)) {\n motorFL.setPower(-FORWARD_SPEED);\n motorFR.setPower(FORWARD_SPEED);\n motorBR.setPower(FORWARD_SPEED);\n motorBL.setPower(-FORWARD_SPEED);\n telemetry.addData(\"Path\", \"Leg 1: %2.5f S Elapsed\", runtime.seconds());\n telemetry.update();\n }\n while (opModeIsActive() && (runtime.seconds() < 2.0)) {\n motorFR.setPower(STOP_SPEED);\n motorFL.setPower(STOP_SPEED);\n motorBR.setPower(STOP_SPEED);\n motorBL.setPower(STOP_SPEED);\n telemetry.addData(\"Motor\", \"Stopped\"); //\n telemetry.update();\n }\n\n\n // strafe to the left\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < 0.8)) {\n motorFL.setPower(FORWARD_SPEED);\n motorFR.setPower(FORWARD_SPEED);\n motorBR.setPower(-FORWARD_SPEED);\n motorBL.setPower(-FORWARD_SPEED);\n\n telemetry.addData(\"Path\", \"Leg 2: %2.5f S Elapsed\", runtime.seconds());\n telemetry.update();\n }\n\n while (opModeIsActive() && (runtime.seconds() < 2.0)) {\n motorFL.setPower(STOP_SPEED);\n motorFR.setPower(STOP_SPEED);\n motorBR.setPower(STOP_SPEED);\n motorBL.setPower(STOP_SPEED);\n telemetry.addData(\"Motor\", \"Stopped\"); //\n telemetry.update();\n }\n\n //drive forward to crater\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < 3.5)) {\n motorFL.setPower(-FORWARD_SPEED);\n motorFR.setPower(FORWARD_SPEED);\n motorBR.setPower(FORWARD_SPEED);\n motorBL.setPower(-FORWARD_SPEED);\n telemetry.addData(\"Path\", \"Leg 1: %2.5f S Elapsed\", runtime.seconds());\n telemetry.update();\n }\n while (opModeIsActive() && (runtime.seconds() < 2.0)) {\n motorFR.setPower(STOP_SPEED);\n motorFL.setPower(STOP_SPEED);\n motorBR.setPower(STOP_SPEED);\n motorBL.setPower(STOP_SPEED);\n telemetry.addData(\"Motor\", \"Stopped\"); //\n telemetry.update();\n }\n telemetry.addData(\"Path\", \"Complete\");\n telemetry.update();\n sleep(1000);\n }", "title": "" }, { "docid": "4d7c8b952b7949df26fcec5ed1b95dc8", "score": "0.49747854", "text": "com.harmazing.protobuf.CommandProtos.GatewayControl.CommandType getType();", "title": "" }, { "docid": "5870b70a7aa8a068c5c5bc93a06e7204", "score": "0.49684608", "text": "public interface PARAM_ACK {\n /**\n * Parameter value ACCEPTED and SET\n */\n public final static int PARAM_ACK_ACCEPTED = 0;\n /**\n * Parameter value UNKNOWN/UNSUPPORTED\n */\n public final static int PARAM_ACK_VALUE_UNSUPPORTED = 1;\n /**\n * Parameter failed to set\n */\n public final static int PARAM_ACK_FAILED = 2;\n /**\n * Parameter value received but not yet validated or set. A subsequent PARAM_EXT_ACK will follow once operation is completed with the actual result. These are for parameters that may take longer to set. Instead of waiting for an ACK and potentially timing out, you will immediately receive this response to let you know it was received.\n */\n public final static int PARAM_ACK_IN_PROGRESS = 3;\n}", "title": "" }, { "docid": "d70c19209fdbf28498743b7108d4e787", "score": "0.4956522", "text": "com.harmazing.protobuf.CommandProtos.HALampControlOrBuilder getLpControlOrBuilder();", "title": "" }, { "docid": "cbab04684b3545fb9562fdb53f592250", "score": "0.49496433", "text": "@Override\r\n public void runOpMode() {\r\n \r\n\r\n extendMotor = hardwareMap.dcMotor.get(\"extendMotor\");\r\n intakeArm = hardwareMap.dcMotor.get(\"intakeArm\");\r\n dumpMotor = hardwareMap.dcMotor.get(\"dumpMotor\");\r\n // Put initialization blocks here.\r\n extendMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n extendMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n dumpMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n intakeArm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n intakeArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n runtime.reset();\r\n waitForStart();\r\n if (opModeIsActive()) {\r\n // Put run blocks here.\r\n \r\n while (opModeIsActive()) {\r\n // Put loop blocks here.\r\n if (gamepad1.y) {\r\n extendMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n intakeArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n intakeArm.setTargetPosition(0);\r\n intakeArm.setPower(.8);\r\n intakeArm.setPower(0); \r\n extendMotor.setTargetPosition(-418);\r\n extendMotor.setPower(.5);\r\n \r\n }\r\n /*if (Math.abs(gamepad2.left_stick_y) > 0) {\r\n extendMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODERS);\r\n extendMotor.setPower(gamepad1.left_stick_y);\r\n }*/\r\n else if (gamepad1.b) {\r\n intakeArm.setTargetPosition(-136);\r\n intakeArm.setPower(.8);\r\n \r\n }\r\n \r\n else if (gamepad1.x) {\r\n extendMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n extendMotor.setTargetPosition(0);\r\n extendMotor.setPower(1);\r\n telemetry.addData(\"In if\",extendMotor.getCurrentPosition());\r\n telemetry.update();\r\n }\r\n else{\r\n extendMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n extendMotor.setPower(gamepad1.left_stick_y);\r\n }\r\n while(gamepad1.a){\r\n dumpMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n dumpMotor.setTargetPosition(885);\r\n dumpMotor.setPower(.65); \r\n }\r\n dumpMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n dumpMotor.setTargetPosition(0);\r\n dumpMotor.setPower(.2);\r\n }\r\n telemetry.addData(\"Extend THANG\", extendMotor.getCurrentPosition());\r\n telemetry.update();\r\n }\r\n }", "title": "" }, { "docid": "eb0a6faedf5c5350db11c0af8a63cb68", "score": "0.4941663", "text": "private TaskCondition(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "3adba179b247d145d61ee06bd0e49fb6", "score": "0.49308458", "text": "public void setOpMode(OpMode mode) {\n \tcurrOpMode = mode;\n }", "title": "" }, { "docid": "cb3670bf473ad4d158cada2b89fc2545", "score": "0.49276623", "text": "public Builder setOperation(int value) {\n bitField0_ |= 0x00000008;\n operation_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d66102674a3e4d2d418d1e8d9f1ef66e", "score": "0.49136123", "text": "@Override\n public void runOpMode(){\n leftShooterMotor = new MotorEx(hardwareMap, \"Elevator Motor\", Motor.GoBILDA.RPM_84);\n rightShooterMotor = new MotorEx(hardwareMap, \"Right Shooter Motor\", Motor.GoBILDA.RPM_1150);\n\n //telemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry());\n\n leftShooterMotor.setInverted(false);\n rightShooterMotor.setInverted(true);\n\n leftShooterMotor.motor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightShooterMotor.motor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //leftShooterMotor.setRunMode(Motor.RunMode.RawPower);\n //rightShooterMotor.setRunMode(Motor.RunMode.RawPower);\n\n //leftShooterMotor.setVeloCoefficients(kP, kD, kI);\n //rightShooterMotor.setVeloCoefficients(kP, kD, kI);\n waitForStart();\n\n //Running the code\n while (opModeIsActive()) {\n leftShooterMotor.set(0.8);\n rightShooterMotor.set(0.8);\n telemetry.addData(\"Left Shooter Motor Error\", leftShooterMotor.getVelocity() - 0.8 * leftShooterMotor.ACHIEVABLE_MAX_TICKS_PER_SECOND);\n telemetry.addData(\"Right Shooter Motor Error\", rightShooterMotor.getVelocity() - 0.8 * rightShooterMotor.ACHIEVABLE_MAX_TICKS_PER_SECOND);\n telemetry.addData(\"Left Shooter Motor\", leftShooterMotor.getVelocity());\n telemetry.addData(\"Right Shooter Motor\", rightShooterMotor.getVelocity());\n telemetry.log();\n telemetry.update();\n }\n }", "title": "" }, { "docid": "5dccd020bbaefee1536390896207aba8", "score": "0.49033904", "text": "feast.proto.core.CoreServiceProto.ApplyFeatureSetResponse.Status getStatus();", "title": "" }, { "docid": "9730286972957d5faec1711114c31172", "score": "0.4899694", "text": "public com.harmazing.protobuf.CommandProtos.AirConditionerControlOrBuilder getAcControlOrBuilder() {\n if (acControlBuilder_ != null) {\n return acControlBuilder_.getMessageOrBuilder();\n } else {\n return acControl_;\n }\n }", "title": "" }, { "docid": "2172b4af5b81b39c14bef00ab6ccb23b", "score": "0.48977867", "text": "public void runOpMode() {\n //Initialize the DcMotors\n leftBack = hardwareMap.get(DcMotor.class, \"leftBack\");\n leftFront = hardwareMap.get(DcMotor.class, \"leftFront\");\n rightBack = hardwareMap.get(DcMotor.class, \"rightBack\");\n rightFront = hardwareMap.get(DcMotor.class, \"rightFront\");\n\n rightLin = hardwareMap.get(DcMotor.class, \"rightLin\");\n leftLin = hardwareMap.get(DcMotor.class, \"leftLin\");\n\n //Initialize the Servos\n //markerDeployment = hardwareMap.get(Servo.class, \"mkDep\");\n\n //Set the zero power behavior\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n leftLin.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightLin.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n //Set the directions of the motors\n leftBack.setDirection(DcMotor.Direction.FORWARD);\n leftFront.setDirection(DcMotor.Direction.FORWARD);\n rightBack.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.REVERSE);\n\n rightLin.setDirection(DcMotor.Direction.REVERSE);\n leftLin.setDirection(DcMotor.Direction.FORWARD);\n\n //markerDeployment.setDirection(Servo.Direction.FORWARD);\n\n //Set the direction of the servos\n //markerDeployment.setDirection(Servo.Direction.FORWARD);\n\n //Tell user that initialization is complete\n telemetry.addData(\"Status\", \"Initialized\");\n\n waitForStart();\n\n //markerDeployment.setPosition(0.5);\n\n //extendLinearSlide(5);\n pause(1000);\n //extendLinearSlide(-5);\n //runForward(100);\n //pause(2000);\n //runBackward(100);\n //pause(2000);\n\n //pause(2000);\n extendLinearSlide(1);\n //pause(2000);\n //rotateLeft(90);\n\n //markerDeployment.setPosition(0.2);\n //pause(100);\n //markerDeployment.setPosition(0.9);\n\n\n /*double lo = 0.0, hi = 10, mid;\n while (hi - lo > 0.0000001) {\n mid = (lo + hi) / 2;\n ticksPerCm = mid;\n run(10);\n boolean ishi = false;\n while (!gamepad1.a || !gamepad1.b) {\n if (gamepad1.a) {\n ishi = true;\n break;\n } else if (gamepad1.b) {\n ishi = false;\n break;\n }\n }\n if (ishi) hi = mid;\n else lo = mid;\n }\n\n lo = 0.0;\n hi = 10;\n while (hi - lo > 0.0000001) {\n mid = (lo + hi) / 2;\n ticksPerDegree = mid;\n rotate(90);\n boolean ishi = false;\n while (!gamepad1.a || !gamepad1.b) {\n if (gamepad1.a) {\n ishi = true;\n break;\n } else if (gamepad1.b) {\n ishi = false;\n break;\n }\n }\n if (ishi) hi = mid;\n else lo = mid;\n }*/\n }", "title": "" }, { "docid": "1726312deb1ea46d26466cddf16358a9", "score": "0.48876643", "text": "public AirConditioner(Integer temperature, String mode, Integer directionFan, Integer intensityFan)\r\n {\r\n this.temperature = temperature;\r\n this.mode = mode;\r\n this.directionFan = directionFan;\r\n this.intensityFan = intensityFan;\r\n }", "title": "" }, { "docid": "42b53db1d1b41b85f1126a8e38127cc6", "score": "0.4883698", "text": "public int getOperation();", "title": "" }, { "docid": "f052f154628c6c8a861e80238b6a15dd", "score": "0.4879323", "text": "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int POST_CORRIDAS = 1;\n int POST_VINCULAR_APPS = 2;\n int GET_CONTAS_APPS = 3;\n int DELETE_CONTA_APP = 4;\n int POST_ACEITAR_CORRIDA = 5;\n int POST_PEDIDO_COLETADO = 6;\n int GET_CORRIDA_EM_ANDAMENTO = 7;\n int POST_CORRIDA_ENTREGA_PEDIDO_EFETUADA = 8;\n\n }", "title": "" }, { "docid": "854b7eeaf745d1743ccb0a996359f494", "score": "0.4871388", "text": "MyAirCond createAirConditioner(boolean activate) {\n\t\tfinal MyAirCond result = new MyAirCond();\n\t\tresult.device = resMan.createResource(RESNAME + counter++, AirConditioner.class);\n\t\tassertNotNull(result.device);\n\t\tresult.coolingPower = (FloatResource) result.device.addOptionalElement(\"coolingPower\");\n\t\tassertNotNull(result.coolingPower);\n\t\tresult.elConn = (ElectricityConnection) result.device.addOptionalElement(\"elConn\");\n\t\tassertNotNull(result.elConn);\n\t\tresult.swtch = (OnOffSwitch) result.device.addOptionalElement(\"swtch\");\n\t\tassertNotNull(result.swtch);\n\t\tresult.stateControl = (BooleanResource) result.swtch.addOptionalElement(\"state\");\n\t\tassertNotNull(result.stateControl);\n\t\tresult.feedback = (BooleanResource) result.swtch.addOptionalElement(\"stateFeedback\");\n\t\tassertNotNull(result.feedback);\n\n\t\tif (activate) {\n\t\t\tresult.device.activate(true);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "8654c27772c8f4915aa760a152174f6a", "score": "0.48675662", "text": "public short getDeliveryMode();", "title": "" }, { "docid": "4dda6d9efd118aabd944961c3b65d18a", "score": "0.48633927", "text": "public com.harmazing.protobuf.CommandProtos.AirConditionerControlOrBuilder getAcControlOrBuilder() {\n return acControl_;\n }", "title": "" }, { "docid": "1261ad781a54ba6b6fb9fb7545e94d24", "score": "0.4856729", "text": "public InternalOperation(OpCode opCode) {\n this.opCode = opCode;\n /*\n * Initialized to the client's version, but it's not used at the client\n * at all. It will be set to its \"real\" value by the deserializing\n * constructor below.\n */\n this.opSerialVersion = SerialVersion.CURRENT;\n }", "title": "" }, { "docid": "262cf0c4a90c82098456bc2625eeae22", "score": "0.4846097", "text": "@Override\n public void runOpMode()\n {\n initalize();\n telemetry.update();\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"AdafruitIMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n angles = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n runtime.reset();\n if (opModeIsActive()) {\n\n //drive(DIRECTION.REVERSE, distance(20));\n //flyWheelShooter(6);\n\n turnWithoutEncoders(DIRECTION.Counter_Clockwise);\n drive(DIRECTION.REVERSE, distance(8));\n drive(DIRECTION.FORWARD, distance(4));\n checkColour(0);\n\n\n\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n\n telemetry.addData(\"Path\", \"Complete\");\n telemetry.update();\n }\n }", "title": "" }, { "docid": "31b2e7990577b4321ab776bff31ba576", "score": "0.48405847", "text": "public int getOperation() {\n return operation_;\n }", "title": "" }, { "docid": "cc4a3526755f1a3b2f60e35eb6ab1298", "score": "0.48298556", "text": "public interface WXGDConstant {\n /**\n * 优先级\n */\n interface Priority{\n String emergency = \"BEAM2007/01\"; // 紧急\n String priority = \"BEAM2007/02\"; // 优先\n }\n\n interface URL{\n String PRE_URL = \"/BEAM2/workList/workRecord/\";\n }\n /**\n * 是否停电\n */\n interface EleOff {\n String yes = \"BEAM2_019/01\"; // 是\n String no = \"BEAM2_019/02\"; // 否\n }\n interface HeaderData{\n String HEADER_DATA_INCLUDES = \"faultInfo.id,faultInfo.tableInfoId\";\n }\n\n}", "title": "" }, { "docid": "5760cf1f55c2e9d1d2a7d7d77e545160", "score": "0.4827818", "text": "public interface Operation{\n\t\n\t/**\n\t * Gets the ID of the client\n\t * @return\n\t */\n\tpublic int getID();\n\t\n\t/**\n\t * Gets the type of the operation - Update or Read?\n\t */\n\tpublic int getType();\n\t\n\t/**\n\t * Gets the column family of an operation\n\t * @return\n\t */\n\tpublic String getColumnFamily();\n\t\n\t/**\n\t * Gets the row key of an operation\n\t * @return\n\t */\n\tpublic String getRowKey();\n\t\n\t/**\n\t * Gets clients version vector\n\t * @return\n\t */\n\tpublic long[] getVersionVector();\n\t\n\t/**\n\t * Verifies if an operation is valid.\n\t * @throws OpException\n\t */\n\tpublic boolean opValidation() throws OpException;\n\t\n}", "title": "" }, { "docid": "1831c4f2c472cff583185dd72c05352d", "score": "0.48240516", "text": "public void setOperationType(String operationType) {\r\n this.operationType = operationType;\r\n }", "title": "" }, { "docid": "c1eea8664ebe495a4d3f73f3d25d7430", "score": "0.4821735", "text": "public boolean hasOperation() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "a5756bfa9386f8f289d0158107ea1e81", "score": "0.481681", "text": "@Override\r\n\tpublic String getOperation() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e35f4c7b4451006bd5c17ffd64fc6674", "score": "0.48127627", "text": "@Override\n public void runOpMode() {\n try {\n setup();\n checkForInterrupt();\n\n moveLatchMotor = asyncExecutor.submit(updateEncoders);\n waitForStartWithPings();\n motorLatch.setPower(1);\n telemetry.addLine(\"Began Raising Latch\");\n telemetry.addData(\"Raising Latch (in inches)\", LATCH_RAISE_DISTANCE);\n telemetry.addData(\"Latch Raise Speed (in cm/sec)\", LATCH_RAISE_SPEED);\n sleep((int) (1000 * (Converter.inchesToMillimeters(LATCH_RAISE_DISTANCE) / 10) / LATCH_RAISE_SPEED + 0.5));\n motorLatch.setPower(0);\n\n mecanumDrive.strafeRight(5, 0.75);\n mecanumDrive.driveForwards(8, 0.75);\n mecanumDrive.strafeLeft(5, 0.75);\n\n//\n// mecanumDrive.rotateClockwise(45, 0.75);\n //vuforiaGoldAlignDetection.disable();\n //vuforia.stop();\n goldAlignDetection.disable();\n\n } catch (InterruptedException e) {\n //vuforiaGoldAlignDetection.disable();\n //vuforia.stop();\n goldAlignDetection.disable();\n }\n// } catch (VuforiaException e) {\n// vuforiaGoldAlignDetection.disable();\n// vuforia.stop();\n// }\n }", "title": "" }, { "docid": "7efd8b56cf9b431f6759ede00ca97781", "score": "0.48116687", "text": "public com.harmazing.protobuf.CommandProtos.AirConditionerControl getAcControl() {\n return acControl_;\n }", "title": "" }, { "docid": "e57d20b44858162a69a0ad67c69e76ed", "score": "0.48090473", "text": "@Override // com.android.internal.telephony.protobuf.nano.ExtendableMessageNano, com.android.internal.telephony.protobuf.nano.MessageNano\n public int computeSerializedSize() {\n int size = super.computeSerializedSize();\n boolean z = this.isAirplaneMode;\n if (z) {\n size += CodedOutputByteBufferNano.computeBoolSize(1, z);\n }\n boolean z2 = this.isCellularDataEnabled;\n if (z2) {\n size += CodedOutputByteBufferNano.computeBoolSize(2, z2);\n }\n boolean z3 = this.isDataRoamingEnabled;\n if (z3) {\n size += CodedOutputByteBufferNano.computeBoolSize(3, z3);\n }\n int i = this.preferredNetworkMode;\n if (i != 0) {\n size += CodedOutputByteBufferNano.computeInt32Size(4, i);\n }\n boolean z4 = this.isEnhanced4GLteModeEnabled;\n if (z4) {\n size += CodedOutputByteBufferNano.computeBoolSize(5, z4);\n }\n boolean z5 = this.isWifiEnabled;\n if (z5) {\n size += CodedOutputByteBufferNano.computeBoolSize(6, z5);\n }\n boolean z6 = this.isWifiCallingEnabled;\n if (z6) {\n size += CodedOutputByteBufferNano.computeBoolSize(7, z6);\n }\n int i2 = this.wifiCallingMode;\n if (i2 != 0) {\n size += CodedOutputByteBufferNano.computeInt32Size(8, i2);\n }\n boolean z7 = this.isVtOverLteEnabled;\n if (z7) {\n size += CodedOutputByteBufferNano.computeBoolSize(9, z7);\n }\n boolean z8 = this.isVtOverWifiEnabled;\n if (z8) {\n return size + CodedOutputByteBufferNano.computeBoolSize(10, z8);\n }\n return size;\n }", "title": "" }, { "docid": "fda97271abc37086d70014f170c47178", "score": "0.4807657", "text": "com.harmazing.protobuf.CommandProtos.GatewayControlOrBuilder getGwControlOrBuilder();", "title": "" }, { "docid": "f34357b4fa663f3923660c936d3261f2", "score": "0.48064965", "text": "com.google.protobuf.ByteString\n getOperationTypeBytes();", "title": "" }, { "docid": "daf7c0643339cc306f3fcdd3da90ccbe", "score": "0.48059866", "text": "public boolean hasOperation() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "c661fe6117a85f2bdb02ca826ec664e1", "score": "0.480448", "text": "public scala.Enumeration.Value getSchedulingMode () { throw new RuntimeException(); }", "title": "" }, { "docid": "d489f1df4174cba803fde368247d788c", "score": "0.48025838", "text": "ConditionOperator getOperator();", "title": "" }, { "docid": "4ba41d55e8a98694303c512a8b6e8681", "score": "0.4800658", "text": "public interface ControlMessage {\n\n enum Type {\n INBOUND_PACKET, OUTBOUND_PACKET, FLOW_MOD_PACKET,\n FLOW_REMOVED_PACKET, REQUEST_PACKET, REPLY_PACKET\n }\n\n /**\n * Returns the control message type.\n *\n * @return control message type\n */\n Type type();\n\n /**\n * Returns the device identification.\n *\n * @return device identification\n */\n DeviceId deviceId();\n\n /**\n * Returns the latest control message load.\n *\n * @return control message load\n */\n long load();\n\n /**\n * Returns the latest control message rate.\n *\n * @return control message rate\n */\n long rate();\n\n /**\n * Returns the latest control message packet count.\n *\n * @return packet count\n */\n long count();\n\n /**\n * Returns the time that this control message stats collected.\n *\n * @return time stamp.\n */\n long timestamp();\n}", "title": "" }, { "docid": "2e776c3a4ce694c7f56f724b4ab79c8f", "score": "0.48001555", "text": "public void runOpMode() //when you press init\n {\n //Init\n\n\n FLM = hardwareMap.get(DcMotor.class, \"FLM\"); //get the motors from the config\n FRM = hardwareMap.get(DcMotor.class, \"FRM\");\n BLM = hardwareMap.get(DcMotor.class, \"BLM\");\n BRM = hardwareMap.get(DcMotor.class, \"BRM\");\n\n FLM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE); //if we set the power to 0 we want the motors to stop\n FRM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE); //if we don't set it they will be in neutral and friction will slow it\n BLM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n BRM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n FLM.setDirection(DcMotor.Direction.REVERSE); //reverse the motors\n BLM.setDirection(DcMotor.Direction.REVERSE);\n\n\n CS = hardwareMap.get(ColorSensor.class, \"CS\"); //get color sensor\n CS.enableLed(false); //turn off led\n\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\"); //gets the imu\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters(); //makes parameters for imu\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.loggingEnabled = false;\n\n imu.initialize(parameters); //initalizes the imu\n\n while (!isStopRequested() && !imu.isGyroCalibrated()) {\n sleep(50);\n idle();\n }\n\n // Tell the driver that initialization is complete.\n telemetry.addData(\"Status\", \"Initialized\");\n\n telemetry.update();\n\n waitForStart(); //waits for the start button\n\n //play\n DriveToTape(); //run function (easier to read)\n\n }", "title": "" }, { "docid": "f8eedc72477b12e05ae9d4573d755d31", "score": "0.47950307", "text": "public abstract String getCondition();", "title": "" }, { "docid": "401888506363043f9619fbb285101cef", "score": "0.47940406", "text": "public com.harmazing.protobuf.CommandProtos.AirConditionerControl getAcControl() {\n if (acControlBuilder_ == null) {\n return acControl_;\n } else {\n return acControlBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "a4456ab967e49a3584ab5267cec8d654", "score": "0.47930965", "text": "@Override\n\n\n public void runOpMode()\n {\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n //Hardware map\n motorLeft = hardwareMap.dcMotor.get(\"motorLeft\");\n motorRight = hardwareMap.dcMotor.get(\"motorRight\");\n\n motorLeft.setDirection(DcMotor.Direction.REVERSE);\n\n motorLeft.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRight.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n //The IMU does not initialize instantly. This makes it so the driver can see when they can push Play without errors.\n telemetry.addData(\"Mode\", \"calibrating...\");\n telemetry.update();\n while (!isStopRequested() && !imu.isGyroCalibrated())\n {\n sleep(50);\n idle();\n }\n\n //Tells the driver it is ok to start.\n telemetry.addData(\"Mode\", \"waiting for start\");\n telemetry.addData(\"imu calib status\", imu.getCalibrationStatus().toString());\n telemetry.update();\n\n //variable for how fast the robot will move\n double DRIVE_POWER = 0.5;\n\n\n waitForStart();\n\n\n //displays \"running\" when\n telemetry.addData(\"Mode\", \"running\");\n telemetry.update();\n\n\n //Actual series of motions the robot does\n DriveForwardByTime(DRIVE_POWER,1000);\n rotate(90, 0.3);\n DriveForwardByTime(DRIVE_POWER,1000);\n rotate(-90, 0.3);\n\n }", "title": "" }, { "docid": "1beabed69d6ea1b92b6c3209c7f35a86", "score": "0.47919345", "text": "public OpMode getOpMode() {\n \treturn currOpMode;\n }", "title": "" }, { "docid": "964934b03d2fea03f4cc1db7189c4d9c", "score": "0.47834975", "text": "@ApiModelProperty(example = \"Generate\", required = true, value = \"Execution mode in TESTAR (Spy, Generate, GenerateManual, Replay)\")\n\t@NotNull\n\n\tpublic String getMode() {\n\t\treturn mode;\n\t}", "title": "" }, { "docid": "6635c626e81c10c91719ed546ffc4c1d", "score": "0.47816676", "text": "@Override\r\n public void runOpMode() {\r\n motor.init(hardwareMap);\r\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\r\n telemetry.update();\r\n\r\n\r\n motor.leftDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motor.rightDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motor.rightDriveFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motor.leftDriveFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n idle();\r\n\r\n motor.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n motor.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n motor.leftDriveFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n motor.rightDriveFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n\r\n // Send telemetry message to indicate successful Encoder reset\r\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\r\n motor.leftDrive.getCurrentPosition(),\r\n motor.rightDrive.getCurrentPosition());\r\n\r\n telemetry.addData(\"encoderPosLeft\", motor.leftDrive.getCurrentPosition());\r\n telemetry.addData(\"encoderPosRight\", motor.rightDrive.getCurrentPosition());\r\n\r\n telemetry.update();\r\n\r\n // Wait for the game to start (driver presses PLAY)\r\n waitForStart();\r\n\r\n\r\n //commenty comment\r\n\r\n\r\n // Step through each leg of the path,\r\n // Note: Reverse movement is obtained by setting a negative distance (not speed)\r\n\r\n sleep(100);\r\n\r\n\r\n telemetry.update();\r\n\r\n encoderDrive(DRIVE_SPEED, -28, 36 , 30.0);\r\n\r\n // pause for servos to move\r\n\r\n //telemetry.addData(\"Path\", \"Complete\");\r\n //telemetry.update();\r\n }", "title": "" }, { "docid": "bd32fa0c4e915e2df4477e91194c7074", "score": "0.47795835", "text": "public interface IOperationModeIdConstants {\r\n /**\r\n\t * Constant attribute that represents the ID to identify the basic connection type.\r\n\t */\r\n\tLong ID_NONE = 1L;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the none authentication connection type.\r\n\t */\r\n\tLong ID_NONE_AUTHENTICATION = 2L;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the basic authentication connection type.\r\n\t */\r\n\tLong ID_BASIC_AUTHENTICATION = 3L;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the NTLM authentication connection type.\r\n\t */\r\n\tLong ID_NTLM_AUTHENTICATION = 4L;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the basic connection type.\r\n\t */\r\n\tint ID_NONE_INTVALUE = 1;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the none authentication connection type.\r\n\t */\r\n\tint ID_NONE_AUTHENTICATION_INTVALUE = 2;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the basic authentication connection type.\r\n\t */\r\n\tint ID_BASIC_AUTHENTICATION_INTVALUE = 3;\r\n\r\n\t/**\r\n\t * Constant attribute that represents the ID to identify the NTLM authentication connection type.\r\n\t */\r\n\tint ID_NTLM_AUTHENTICATION_INTVALUE = 4;\r\n}", "title": "" }, { "docid": "dda7dc75f02534e380d93737c19d1f01", "score": "0.4777859", "text": "public int getOperation() {\n return operation_;\n }", "title": "" }, { "docid": "43b1cdb6dfb72e002802e9a126807be1", "score": "0.4773769", "text": "public interface IEspCommandLight extends IEspCommandDevice\n{\n static final String Period = \"period\";\n \n static final String Rgb = \"rgb\";\n \n static final String Red = \"red\";\n \n static final String Green = \"green\";\n \n static final String Blue = \"blue\";\n \n static final String CWhite = \"cwhite\";\n \n static final String WWhite = \"wwhite\";\n \n static final String Switches = \"switches\";\n \n static final String Mac = \"mac\";\n \n static final String VoltageMV = \"voltagemv\";\n \n static final String StatusOK = \"OK\";\n\n static final String Response = \"response\";\n\n}", "title": "" }, { "docid": "c20254ac44795fc2e999e35a11b0e0d9", "score": "0.4759044", "text": "@Override\n public void runOpMode() throws InterruptedException {\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n //Initialization- Motors\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"leftFrontDrive\");\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"rightFrontDrive\");\n leftBackDrive = hardwareMap.get(DcMotor.class, \"leftBackDrive\");\n rightBackDrive = hardwareMap.get(DcMotor.class, \"rightBackDrive\");\n stretch = hardwareMap.get(DcMotor.class, \"stretch\");\n elevator = hardwareMap.get(DcMotor.class, \"elevator\");\n intakeA = hardwareMap.get(DcMotor.class, \"intakeA\");\n intakeB = hardwareMap.get(DcMotor.class, \"intakeB\");\n\n //Initialization - Servos\n elevatorTilt = hardwareMap.get(Servo.class, \"elevatorTilt\");\n clampA = hardwareMap.get(Servo.class, \"clampA\");\n clampB = hardwareMap.get(Servo.class, \"clampB\");\n\n //Initialization - Sensors\n lowerLimit = hardwareMap.get(TouchSensor.class, \"lowerLimit\");\n\n //Setting Initial Motor Directions\n leftFrontDrive.setDirection(DcMotor.Direction.REVERSE);\n rightFrontDrive.setDirection(DcMotor.Direction.FORWARD);\n leftBackDrive.setDirection(DcMotor.Direction.REVERSE);\n rightBackDrive.setDirection(DcMotor.Direction.FORWARD);\n\n //Motor/Encoder Settings\n rightFrontDrive.setMode((DcMotor.RunMode.RUN_WITHOUT_ENCODER));\n leftBackDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n leftFrontDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightBackDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n telemetry.addData(\"Mode\", \"waiting\");\n telemetry.update();\n //Operator presses START here. Everything below waitForStart(); will run.\n waitForStart();\n telemetry.addData(\"Mode\", \"running\");\n telemetry.update();\n\n //Start of Auto\n //Initial Strafe Into Foundation Grabbing Zone\n while (getRuntime() < 1) {\n strafeLeft(.8);\n }\n //Backing Into Contact With the Foundation\n while (getRuntime() < 3.5 && getRuntime() > 1) {\n driveBackward(.85);\n }\n //Locking onto the Foundation\n while (getRuntime() < 6.5 && getRuntime() > 3.5) {\n clampFoundation();\n }\n //Bringing the Foundation to the Scoring Zone\n while (getRuntime() < 9.5 && getRuntime() > 6.5) {\n driveForward(.85);\n }\n //Releasing the Foundation\n while (getRuntime() < 12.5 && getRuntime() > 9.5) {\n releaseFoundation();\n }\n //Strafing Into the Center Line\n while (getRuntime() < 14.5 && getRuntime() > 12.5) {\n strafeRight(.85);\n }\n //Bringing down the Elevator/Intake Mechanism\n while (getRuntime() < 17.5 && getRuntime() > 14.5) {\n tiltElevator(1);\n }\n //Security Stop All Driving\n stopDriving();\n //End of Auto\n }", "title": "" }, { "docid": "ca742e6f28284f4c62a2a25c56a0d337", "score": "0.47529337", "text": "public RemoteOperationRequest(SimpleRemoteOperation operationDesc, \n\t\t BOOLEAN stopIfFail, BOOLEAN waitForPreviousCommand, \n\t\t INTEGER operationTimeoutSec, INTEGER periodSecx10, \n\t\t INTEGER occurs, INTEGER initialWaitTimeSecx10, \n\t\t VehicleStateType requiredVehicleStates)\n {\n\tsetOperationDesc(operationDesc);\n\tsetStopIfFail(stopIfFail);\n\tsetWaitForPreviousCommand(waitForPreviousCommand);\n\tsetOperationTimeoutSec(operationTimeoutSec);\n\tsetPeriodSecx10(periodSecx10);\n\tsetOccurs(occurs);\n\tsetInitialWaitTimeSecx10(initialWaitTimeSecx10);\n\tsetRequiredVehicleStates(requiredVehicleStates);\n }", "title": "" }, { "docid": "bfb6ebc4c4dd2231d18f8809c850cf20", "score": "0.47509435", "text": "public Condition operator(OperatorEnum operator) {\n this.operator = operator;\n return this;\n }", "title": "" } ]
4df2ba97fe5735aea7d4e754460843be
Entry point to show all Answer entities
[ { "docid": "c8cf59a659e162303695ccc16fcd7c01", "score": "0.0", "text": "public String indexAnswer() {\n\t\treturn \"redirect:/indexAnswer\";\n\t}", "title": "" } ]
[ { "docid": "414ceafd3b99bcff7549b94c6400470e", "score": "0.696818", "text": "public List<Answer> allAnswers() {\n\t\treturn answerRepository.findAll();\n\t}", "title": "" }, { "docid": "cf3f1fd41bda844f3d37e2d8205e044d", "score": "0.677224", "text": "public Collection<Question> getAll();", "title": "" }, { "docid": "736e02ccf5cf7d4162aacc02dafdb43f", "score": "0.670588", "text": "@RequestMapping(\"/indexAnswer\")\n\tpublic ModelAndView listAnswers() {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"answers\", answerService.loadAnswers());\n\n\t\tmav.setViewName(\"answer/listAnswers.jsp\");\n\n\t\treturn mav;\n\t}", "title": "" }, { "docid": "f7b8e5dd23fe4802f2f67d248e53be9e", "score": "0.6627542", "text": "List<QuestionBO> all();", "title": "" }, { "docid": "b6e3db65acfda85ce5ffbe31e3fa8ff2", "score": "0.66204125", "text": "List<Question> getAllQuestions() throws DataException;", "title": "" }, { "docid": "624c79768109271bf539db86fc0d8665", "score": "0.6486646", "text": "@GET\n public List<Question> findAll() {\n return questionService.findAll();\n }", "title": "" }, { "docid": "b980738a5e882cc2d421b4e5678f12dd", "score": "0.6454117", "text": "public List<MarketingAnswer> findAll()\n {\n return em\n .createNamedQuery(\"MarketingAnswer.findAll\", MarketingAnswer.class)\n .setHint(\"javax.persistence.cache.storeMode\", \"REFRESH\")\n .getResultList();\n }", "title": "" }, { "docid": "2e4c4e9ab6dee32f8c180317d3863c7b", "score": "0.6393788", "text": "@RequestMapping(value = \"/question/\", method = RequestMethod.GET)\r\n\tpublic ResponseEntity<List<Question>> listAllQuestions() {\r\n\t\tList<Question> questions = questionService.findAllQuestions();\r\n\t\tif (questions.isEmpty()) {\r\n\t\t\treturn new ResponseEntity(HttpStatus.NO_CONTENT);\r\n\t\t\t// You many decide to return HttpStatus.NOT_FOUND\r\n\t\t}\r\n\t\treturn new ResponseEntity<List<Question>>(questions, HttpStatus.OK);\r\n\t}", "title": "" }, { "docid": "36cd7754ead3a6944d78b50bbeb02ce3", "score": "0.6348556", "text": "@Override\r\n\tpublic List<Questions> findAllQuestionsWithChoice() {\n\t\tString q1=\"select q from Questions q\";\r\n\t\tTypedQuery<Questions> query = em.createQuery(q1, Questions.class);\r\n\t List<Questions> l = query.getResultList();\r\n\t\r\n\treturn l;\r\n\t}", "title": "" }, { "docid": "52dd69edb2220b3474278773b24450cf", "score": "0.6332017", "text": "List<Answer> retrieveQuestionAnswers(int questionId) throws SQLException;", "title": "" }, { "docid": "99785c1d5f7bc5b71c763a161c57f5be", "score": "0.617376", "text": "public List<Answer> getAnswers(long questionId, int first, int count);", "title": "" }, { "docid": "e7bbcbaf6241c2dd59c0bd4e82ddf93d", "score": "0.61593115", "text": "private void showAll() {\n for (Medicament m : this.service.getAll()) {\n System.out.println(m);\n }\n }", "title": "" }, { "docid": "b00d904dff7a004312c3ef7f4755861a", "score": "0.615698", "text": "public List<Question> allQuestions() {\n\t\treturn questionRepository.findAll();\n\t}", "title": "" }, { "docid": "9a2dde17e330ab75878251ac608ea702", "score": "0.6133987", "text": "@Override\r\n\tpublic void showAll() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aac8d4cb12e2b88c10d141516557c37", "score": "0.60496855", "text": "@Override\r\n\tpublic ArrayList<AnswerVO> get() throws Exception {\n\t\treturn adao.selectall();\r\n\t}", "title": "" }, { "docid": "69fbe2ecca2743b0a293d9c49c57a430", "score": "0.60123277", "text": "@GetMapping(\"/\")\n ArrayList<Question> allQuestion(HttpServletResponse response) {\n try (Connection connection = dataSource.getConnection()) {\n QuestionDAO questions = new QuestionDAO(connection);\n ArrayList<Question> L = questions.readAllQuestion();\n connection.close();\n return L;\n } catch (Exception e) {\n response.setStatus(500);\n try {\n response.getOutputStream().print( e.getMessage() );\n } catch (Exception e2) {\n System.err.println(e2.getMessage());\n }\n System.err.println(e.getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "d6003ed5285135fc2bc53f6a61368688", "score": "0.6001269", "text": "List<Answer> findByQuestion_id(String questionId);", "title": "" }, { "docid": "82bf15f96c399c572751a684930fe8a3", "score": "0.5992061", "text": "@GetMapping(value = \"/getAll\")\n public ResponseEntity<?> getAllTypeQuestion() {\n return new ResponseEntity<List<LevelQuestion>>(levelQuestionService.getAllLevelQuestion(),\n HttpStatus.OK);\n }", "title": "" }, { "docid": "c241c14925fd571125034a218baf1eb6", "score": "0.5990265", "text": "public ArrayList<AnswerBean> getAllAnswers() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "20dfa02fad647955fbdbb92b7126d6ec", "score": "0.5953088", "text": "List<QuestionnaireModel> selectAll();", "title": "" }, { "docid": "9aaca8416d25008473f72e27a272d9e9", "score": "0.5939556", "text": "List<Question> listQuestions( Questionnaire questionnaire );", "title": "" }, { "docid": "a9a9b4dbffc9360a19bc2646d9e6a0fd", "score": "0.5935158", "text": "private static void displayQuestions() {\n // To be deleted in final version\n if (thisQuBoId == null) {\n divideQuestions(null);\n return;\n }\n //\n\n //Retrieve the questions and convert them to an array of QuestionDetailsDtos if the response is\n //not null.\n String jsonQuestions = QuestionBoardCommunication.retrieveQuestions(thisQuBoId.getId());\n\n if (jsonQuestions == null) {\n divideQuestions(null);\n } else {\n QuestionDetailsDto[] questions = gson.fromJson(jsonQuestions, QuestionDetailsDto[].class);\n\n //Divide the questions over two lists and sort them.\n divideQuestions(questions);\n\n sortAndMap(unAnsQuVbox, unansweredQuestions, unAnsQuScPane);\n sortAndMap(ansQuVbox, answeredQuestions, ansQuScPane);\n }\n }", "title": "" }, { "docid": "4c71a08192ce3b33b4be1a11aad5b925", "score": "0.5923446", "text": "public List<QuestionDTO> findAll() {\n log.debug(\"Request to get all Questions\");\n return questionRepository.findAll().stream().map(questionMapper::toDto).collect(Collectors.toCollection(LinkedList::new));\n }", "title": "" }, { "docid": "bee33d2b5495a03e974f602e9ae79d45", "score": "0.5920437", "text": "public List<Exam> getAll() {\n return daoExam.getAll();\n }", "title": "" }, { "docid": "bb745e8ed22c49e1867619d04a32df01", "score": "0.5859302", "text": "private void showAll() {\n\t\tSystem.out.println(Podela.getFormattedHeader());\n\t\t \n\t\ttry {\n\t\t\tfor (Podela p : podelaDAO.findAll()) {\n\t\t\t\tSystem.out.println(p);\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a9293556abfb07df87513c7750135f22", "score": "0.585243", "text": "@Override\r\n\t@Transactional\r\n\tpublic List<Question> getQuestion() {\n\t\treturn questionDAO.findAll();\r\n\t}", "title": "" }, { "docid": "0977971643a1b702afecaf7608482b56", "score": "0.5823397", "text": "public List<QuestionDto> getAllQuestions() {\n return questionRepository.findAll()\n .stream()\n .map(q -> questionDtoMapper.toDto(q))\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "b3ece687ea68b283a4630302d3fcf9f3", "score": "0.582303", "text": "public void showList() {\r\n\r\n\t\tList<Employee> empl = repo.getEmployeeList();\r\n\t\tfor (Employee emp2 : empl) {\r\n\t\t\tSystem.out.println(emp2);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7249708849f19361fa65a53f9ca852a9", "score": "0.5815199", "text": "@Transactional\n\tpublic List<Question> getQuestions() {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t// not sql... it is Hql\n\t\tQuery<Question> q = session.createQuery(\"from Question\", Question.class);\n\t\tList<Question> questions = q.list();\n\t\t\n\t\t\t\n\t\treturn questions;\n\t}", "title": "" }, { "docid": "5166b21fda094c24ef5aeea3a447d67b", "score": "0.58112204", "text": "java.util.List<sust.paperlessexm.entity.Questions> getQuestionsList() throws sust.paperlessexm.exception.GenericBusinessException;", "title": "" }, { "docid": "94698a22a05aa976c9c6cede4b10fd77", "score": "0.58070415", "text": "@Override\n\tpublic List<Article> list() {\n\t\treturn articledao.listall();\n\t}", "title": "" }, { "docid": "e00e1d66eb44e4a598bbe65135760997", "score": "0.58042526", "text": "public List<Question> getAllQuestions() {\n try {\n return entityManager\n .createNamedQuery(GET_ALL_QUESTIONS)\n .getResultList();\n } catch (NoResultException e) {\n return null;\n }\n }", "title": "" }, { "docid": "043823d23c2f966b665474b9f4be0300", "score": "0.578904", "text": "public static void list() {\n\t\tMap<Integer, ArrayList<String>> answers = instructor.getAnswers();\n\n\t\tfor (Map.Entry<Integer, ArrayList<String>> stu : answers.entrySet()) {\n\t\t\tSystem.out.println(\"Student: \" + stu.getKey());\n\t\t\tfor (int i = 0; i < stu.getValue().size(); i++) {\n\t\t\t\tint question = i + 1;\n\t\t\t\tif (stu.getValue().get(i) != \"0\") {\n\t\t\t\t\tif (question <= instructor.getQuestions().size()) {\n\t\t\t\t\t\tSystem.out.println(\" answered: \"\n\t\t\t\t\t\t\t\t+ stu.getValue().get(i) + \" for question \"\n\t\t\t\t\t\t\t\t+ question);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "df981b341b3cc01c4700c1994bd9fd9d", "score": "0.5781841", "text": "@Override\r\n\tpublic List<Question> getAllQuestions() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f1f15a70697906a300894f97bdac66ba", "score": "0.5748102", "text": "private void showAllListEntries () {\n List<DbEntry> entries = dataSource.getAllEntries();\n\n ArrayAdapter<DbEntry> entryArrayAdapter = new ArrayAdapter<DbEntry> (this,\n android.R.layout.simple_list_item_multiple_choice, entries) {\n @Override\n @NonNull\n public View getView(int position, View view, @NonNull ViewGroup viewGroup) {\n View v = super.getView(position, view, viewGroup);\n ((TextView)v).setTypeface(Typeface.MONOSPACE);\n return v;\n }\n };\n\n ListView entriesListView = findViewById(R.id.listview_entries);\n entriesListView.setAdapter(entryArrayAdapter);\n }", "title": "" }, { "docid": "02e4c4b8ae2b4b08d1426639923b17d2", "score": "0.5725029", "text": "@RequestMapping(\"/listAnswerQuestion\")\n\tpublic ModelAndView listAnswerQuestion(@RequestParam Integer idKey) {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"answer\", answerDAO.findAnswerByPrimaryKey(idKey));\n\t\tmav.setViewName(\"answer/question/listQuestion.jsp\");\n\n\t\treturn mav;\n\t}", "title": "" }, { "docid": "3fcba695e779659cc9c2e2b67772dcaa", "score": "0.57192975", "text": "public List<ExaminationDetails> showExamList();", "title": "" }, { "docid": "816b3c61ab1a0df1f8f80187af0b5d7b", "score": "0.5706133", "text": "public Answer view(int id){\n Answer answer;\n try {\n helper = OpenHelperManager.getHelper(context,DatabaseHelper.class);\n RuntimeExceptionDao<Answer, Integer> answerDao = helper.getAnswerRuntimeDao();\n answer = answerDao.queryForId(id);\n } catch (Exception ex) {\n answer = null;\n Log.e(\"AnswerController(show)\", \"Error: \" + ex.getMessage());\n }\n return answer;\n }", "title": "" }, { "docid": "56b3556837198fb83195637c67b33fbd", "score": "0.57052565", "text": "java.util.List<sust.paperlessexm.entity.Questions> findQuestionsByQuestionsId(java.lang.Integer questionsId) throws sust.paperlessexm.exception.GenericBusinessException;", "title": "" }, { "docid": "e99760661ce13dd80aae997779c0518d", "score": "0.56906104", "text": "@RequestMapping(\"/entries/all\")\n public String showAll(Model map) {\n map.addAttribute(\"title\", \"All name entries\");\n map.addAttribute(\"names\", \"Shows all entries. Supports pagination\");\n return \"searchresults\";\n }", "title": "" }, { "docid": "e8f01e5f6670fe9289fef5c9d6dd64f8", "score": "0.56895137", "text": "@ResponseBody\n @GetMapping(\"/api/issues\")\n public Iterable<Issue> show() {\n System.out.println(issue_dao.findAll());\n return issue_dao.findAll();\n }", "title": "" }, { "docid": "b73d079b7a45827a280df99432204b51", "score": "0.56782883", "text": "@Override\n public List<E> getAll(){\n return entities;\n }", "title": "" }, { "docid": "0c2e63ac0a7139bcc93ed3aa93688994", "score": "0.5649822", "text": "@Override\r\n\tpublic List<Employee> showAllEmployee() {\n\t\treturn empDao.showAllEmployee();\r\n\r\n\t}", "title": "" }, { "docid": "0578c692a2475c4fb03059c5627e12c9", "score": "0.56487805", "text": "public List<FGQuizQuestions> getAllQuestions() {\n List<FGQuizQuestions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + FGQuizContract.QuestionsTable.TABLE_NAME, null);\n if (c.moveToFirst()) {\n do {\n FGQuizQuestions question = new FGQuizQuestions();\n question.setQuestion(c.getString(c.getColumnIndex(FGQuizContract.QuestionsTable.COLUMN_QUESTION)));\n question.setOption1(c.getString(c.getColumnIndex(FGQuizContract.QuestionsTable.COLUMN_OPTION1)));\n question.setOption2(c.getString(c.getColumnIndex(FGQuizContract.QuestionsTable.COLUMN_OPTION2)));\n question.setOption3(c.getString(c.getColumnIndex(FGQuizContract.QuestionsTable.COLUMN_OPTION3)));\n question.setOption4(c.getString(c.getColumnIndex(FGQuizContract.QuestionsTable.COLUMN_OPTION4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(FGQuizContract.QuestionsTable.COLUMN_ANSWER_NR)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "title": "" }, { "docid": "623bdee333b1da3a09e8ed25562d1140", "score": "0.5647493", "text": "List<Article> findAll();", "title": "" }, { "docid": "b8030167e99df437c945835f884db36e", "score": "0.5642896", "text": "List<AdvertiseEntity> viewAllAdvertises() throws AdvertiseNotFoundException;", "title": "" }, { "docid": "833261f9c06615fcbcd88122147c6453", "score": "0.5641382", "text": "@SuppressWarnings(\"finally\")\r\n\t@Override\r\n\tpublic List<Exam> findAll() {\n\t\tList<Exam> exams = null;\r\n\t\ttry {\r\n\t\t\tExamDAO examDAO = new ExamDAO();\r\n\t\t\texams = examDAO.findAll();\r\n\t\t}catch (Exception e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}finally {\r\n\t\t\treturn exams;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "11ae6e107f9f1f776cfeb01fd172177e", "score": "0.56375027", "text": "@Override\r\n\tpublic List<Asserter> queryAll() {\n\t\treturn asserterMapper.selectAll();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "be3872d735d11f199a40b3e702d0b6a1", "score": "0.5633244", "text": "@RequestMapping(value = \"/entries\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Entry> getAllEntries() {\n log.debug(\"REST request to get all Entries with no distinction\");\n List<Entry> entries = entryRepository.findAllWithEagerRelationships();\n return entries;\n }", "title": "" }, { "docid": "f87d952f152da507191f498baaa04d07", "score": "0.56279624", "text": "@Override\r\n\tpublic List<Employee> showAllEmployee() {\n\t\treturn employeeDao.showAllEmployee();\r\n\t}", "title": "" }, { "docid": "01666b0b2a8fdd3a70a4d7f5c3d06ac0", "score": "0.5591873", "text": "@RequestMapping(path = \"answer/all/{questionId}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<List<AnswerDetailsResponse>> getAllAnswersToQuestion(@PathVariable(\"questionId\") final String questionId, @RequestHeader(\"authorization\") final String authorization) throws AuthorizationFailedException, InvalidQuestionException {\n QuestionEntity questionEntity = answerService.getQuestion(questionId);\n final List<AnswerEntity> allAnswers = answerService.getAllAnswers(questionId, authorization);\n List<AnswerDetailsResponse> answerDetailsResponseList = new ArrayList<>();\n for (AnswerEntity ae : allAnswers) {\n answerDetailsResponseList.add(new AnswerDetailsResponse().id(ae.getUuid()).answerContent(ae.getAnswer()).questionContent(questionEntity.getContent()));\n }\n return new ResponseEntity<List<AnswerDetailsResponse>>(answerDetailsResponseList, HttpStatus.OK);\n\n }", "title": "" }, { "docid": "4991badecd2370f45a940882b00d4c04", "score": "0.55886704", "text": "@Transactional(readOnly = true)\n public List<ExerciseHint> findAll() {\n log.debug(\"Request to get all ExerciseHints\");\n return exerciseHintRepository.findAll();\n }", "title": "" }, { "docid": "bae12ee41ab6a237da05f6f51df2824c", "score": "0.5572939", "text": "@Override\npublic List<Employee> viewAllEmp() {\n\treturn (List<Employee>) employeeRepositary.findAll();\n}", "title": "" }, { "docid": "9a11736aea7001c0fb16a0e4ad613abe", "score": "0.5570918", "text": "public static void viewAnnouncements()\n {\n try\n {\n PreparedStatement preparedStmt = MyConnection.getConnection().prepareStatement(\"select * from announcements\");\n ResultSet rs = preparedStmt.executeQuery();\n while (rs.next())\n {\n String name = rs.getString(\"managerName\");\n String message = rs.getString(\"message\");\n int price = rs.getInt(\"price\");\n String items = rs.getString(\"menuItems\");\n ArrayList<MenuItem> getItem = convertStringtoItems(items);\n Announcement a = new Announcement(name, message, price, getItem);\n HomepageForm.offers.add(a);\n }\n } catch (SQLException ex)\n {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "73077aea532500b099cbef7bad160da2", "score": "0.55619854", "text": "public List<Ente> getAll() {\r\n List<Ente> result = new ArrayList<>();\r\n enteRepository.findAll().forEach(result::add);\r\n return result;\r\n }", "title": "" }, { "docid": "85490ef7642eb71fedf1595b55ad37e3", "score": "0.5556279", "text": "public ArrayList<Question> getAllQuestions() {\n ArrayList<Question> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.TABLE_NAME, null);\n\n if (c.moveToFirst()) {\n do {\n Question question = new Question();\n question.setInstruction(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_INSTRUCTION)));\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_QUESTION)));\n question.setImageRef(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_IMAGE_REF)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_ANSWER_NUM)));\n question.setTopicId(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_TOPIC_ID)));\n question.setActivityNum(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_ACT_NUM)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "title": "" }, { "docid": "1dbe0514de68e37859f80d25e86bafbb", "score": "0.5556187", "text": "public List<IMWE<T>> getAnswers();", "title": "" }, { "docid": "212bf70448bb6ca62225a408db609513", "score": "0.55502254", "text": "public List<QuestionAnswer> getQuestionSet(){\n List<QuestionAnswer> questionSet = new ArrayList<QuestionAnswer>();\n Cursor c = myDataBase.rawQuery(\"SELECT * FROM \" + DATABASE_NAME , null);\n while (c.moveToNext()){\n //Log.d(\"QUESTION\", \"Question Found in DB: \" + c.getString(1));\n QuestionAnswer q = new QuestionAnswer();\n q.setQuestion(c.getString(1));\n q.setAnswer(c.getString(2));\n q.setIncorrect1(c.getString(3));\n q.setIncorrect2(c.getString(4));\n q.setIncorrect3(c.getString(5));\n questionSet.add(q);\n }\n return questionSet;\n }", "title": "" }, { "docid": "51dc04444ee96fc538db5a587f697fb9", "score": "0.55487716", "text": "Set<String> getAnswerList();", "title": "" }, { "docid": "f53f9ded396d1866da04c422846ca8b6", "score": "0.55475295", "text": "@Override\r\n\tpublic ArrayList<Show> findAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "99c88af87bfbdc4324339bc1f3bcaee2", "score": "0.5544444", "text": "public ArrayList<Question> getAllQuestions() {\n ArrayList<Question> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.TABLE_NAME, null);\n\n if (c.moveToFirst()) {\n //Selecciona hasta que termine\n do {\n Question question = new Question();\n question.setId(c.getInt(c.getColumnIndex(QuestionsTable._ID)));\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_QUESTION)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION3)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_ANSWER_NR)));\n question.setDifficulty(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_DIFFICULTY)));\n question.setCategoryID(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_CATEGORY_ID)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n\n c.close();\n return questionList;\n }", "title": "" }, { "docid": "32eafc7c02e681d9286d78581a6074d3", "score": "0.5542091", "text": "public static void fetchAllPostits() {\n\t\tList<Postit> postits = Postit.findAll();\n\t\tJSONSerializer modelSerializer = new JSONSerializer().include(\"id\",\n\t\t\t\t\"xpos\", \"ypos\", \"content\", \"groupp.id\", \"project.id\",\n\t\t\t\t\"task.id\", \"rawcontent\", \"run_id\", \"wxpos\", \"wypos\").exclude(\n\t\t\t\t\"*\");\n\t\trenderJSON(modelSerializer.serialize(postits));\n\t}", "title": "" }, { "docid": "8276ada3e8cfabf256875073580ca9b7", "score": "0.5527538", "text": "@Override\r\n\tpublic List<Survey> findAll() throws Exception {\n\t\tList<Survey> list=surveyMapper.findAll();\r\n\t\tif(null!=list){\r\n\t\t\treturn list;\r\n\t\t}else{\r\n\t\t\tthrow new Exception(\"信息表为空\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1197b09bdff07635052773c80a06453c", "score": "0.55269736", "text": "public List<Questions> getAllQuestions() {\n SQLiteDatabase sqLiteDatabase =getReadableDatabase();\n List<Questions> questionList = new ArrayList<>();\n\n Cursor c = sqLiteDatabase.rawQuery(\"SELECT * FROM \" +OS_TABLE_NAME, null);\n\n if (c.moveToFirst()) {\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(COLUMN_QUESTION)));\n question.setOption_1(c.getString(c.getColumnIndex(COLUMN_OPTION1)));\n question.setOption_2(c.getString(c.getColumnIndex(COLUMN_OPTION2)));\n question.setOption_3(c.getString(c.getColumnIndex(COLUMN_OPTION3)));\n question.setOption_4(c.getString(c.getColumnIndex(COLUMN_OPTION4)));\n question.setAnswer_no(c.getInt(c.getColumnIndex(COLUMN_ANSWER_NO)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "title": "" }, { "docid": "9a66df6e23302ab867fdb2b65b0f653f", "score": "0.5520347", "text": "List<Question> getQuestions(Quiz quiz);", "title": "" }, { "docid": "f05af979fdc8d752d4fe91d69b44239a", "score": "0.5511174", "text": "@RequestMapping(method = RequestMethod.GET, path = \"/answer/all/{questionId}\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<List<AnswerDetailsResponse>> getAllAnswersToQuestion(@PathVariable(\"questionId\") String questionId, @RequestHeader(\"authorization\") final String authorization) throws AuthorizationFailedException, InvalidQuestionException {\n List<AnswerEntity> answerEntityList = answerBusinessService.getAllAnswersToQuestion(questionId, authorization);\n List<AnswerDetailsResponse> answerDetailsResponsesList = new ArrayList<AnswerDetailsResponse>();\n Iterator<AnswerEntity> iterator = answerEntityList.iterator();\n\n while(iterator.hasNext()) {\n AnswerEntity answerEntity = iterator.next();\n AnswerDetailsResponse answerDetailsResponse = new AnswerDetailsResponse().id(answerEntity.getUuid()).questionContent(answerEntity.getQuestion().getContent()).answerContent(answerEntity.getAnswer());\n answerDetailsResponsesList.add(answerDetailsResponse);\n }\n return new ResponseEntity<List<AnswerDetailsResponse>>(answerDetailsResponsesList, HttpStatus.OK);\n }", "title": "" }, { "docid": "51350da256de27a4692b85c8d20a3fe2", "score": "0.5502986", "text": "@GET\n\t@Path(\"/findAll\")\n\t@Produces(value = { MediaType.APPLICATION_JSON })\n\tpublic Response findAllMCQs() {\n\t\tLOGGER.info(\"Find all multiple choice questions\");\n\t\tList<QuestionMessage> questionMessages = new ArrayList<QuestionMessage>();\n\t\tMap<Question, List<MCQChoice>> map = dataService.findAllQuestionsWithMCQChoices();\n\t\tfor (Entry<Question, List<MCQChoice>> entry : map.entrySet()) {\n\t\t\tQuestionMessage qm = new QuestionMessage();\n\t\t\tqm.setQuestionLabel(entry.getKey().getQuestionLabel());\n\t\t\tqm.setId(entry.getKey().getId());\n\t\t\taddMCQChoiceListToQuestionMessage(entry.getValue(), qm);\n\t\t\tquestionMessages.add(qm);\n\t\t}\n\n\t\treturn Response.ok(questionMessages).build();\n\t}", "title": "" }, { "docid": "9c01aea9088e60db565ad7baba690b66", "score": "0.549671", "text": "public void displayQuestions()\n\t{\n\t\tint questionNumber = 1;\n\t\tfor(Question question : this.questions)\n\t\t{\n\t\t\tSystem.out.println(\"Q #\" + questionNumber + \" \");\n\t\t\tquestion.displayQuestion();\n\t\t\tSystem.out.println(\" \");\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "620010a6edf7e44c6c1172fccdfdad8b", "score": "0.5496617", "text": "@Override\r\n\t@Transactional\r\n\tpublic List<Exam> listExam() {\n\t\tList<Exam> list = examDao.find(0,5);\r\n\t\tfor(Exam e: list){\r\n\t\t\te.setIncount(e.getUsers().size());\r\n\t\t}\r\n\t\tPageModel page = this.getPage();\r\n\t\tHttpSession hs = (HttpSession)RequestContextHolder.getRequestAttributes().getSessionMutex();\r\n\t\ths.setAttribute(\"page\", page);\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "8afdec48d55257e61fb6c875fc4c597c", "score": "0.54948145", "text": "@Override\r\n\tpublic List<FfaqVO> FAQList() throws Exception {\n\t\treturn dao.FAQList();\r\n\t}", "title": "" }, { "docid": "81c36dc5cccf61fc5d7a0c236d95d9c3", "score": "0.5494758", "text": "public java.util.List<Empresa> findAll();", "title": "" }, { "docid": "b718410668317059f6954d71f6700629", "score": "0.5492098", "text": "sust.paperlessexm.entity.Questions getQuestions(java.lang.Integer id) throws sust.paperlessexm.exception.GenericBusinessException;", "title": "" }, { "docid": "7f30213d26125cc52234d62de9065c50", "score": "0.54901266", "text": "public ArrayList<Question> getAllQuestions() {\n ArrayList<Question> contactArrayList = new ArrayList<Question>();\n\n Cursor cursor = database.rawQuery(\"SELECT * FROM \" + TABLE_QUESTIONS, null);\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Question question= new Question();\n question.setQuestion(cursor.getString(1));\n question.setAnswer(cursor.getString(2));\n contactArrayList.add(question);\n\n cursor.moveToNext();\n }\n\n cursor.close();\n return contactArrayList;\n }", "title": "" }, { "docid": "bc4294d09fff2e45d710f1a3d5a5bd2b", "score": "0.5484254", "text": "public List<Model> getAll();", "title": "" }, { "docid": "060eac3455457c38ce9bb260ac16c2cb", "score": "0.54555404", "text": "@RequestMapping(\"/questions/{id}\")\n public String showIdQuestion(@PathVariable(\"id\") Long id, Model model) {\n \t\n \t\n \tQuestion question=mainService.findQuestion(id);\n \tmodel.addAttribute(\"question\",question);\n \t\n \tList<Tag> tags = question.getTags();\n \tmodel.addAttribute(\"tags\",tags);\n \tList<Answer> question_answers = question.getAnswers();\n \tmodel.addAttribute(\"question_answers\", question_answers);\n return \"/questions/idshow.jsp\";\n \n }", "title": "" }, { "docid": "01987bc26354809636b4007788ec260e", "score": "0.5450191", "text": "@Override\n\tpublic List<Question> selectAll() throws DaoException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "38b8a1a36adecc32ee04259190557482", "score": "0.5441597", "text": "Collection<Entity> getAllEntities();", "title": "" }, { "docid": "2b42d45e3535be1b22aaf5492cc5bdf9", "score": "0.54406065", "text": "List<Post> findAll();", "title": "" }, { "docid": "1061e744c7f5ede213c9e29c74bf3ee4", "score": "0.5435431", "text": "public List getAll() {\r\n\t\treturn cmArticleDao().getAll();\r\n\t}", "title": "" }, { "docid": "931af7631e64a967e7d9f4958defdb6a", "score": "0.5435079", "text": "@Override\r\n\tpublic List<Emp> getAll() {\n\t\tQuery query=em.createQuery(\"select e from Emp e\");\r\n\t\t\t\r\n\t\treturn query.getResultList();\r\n\t}", "title": "" }, { "docid": "115f1f543738f54bd275b49050c474bb", "score": "0.5432591", "text": "List<Question> findQuestionsByUserId(long id) throws ProjectException;", "title": "" }, { "docid": "f817e57f022d82fe4b9e188db115a6cc", "score": "0.54318994", "text": "List<Note> getAll();", "title": "" }, { "docid": "b214dd72f540737776ba1f797773c91f", "score": "0.54304236", "text": "public SurveyAnswerList getAnswerList() {\n return answerList;\n }", "title": "" }, { "docid": "441b5d4fb847a804c858e73d0c5950af", "score": "0.5430252", "text": "@Override\n public List<Article> all() {\n return articleMapper.all();\n }", "title": "" }, { "docid": "b0b53d30109149c83c013d64ed749dd5", "score": "0.542924", "text": "@Test\r\n public void testBuscar() throws Exception {\r\n System.out.println(\"saveQuestionsList\");\r\n QuestionsDAOReader questionsDAO = new QuestionsDAOReader();\r\n questionsDAO.load();\r\n\r\n for (Questions question : QuestionsControl.questions) {\r\n System.out.println(question);\r\n }\r\n }", "title": "" }, { "docid": "04ba390f291214dffba02398521616f2", "score": "0.54267603", "text": "@RequestMapping(value = \"/questionnaires\", method = RequestMethod.GET)\n\t\tpublic String getQuestionnaires(Model model) {\n\t\t\tList<Questionnaire> questionnaires = (List<Questionnaire>) questionnaireRepository.findAll();\n\t\t\tmodel.addAttribute(\"questionnaires\", questionnaires);\n\t\t\treturn \"questionnairelist\";\n\t\t}", "title": "" }, { "docid": "3e970a9793a7dfd33829013b2770aec4", "score": "0.5420958", "text": "private void fetchQuestions() {\n Call<QuestionList> call = server.questions();\n call.enqueue(new Callback<QuestionList>() {\n @Override\n public void onResponse(Response<QuestionList> response, Retrofit retrofit) {\n QuestionList questionList = response.body();\n if (questionList != null && questionList.getItems() != null) {\n Log.d(\"QuestionsCallback\", \"Question Count: \" + questionList.getItems().size());\n adapter.setQuestions(questionList.getItems());\n } else {\n Log.d(\"QuestionsCallback\", \"No questions returned from /questions API call\");\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n //NO-OP\n }\n });\n }", "title": "" }, { "docid": "29089c157961e223b2eec52277e9f6d4", "score": "0.5411454", "text": "public void loadQuestions()\n {\n try\n {\n ArrayList<QuestionPojo> questionList=QuestionDAO.getQuestionsForEdit(language, examId);\n for(QuestionPojo obj:questionList)\n {\n qstore.addQuestion(obj);\n }\n }\n catch(SQLException ex)\n {\n JOptionPane.showMessageDialog(null, \"Error while connecting to DB!\", \"Exception!\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "70e1fcaee687be04cf0d2887cce7b97f", "score": "0.540933", "text": "List<Empresa> findAll();", "title": "" }, { "docid": "f3f330b5f106eb760ecb243c67584c72", "score": "0.5399198", "text": "public abstract List<Entity> findAll() throws ApplicationException;", "title": "" }, { "docid": "15655249da108f130b76b125d17c2217", "score": "0.5397829", "text": "@Override\n public void loadQuestionsAndAnswers() {\n Resources res = getResources();\n RealmHelper.initQuestionsAndAnswers(res);\n }", "title": "" }, { "docid": "288cb0315bdd3a169a305d6bcf2b177c", "score": "0.5397133", "text": "List<OfferDTO> findAll();", "title": "" }, { "docid": "8a8da20c2495a069ce49aa51de7b753e", "score": "0.53939146", "text": "@Override\r\n\tpublic List<Show> getAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b0583f9e5f7dafd43e23cd7d41ee260e", "score": "0.53894365", "text": "public RealmResults<NoteEntity> getAll() {\n return realm.where(NoteEntity.class).findAll();\n }", "title": "" }, { "docid": "a6abd27bf5279c88bc55f15a874c6321", "score": "0.538617", "text": "@Transactional\n\tpublic List<Question> getTestQuestions() {\n\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tNativeQuery<Question> query = session.createNativeQuery(\"select * from question order by random() limit 5\",Question.class);\n\t\tList<Question> questions = query.list();\n\t\t\n\t\t\n\t\treturn questions;\n\t}", "title": "" }, { "docid": "66c19cf06c922df97957d0bda6b97bf2", "score": "0.53789383", "text": "List<HelpTopic> selectAll();", "title": "" }, { "docid": "9dd2509f6f64b76b55b49adc52d88a0b", "score": "0.5375533", "text": "public void display() {\n this.o.setDisplay(\"\\n####################\\n\" + this.getName() +\"\\n####################\\n\");\n this.o.getDisplay();\n\n for (int i=0;i<this.numQuestions;i++) {\n Question q = this.questions.get(i);\n ArrayList<String> choices = q.getChoices();\n\n ArrayList<String> ans = new ArrayList<String>();\n\n try {\n ans = this.getAnswer(i).getResponses();\n } catch (IndexOutOfBoundsException e) {\n\n }\n\n String stringAns = \"\";\n String checkAns = \"\";\n char alphabet = 'A';\n q.display();\n\n if (choices.isEmpty()) {\n if (ans.isEmpty()){\n this.o.setDisplay(\"No answer(s) for this question\\n\\n\");\n this.o.getDisplay();\n } else {\n for (String a: ans) {\n stringAns += \"\\n\" + a + \" \";\n }\n this.o.setDisplay(\"Correct answer(s): \" + stringAns + \"\\n\\n\");\n this.o.getDisplay();\n }\n\n } else {\n for (int j=0; j < choices.size(); j++ ) {\n checkAns = (char) (alphabet + j) + \"\";\n String checkNumAns = Integer.toString(j+1);\n if (ans.contains(checkAns) ) {\n stringAns += checkAns + \") \" + choices.get(j) + \" \";\n } else if (ans.contains(checkNumAns)){\n stringAns += checkAns + \") \" + ans.get(j) + \" \";\n }\n }\n this.o.setDisplay(\"Correct answer(s): \" + stringAns + \"\\n\\n\");\n this.o.getDisplay();\n }\n }\n }", "title": "" }, { "docid": "6ba8e52cf1a812022e70a6a5a2c1f443", "score": "0.5374434", "text": "private void fillAnswers(String question){\n try{\n Statement setning = db.kobleTil().createStatement();\n res = setning.executeQuery(\"select ANSWER from QUESTIONS where TITLE = '\"+question+\"' and servicecentre_id = \"+id+\"\");\n res.next();\n String settinn = res.getString(\"answer\");\n answerBox.setText(settinn);\n db.kobleFra();\n \n \n \n } catch(Exception e){\n JOptionPane.showMessageDialog(null, \"Her oppsto det en feil\" + e + \"\");\n db.kobleFra();\n }\n }", "title": "" }, { "docid": "d67fedcc33a445c3ce7023ebde12ce44", "score": "0.5373799", "text": "List<EmployeeView> findAllView();", "title": "" }, { "docid": "04ec157d2e76c5a5543b8830c56df0c1", "score": "0.5372685", "text": "@Override\n\tpublic List<Article> findAll() {\n\t\treturn articleRepository.findAll();\n\t}", "title": "" }, { "docid": "38104e865f2ee0412fed342eb057520f", "score": "0.5362219", "text": "public interface AnswerManager {\n\n /**\n * Insert an Answer given an Answer object\n *\n * @param answer Answer to insert\n * @return true if the operation go well, false otherwise\n * @throws SQLException if db errors occurred\n */\n int insertAnswer(Answer answer) throws SQLException;\n\n /**\n * Remove an Answer given a id\n *\n * @param id AnswerId to remove\n * @return true if the operation go well, false otherwise\n * @throws SQLException if db errors occurred\n */\n int removeAnswer(int id) throws SQLException;\n\n /**\n * Remove an Answer given the id's question\n *\n * @param id questionId of the questions's answers to remove\n * @return true if the operation go well, false otherwise\n * @throws SQLException if db errors occurred\n */\n int bestAnswer(int id) throws SQLException;\n\n /**\n * Retrieves all answers related to a question\n *\n * @param questionId the questionId for retrieve the answers\n * @return a List of tags related to the question\n * @throws SQLException if db error occurred\n */\n List<Answer> retrieveQuestionAnswers(int questionId) throws SQLException;\n\n /**\n * Retrieves all answers\n *\n * @return a List of tags related to the answers\n * @throws SQLException if db error occurred\n */\n List<Answer> retrieveAllQuestionAnswers() throws SQLException;\n}", "title": "" } ]
acd3a8682ad943df56b557e5320d5a7f
Send text input to the device
[ { "docid": "183009178ddccadac264f5a9fceb66de", "score": "0.6497768", "text": "public void writeTextEvent(String text) {\r\n\t\ttry {\r\n\t\t\tbridge.sendTextEvent(text);\r\n\t\t\tpause();\r\n\t\t} catch (CalabashException e) {\r\n\t\t\tSystem.out.println(\"Unable to send text event\");\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "349aa0e0c07e7469b4ea111eca1c61f8", "score": "0.71794105", "text": "private void send() {\n\t\tif (!_connected)\n\t\t\treturn;\n\t\tString str = _field.getText();\n\t\tif (str.length() == 0)\n\t\t\treturn;\n\t\t_field.setText(\"\");\n\t\t_buttons.setButtonEnabled(1, false);\n\t\t_area.setText(_area.getText() + \n\t\t\t\t\t GUIMediator.getStringResource(YOU_LABEL) +\n\t\t\t\t\t \": \" + str + \"\\n\");\n\t\ttry {\n\t\t\t_chat.send(str);\n\t\t} catch (Exception eeee) {\n\t\t}\n\t}", "title": "" }, { "docid": "1012960c1607c6fb84d2a58bc40e0b5c", "score": "0.71184605", "text": "public void sendTextToClient(String text){\r\n try {\r\n dOutput.writeUTF(text);\r\n dOutput.flush();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "03f17641931fcecb8dd8b77a6e409d18", "score": "0.70520705", "text": "public void sendMessage() {\r\n\tfinal String text = getChatInputEditor().getText();\r\n\tsendMessage(text);\r\n }", "title": "" }, { "docid": "e42259d96b86dccaf28a17bd98da103b", "score": "0.68186766", "text": "void sendKeys(String text);", "title": "" }, { "docid": "7a4bfba892a250c44a6b5b191600a3ca", "score": "0.6700833", "text": "@Override\n public void sendMessage(String txt) {\n output.println(txt);\n }", "title": "" }, { "docid": "df8aa3da651f209fe69c2bb8c70712bf", "score": "0.6668156", "text": "public void sendText(String text){\n this.getDebug().printDebug(\"control: Added \\\"\" + text + \"\\\"\");\n this.intake.add(text);\n }", "title": "" }, { "docid": "2fe39801c31d24940fb42fad9891234b", "score": "0.663243", "text": "public void sendTextMessage(java.lang.String text) throws android.os.RemoteException;", "title": "" }, { "docid": "f92feaec7d98219037e6132810ca1515", "score": "0.6618075", "text": "public void OnClickSend(View view) {\n EditText chosenNumber = (EditText) findViewById(R.id.text);\n String numToString = chosenNumber.getText().toString();\n boolean isNumeric = isNumeric(numToString);\n\n // If the value is valid\n if (!numToString.equals(\"\") && isNumeric) {\n // Write value to serial and delete it from EditText\n try {\n port.write(numToString.getBytes(), 10);\n } catch (IOException e) {\n e.printStackTrace();\n }\n chosenNumber.setText(\"\");\n\n byte[] bufferRead = new byte[10];\n do {\n // Get the value from serial and show the result\n try {\n port.read(bufferRead, 100);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } while (bufferRead[0] == 0);\n String resultToString = new String(bufferRead, StandardCharsets.UTF_8);\n TextView result = (TextView) findViewById(R.id.result);\n result.setText(resultToString);\n } else if (numToString.equals(\"\")) {\n Toast toast = Toast.makeText(getApplicationContext(),\n \"you need to enter something\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n chosenNumber.setText(\"\");\n Toast toast = Toast.makeText(getApplicationContext(),\n \"you can only enter a number\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }", "title": "" }, { "docid": "34a7bf4bb7c2168b3cb97d2b5e585672", "score": "0.660892", "text": "private void send(String text) {\n\t\tif (!isConnect) {\n\t\t\tJOptionPane.showMessageDialog(jfm, \"not connected to server\");\n\t\t\treturn;\n\t\t}\n\t\tif (text.equals(\"\") || text == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\t// send info to the server\n\t\t\tdout.writeUTF(text + \",\" + TO_SERVER);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "58073c7aa040b7b7f234ef194aa63550", "score": "0.66041154", "text": "public static void sendText(String text) {\n\n StringBuffer buff = new StringBuffer(text);\n\n boolean escapeFlag = false;\n for (int i=0; i<buff.length(); i++) {\n if (escapeFlag) {\n escapeFlag = false;\n if (buff.charAt(i) == 's') {\n buff.setCharAt(i, ' ');\n buff.deleteCharAt(--i);\n }\n } \n if (buff.charAt(i) == '%') {\n escapeFlag = true;\n }\n }\n\n char[] chars = buff.toString().toCharArray();\n\n KeyCharacterMap kcm = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD);\n KeyEvent[] events = kcm.getEvents(chars);\n for(int i = 0; i < events.length; i++) {\n injectKeyEvent(events[i]);\n }\n }", "title": "" }, { "docid": "5a39df107be9b777ce505df9fc3d8ac6", "score": "0.65550697", "text": "private void updateWrite(String text){\n if (TextUtils.isEmpty(text)){\n AnimateUtils.shake(etWrite);\n return;\n }\n\n if (isHexSend){\n text = text.replace(\" \",\"\");\n if (!Utils.isRightHexStr(text)){\n AnimateUtils.shake(etWrite);\n return;\n }\n byte[] array = Utils.hexStringToByteArray(text);\n writeCharacteristic(writeCharacteristic, array);\n }else {\n if(Utils.isAtCmd(text))\n text = text + \"\\r\\n\";\n try {\n byte[] array = text.getBytes(\"US-ASCII\");\n writeCharacteristic(writeCharacteristic,array);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n System.out.println(\"--------------------->write text exception\");\n return;\n }\n\n }\n Message msg = new Message(Message.MESSAGE_TYPE.SEND,text);\n notifyAdapter(msg);\n }", "title": "" }, { "docid": "75dbbbc64bea8b038361fefffc3637ca", "score": "0.6535643", "text": "void setInput(String text) {\n if (!lock) {\n this.getDebug().printDebug(\"Control: Output text set to \\\"\" + text + \"\\\"\");\n this.outtake = text;\n }\n }", "title": "" }, { "docid": "c8a47b8c490a725daebf4b2785468232", "score": "0.6487471", "text": "void sendKeys(String text, boolean sendRawKeys);", "title": "" }, { "docid": "1511399e7e1895ecfe751a61bf859800", "score": "0.6400599", "text": "@Override\n public void onClick(View v) {\n String sendText = editText.getText().toString();\n try {\n // din = new DataInputStream(client.getInputStream());\n// dout.writeUTF(sendText);\n dout.write(sendText.getBytes());\n dout.flush();\n\t\t\t\t/*\n\t\t\t\t * display.setText(display.getText().toString() + \"\\n\" +\n\t\t\t\t * \"服务器发来的消息:\" + din.readUTF());\n\t\t\t\t */\n\t\t\t\t/*\n\t\t\t\t * display.setText(display.getText().toString() + \"\\n\" +\n\t\t\t\t * \"服务器发来的消息--:\" + din.readUTF());\n\t\t\t\t */\n } catch (UnknownHostException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ecb5d30c379c9ab98dcdc4c328f76186", "score": "0.63439953", "text": "public static void sendText(final String text, final boolean pressEnter) {\r\n\t\tsendText(text, pressEnter, 100, 200);\r\n\t}", "title": "" }, { "docid": "9161bbced4e96131a217d225fc2d07a3", "score": "0.6343161", "text": "public void SendMessage() {\n smsManager.sendTextMessage(phoneNumber, null, message, null, null);\n }", "title": "" }, { "docid": "192d7f92d37031773d2977c9824cfb2d", "score": "0.63247126", "text": "@Override\n public void onClick(View v) {\n EventBus.getDefault().postRemote(new CustomObject(editTextToSend.getText().toString()), MainMobileActivity.this);\n }", "title": "" }, { "docid": "7540a1d48d2ed64febb88b6d1c018dfa", "score": "0.63091034", "text": "public void SendMessage(View v) {\n byte[] bytes = send_data.getText().toString().getBytes(Charset.defaultCharset());\n mConnectedThread.write(bytes);\n }", "title": "" }, { "docid": "e0cc4378fe17853bef0f1fe8029348bf", "score": "0.6287867", "text": "public void setText()\n {\n inputText = true;\n }", "title": "" }, { "docid": "30b97617056420486672f62031c5be31", "score": "0.62872005", "text": "public void inputText(String text) {\n this.model.detachObserver(this.observees, this.row, this.column);\n this.observees = this.model.attachObserver(text, this.row, this.column);\n this.model.inputText(text, this.row, this.column, false);\n this.notifyObservers();\n }", "title": "" }, { "docid": "aac926f5225a7bb9f9514a2f7e637173", "score": "0.6271886", "text": "@Override\n public void onClick(View view) {\n byte[] bytes = messageInput.getText().toString().getBytes(Charset.defaultCharset());\n bluetoothConnection.write(bytes);\n }", "title": "" }, { "docid": "c933c3016030273bc72bf52da98f0892", "score": "0.62717474", "text": "public void actionPerformed(ActionEvent e){\n String txt = txtField.getText();\n input = txt;\n System.out.println(input);\n //add command in output\n txtArea.append(txt + \"\\n\");\n DisplayInve();\n //reset input field\n txtField.setText(\"\");\n hasInput = true;\n }", "title": "" }, { "docid": "817e4753c343ba9e3a89af1947b5ff51", "score": "0.62560123", "text": "@Override\n public void onClick(View view) {\n SM.SendData(editText.getText().toString());\n }", "title": "" }, { "docid": "f0f571a1365538db554634b2500eddba", "score": "0.625593", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttextOut.setText(getInput.getText());\n\t\t\t}", "title": "" }, { "docid": "e70053094278b2243106523483c27fe3", "score": "0.6251362", "text": "public void sendCommand( String text ) {\r\n try {\r\n objectlineout.writeUTF( text + \">\" );\r\n objectlineout.flush();\r\n } catch ( IOException ex ) {\r\n Logger.getLogger( ClientConnection.class.getName() ).log( Level.SEVERE, null, ex );\r\n }\r\n }", "title": "" }, { "docid": "48fd81c3d842e126dd46cb839b42713b", "score": "0.62507915", "text": "public void setInput (String text){\n\t\ttextPaneInput.setText(text);\n\t}", "title": "" }, { "docid": "ad89737ff256318ec6d5ed6418ac6e74", "score": "0.62469643", "text": "public void onText(CharSequence text) {\n\t\tInputConnection ic = getCurrentInputConnection();\n\t\tif(text.length()>0&&(text.charAt(0)<'0'||text.length()>1)){\n\t\t\tic.finishComposingText();\n\t\t\tsb=null;\n\t\t\tic.commitText(text,text.length());\n\t\t}else {\n\t\t\tsendModifiers(ic, KeyEvent.ACTION_DOWN);\n\t\t\tif (sb == null) sb = new StringBuilder(text);\n\t\t\telse sb.append(text);\n\t\t\tic.setComposingText(sb,1);\n\t\t}\n\t\tupdateCandidates();\n\t\t//sendKeyChar(text.charAt(0));\n\t}", "title": "" }, { "docid": "cb1cf8a24f57dca512ae5d76a239cfa1", "score": "0.6242885", "text": "public void typePort(String text) {\n txtPort().typeText(text);\n }", "title": "" }, { "docid": "fc670c81f73799c41f01e135482eb73b", "score": "0.6225", "text": "@Override\n public void onClick(View v) {\n sendMessageToServer(inputMsg.getText().toString());\n\n // Clearing the input filed once message was sent\n inputMsg.setText(\"\");\n }", "title": "" }, { "docid": "9ac4207ba16b3846c6510767e5f216bb", "score": "0.6222596", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttcc.outputStream.writeUTF(name+\" : \"+ta_chat_input.getText()+\"\\n\");\n\t\t\t\t\t\n\t\t\t\t\tta_chat_input.setText(\"\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6bac1cb4a831b14c2a38004e69d00e57", "score": "0.620371", "text": "public void send(View view) {\n int input = 0;\n int testInput = 0;\n\n try {\n testInput = Integer.parseInt(\"\" + ((EditText) findViewById(R.id.edittext_1)).getText());\n input = testInput;\n } catch(Exception e) {\n Toast.makeText(_Variables.CONTEXT.get(), \"Invalid Input, Please Try Again\", Toast.LENGTH_SHORT).show();\n ((EditText) findViewById(R.id.edittext_1)).setText(\"\");\n }\n\n switch (_Variables.COMPILER_MODE.get()) {\n case 1: // WIRELESS\n break;\n case 2: // CONFIGURE EQUIPMENT\n break;\n case 3: // USE EQUIPMENT\n _Variables.OPERATOR_ID.set(input);\n _Variables.USE_EQUIP_MODE.set(false);\n break;\n case 4: // MANAGE RENTAL\n _Variables.CUSTOMER_ID.set(input);\n break;\n default:\n Log.e(\"ERROR\", \"_b2_EnterId (1): public void onCreate(Bundle savedInstanceState)\");\n break;\n }\n\n Intent intent = new Intent(_Variables.CONTEXT.get(), _02_Nfc.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "title": "" }, { "docid": "e7369520435f3a54c361a5e54688dac8", "score": "0.61965984", "text": "@Override\n public void onClick(View v) {\n EventBus.getDefault().postLocal(new CustomObject(editTextToSend.getText().toString()));\n }", "title": "" }, { "docid": "bb314d4bc67bd35278d96d201fb44933", "score": "0.61830974", "text": "public void sendMessage() {\n if (chatBox.getText().trim().length() > 0) {\n String message = chatBox.getText();\n chatObject.sendChatMessage(message);\n chatBox.setText(\"\");\n }\n }", "title": "" }, { "docid": "74fbe03fad9cd570948265b9251048f8", "score": "0.61810726", "text": "@Override\n public void onClick(View v) {\n EventBus.getDefault().post(new pl.tajchert.buswear.sample.CustomObject(editTextToSend.getText().toString()), MainMobileActivity.this);\n }", "title": "" }, { "docid": "d81d832566479c10369bc09e7427e7f2", "score": "0.61787724", "text": "public void sendInputText(String inputs) {\n\t\tsearchBox.sendKeys(inputs);\n\t}", "title": "" }, { "docid": "d91ed276f20f6b32b6320d5907d3c9e5", "score": "0.617293", "text": "private void handleTextInputCallback(TextInputCallback tic)\n throws IOException {\n System.out.print(tic.getPrompt());\n System.out.flush();\n tic.setText((new BufferedReader\n (new InputStreamReader(System.in))).readLine());\n }", "title": "" }, { "docid": "d3a56c5d70d680eb9275e0da385303dd", "score": "0.617165", "text": "public void sendTextToInputField(String textToSearch) {\n\t\tthis.logger.info(\"Send text: '\" + textToSearch + \"' to search box\");\n\t\tthis.homePage.searchInput.sendKeys(textToSearch);\n\t}", "title": "" }, { "docid": "6a856860389d1f9d4e1ff6c2a9696d7b", "score": "0.61576635", "text": "public void sendText(View view) {\n\t\tIntent textIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n\t\t\t\t\"smsto\", card.getTelnummer(), null));\n\t\ttextIntent.putExtra(\"chat\", true);\n\t\tstartActivity(Intent.createChooser(textIntent, \"Send with:\"));\n\n\t}", "title": "" }, { "docid": "b5612e776268eae20c561171bf8be999", "score": "0.6150122", "text": "public void sendPublicMsg(String text);", "title": "" }, { "docid": "8ef5a788baa7cae191d3449e5710564e", "score": "0.6145337", "text": "void sendInput(String pid, byte[] rawInput) throws IOException, ProcessNotFoundException;", "title": "" }, { "docid": "4d2e9939d3e27283e7d2ad29f36b6b66", "score": "0.61309123", "text": "@SuppressLint(\"ResourceType\")\n public void sendMessage(View view) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n String msg = editText.getText().toString();\n intent.setType(\"text/plain\");\n intent.putExtra(intent.EXTRA_TEXT,msg);\n startActivity(Intent.createChooser(intent, \"\"));\n }", "title": "" }, { "docid": "de9b679db3d8b4756bfdbe8b911dba3d", "score": "0.6099648", "text": "public void writeTextEvent(int integer) {\r\n\t\ttry {\r\n\t\t\tbridge.sendTextEvent(String.valueOf(integer));\r\n\t\t\tpause();\r\n\t\t} catch (CalabashException e) {\r\n\t\t\tSystem.out.println(\"Unable to send text event\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9d880bd43a1fa6b1fd84c9faf86a8e2a", "score": "0.6081246", "text": "private void speakOutText() {\n String speakIt = mEditTextSpeech.getText().toString();\n Toast.makeText(getApplicationContext(), speakIt, Toast.LENGTH_SHORT).show();\n\n boolean isTextToSpeechIsReady = SpeechManager.getInstance().isTextToSpeechIsReady();\n// Log.d(TAG, \"isTextToSpeechIsReady: \" + isTextToSpeechIsReady);\n\n if (isTextToSpeechIsReady) {\n// Log.d(TAG, \"Speak it: \" + speakIt);\n SpeechManager.getInstance().speakOutText(speakIt);\n }\n }", "title": "" }, { "docid": "f9332e4e0a4d326c8cafedd230de3810", "score": "0.60772526", "text": "private void sendText(int source, final String text, int displayId) {\n final StringBuffer buff = new StringBuffer(text);\n boolean escapeFlag = false;\n for (int i = 0; i < buff.length(); i++) {\n if (escapeFlag) {\n escapeFlag = false;\n if (buff.charAt(i) == 's') {\n buff.setCharAt(i, ' ');\n buff.deleteCharAt(--i);\n }\n }\n if (buff.charAt(i) == '%') {\n escapeFlag = true;\n }\n }\n\n final char[] chars = buff.toString().toCharArray();\n final KeyCharacterMap kcm = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD);\n final KeyEvent[] events = kcm.getEvents(chars);\n for (int i = 0; i < events.length; i++) {\n KeyEvent e = events[i];\n if (source != e.getSource()) {\n e.setSource(source);\n }\n e.setDisplayId(displayId);\n injectKeyEvent(e);\n }\n }", "title": "" }, { "docid": "eeaa04ac77a0cb2f9ed6a33484071a6e", "score": "0.6044426", "text": "@Override\n public void onClick(View v) {\n TextOutput.setText(TextInput.getText());\n }", "title": "" }, { "docid": "3409c00aa1334ed74c39aded4423ccec", "score": "0.60378486", "text": "private void sendSMS(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) {\n edu.ilstu.it.TextSender port = service.getTextSenderPort();\r\n port.sendSMS(arg0, arg1, arg2);\r\n }", "title": "" }, { "docid": "8e6cbfb497a24f419cd358180f907bf6", "score": "0.60365707", "text": "public static void typeIN(WebElement field, String text){\n\t\tLogHandler.logInfo(\"Typing text :\"+ text);\n field.sendKeys(text);\n\t\t\n\t}", "title": "" }, { "docid": "ddd0e7071b5f611bec267b00649d87a9", "score": "0.60284925", "text": "public void writeKeyEvent(String event) {\r\n\t\ttry {\r\n\t\t\tbridge.sendKeyEvent(event);\r\n\t\t\tpause();\r\n\t\t} catch (CalabashException e) {\r\n\t\t\tSystem.out.println(\"Unable to send text event\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c20aebd59a30ec5cb6cf56105d5f6166", "score": "0.6027006", "text": "private void speakOut(String text) {\n\n }", "title": "" }, { "docid": "9b98517f153b155fef0f1728bca2c207", "score": "0.60178506", "text": "public void manualCommand(View view){\n final EditText enterCommand = (EditText) findViewById(R.id.enterCommand);\n String bikeCommand = enterCommand.getText().toString();\n write(bikeCommand);\n }", "title": "" }, { "docid": "5618a541324c19ef80baf78d1531611d", "score": "0.5997016", "text": "@Override\n\tpublic void onClick(View arg0) {\n\t\tthis.msgString = editText.getText().toString() + \"\\n\";\n\t\tthis.editText.setText(\"\");\n\t\tthis.msgData = new MessageData(myPort,msgString);\n\t\tnew ClientTask().executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, msgString, myPort);\n\t}", "title": "" }, { "docid": "1d6dc87b8bd89e3ff8cfcefec6af7c92", "score": "0.59919554", "text": "@Override\n public void pushTextUpdate(TextUpdate update){\n network.sendTextUpdate(update);\n }", "title": "" }, { "docid": "b0e9cd8567b8a4e00de04bce52a56247", "score": "0.5978478", "text": "public void writeButtonPressed(View v) {\n Log.v(TAG, \"Write button pressed.\");\n\n TextView tv = (TextView)findViewById(R.id.writeField);\n String data = tv.getText().toString();\n\n Message msg = Message.obtain();\n msg.obj = data;\n writeHandler.sendMessage(msg);\n }", "title": "" }, { "docid": "bd84a05433a28555725b654292c4247b", "score": "0.59768707", "text": "private void send() {\r\n\t\t\tString sendMessage = message.getText();\r\n\t\t\tdisplay.append(sendMessage + ChatProtocolConstants.LINE_TERMINATOR);\r\n\r\n\t\t\ttry {\r\n\t\t\t\toutputStream.writeObject(\r\n\t\t\t\t\t\tChatProtocolConstants.DISPLACEMENT + sendMessage + ChatProtocolConstants.LINE_TERMINATOR);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tdisplay.append(e.getMessage());\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "511f6aacdaebf5a84aaa348b5c324b87", "score": "0.59706277", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n QQZaiwenListener.wenbenstr = ActicleListener.wen; // 固定文本框\n QQZaiwenListener.wenbenstr = RegexText.qukong(RegexText.huanfu(QQZaiwenListener.wenbenstr));\n if (QQZaiwenListener.wenbenstr == null || QQZaiwenListener.wenbenstr.equals(\"\"))\n return;\n Window.f3listener.F3();\n sendwenSign = 1; // 发文标志\n RegexText.duan1 = 1; // 设置段数\n ActicleListener.fontweizhi += ActicleListener.fontnum;\n win.sendwen.setVisible(true);\n try {\n DataOutputStream out = new DataOutputStream(battleClient.socket.getOutputStream());\n out.writeUTF(\"%\" + ReadyListener.BeganSign + \"%\"\n + \"%\" + RegexText.duan1 + \"#\" + wenben.getText() + \"%0\"\n + \"%\" + Login.zhanghao.getText());\n } catch (Exception ex) {\n System.out.println(\"无法发送文本内容\");\n }\n acticle.setVisible(false);\n if (SetFrameQianshuiListener.qianshui == 0)\n ShareListener.send();\n }", "title": "" }, { "docid": "6dbf0c0c24af2f5523e0e658bdba6fd9", "score": "0.59612393", "text": "protected void sendKeysToTextbox(String text, By element) {\n\t\tfindObject(element).sendKeys(text);\n\t}", "title": "" }, { "docid": "dc17bed67fbee0b499c3b3a49b9439ac", "score": "0.59476", "text": "public void actionPerformed(ActionEvent event){\n String sendTextOutput = mainBlock.getMsg().getText();\n writeToChat(\"YOU\", sendTextOutput, Color.blue);\n mainBlock.getMsg().setText(\"\");\n \n // If connection is TCP, send the message through output stream\n if (typeTU == JavaNet.TCP) out.println(sendTextOutput);\n else{\n \t //If connection is UDP, convert message to bytes\n \t // then create a datagram socket & packet and send the packet through the socket\n \t try{\n \t\t DatagramSocket socket = new DatagramSocket();\n \t\t byte[] sendOutputByte = sendTextOutput.getBytes();\n DatagramPacket packet = new DatagramPacket (sendOutputByte, sendOutputByte.length, transmitUDP_IP, transmitUDP_PORT);\n socket.send(packet);\n socket.close(); // close socket\n \t }catch(Exception e){\n \t\t JOptionPane.showMessageDialog(mainBlock, \"Error somwhere sending packet\");\n \t }\n }\n }", "title": "" }, { "docid": "281e9479d5e4e43f06ad6464990179a5", "score": "0.5931497", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\ttext = (EditText)getView().findViewById(R.id.enter_text);\n\t\t\tdialogue = text.getText().toString();\n\t\t\t\n\t\t\tif(sendType==0)\n\t\t\t\tif(!dialogue.equals(\"\")){\n\t\t\t\ttext.setText(\"\");\n\t\t\t\tsendmsg(dialogue);\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7ea429c5136dd40493860a9f8cf41c56", "score": "0.5922874", "text": "public static void sendMessageToServer() {\n Scanner userEntry = new Scanner(System.in);\n System.out.print(\"CLIENT> \");\n message = userEntry.nextLine();\n output.println(message);\n\n }", "title": "" }, { "docid": "06af5b6d34b6b56d1ff8f447992faf04", "score": "0.591987", "text": "void sendKeyEvent(int key);", "title": "" }, { "docid": "dea8cb3420ca41f6fe5ab03c4f4eff20", "score": "0.5888902", "text": "public void setText(String text) {\r\n\t\tAWTUtils.sendKeys(text);\r\n\t}", "title": "" }, { "docid": "672d51829b3fe8c04a14837ec65c8c84", "score": "0.58827347", "text": "@Override\n\tpublic void setText(CharSequence text, BufferType type) {\n\t\tLog.i(TAG, \"EMOT TEXT = \"+emotText + \" TEXT = \"+text);\n\t\tupdateEmots(text, type);\n//\t\tif(emotText==null || emotText.toString().equals(\"\")){\n//\t\t\tLog.i(TAG, \"starting text = \"+text);\n//\t\t\tsuper.setText(text, type);\n//\t\t\tplaceEmotTask = new PlaceEmot(text, type);\n//\t\t\tplaceEmotTask.execute();\n//\t\t\t\n//\t\t}else{\n//\t\t\tsuper.setText(emotText, type);\n//\t\t}\n\t}", "title": "" }, { "docid": "3b802e854a062c0397d5265004ef172b", "score": "0.5881392", "text": "public void sInput(){\n new Thread(new Runnable(){\r\n @Override\r\n public void run() {\r\n try{\r\n Scanner scanner = new Scanner(System.in);\r\n \r\n while(scanner.hasNextLine()){\r\n String line = scanner.nextLine();\r\n System.out.println(\"SERVER: \" + line);\r\n log(\"SERVER: \" + line);\r\n broadcastMessage(line);\r\n }\r\n }catch(Exception ex){System.err.println(ex);}\r\n } \r\n }).start();\r\n }", "title": "" }, { "docid": "9b04cb7fb12e8fb2af1e05ded4158206", "score": "0.58735716", "text": "public void sendMessage(String text) {\n\tif (!ModelUtil.hasLength(text)) {\r\n\t return;\r\n\t}\r\n\t// Create message object\r\n\tMessage message = new Message();\r\n\tmessage.setBody(text);\r\n\r\n\tsendMessage(message);\r\n }", "title": "" }, { "docid": "0a40e6b7c8ea7958b331f4403397b286", "score": "0.58732396", "text": "public void enterText(String text) {\n\t\tdriver.findElement(By.name(\"q\")).sendKeys(text);\n\t\t\n\t}", "title": "" }, { "docid": "5a3acc47d389e4f46870154ff5ab9fa6", "score": "0.5871728", "text": "@Override\n public void onClick(View v) {\n String msg = editTextView.getText().toString() + \"\\n\";\n editTextView.setText(\"\");\n tv.append(\"\\t\" + msg);\n new ClientTask().executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, msg, myPort);\n }", "title": "" }, { "docid": "62bdff6a0864f83660f324898dda88a7", "score": "0.58686274", "text": "public void onSend(View btn)\n \t{\n \t\tif (this.task == null)\n \t\t\treturn;\n \t\tString txt = this.input.getText().toString();\n \t\tMessage msg = this.task.send(txt);\n \t\tif (msg == null)\n \t\t\treturn;\n \t\tthis.input.setText(\"\");\n \t}", "title": "" }, { "docid": "3a81f323f54724ecaa309c49c5c54b12", "score": "0.5861553", "text": "public void input(){\n\n\t\t\tUtil.buildCommands(ui.getSimulator().getFilePath());\n\t\t\tInterfaceHandler.setFileIO(true);\n\t\t\tInterfaceHandler.setGUI(false);\n\t\t\t\n\t\t\twhile(Util.areCommandIssued()){\n\n\t\t\t\tString str = Util.getNextCommand();\n\t\t\t\tString time = \"TIME \" + Util.getTimeCommand();\n\t\t\t\t\n\t\t\t\tif(!str.contains(\"EXIT\")) {\n\t\t\t\t\tInterfaceHandler.inputCommand(time);\n\t\t\t\t\tInterfaceHandler.inputCommand(str);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "04190c74f26412511e5bcf41923f3d6e", "score": "0.5855991", "text": "public void setInputText(String inputText) {\r\n this.inputText = inputText;\r\n }", "title": "" }, { "docid": "c0913f3ff66c06aca88141385356302b", "score": "0.5854571", "text": "public void InputField(final String str) {\n Runnable proc = new Runnable() {\n public void run() {\n Input.setText(str);\n }\n };\n handler.post(proc);\n }", "title": "" }, { "docid": "5a80ca0a82520de64674fe634cbc3a11", "score": "0.5850016", "text": "public void onTextValueCommitted(String inputText);", "title": "" }, { "docid": "ebc1be4315570a3781cd244dbdac3e0e", "score": "0.58440554", "text": "public void onClick(View v) {\n \ttry {\n \t\tEditText input = (EditText)findViewById(R.id.input_filter);\n \t\tString text_number = input.getText().toString();\n \t\t\n Intent text = new Intent();\n text.setAction(\"android.intent.action.SENDTO\");\n text.setData(Uri.parse(\"smsto:\" + text_number));\n startActivity(text);\n } catch (ActivityNotFoundException activityException) {\n Log.e(\"Sending a Text\", \"Text failed\", activityException);\n }\n }", "title": "" }, { "docid": "bd257178440752a207de593956137d2d", "score": "0.5831533", "text": "public String getInputText () {\n return inputText;\n }", "title": "" }, { "docid": "bf2894c8d082bc89e978c301cecfa03d", "score": "0.5830327", "text": "public void sayIn() {\r\n if(TextIn.getText() != \"\") {\r\n try {\r\n InputStream sound = null;\r\n Audio audio = Audio.getInstance();\r\n sound = audio.getAudio(TextIn.getText(), LanguageCode.get(SourceLanguage));\r\n\r\n audio.play(sound);//doc\r\n } catch (IOException ex) {\r\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (JavaLayerException ex) {\r\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "0ee420d5f4c2611b2a11ba8784b7958c", "score": "0.58285725", "text": "private void sendMessage(String toNumber, String text) throws UiObjectNotFoundException {\n UiObject newMessageButton = new UiObject(new UiSelector()\n .className(\"android.widget.TextView\").description(\"New message\"));\n newMessageButton.clickAndWaitForNewWindow();\n\n // Find to box and enter the number into it\n UiObject toBox = new UiObject(new UiSelector()\n .className(\"android.widget.MultiAutoCompleteTextView\").instance(0));\n toBox.setText(toNumber);\n // Find text box and enter the message into it\n UiObject textBox = new UiObject(new UiSelector()\n .className(\"android.widget.EditText\").instance(0));\n textBox.setText(text);\n\n // Find send button and send message\n UiObject sendButton = new UiObject(new UiSelector()\n .className(\"android.widget.ImageButton\").description(\"Send\"));\n sendButton.click();\n }", "title": "" }, { "docid": "9ec42d358669f77c5e148b18e73189bc", "score": "0.5803582", "text": "public void Update(char text_)\n {\n if(this.input != null)\n try {\n this.input.write(text_);\n this.input.flush();\n } catch (IOException ex) {\n Logger.getLogger(ForkWorker.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "b5de5419fce6f43d3934f5739e9f285b", "score": "0.5801976", "text": "public void send(View view) {\n String msg = mMsgEditText.getText().toString();\n\n if (msg.equals(\"\")) {\n // 沒有輸入訊息\n Log.e(TAG, \"message is empty\");\n return;\n }\n\n if (ct == null) {\n // 尚未建立藍牙連線\n Log.e(TAG, \"no connection\");\n return;\n }\n\n // 清空輸入訊息輸入欄\n mMsgEditText.setText(\"\");\n ct.write(msg);\n }", "title": "" }, { "docid": "5a3ec79089767dca2427a1badc3e0c75", "score": "0.5800915", "text": "@Override\n public boolean send(String text) {\n if (text == null) throw new NullPointerException(\"text == null\");\n return send(ByteString.encodeUtf8(text), WebSocketProtocol.OPCODE_TEXT);\n }", "title": "" }, { "docid": "1b67fa2f18c35d4e8348bc6d4878859a", "score": "0.5799588", "text": "private void sendInstantText() {\n if (stringExtractionFailed()) return;\n\n saveMessage();\n\n // TODO: Send Text message instantly\n // sendText(from, message);\n finish();\n }", "title": "" }, { "docid": "ce850b434e1d2a2a795bafdf0623c8ee", "score": "0.57900786", "text": "public void sendKeysOnElement(WebElement element, String text) {\n\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\tjse.executeScript(\"arguments[0].value='\" + text + \"';\", element);\n\t\tlog.info(\"Send Text \" + text + \" to \" + element);\n\t}", "title": "" }, { "docid": "8954136b45bb78bc77b5aebeb8b01229", "score": "0.5784691", "text": "@Override\n public void onClick(View v) {\n String msg = editText.getText().toString() + \"\\n\";\n editText.setText(\"\"); // This is one way to reset the input box.\n TextView myTextView = (TextView) findViewById(R.id.textView1);\n myTextView.append(\"\\t\" + msg); // This is one way to display a string.\n\n /*\n * Note that the following AsyncTask uses AsyncTask.SERIAL_EXECUTOR, not\n * AsyncTask.THREAD_POOL_EXECUTOR as the above ServerTask does. To understand\n * the difference, please take a look at\n * http://developer.android.com/reference/android/os/AsyncTask.html\n */\n new ClientTask().executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, msg, myPort);\n }", "title": "" }, { "docid": "627c42d3cefc6954040dd2928273202b", "score": "0.5782782", "text": "void sendKeys(String keysToSend);", "title": "" }, { "docid": "83e6d6ba55e2ade571d3b4dd2532d888", "score": "0.57810146", "text": "@ApiModelProperty(value = \"Text to convert to handwriting\")\n public String getTextInput() {\n return textInput;\n }", "title": "" }, { "docid": "87ad9e5108cc9764725ad3f10363b2e2", "score": "0.5780166", "text": "public void sendString(OutputStream out, String text) throws IOException {\r\n\t\tif (text == null) {\r\n\t\t\tsendInt(out, -1);\r\n\t\t} else if (text.length() == 0) {\r\n\t\t\tsendInt(out, 0);\r\n\t\t} else {\t\t\t\r\n\t\t\tbyte[] textbytes = text.getBytes(IOUtils.charset);\r\n\t\t\tsendInt(out, textbytes.length);\r\n\t\t\tout.write(textbytes);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ed2e59f5ebfc7f0000e94bb9eb75b7e4", "score": "0.5778314", "text": "@Override\n public void run() {\n mainScreen.tfMessage.setText(text);\n }", "title": "" }, { "docid": "71f5729d872204cd2d239ba298110a71", "score": "0.5763102", "text": "public void executeInput();", "title": "" }, { "docid": "abddc49264aae8b027010ed23b754e2f", "score": "0.57622963", "text": "void send(String word);", "title": "" }, { "docid": "bf1fed0ee58a45bf866b49a3df353cfe", "score": "0.5753062", "text": "private static void SendData() {\r\n Thread send = new Thread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n\r\n String response = \"ID = \" + TerminalCommand(command) + \"\\n\";\r\n // System.out.println(response);\r\n }\r\n });\r\n send.start();\r\n }", "title": "" }, { "docid": "6422c9fa37ece478647688702cc8992c", "score": "0.5738723", "text": "public void actionPerformed(ActionEvent e) {\n InputText.setText(InputText.getText() + \".\");\n }", "title": "" }, { "docid": "e4f9dfeaeb0c9f4154935d09fafe11bd", "score": "0.5735317", "text": "private void sendKey(int keyCode) {\n \t\tswitch (keyCode) {\n \t\tcase '\\n':\n \t\t\tkeyDownUp(KeyEvent.KEYCODE_ENTER);\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tif (keyCode >= '0' && keyCode <= '9') {\n \t\t\t\tkeyDownUp(keyCode - '0' + KeyEvent.KEYCODE_0);\n \t\t\t} else {\n \t\t\t\tgetCurrentInputConnection().commitText(String.valueOf((char) keyCode), 1);\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}", "title": "" }, { "docid": "61db3c2d63ddc9a727bebb977efec2fc", "score": "0.5735249", "text": "public void inputTextToField(WebElement inputField, String inputText) {\r\n try {\r\n inputField.clear();\r\n inputField.sendKeys(inputText);\r\n log.info(\"Text is inputed\");\r\n } catch (Exception ex) {\r\n\r\n ex.printStackTrace();\r\n log.error(\"Text is not input\");\r\n Assert.fail(\"Cannot work input\");\r\n }\r\n }", "title": "" }, { "docid": "9a63e694be00cd6324fd822b1f6d540e", "score": "0.57172716", "text": "public void showMessage(String text) {\n\n if (SwingUtilities.isEventDispatchThread()) {\n //set the input String on the message screen of the application\n mainScreen.tfMessage.setText(text);\n } else {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n //set the input String on the message screen of the application\n mainScreen.tfMessage.setText(text);\n }\n });\n\n }\n }", "title": "" }, { "docid": "06ceed8d12a76166f5722da0842150b1", "score": "0.57135755", "text": "@Override\r\n\tpublic void onClick(View arg0) {\n\ttSpeech.speak(\"You are at the cross device mode\", TextToSpeech.QUEUE_FLUSH, null);\r\n\tvibrator.vibrate(500);\r\n\tString command = \"crossDevice\";\r\n\tSystem.out.println(\"Comand=\"+command);\r\n\tbyte[] arrayByte = command.getBytes();\r\n\t\r\n\ttry {\r\n\t\toutputStream.write(arrayByte);\r\n\t} catch (Exception e) {\r\n\t\t// TODO: handle exception\r\n\t}\r\n\treceiveImageThread.start();\r\n\treceiveMsgThread.start();\r\n\treceiveThread.start();\r\n\tsendingThread.start();\r\n\t\r\n\r\n\t\r\n\t}", "title": "" }, { "docid": "5bf125bd2b394aa83f2db2f432162a39", "score": "0.57133", "text": "private void sendMessage() {\n\t\t\tString msg = message.getText();\n\t\t\ttry {\n\t\t\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\t\t\tnew OutputStreamWriter(connectTo.getOutputStream()));\n\t\t\t\twriter.write(msg);\n\t\t\t\twriter.newLine();\n\t\t\t\twriter.flush();\n\t\t\t\tconversation.append(\"Me: \" + msg + \"\\n\");\n\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tmessage.setText(\"\");\n\t\t}", "title": "" }, { "docid": "3f83a9bdf051a99b194142a58a0476e5", "score": "0.5708522", "text": "public String getInputText() {\r\n return inputText;\r\n }", "title": "" }, { "docid": "ee80421cd0216c95c80d6218d1a8b9ad", "score": "0.5696815", "text": "public static void sendText(WebElement element,String text) {\n\telement.clear();\n\telement.sendKeys(text);\n}", "title": "" }, { "docid": "b0cd296963d3f8de958f26081b72c3a9", "score": "0.5687033", "text": "private void sendMessage(String message) {\n if (bluetoothService.getState() != BluetoothService.STATE_CONNECTED) {\n Toast.makeText(getApplicationContext(), \"its not connected\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Check that there's actually something to send\n if (message.length() > 0) {\n // Get the message bytes and tell the BluetoothChatService to write\n byte[] send = message.getBytes();\n bluetoothService.write(send);\n\n // Reset out string buffer to zero and clear the edit text field\n mOutStringBuffer.setLength(0);\n }\n }", "title": "" }, { "docid": "6cce4b5d98b65cfdd7dd8e28fdfb19e6", "score": "0.5684932", "text": "public void setPort(String text) {\n txtPort().setText(text);\n }", "title": "" }, { "docid": "a3af1fd8e8459a77e83545bb6abfcedf", "score": "0.5681049", "text": "public String showTextMessage(String userInput)\n\t{\n\t\tchatArea.append(\"\\n\" + userInput);\n\t\treturn firstTextField.getText();\n\t}", "title": "" }, { "docid": "dc69db38e1e10205f2e9cbe210c9aca5", "score": "0.56753504", "text": "public String requestInput(String message){\n\t\tSystem.out.print(MSG_PREFIX+message+\"\\n\"+INPUT_PREFIX);\n\t\ttry{\n\t\t\tbyte[] input = new byte[MAX_INPUT_BUFFER];\n\t\t\tint read = System.in.read(input, 0, MAX_INPUT_BUFFER);\n\t\t\tif(read>0){\n\t\t\t\treturn new String(input).trim();\n\t\t\t}else{\n\t\t\t\treturn \"\\n\";\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\treturn \"\\n\";\n\t\t}\n\t}", "title": "" } ]
702ab1671b4a58e0e4149ab9caaf8f63
Handler for the "About" menu item in the "File" menu. Creates an Information alert dialog to display author and information of this program
[ { "docid": "1a708f2a9d19d7a5ba373ada04ea7fb9", "score": "0.67113405", "text": "@FXML public void handleAbout() {\n fileController.handleAbout();\n }", "title": "" } ]
[ { "docid": "0fab98571755a97e86c5c015856d1c43", "score": "0.7880316", "text": "public void onAboutMenuItem(ActionEvent actionEvent) {\n JOptionPane.showMessageDialog(null, \"This program was created by\" +\n \" Luis Padron.\\n To use this simply select what you would want to do\" +\n \" and follow the prompts.\");\n }", "title": "" }, { "docid": "6549188a4627bf45f7335a17c571d58c", "score": "0.7666149", "text": "public void about() {\r\n MainFrame mf = DefaultApplication.findMainFrame();\r\n if (mf != null) {\r\n DefaultAboutDialog dlg =\r\n new DefaultAboutDialog(mf, getResourceString(Application.RB_KEY_ABOUT_APP_DIALOG_TITLE));\r\n dlg.setLocationRelativeTo(mf);\r\n dlg.setModal(true);\r\n dlg.setVisible(true);\r\n }\r\n }", "title": "" }, { "docid": "a9a3e90deb079ac0df536669fb0d3e72", "score": "0.7585622", "text": "public void aboutDialog() {\n JOptionPane\n .showMessageDialog(\n gui,\n \"About\\n\\nThis application calculates the values for the five number summary, it also calculates the Sum and Average.\\n\\n\"\n + \"This was made in a few hours for fun on a public holiday.\\n\"\n + \"Five Number Summary Calculator v1.0\\n\\n\"\n + \"Made by Jethro Muller\\n\" + \"September 2013\",\n \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "d4e28330433585f0eb988ab2b2c687cf", "score": "0.75173295", "text": "public void handleAboutMenuItem(ActionEvent event) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION, \"Made by Jon Calvo Gaminde, Unai Pérez Sánchez and Daira Eguzkiza Lamelas.\");\n alert.setTitle(\"About\");\n alert.setHeaderText(\"Version 1.0\");\n Optional<ButtonType> okButton = alert.showAndWait();\n if (okButton.isPresent() && okButton.get() == ButtonType.OK) {\n alert.close();\n }\n }", "title": "" }, { "docid": "80ccf955ded372a01002344808478771", "score": "0.7391787", "text": "void handleAbout() {\n Window[] windows = Dialog.getWindows();\n if( null != windows ) {\n for( Window w : windows ) {\n if( w instanceof JDialog ) {\n JDialog dlg = (JDialog) w;\n if( Boolean.TRUE.equals(dlg.getRootPane().getClientProperty(\"nb.about.dialog\") ) ) { //NOI18N\n if( dlg.isVisible() ) {\n dlg.toFront();\n return;\n }\n }\n }\n }\n }\n performAction(\"Help\", \"org.netbeans.core.actions.AboutAction\"); // NOI18N\n }", "title": "" }, { "docid": "b2341925eba7fe035e2cc542f163a4f2", "score": "0.7359735", "text": "private void showAbout(){\n\t\t\tString aboutText = \"Image Compresser v1\\n\\nCreated by George Allen\\n\"; //THE ABOUT TEXT\n\t\t\tJOptionPane.showMessageDialog(this, aboutText, \"About\", JOptionPane.INFORMATION_MESSAGE); //Showing the text in an JOptionPane\n\t\t}", "title": "" }, { "docid": "f9a6eff4f1d6da6e68da44e2bb691fcd", "score": "0.73567986", "text": "public static void showInfo() {\r\n\r\n\t\tnew AboutUsDialog(Main.getMainShell(), SWT.NONE).open();\r\n\r\n\t}", "title": "" }, { "docid": "dc5c5e417336f4130f3bc60699581e19", "score": "0.72120374", "text": "private void aboutDialog(){\n\n //Setting up the title and message as has been done before\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"About\");\n builder.setMessage(R.string.about_contents);\n builder.create().show();\n }", "title": "" }, { "docid": "94d9e43206811737391a77206e64dc6e", "score": "0.7202715", "text": "private void aboutMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutMenuItemActionPerformed\n if (aboutDialog == null) {\n aboutDialog = new AboutDialog(this, false); // or rootPaneCheckingEnabled\n }\n aboutDialog.setVisible(true);\n }", "title": "" }, { "docid": "d75acf7ec717166924750e9d94743f28", "score": "0.7166118", "text": "public void showAbout() {\n\t\ttry {\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\tbuilder.setTitle(R.string.app_name);\n\t\t\tPackageInfo info;\n\t\t\tinfo = getPackageManager().getPackageInfo(getPackageName(), 0);\n\t\t\tString versionStr = getString(R.string.versionText,\n\t\t\t\t\tinfo.versionName);\n\t\t\tbuilder.setMessage(versionStr);\n\t\t\tbuilder.create();\n\t\t\tbuilder.show();\n\t\t} catch (NameNotFoundException e) {\n\t\t\tLog.w(TAG, e);\n\t\t}\n\t}", "title": "" }, { "docid": "b0f57d2a34fdc6d42698df21ae365ad0", "score": "0.7157705", "text": "@Override\n\t\tpublic void actionPerformed (ActionEvent e)\n\t\t{\n\t\t\tnew About(DirectoryManagerGUI.this);\t\t\t\n\t\t}", "title": "" }, { "docid": "c46834ad18c33736696b547af599789b", "score": "0.7112906", "text": "protected void aboutMe(ActionEvent ae)\n\t{\n\t\tString info = \"16电信2班\\n\";\n\t\tinfo += \"庄捷\\n\";\n\t\tinfo += \"201621191030\";\n\t\tJOptionPane.showMessageDialog(this, info);\n\t\t// JOptionPane.showOptionDialog(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);\n\n\t}", "title": "" }, { "docid": "abe0580dc3b4e503bd937242de93215c", "score": "0.7054366", "text": "public void handleAbout(ActionEvent e) {\r\n\r\n\t\ttry {\r\n\t\t\tHelpFrame loHelp = new HelpFrame();\r\n\t\t\tloHelp.setVisible(true);\r\n\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tCException.record(ex, this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d9b8be2ca01abb77559161ea7487b002", "score": "0.7046588", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase 1:\r\n\t\t\t Dialog dialog=new AlertDialog.Builder(MainActivity.this)\r\n\t\t\t .setTitle(\"About\")\r\n\t\t\t .setMessage(\"Application Name:CspTool\"+\"\\n\"+\"Author:ZF(471410616@QQ.com)\"+\"\\n\"+\"Version:1.0\")\r\n\t\t\t .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n\t\t\t @Override\r\n\t\t\t public void onClick(DialogInterface dialog, int which) {\r\n\t\t\t dialog.cancel();\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\t\t\t @Override\r\n\t\t\t public void onClick(DialogInterface dialog, int which) {\r\n\t\t\t dialog.cancel();\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t .create();\r\n\t\t\t dialog.show();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "ae951f901733deace4d9ec9b1f450264", "score": "0.70286745", "text": "private void about() {\n JFrame mainFrame = GuiPackage.getInstance().getMainFrame();\n JDialog dialog = initDialog(mainFrame);\n\n // NOTE: these lines center the about dialog in the current window.\n Point p = mainFrame.getLocationOnScreen();\n Dimension d1 = mainFrame.getSize();\n Dimension d2 = dialog.getSize();\n dialog.setLocation(p.x + (d1.width - d2.width) / 2, p.y + (d1.height - d2.height) / 2);\n dialog.setVisible(true);\n }", "title": "" }, { "docid": "4a4966403f6558b839557ccadb566019", "score": "0.701773", "text": "public void showAbout()\n\t{\n\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\"by Siddharth Vaknalli, Daniel Kula, \\n Alexander Leung\"\n\t\t\t\t\t\t+ \"\\n\\u00a9 2014\", \"About Squeak Home\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "title": "" }, { "docid": "e5aa600a958e1e4c3039f785be3ea5ef", "score": "0.700141", "text": "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\r\n\t\t\t\t\tnew AboutDialog(WizardMainFrame.this);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//f.setVisible(true);\r\n\t\t\t\t\t//f.pack();\r\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "8a3c6f2983f77d70c5c717022805e96e", "score": "0.6940295", "text": "public static void about() {\n System.out.println(\"\\n\\tThe purpose of the application is to help teams allocate\\n\"\n + \"\\tthe credit for a project fairly so that all parties are\\n\"\n + \"\\tsatisfied with the outcome. The idea is inspired by the\\n\"\n + \"\\twork of Ariel Procaccia, a professor, and Jonathan Goldman,\\n\"\n + \"\\ta student, who were both at Carnegie Mellon University in\\n\"\n + \"\\tthe USA (Jonathan now works for Facebook). They went on to\\n\"\n + \"\\tproduce an application called Spliddit which offers provably\\n\"\n + \"\\tfair solutions for a variety of division problems including\\n\"\n + \"\\trent payments, restaurant bills and shared tasks. If you are\\n\"\n + \"\\tinterested, more information about Spliddit can be found in\\n\"\n + \"\\ta recent article published in XRDS which is a Computer Science\\n\"\n + \"\\tmagazine for students.\\n\\n\");\n PressEnterToExit.pressAnyKeyToContinue();\n }", "title": "" }, { "docid": "a0ab167df080e592a3d1b047bb402723", "score": "0.6915288", "text": "@Override\n public void actionPerformed(ActionEvent arg0) {\n \n new About().show();\n \n }", "title": "" }, { "docid": "1e77e2e1d49d8cdb6d97fce40a5d6566", "score": "0.6901816", "text": "public void aboutDialog () {\n new AlertDialog.Builder(this, AlertDialog.BUTTON_NEUTRAL)\n .setIcon(android.R.drawable.ic_dialog_info)\n .setTitle(\"About\")\n .setMessage(getString(R.string.action_settings))\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n // Testing only //\n Log.i(\"WJH\", \"Chose OK.\");// Testing only //\n }\n })\n\n .setNegativeButton(\"Telegram\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n Uri uriUrl = Uri.parse(\"https://t.me/dandollar1\");\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }\n })\n\n .setNeutralButton(\"GitHub\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n Uri uriUrl = Uri.parse(\"https://github.com/enweazudaniel\");\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }\n })\n\n .show(); // Make sure you show your popup or it wont work very well!\n\n }", "title": "" }, { "docid": "65338771ccae9e942c0b120bfae19939", "score": "0.68996495", "text": "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\r\n MainFrame_AboutBox dlg = new MainFrame_AboutBox(this);\r\n Dimension dlgSize = dlg.getPreferredSize();\r\n Dimension frmSize = getSize();\r\n Point loc = getLocation();\r\n dlg.setLocation( (frmSize.width - dlgSize.width) / 2 + loc.x,\r\n (frmSize.height - dlgSize.height) / 2 + loc.y);\r\n dlg.setModal(true);\r\n dlg.show();\r\n }", "title": "" }, { "docid": "6281f943e0ee5114c01ad0945ea125a5", "score": "0.6899325", "text": "public void helpAboutDialog()\n {\n StsWin3d_AboutBox dlg = new StsWin3d_AboutBox(this);\n Dimension dlgSize = dlg.getPreferredSize();\n Dimension frmSize = getSize();\n Point loc = getLocation();\n dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n dlg.setModal(true);\n dlg.setVisible(true);\n }", "title": "" }, { "docid": "484c3a48e7b86a2d6385a43beda90224", "score": "0.6896501", "text": "protected void showHelpAboutDialog() {\n\t\tJOptionPane.showMessageDialog(this, aboutMessage, \"About\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "title": "" }, { "docid": "48330a13df2a4731345d4c96b4e59f5f", "score": "0.6857199", "text": "public void showAbout() {\n File about = new File(\"FF_13312i_Nefedov_Span_Data/About.txt\");\n String fileLine;\n DefaultListModel aboutText = new DefaultListModel();\n\n if (about != null) {\n try {\n BufferedReader reader = new BufferedReader(new FileReader(about));\n\n while((fileLine = reader.readLine()) != null) {\n aboutText.addElement(fileLine + \"\\n\");\n }\n\n view.showScrollableMessageDialog(aboutText, \"About\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "c1f35807e41fcc0871ab1c8f83fa59ce", "score": "0.67640024", "text": "private void showAbout() {\n JOptionPane.showMessageDialog(null, \"Othello Game\\nby Tyson Moyes\\n\\nJuly 2021\", \"About\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "5e000e611558c146bcdb0c04a7e54996", "score": "0.6744547", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tframe.showAboutDialog();\n\t\t\t}", "title": "" }, { "docid": "7630258d548011762d1e4549bf592039", "score": "0.67161614", "text": "@FXML\n private void aboutWindow(ActionEvent e) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"HPO Workbench\");\n alert.setHeaderText(\"Human Phenotype Ontology Workbench\");\n String s = \"A tool for working with the HPO.\\n\\u00A9 Monarch Initiative 2018\";\n alert.setContentText(s);\n alert.showAndWait();\n e.consume();\n }", "title": "" }, { "docid": "accaf08cd52e8ff8bca688774b07822e", "score": "0.6716093", "text": "void showAbout() {\n\t\tIJ.showMessage(\"Graubildtest\", \"Testprogramm\");\n\t}", "title": "" }, { "docid": "3b8da3260d829486b2db70f8d8231e3e", "score": "0.6701401", "text": "protected void showAbout()\n\t{\n\t\tView messageView = getLayoutInflater().inflate(R.layout.about, null, false);\n\n\t\t// When linking text, force to always use default color. This works\n\t\t// around a pressed color state bug.\n\t\tTextView textView = (TextView) messageView.findViewById(R.id.about_credits);\n\t\tint defaultColor = textView.getTextColors().getDefaultColor();\n\t\ttextView.setTextColor(defaultColor);\n\t\t\n\t\ttextView = (TextView) messageView.findViewById(R.id.about_version);\n\t\ttextView.setText(fullVersionString);\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setIcon(R.drawable.app_icon);\n\t\tbuilder.setTitle(\"About \"+getString(R.string.app_name));\n\t\tbuilder.setView(messageView);\n\t\tbuilder.setPositiveButton(android.R.string.ok, new Dialog.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\tbuilder.create();\n\t\tbuilder.show();\n\n\t}", "title": "" }, { "docid": "2ad33d6006e50d83638c50b3bec21c8e", "score": "0.6689752", "text": "public void doAbout()\n {\n CellConstraints cc = new CellConstraints();\n PanelBuilder infoPB = new PanelBuilder(new FormLayout(\"p,6px,f:min(400;p):g\", \"p:g\"));\n \n JLabel iconLabel = new JLabel(IconManager.getIcon(\"SpecifyLargeIcon\"), SwingConstants.CENTER); //$NON-NLS-1$\n PanelBuilder iconPB = new PanelBuilder(new FormLayout(\"p\", \"20px,t:p,f:p:g\"));\n iconPB.add(iconLabel, cc.xy(1, 2));\n\n infoPB.setDefaultDialogBorder();\n \n infoPB.add(iconPB.getPanel(), cc.xy(1, 1));\n infoPB.add(createLabel(Specify.getAboutText(appName, appVersion)), cc.xy(3, 1));\n \n String title = getResourceString(\"Specify.ABOUT\");//$NON-NLS-1$\n CustomDialog aboutDlg = new CustomDialog(topFrame, title + \" \" +appName, true, CustomDialog.OK_BTN, infoPB.getPanel()); //$NON-NLS-1$ \n String okLabel = getResourceString(\"Specify.CLOSE\");//$NON-NLS-1$\n aboutDlg.setOkLabel(okLabel); \n aboutDlg.createUI();\n aboutDlg.pack();\n // for some strange reason I can't get the dialog to size itself correctly\n Dimension size = aboutDlg.getSize();\n size.height += 80;\n aboutDlg.setSize(size);\n UIHelper.centerAndShow(aboutDlg);\n }", "title": "" }, { "docid": "dc7da5b3faf89352240ec5fd845ae305", "score": "0.6656491", "text": "public void showHelpDialaog()\n\t{\n\t\tJOptionPane.showMessageDialog(this, \"1. Click the button label \\\"Open\\\"\\n 2. Select a \\\".csv\\\" file \\n 3. \");\n\t}", "title": "" }, { "docid": "b69c857e3937bd4a5adc2e5ce71d8430", "score": "0.6588369", "text": "public void doAboutScreen()\n {\n char[][] aboutDisplay = null;\n try\n {\n aboutDisplay = LanternaUtil.readScreenFile(\"src/daa2/resources/screenFiles/About.txt\");\n }\n catch (final IOException e)\n {\n e.printStackTrace();\n System.exit(1);\n }\n\n /*\n * Draw a border\n */\n LanternaUtil.drawBorder(TERMINAL, 'X');\n\n /*\n * Write the about screen in the center of the terminal.\n */\n if (aboutDisplay != null && aboutDisplay.length != 0)\n {\n final int centerRow = LanternaUtil.getTerminalCenterRow(TERMINAL);\n final int centerCol = LanternaUtil.getTerminalCenterColumn(TERMINAL);\n for (int i = 0; i < aboutDisplay.length; i++)\n {\n LanternaUtil.termPrint(TERMINAL, new String(aboutDisplay[i]), centerCol - (aboutDisplay[i].length - 1) / 2, centerRow - (aboutDisplay.length - 1) / 2 + i);\n }\n }\n else\n {\n System.out.println(\"Nothing read for About screen, returning.\");\n return;\n }\n\n final Menu menu = new Menu(0, 0);\n menu.setCursor(\"\");\n menu.startMenu(TERMINAL);\n }", "title": "" }, { "docid": "9038d4cfd4051f91c2fc5ad9662de08b", "score": "0.65826523", "text": "public Alert aboutDialog() {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setHeaderText(\"About\");\n alert.setContentText(\"Hello! This application was made by Kristoffer. Thank you \");\n\n //Styling\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.getStylesheets().add(\"patientregister.css\");\n dialogPane.getStyleClass().add(\"customDialog\");\n return alert;\n }", "title": "" }, { "docid": "ca2638cce026facfa0c1b2bd024da9ea", "score": "0.65385824", "text": "private void helpPane() {\n final String helpMessage = \n \"TCSS 305 PowerPaint\\nAutumn 2017\\nJosh Atherton\";\n JOptionPane.showMessageDialog(null, \n helpMessage, \"About\", JOptionPane.INFORMATION_MESSAGE, \n myLogo); \n }", "title": "" }, { "docid": "44fa7874f5f69453780b86d1e35fc41e", "score": "0.65370876", "text": "public void about() {\r\n\t\tif (parent != null) {\r\n\t\t\tAboutBox.show(parent);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8a94b0a2c4b8cfd449095940ebb0f2c4", "score": "0.6532319", "text": "protected void showAbout() {\n View messageView = getLayoutInflater().inflate(R.layout.about, null, false);\n\n TextView textView = (TextView) messageView.findViewById(R.id.about_credits);\n textView.setTextColor(getResources().getColor(R.color.textColor));\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setIcon(R.drawable.first);\n builder.setTitle(R.string.app_name);\n builder.setView(messageView);\n builder.create();\n builder.show();\n }", "title": "" }, { "docid": "659e256d6569e109366680df0a59b193", "score": "0.6479446", "text": "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n About instanceAbout = new About(this, true);\n instanceAbout.setVisible(true);\n }", "title": "" }, { "docid": "2b303f124163c7908284cfedb3829a71", "score": "0.64705706", "text": "public void helpDialog() {\n JOptionPane\n .showMessageDialog(\n gui,\n \"Welcome to Five Number Summary Calculator\\n\\n\"\n + \" - To add numbers click in the textbox, type in a number and click Add or push Enter.\\n\"\n + \" - To view the Five Number Summary(min, Q2, median, Q3, max), click the Five Number Summary button.\\n\"\n + \" - To view the other information(sum, mean, standard deviation) click the Other Information button.\\n\"\n + \" - To undo your last Add click Edit > Undo Add.\\n\"\n + \" - To sort the data click Edit > Sort Data.\\n\"\n + \" - To clear the data, click Edit > Clear Data.\"\n + \" - To save the data you have entered as a text file (.txt) click File > Save.\"\n + \" - To open a text file(.txt) to import data click \\n\" +\n \" File > Open and then choose the appropriate file.\",\n \"Help\", JOptionPane.PLAIN_MESSAGE);\n\n }", "title": "" }, { "docid": "c4781976bab28f5463835763a8db7f59", "score": "0.6469056", "text": "protected void showAbout() {\n View messageView = getLayoutInflater().inflate(R.layout.about, null, false);\n\n // When linking text, force to always use default color. This works\n // around a pressed color state bug.\n TextView textView = (TextView) messageView.findViewById(R.id.about_credits);\n int defaultColor = textView.getTextColors().getDefaultColor();\n textView.setTextColor(defaultColor);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //builder.setIcon(R.drawable.app_icon);\n builder.setTitle(R.string.app_name);\n builder.setView(messageView);\n builder.create();\n builder.show();\n }", "title": "" }, { "docid": "9c875b347e554b0ad18c83d51d1a844c", "score": "0.6444355", "text": "private void showAbout()\n {\n new FrontendAbout(this, langpack, icons);\n }", "title": "" }, { "docid": "a08a7be95954b32e3712428bd7796d7e", "score": "0.6433377", "text": "private void aboutMenuItem_ActionPerformed(java.awt.event.ActionEvent event) {\n }", "title": "" }, { "docid": "4ed5003727846042211cc6937280935f", "score": "0.63903785", "text": "public void showAboutDialog() {\n // Added to swing thread to ensure it shows up on top of main\n // browser window\n Runnable doSwingWork = () -> {\n AboutDialog ad = new AboutDialog(viewer, messageBundle, true,\n AboutDialog.NO_TIMER);\n ad.setVisible(true);\n };\n SwingUtilities.invokeLater(doSwingWork);\n }", "title": "" }, { "docid": "eeb109942c121f30644aae7099d9433d", "score": "0.63485175", "text": "private JMenuItem getAboutMenuItem() {\r\n if (aboutMenuItem == null) {\r\n aboutMenuItem = new JMenuItem();\r\n aboutMenuItem.setText(\"Acerca de\");\r\n aboutMenuItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n JDialog aboutDialog = getAboutDialog();\r\n aboutDialog.pack();\r\n Point loc = getJFrame().getLocation();\r\n loc.translate(20, 20);\r\n aboutDialog.setLocation(loc);\r\n aboutDialog.setVisible(true);\r\n }\r\n });\r\n }\r\n return aboutMenuItem;\r\n }", "title": "" }, { "docid": "d4fed91a454bb83afe1c9cbff2cc0fb0", "score": "0.63460684", "text": "private void menuItemAboutActionPerformed(java.awt.event.ActionEvent evt) {\n About about = new About( this );\n }", "title": "" }, { "docid": "078cf92324d6d396f36f9ba4e6a0bcf3", "score": "0.6327696", "text": "@Action\n\tpublic void showAboutDialogAction() {\n\t\tif (aboutDialog == null) {\n\t\t\tJFrame mainFrame = RoutingDemo.getApplication().getMainFrame();\n\t\t\taboutDialog = new AboutDialog(mainFrame);\n\t\t\taboutDialog.setLocationRelativeTo(mainFrame);\n\t\t}\n\n\t\tRoutingDemo.getApplication().show(aboutDialog);\n\t}", "title": "" }, { "docid": "882a88c019ccb0cf078dc822d67c9d35", "score": "0.6312842", "text": "public void showAbout() {\n\t\tFXMLLoader loader = new FXMLLoader(Main.class.getResource(\n\t\t\t\"/de/gigagagagigo/sagma/client/ui/fxml/About.fxml\"));\n\t\tshowNewWindow(loader);\n\t}", "title": "" }, { "docid": "68d149bd51dd4b0d014ecb66d1874958", "score": "0.6289957", "text": "private JMenuItem getJMenuItem_Info() {\r\n\t\tif (jMenuItem_Info == null) {\r\n\t\t\tjMenuItem_Info = new JMenuItem();\r\n\t\t\tjMenuItem_Info.setText(\"About\");\r\n\t\t}\r\n\t\treturn jMenuItem_Info;\r\n\t}", "title": "" }, { "docid": "0e57d497453e67cd4f14d4794e49b049", "score": "0.6275453", "text": "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item)\n {\n super.onOptionsItemSelected(item);\n\n if(item.getItemId() == R.id.about_us)\n {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_dialog_info)\n .setTitle(\"About us\")\n .setMessage(\"Developer: Chad Humphries\" +\n \"\\nGithub: https://github.com/GrunclePug\" +\n \"\\nWebsite: https://grunclepug.com\" +\n \"\\nDiscord: GrunclePug#7015\")\n .setNeutralButton(\"Done\", null)\n .show();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "64960bcb78783bf45a30c04e3ea95e36", "score": "0.6251161", "text": "@Override\n public JDialog getAboutBox() {\n return DefaultOrchidAbout.getDefaultAboutBox(getClass());\n }", "title": "" }, { "docid": "64960bcb78783bf45a30c04e3ea95e36", "score": "0.6251161", "text": "@Override\n public JDialog getAboutBox() {\n return DefaultOrchidAbout.getDefaultAboutBox(getClass());\n }", "title": "" }, { "docid": "2c970b3b477953c521f73d7308b41b81", "score": "0.6240825", "text": "@Override\n public void doAction(ActionEvent e) {\n if (e.getActionCommand().equals(ActionNames.ABOUT)) {\n this.about();\n }\n }", "title": "" }, { "docid": "18fa72ac8aaa4141c762d0872b08d4ae", "score": "0.622458", "text": "private void showHelp(){\n\t\t\tString helpText = \"To compress an image please press 'Compression' then 'Compression Cycle'.\\nTo Exit the program press 'File' then 'Exit'\"; //THE HELP TEXT\n\t\t\tJOptionPane.showMessageDialog(this, helpText, \"Help\", JOptionPane.INFORMATION_MESSAGE); //Showing the text in an JOptionPane\n\t\t}", "title": "" }, { "docid": "6a6f3c2de148566e52056ee42343f06c", "score": "0.6219508", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tGettingStartedPanel.openPage(NRConsoleDocumentationFactory.getDocumentationURL(self));\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t aboutPanel.add(new JLabel(NRConsoleWindow.getConsoleVersion()),\"wrap\");//Set up the about panel\n\t\t\t\t\taboutFrame = new JFrame(aboutPanel.getName());\n\t\t\t\t\taboutFrame.add(aboutPanel);\n\t\t\t\t\taboutFrame.setLocationRelativeTo(null); \n\t\t\t\t\taboutFrame.pack();\n\t\t\t\t\taboutFrame.setVisible(true);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "d17fe4142cdb21c2c2c97e9864c2e264", "score": "0.62019926", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_about) {\n\n // show about dialog\n MusicPlayerDialog.aboutDialog(MainActivity.this);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d20c51a51372046a6cac5de89ad57c78", "score": "0.61860603", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n // 1. Instantiate an AlertDialog.Builder with its constructor\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n TextView tv = new TextView(this);\r\n tv.setMovementMethod(LinkMovementMethod.getInstance());\r\n tv.setText(Html.fromHtml(getString(R.string.about_message)));\r\n tv.setPadding(Math.round(getResources().getDimension(R.dimen.activity_horizontal_margin)), 0, Math.round(getResources().getDimension(R.dimen.activity_horizontal_margin)), 0);\r\n // 2. Chain together various setter methods to set the dialog characteristics\r\n builder.setView(tv)\r\n .setTitle(R.string.about_title)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n })\r\n .show();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "23c65257ee36cd36e8099a5e195858e9", "score": "0.61473876", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_about) {\n new AlertDialog.Builder(this)\n .setTitle(R.string.about)\n .setMessage(R.string.about_text)\n .show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "bf83bc4f09fc40b509b4972a04be9fdf", "score": "0.61463404", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_about) {\n PackageManager packageManager = getPackageManager();\n PackageInfo packInfo = null;\n try {\n packInfo = packageManager.getPackageInfo(getPackageName(), 0);\n String version = packInfo.versionName;//get this version\n showToast(\"Version:\" + version\n +\"\\nDate:\"+\"2017-05-20\" +\"\\nType:\"+mUhfrManager.getHardware());\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b2931d3ae117f52af9b82c9162c2c6bc", "score": "0.61381686", "text": "@UiHandler(\"aboutLink\")\r\n\t void onAboutClicked(ClickEvent event) {\n\t }", "title": "" }, { "docid": "8d623b0fdc4f3f4d536c2e0ebd088c64", "score": "0.6123727", "text": "void jMenuItem3_actionPerformed(ActionEvent e) {\n frmAbout dlg = new frmAbout(this);\n Dimension dlgSize = dlg.getPreferredSize();\n Dimension frmSize = getSize();\n Point loc = getLocation();\n dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n dlg.setModal(true);\n dlg.pack();\n dlg.setVisible(true);\n }", "title": "" }, { "docid": "f70494e869fd6fc57765711a5a1617d0", "score": "0.61218923", "text": "private void showHelpAndExit() {\n\n\t}", "title": "" }, { "docid": "4cfd6fd99b03f2b5cca73bdc9060a29a", "score": "0.6113181", "text": "@FXML\r\n private void handleMenuAboutAction(ActionEvent event){\r\n JOptionPane.showMessageDialog(null,\"Enigma Encoding & \"\r\n + \"Decoding Machine v1.8\", \"Enigma Encryption Macnine\", \r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "title": "" }, { "docid": "e9de4f6fb2a2d068dac85fa74e603fbf", "score": "0.6110974", "text": "public void userWantsHelp() {\n if (helpWanted_) {\n try {\n helpDialog_ = new FileViewer(\"help/Help.help\");\n }\n catch (IOException e) {\n StatusMessage(\"Error opening help file.\");\n }\n helpWanted_ = false;\n updateButtons(\"\");\n return;\n } else {\n StatusMessage (\"Choose a component, menu or button to get help about it.\");\n helpWanted_ = true;\n }\n\n currentButton_ = \"Help\";\n }", "title": "" }, { "docid": "c4acd21892b9c8b22276fbf625771325", "score": "0.6110746", "text": "public About() {\n\t\tsuper(\"About and help window\");\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\tthis.add(tabs);\n\t\ttabs.add(graphInfo(), \"Graph Info\");\n\t\ttabs.add(windInfo(), \"Wind Panel Info\");\n\t\ttabs.add(weatherIconInfo(), \"Weather Icon Info\");\n\t\tthis.pack();\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(this);\n\t}", "title": "" }, { "docid": "a678b2c19a0df7dd5a4f3137fc199243", "score": "0.60803956", "text": "public static void HelpAbt(){ //Basic Help About option\r\n Stage window = new Stage();\r\n\r\n window.setTitle(\"About\"); //Window title\r\n window.setWidth(400); //Window Width\r\n\r\n Label label = new Label(); //Creates a new label\r\n label.setText(\"Version 1.0.5\\n\" + \"Click on File->open \"+\"or use the drawing toolbar on the left\");\r\n\r\n VBox vbox = new VBox(10); //Creates VBox\r\n vbox.getChildren().addAll(label); //adds label to vbox\r\n\r\n Scene scene = new Scene(vbox);\r\n window.setScene(scene);\r\n window.show();\r\n }", "title": "" }, { "docid": "3089bf45c4c2e71ff4e8ee85133d5f9c", "score": "0.60785615", "text": "public void showHelpDialog()\n {\n String text = \"\";\n try {\n InputStream is = getAssets().open(\"help_file.txt\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n text = new String(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n AlertDialog.Builder b = new AlertDialog.Builder(MedsActivity.this,AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);\n b.setTitle(\"Help\");\n b.setIcon(R.mipmap.ic_launcher);\n b.setMessage(text); //reads in text file from text variable\n b.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i)\n {\n\n }\n });\n b.create();\n b.show();\n }", "title": "" }, { "docid": "e5625e271f30090fcd784b496ddb3025", "score": "0.60698944", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tinfoDialog();\n \treturn true;\n\t}", "title": "" }, { "docid": "e3621ce2dc64719f9b28e0572c28eb88", "score": "0.6063067", "text": "public static void displayUserInfo()\r\n {\r\n OpeningScreen displayScreen = new OpeningScreen(\"Barrett:Travelle:\"\r\n +\"A00380824:CSC34114\", \"Submission 06\", \"Processing \"\r\n +\"Employees\");\r\n displayScreen.display();\r\n TextItems textItems = null;\r\n try\r\n {\r\n textItems = new TextItems\r\n (\r\n EmployeeProcessor.class.getResourceAsStream\r\n (\"EmployeeProcessor.txt\")\r\n );\r\n }\r\n catch (NullPointerException e) \r\n {\r\n System.out.println(\"\\nError: NullPointerException thrown.\");\r\n System.out.println(\"Could not open file EmployeeProcessor.txt.\"\r\n + \"\\nProgram now terminating.\");\r\n Utils.pause();\r\n return;\r\n }\r\n catch (Exception e) \r\n {\r\n System.out.println(\"\\nError: \" + e.getMessage());\r\n System.out.println(\"Could not open file EmployeeProcessor.txt.\"\r\n + \"\\nProgram now terminating.\");\r\n Utils.pause();\r\n return;\r\n }\r\n textItems.displayItem(\"ProgramDescription\");\r\n }", "title": "" }, { "docid": "550e536eed9a1bb6c7bf51a7a0540ec1", "score": "0.6061283", "text": "private void aboutNxtWallet() {\n StringBuilder info = new StringBuilder(256);\n info.append(String.format(\"<html>%s Version %s<br>%s Version %s<br>\",\n Main.applicationName, Main.applicationVersion, Main.nxtApplication, Main.nxtVersion));\n\n info.append(\"<br>User name: \");\n info.append(System.getProperty(\"user.name\"));\n\n info.append(\"<br>Home directory: \");\n info.append(System.getProperty(\"user.home\"));\n\n info.append(\"<br><br>OS: \");\n info.append(System.getProperty(\"os.name\"));\n\n info.append(\"<br>OS version: \");\n info.append(System.getProperty(\"os.version\"));\n\n info.append(\"<br>OS patch level: \");\n info.append(System.getProperty(\"sun.os.patch.level\"));\n\n info.append(\"<br><br>Java vendor: \");\n info.append(System.getProperty(\"java.vendor\"));\n\n info.append(\"<br>Java version: \");\n info.append(System.getProperty(\"java.version\"));\n\n info.append(\"<br>Java home directory: \");\n info.append(System.getProperty(\"java.home\"));\n\n info.append(\"<br>Java class path: \");\n info.append(System.getProperty(\"java.class.path\"));\n\n info.append(\"<br><br>Current Java memory usage: \");\n info.append(String.format(\"%,.3f MB\", (double)Runtime.getRuntime().totalMemory()/(1024.0*1024.0)));\n\n info.append(\"<br>Maximum Java memory size: \");\n info.append(String.format(\"%,.3f MB\", (double)Runtime.getRuntime().maxMemory()/(1024.0*1024.0)));\n\n info.append(\"</html>\");\n JOptionPane.showMessageDialog(this, info.toString(), \"About NxtWallet\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "55e24f3c6b5c97ea00652573d93083b2", "score": "0.6057446", "text": "private JDialog getAboutDialog() {\r\n if (aboutDialog == null) {\r\n aboutDialog = new JDialog(getJFrame(), true);\r\n aboutDialog.setTitle(\"Acerca de\");\r\n aboutDialog.setContentPane(getAboutContentPane());\r\n }\r\n return aboutDialog;\r\n }", "title": "" }, { "docid": "08ca25c3208b8be14d7bf64b010d5f83", "score": "0.6056051", "text": "public void actionPerformed( ActionEvent event )\r\n {\r\n JOptionPane.showMessageDialog( MenuFrame.this,\r\n \"This is an example\\nof using menus\",\r\n \"About\", JOptionPane.PLAIN_MESSAGE );\r\n }", "title": "" }, { "docid": "7e18646a22d9e0816759c86d6b90b33e", "score": "0.60548675", "text": "private void displayHelpDialog() {\n String helpMessage = buildHelpString();\n JOptionPane.showMessageDialog(myMainFrame, helpMessage, \"User Controls\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "9a44a90bd8ec892c185f6f92718b3e44", "score": "0.60307795", "text": "@Override\n public void handle(ActionEvent event) {\n // Create Alert dialog.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"About\");\n alert.setHeaderText(\"About Homework 2\");\n alert.setContentText(\"Homework 2 solution\");\n alert.show();\n }", "title": "" }, { "docid": "66ad91f30f82d788b05573843fdf3c27", "score": "0.6019063", "text": "private Dialog initAboutDlg() {\n \tmAboutDlg = new Dialog(this);\n \tmAboutDlg.setContentView(R.layout.about_view);\n \tmAboutDlg.setTitle(\"About JournalBook\");\n \t\n\t\treturn (mAboutDlg);\n\t}", "title": "" }, { "docid": "e07a7c7c21273e87fed1789e20327d9a", "score": "0.6008633", "text": "@FXML\n protected void displayAboutWindow(ActionEvent actionEvent) {\n try {\n Stage stage = new Stage();\n ResourceBundle bundle = ResourceBundle.getBundle(\"cb-local\", Locale.getDefault());\n URL resource = Main.class.getResource(\"fxml/about.fxml\");\n FXMLLoader loader = new FXMLLoader(resource, bundle);\n Parent root = loader.load();\n stage.setScene(new Scene(root, 800, 600));\n stage.setTitle(bundle.getString(\"about_modal_title\"));\n stage.initModality(Modality.WINDOW_MODAL);\n stage.initOwner(((MenuItem) actionEvent.getSource()).getParentPopup().getOwnerWindow());\n stage.show();\n } catch (IOException e) {\n LOG.log(Level.SEVERE, \"Error opening about window\", e);\n }\n }", "title": "" }, { "docid": "c24076a7a7ad5fd6c49b7e3d97fed77d", "score": "0.598471", "text": "private JDialog createAboutDialog() {\n JDialog jDialog = new JDialog(this, \"About\");\n JLabel jLabel = new JLabel(\"This is our final project! Team members: \" +\n \"Jessica Huber, Dimetrius Hightower\");\n jLabel.setHorizontalAlignment(SwingConstants.CENTER);\n jDialog.add(jLabel);\n jDialog.setSize(ABOUT_WIDTH, ABOUT_HEIGHT);\n jDialog.setLocationRelativeTo(null); // center\n jDialog.setVisible(false);\n return jDialog;\n }", "title": "" }, { "docid": "08d8431ba9daf00d71a4d6f5e11fa74a", "score": "0.5975775", "text": "public void actionPerformed(ActionEvent e)\t{\r\n\t\t//avsluta programmet\r\n\t\tif (e.getSource() == menu_close)\t{\t\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t//visa hjälprutan\r\n\t\telse if (e.getSource() == menu2)\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Detta är en prototyp. \\nVersion: 2014-01-31\\nAv: Johan & Fiona\",\"OpenFlisp\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t\t//visa övriga menyalternativ\r\n\t\telse\t{\r\n\t\t\twindow.setText(e.getActionCommand());\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"Nu ska \" + e.getActionCommand() + \" startas..\");\t\t\t\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "0d611f8e11b1f659b0e740e98261cc63", "score": "0.5964317", "text": "public ActionListener aboutBtn() {\n \tfinal RESBackupGUI v = this.view;\n \treturn new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n v.aboutWindow();\n }\n };\n }", "title": "" }, { "docid": "3ca0a9ad8dd6361a8abd0b26d7f11bbb", "score": "0.595944", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_about) {\n Toast.makeText(this, R.string.about_text, Toast.LENGTH_SHORT).show();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "8c077fd28d80dad6b0e47ecf67d5a685", "score": "0.59422755", "text": "public void displayHelpPopUp()\n\t{\n Stage window = new Stage()\n \t\t {{\n \t\t initModality(Modality.APPLICATION_MODAL);\n \t\t setTitle(\"About VED-JAVLE\");\n \t\t setWidth(400);\n \t\t setHeight(400);\n \t\t setResizable(false);\n \t\t }};\n\n window.setScene\n (new Scene\n (new VBox()\n {{\n getChildren().addAll\n (\n \t\tnew ImageView(new Image(\"https://i.imgur.com/De6Hprm.jpg\"))\n \t\t {{\n \t\t setFitWidth(180);\n \t\t setFitHeight(200);\n \t\t }},\n \t\t new Label(\" \"),\n \t\tnew Label(\"Name: Ved Javle\"),\n new Label(\"Email: vvj82676@uga.edu\"),\n new Label(\"Version 1.1.1\"),\n new Label(\" \"),\n \n new Button(\"Close\") {{setOnAction(e -> window.close());}}\n );\n \n setAlignment(Pos.CENTER);\n }} \n ));\n \n\t\twindow.showAndWait();\n\t}", "title": "" }, { "docid": "94a632bc0c154aed6ead462eb481303c", "score": "0.59415305", "text": "public About() {\n\t\tinitComponents();\n\t\tsetIconImage(getImage());\n\t}", "title": "" }, { "docid": "5c37c8dfca8b14718f967714813c7425", "score": "0.5928431", "text": "static void showMainMenu() {\n System.out.println(\"------------------ MAIN MENU -----------------\");\n System.out.println(\"1.) Show files in ascending order\");\n System.out.println(\"2.) Perform file operations\");\n System.out.println(\"3.) Close the application\");\n System.out.println(\"----------------------------------------------\");\n collectMainMenuOption();\n }", "title": "" }, { "docid": "961c69f631f6b2627b3255e7aebf0cdb", "score": "0.592763", "text": "public void onAbout() { controller.showAbout(); }", "title": "" }, { "docid": "41cc2785978dd80d274ab3f38925e074", "score": "0.59158105", "text": "private void printHelp() {\n System.out.println(\"Enter a command or message. Command list:\");\n System.out.println(\"/file - upload file\");\n System.out.println(\"/download {file id} - downloads file by id\");\n System.out.println(\"/history - prints message history\");\n System.out.println(\"/online - prints users online\");\n }", "title": "" }, { "docid": "7f49f200cf860ce264ca5c897f268e2d", "score": "0.59087986", "text": "private void aboutMe() {\n AlertDialog aboutDialog = new AlertDialog.Builder(MainActivity.this).create();\n aboutDialog.setTitle(\"About Guessing Game\");\n aboutDialog.setMessage(\n \"My first android App\\n\" +\n \"(c)2018 Beniamin Dudek\"\n );\n aboutDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }\n );\n aboutDialog.show();\n }", "title": "" }, { "docid": "80f1f147c41fc9f963dd9c8e208f4188", "score": "0.58922845", "text": "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Emoticon Application. Version 1.0\");\n\t\t\t}", "title": "" }, { "docid": "63e06759049bcba65a223adf035e6972", "score": "0.5889294", "text": "@FXML\n private void handleHelpButton() throws IOException, URISyntaxException {\n primingTool.showHelp();\n\n }", "title": "" }, { "docid": "9af3a354976572dbd72828cc9ccb8dd5", "score": "0.5887377", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n // Make a help window pop-up\n JLabel label = new JLabel(\"<html>*Resort button<br>Resorts the images\"\n + \" taking arguments from the checked buttons<br>*Help Window\"\n + \" button<br>Opens this window<br>\"\n + \"*Exit button<br>Exits the program</html>\");\n label.setFont(new Font(\"Ubuntu\", Font.PLAIN, 12));\n JOptionPane.showMessageDialog(null\n , label\n , \"Help Message Dialog\"\n , JOptionPane.PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "2ca9fb0bc5947b27f01649717dd0662f", "score": "0.5877686", "text": "public AboutWindow(Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setSize(400, 530);\n setHelpText();\n }", "title": "" }, { "docid": "7cb3a49e66817f52302710e62fdb1485", "score": "0.5865756", "text": "public void setAboutMenuItem(JMenuItem mi) {\n aboutMenuItem = mi;\n mi.addActionListener(this);\n }", "title": "" }, { "docid": "1dedb3abd2d0325cd76cbf8c73da39d2", "score": "0.58604544", "text": "public static void showSystemInformation() {\r\n try {\r\n JDialog dialog = new JDialog(ApplicationManager.application.getFrame(),\r\n ApplicationManager.getTranslation(ApplicationManager.SYSTEM_INFORMATION_MESSAGE,\r\n ApplicationManager.application.getResourceBundle()),\r\n true);\r\n dialog.getContentPane().add(new JScrollPane(ApplicationManager.getSystemPropertiesComponent()));\r\n dialog.pack();\r\n ApplicationManager.center(dialog);\r\n dialog.setVisible(true);\r\n dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n } catch (Exception ex) {\r\n ApplicationManager.logger.error(null, ex);\r\n MessageDialog.showMessage(ApplicationManager.getApplication().getFrame(),\r\n \"applicationmanager.show_help_error\", ex.getMessage(), JOptionPane.ERROR_MESSAGE,\r\n ApplicationManager.getApplication().getResourceBundle());\r\n\r\n }\r\n }", "title": "" }, { "docid": "beedf94f893556abf2093924c5e6a06f", "score": "0.58596015", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case R.id.helpmenu:\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Instructions\");\n builder.setMessage(\"1. Fill in the pit dimensions then press 'Create Pit'.\" + \"\\n\" + \"\\n\" + \"2. After pressing 'Create Pit' example range diagram will be drawn, and the dragline and pit dimensions can be changed.\"\n + \"\\n\" + \"\\n\" + \"3. Pit volumes and rehandle will be calculated on the next screen.\");\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //if user pressed \"yes\", then he is allowed to exit from application\n dialog.cancel();\n }\n });\n AlertDialog alert1 = builder.create();\n alert1.show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "5e42fdcb8c00d403ef8e61cdfe5e0e73", "score": "0.58574486", "text": "public void actionPerformed(ActionEvent e) {\n\tString action = e.getActionCommand();\n\t// show dialog that allows user to select new namespace\n\tif (action.equals(\"CHANGE_NAMESPACE\")) {\n\t Util.waitOn(this);\n\t nsDlg = new NameSpaceDialog(this);\n\t nsDlg.addItemListener(this);\n\t nsDlg.setVisible(true);\n\t// show about dialog\n\t} else if (action.equals(\"ABOUT_CIMWORKSHOP\")) {\n\t Util.setWaitCursor(this);\n\t String versionString = Version.major + \".\" + Version.minor + \".\" +\n\t\t Version.revision + \" \" + Version.buildID;\n\t AboutDialog dlg = new AboutDialog(this, \n\t\tVersion.productName, versionString,\n\t\tVersion.copyright, null);\n\t Util.setDefaultCursor(this);\n\t} else if (action.equals(\"CLEAR_EVENT_OUTPUT\")) {\n\t eventOutputArea.setText(\"\");\n\t} else if (action.equals(\"EXIT\")) {\n\t exitCIMWorkshop();\n\t}\n\t\t\n }", "title": "" }, { "docid": "b60df91b234ccbde940c78809e3ffb74", "score": "0.5856881", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.function_info:\n\t\t\tshowDialog(FUNCTION_INFO);\n\t\t\tLog.d(\"MainMenu\", String.valueOf(item.getTitle()));\n\t\t\tbreak;\n\t\tcase R.id.update_info:\n\t\t\tshowDialog(UPDATE_INFO);\n\t\t\tLog.d(\"MainMenu\", String.valueOf(item.getTitle()));\n\t\t\tbreak;\n\t\tcase R.id.author_info:\n\t\t\tshowDialog(AUTHOR_INFO);\n\t\t\tLog.d(\"MainMenu\", String.valueOf(item.getTitle()));\n\t\t\tbreak;\n\t\tcase R.id.feedback:\n\t\t\tshowDialog(FEEDBACK_INFO);\n\t\t\tLog.d(\"MainMenu\", String.valueOf(item.getTitle()));\n\t\t\tbreak;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3850c5ee699b54416ce2305b4dcaf798", "score": "0.5856232", "text": "public static void mainMenu() {\n\t\tSystem.out.println(\"What do you want to do?\"\n\t\t\t\t+ \"\\n\\t1.\tEnter new books (password required)\" \n\t\t\t\t+ \"\\n\\t2.\tChange information of a book (password required)\" \n\t\t\t\t+ \"\\n\\t3.\tDisplay all books by a specific author\"\n\t\t\t\t+ \"\\n\\t4.\tDisplay all books under a certain price\" \n\t\t\t\t+ \"\\n\\t5.\tQuit\"\n\t\t\t\t+ \"\\nPlease enter your choice\");\n\t}", "title": "" }, { "docid": "56a517776eb5241a0fc7ca98f91096aa", "score": "0.58538264", "text": "public static void about() {\r\n\t\tUser user = Security.getConnected();\r\n\t\trender(user);\r\n\t}", "title": "" }, { "docid": "74ea429d77b3c462543bf6928c89424f", "score": "0.583416", "text": "public FileManagementScreen() {\n \t\n options.add(\"1. Display Files\");\n options.add(\"2. Add a File\");\n options.add(\"3. Delete a File\");\n options.add(\"4. Search a File\");\n options.add(\"5. Quit\");\n }", "title": "" }, { "docid": "c9b2f0207a90f4ca8ee69a8ee8794249", "score": "0.5832962", "text": "void helpMessage();", "title": "" }, { "docid": "5e5c7f90f9eb1f5ceef72ceb10d0fd7c", "score": "0.58245635", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == R.id.action_about)\n {\n Toast.makeText(getApplicationContext(), \"Android Lab 1, Nicholas Witmer\", Toast.LENGTH_SHORT).show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d2161610aec6c4d354274ae4cceb0801", "score": "0.5820914", "text": "public void aboutGame() {\n\t\ttest.put(\"Vooga\", \"Salad\");\n\t\ttest.put(\"Year\", \"2018\");\n\t\ttest.put(\"Call Us\", \"Salad\");\n\t\tTextArea text = new TextArea();\n\t\tString string = new String();\n\t\taboutGameBox = new VBox(text);\n\t\taboutGameStage = new Stage();\n\t\taboutGameScene = new Scene(aboutGameBox);\n\n\n\t\taboutGameStage.setScene(aboutGameScene);\n\t\taboutGameStage.setTitle(\"About Game\");\n\t\taboutGameStage.initOwner(gameStage);\n\n\t\tfor (String key:test.keySet()) {\n\t\t\tstring=string+key+\" \"+test.get(key)+\"\\n\";\n\n\t\t}\n\t\ttext.setText(string);\n\n\t\t//manipData.openMeta(file);\n\t\taboutGameStage.show();\n\n\t}", "title": "" }, { "docid": "cac2b940ed087bf2779793c2422cad5f", "score": "0.5814421", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId())\n {\n case R.id.menu_about:\n Toast.makeText(MainActivity.this,\"About App\",Toast.LENGTH_SHORT).show();\n AlertDialog alertDialog = new AlertDialog.Builder(this).create();\n alertDialog.setTitle(\"About App\");\n alertDialog.setMessage(\"This app developed by Sharmindran Raj @ SAM, this is an app that calculate and split the bill evenly to make our life easier so that we have more time enjoying with our friends and family\");\n alertDialog.setButton(\"OK\",new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int which){\n //TODO Auto generated method stub\n }\n });\n alertDialog.show();\n return true;\n case R.id.menu_exit:\n Toast.makeText(MainActivity.this,\"Thank you!, exiting in progress.\",Toast.LENGTH_SHORT).show();\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" } ]
dcbc01d4b51372df11c88a823f13b937
Setter for element bounds settings.
[ { "docid": "6a9a3d64051837ad12c94c680f52938d", "score": "0.0", "text": "public com.anychart.core.annotations.Label bounds(Number x, Number y, String width, Number height) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".bounds(%s, %s, %s, %s);\", x, y, wrapQuotes(width), height));\n\n return this;\n }", "title": "" } ]
[ { "docid": "29cb1b2a25bad0724a082b8c0be552e1", "score": "0.72174454", "text": "public final void setBounds(Bounds bounds) {\n\t\tsetValueAndAddToParent(Property.BOUNDS, bounds);\n\t}", "title": "" }, { "docid": "c7d54b699060bd90b2c707cb71a5a7b0", "score": "0.7008001", "text": "protected void setBounds(Rectangle bounds) {\n\t\tthis.bounds = new Rectangle(bounds);\n\t}", "title": "" }, { "docid": "e3a675ee87a0e6d733da3a337960f023", "score": "0.6955721", "text": "public void setBounds(double x, double y, double width, double height);", "title": "" }, { "docid": "4b6c557836cdec75a939846af78d19ee", "score": "0.69107276", "text": "public void setBounds(Rectangle bounds)\r\n/* 230: */ {\r\n/* 231: 466 */ this.bounds.setBounds(bounds);\r\n/* 232: */ }", "title": "" }, { "docid": "0b4e94253ad754690c072b0075a0bf44", "score": "0.688918", "text": "@Override\n\tpublic void setBounds() {\n\t\t\n\t}", "title": "" }, { "docid": "f9888f2d786bfc5b682bf6c317f2f28a", "score": "0.6857474", "text": "public final native void setBounds(LatLngBounds bounds) /*-{\n this.bounds = bounds;\n }-*/;", "title": "" }, { "docid": "9e1f761c118049ccfdbe4821512db5e7", "score": "0.6619179", "text": "void setBounds(int x, int y, int width, int height);", "title": "" }, { "docid": "a2fc6ea06f7608bc5ece5e826ef0398c", "score": "0.64432746", "text": "private void setBounds()\n\t{\n\t\tswitch (type)\n\t\t{\n\t\tcase ATTACK:\n\t\t\tbounds = user.getCurrentStats().getRange();\n\t\t\tbreak;\n\t\tcase MOVE:\n\t\t\tbounds = user.getCurrentStats().getMovement();\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "5dbed88f8aef8df4d8650dec6a1493ee", "score": "0.62842906", "text": "public com.anychart.core.utils.Bounds bounds() {\n return new com.anychart.core.utils.Bounds(jsBase + \".bounds()\");\n }", "title": "" }, { "docid": "e2a63c48ca28be24be674382484a77e3", "score": "0.6266735", "text": "void setBounds(IGeoBounds bounds, boolean animate);", "title": "" }, { "docid": "51fe9c1cf57df215a572362723138200", "score": "0.6260969", "text": "public void setTreeBounds(Rectangle bounds);", "title": "" }, { "docid": "710da3fc82767a453ac4b909887c76ba", "score": "0.6142238", "text": "Bounds getBounds();", "title": "" }, { "docid": "f41293cbf26f40ecc5654cf80f5b08e9", "score": "0.6117111", "text": "@Override\n protected void boundsChanged() {\n /*update dimensions*/\n this.dimensions.setAll(this.bounds);\n }", "title": "" }, { "docid": "e148a9c0ae3d695cb7dd50741b48a4c5", "score": "0.6044039", "text": "void setUpperBound(double upperBound);", "title": "" }, { "docid": "85cd30c82f0fe834f43134be22f3bf63", "score": "0.60353196", "text": "void internalSetBounds(Rectangle newBounds) {\n\tbounds = newBounds;\n}", "title": "" }, { "docid": "de16e6279bce063066df9c49f1d28030", "score": "0.60111964", "text": "public void setViewBounds(Rectangle vb) {\r\n//\t\tD.o(\"Why are we calling setViewBounds?\");\r\n\t\tD.o(new Exception(\"setViewBounds called.\"));\r\n\t}", "title": "" }, { "docid": "4f5ee5675b1937462eb6e959d3e01e13", "score": "0.59908587", "text": "public void setUpperBound(int bound){\r\n\t\tuppBound = bound;\r\n\t}", "title": "" }, { "docid": "3fbf3852e1b32c0013a39b75d22ea3ec", "score": "0.5971836", "text": "public BoundBox() {\n bounds = new double[8];\n }", "title": "" }, { "docid": "17e4e669c3cb7480154a86eaa370bfc9", "score": "0.5971763", "text": "public void setGraphicsConfigurationBounds(Rectangle gcBounds)\r\n/* 260: */ {\r\n/* 261: 484 */ this.gcBounds = (gcBounds == null ? null : new Rectangle(gcBounds));\r\n/* 262: */ }", "title": "" }, { "docid": "a4e39cc4371c42978e217dfe78dce048", "score": "0.5966412", "text": "protected void setBoundsFromXML(Node node) {\n NamedNodeMap attrs = node.getAttributes();\n bounds = new java.awt.Rectangle(Integer.valueOf(((Attr)(attrs.getNamedItem(\"x\"))).getValue()),\n Integer.valueOf(((Attr)(attrs.getNamedItem(\"y\"))).getValue()),\n Integer.valueOf(((Attr)(attrs.getNamedItem(\"width\"))).getValue()),\n Integer.valueOf(((Attr)(attrs.getNamedItem(\"height\"))).getValue()));\n }", "title": "" }, { "docid": "72f5822c7bfd972a2b555a198e87d1d0", "score": "0.59548783", "text": "public void updateBounds() {\n if (getXMin() > getXMax()) {\n short temp = this.xMax;\n this.xMax = this.xMin;\n this.xMin = temp;\n }\n\n if (getZMin() > getZMax()) {\n short temp = this.zMax;\n this.zMax = this.zMin;\n this.zMin = temp;\n }\n }", "title": "" }, { "docid": "f00b249dd3bdcee8e4c38d58e230ce7d", "score": "0.5928655", "text": "protected void setBoundaries(Rectangle boundaries)\n\t{\n\t\tthis.boundaries = boundaries;\n\t}", "title": "" }, { "docid": "e1144fef3f7865e1cbcdf687043afc44", "score": "0.5924293", "text": "@Override\n\tpublic void setBounds(int x, int y, int width, int height) {\n\t\tsuper.setBounds(x, y, width, height);\n\t\tif (!calc) {\n\t\t\tcalcOneTime();\n\t\t}\n\t\tcalculcate();\n\t}", "title": "" }, { "docid": "bc9bc20f30dfe74e32f2eca7dd6b9d07", "score": "0.59131896", "text": "void setBoundingBox(double llx, double lly, double urx, double ury);", "title": "" }, { "docid": "1fc9138d7dc81651e3d95c3214b453e1", "score": "0.5910707", "text": "public void recalculateBounds() {\n this.mapBounds = parseBounds();\n }", "title": "" }, { "docid": "7c6d6b0dc2c04d2d2d895ba348f4fe1a", "score": "0.5910286", "text": "@Override\n\tpublic final Bounds getBounds() {\n\t\treturn getValue(Property.BOUNDS, Bounds.values(), getDefaultValues().getBounds());\n\t}", "title": "" }, { "docid": "23ba7ec081c535c0e21260b362f491a8", "score": "0.5892649", "text": "final void setGraphBounds (Rectangle2D.Float b) {\n graphBounds = b;\n needsUpdate = true;\n }", "title": "" }, { "docid": "036dc935602e4ef1bbda6a89080710d3", "score": "0.5885129", "text": "public Rectangle getBounds(){\t\t\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "795135936c1709c2d6db8d9418a72f07", "score": "0.58805907", "text": "public boolean isSetBoundsAllowed();", "title": "" }, { "docid": "a68e0918f892ca8e9abf5c61c6aecacf", "score": "0.58782214", "text": "public static void setBounds(Rectangle rect) {\n xMin = (int) rect.getX();\n yMin = (int) rect.getY();\n xMax = (int) rect.getMaxX();\n yMax = (int) rect.getMaxY();\n\n }", "title": "" }, { "docid": "418000f5d4621bccae3ef9b06abb285a", "score": "0.58716094", "text": "protected org.w3c.dom.Element createBoundsElement(Document doc) {\n org.w3c.dom.Element boundsElement = doc.createElement(\"bounds\");\n\n Attr attr = doc.createAttribute(\"x\");\n attr.setValue(String.valueOf(bounds.x));\n boundsElement.setAttributeNode(attr);\n\n attr = doc.createAttribute(\"y\");\n attr.setValue(String.valueOf(bounds.y));\n boundsElement.setAttributeNode(attr);\n\n attr = doc.createAttribute(\"width\");\n attr.setValue(String.valueOf(bounds.width));\n boundsElement.setAttributeNode(attr);\n\n attr = doc.createAttribute(\"height\");\n attr.setValue(String.valueOf(bounds.height));\n boundsElement.setAttributeNode(attr);\n return boundsElement;\n }", "title": "" }, { "docid": "35a757f20c681a15afd7a778550f6e5c", "score": "0.58623016", "text": "@Override\n\t\t\tpublic void setBounds(int left, int top, int right, int bottom) {\n\t\t\t\tsuper.setBounds(left, top, right, bottom);\n\t\t\t\tif (drawable != null) {\n\t\t\t\t\tdrawable.setBounds(left, top, right, bottom);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "202a7938e556b46c85e64163512cddbc", "score": "0.58550197", "text": "public void updateBounds()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (getInt() > m_bounds.getMaximum())\n\t\t\t{\n\t\t\t\tsetInt(m_bounds.getMaximum());\n\t\t\t}\n\t\t\tif ((m_bounds.getAllowZeros() == ALLOW_ZEROS_NONE) && (getInt() == 0))\n\t\t\t{\n\t\t\t\tsetInt(1);\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException a_e)\n\t\t{\n\t\t\tif (m_bounds.getAllowZeros() > ALLOW_ZEROS_NONE)\n\t\t\t{\n\t\t\t\tsetInt(0);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetInt(1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "664a233fad403fc1f205c375efaceaff", "score": "0.58487344", "text": "public BoundBox(double[] bounds) {\n this.bounds = bounds;\n }", "title": "" }, { "docid": "c0e453a69b4421a6e0f4b49b35788ba8", "score": "0.5834751", "text": "protected Rect getBoundsImpl() { return awtToSnapRect(_shp.getBounds()); }", "title": "" }, { "docid": "d939ccb1371d49af6550702e58bb940e", "score": "0.5834242", "text": "@NonNull\n BoundingBox getBounds();", "title": "" }, { "docid": "fd7b2c9156f8da9059a328e237653251", "score": "0.5803907", "text": "IGeoBounds getBounds();", "title": "" }, { "docid": "19c0308512906173dfdcc6d398c2aaae", "score": "0.5787786", "text": "public void setCameraBounds(Rectangle2D bounds){\r\n\t\tcameraBounds=(Rectangle2D)bounds.clone();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2b5f924d6b278625543cb3ddb3a62bf7", "score": "0.57787883", "text": "private void setLogicalBounds(float left, float top, float right, float bottom) {\n mLogicalLeft = left;\n mLogicalTop = top;\n mLogicalRight = right;\n mLogicalBottom = bottom;\n }", "title": "" }, { "docid": "a8813741c9271f69040cb7eddd4e22cb", "score": "0.57761323", "text": "void setBounds(Rectangle r){\n\t\tthis.drawerPane.setBounds(r);\n\t}", "title": "" }, { "docid": "97f7f500fa366b7dacee37630f18921b", "score": "0.5774513", "text": "public final native void fitBounds(LatLngBounds bounds) /*-{\n this.fitBounds(bounds);\n }-*/;", "title": "" }, { "docid": "af62e8a404a7b77815afbb2aff59c480", "score": "0.57628536", "text": "private void fixBounds() {\n\t\tif(x < xmin)\n\t\t\tx = xmin;\n\t\tif(y < ymin)\n\t\t\ty = ymin;\n\t\tif(x > xmax)\n\t\t\tx = xmax;\n\t\tif(y > ymax)\n\t\t\ty = ymax;\n\t}", "title": "" }, { "docid": "ce273734e99a3825b6fbf482ed4871c7", "score": "0.5752455", "text": "public String setBounds(String mapVar, double padding) {\n return MessageFormat.format(\"{0}.fitBounds({1}, {2,number,0.000000});\",\n mapVar,\n formatBounds(analy.bounds()),\n padding\n );\n }", "title": "" }, { "docid": "7274ea6613fc262f6d2b0cefe2009b18", "score": "0.57449096", "text": "public Rectangle getBounds() {\n return bounds_;\n }", "title": "" }, { "docid": "c3d92127e5e9704da2cd494e612c1822", "score": "0.5738055", "text": "public void setBounds(int x, int y, int w, int h) {\r\n if (inShapeChange) {\r\n super.setBounds(x, y, w, h);\r\n } else {\r\n inShapeChange = true;\r\n absoluteX = x;\r\n absoluteY = y;\r\n absoluteWidth = w;\r\n absoluteHeight = h;\r\n super.setBounds(scaleInteger(x), scaleInteger(y),\r\n scaleInteger(h), scaleInteger(h));\r\n inShapeChange = false;\r\n }\r\n }", "title": "" }, { "docid": "586012d3a097b3b7dc437b7678d9d035", "score": "0.5736633", "text": "@VTID(61)\r\n void setLimits(double xMin, double xMax, double yMin, double yMax);", "title": "" }, { "docid": "3b4dc986193f3d8c56b7ff281b4a0514", "score": "0.5732189", "text": "public com.anychart.core.annotations.Label bounds(com.anychart.math.Rect bounds) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".bounds(%s);\", (bounds != null) ? bounds.getJsBase() : null));\n\n return this;\n }", "title": "" }, { "docid": "0e0cbb63e8615012e0e6e50fcc11dc4c", "score": "0.57261443", "text": "void xsetUpperBound(org.apache.xmlbeans.XmlDouble upperBound);", "title": "" }, { "docid": "ad882c7268ac4bff81477d137294f7ea", "score": "0.5722814", "text": "void setInfluencingBounds(Bounds region) {\n\tinitInfluencingBounds(region);\n\tsendMessage(BOUNDS_CHANGED,\n\t\t (region != null ? region.clone() : null));\n }", "title": "" }, { "docid": "194370d8d74d0646803a9502669f4e14", "score": "0.5713923", "text": "public final MapBounds getCustomBounds() {\n return this.paramOverrides.getMapBounds();\n }", "title": "" }, { "docid": "34e4456c17d9b0ff9acd65d9c04b2dda", "score": "0.5705945", "text": "public void updateBounds() {\n if (views == null || views.size() == 0) {\n bounds = new Rectangle();\n return;\n }\n \n bounds = new Rectangle(0, 0, -1, -1);\n for (View v : views)\n bounds = bounds.union(v.getBounds());\n for (View v : eViews)\n bounds = bounds.union(v.getBounds());\n\n //System.out.println(\"GraphView bounds: \"+bounds);\n }", "title": "" }, { "docid": "d0a31cf066970db14a5585b36a1ec2f2", "score": "0.57026154", "text": "Rectangle bounds ();", "title": "" }, { "docid": "aad1bc3d91e2a1a16f63b5edeb2b1aed", "score": "0.5679426", "text": "Rectangle getBounds();", "title": "" }, { "docid": "b40f3c26c1f4347d70773ff55be6fd78", "score": "0.5675843", "text": "public Rectangle getBounds() {\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "12217819e43456b559311beb7d410d6d", "score": "0.56591934", "text": "public com.anychart.core.annotations.Label bounds(com.anychart.utils.RectObj bounds) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".bounds(%s);\", (bounds != null) ? bounds.getJsBase() : null));\n\n return this;\n }", "title": "" }, { "docid": "5ddd39b4a60464c75eda5a51ce78f05e", "score": "0.5652864", "text": "Rectangle bounds (Rectangle target);", "title": "" }, { "docid": "b2c0d33c1941b019df5693a9e770c900", "score": "0.5630957", "text": "public abstract BoundingBox getBounds();", "title": "" }, { "docid": "c2b75d9e676cab65ecb7dac278077482", "score": "0.561603", "text": "public final native LatLngBounds getBounds() /*-{\n return this.bounds;\n }-*/;", "title": "" }, { "docid": "ce7a330bcca7a1096b37cc16da5f6b01", "score": "0.560627", "text": "private void setTaskBounds(Rect bounds) {\n final PooledConsumer c = PooledLambda.obtainConsumer(ActivityStack::setTaskBounds,\n PooledLambda.__(Task.class), bounds);\n forAllLeafTasks(c, true /* traverseTopToBottom */);\n c.recycle();\n }", "title": "" }, { "docid": "54dc747e6fd77d39b1a10347f241c0c5", "score": "0.5600641", "text": "public void setBounds(Rectangle rect) {\r\n if (inShapeChange) {\r\n super.setBounds(rect);\r\n } else {\r\n inShapeChange = true;\r\n absoluteX = rect.x;\r\n absoluteY = rect.y;\r\n absoluteWidth = rect.width;\r\n absoluteHeight = rect.height;\r\n super.setBounds(scaleInteger(rect.x), scaleInteger(rect.y),\r\n scaleInteger(rect.width), scaleInteger(rect.height));\r\n inShapeChange = false;\r\n }\r\n }", "title": "" }, { "docid": "f05dddf5c27e5179c39f776e34f7fb8e", "score": "0.5599471", "text": "public void bounds()\n\t\t{\n\t\t\tif(y <= 55) //top\n\t\t\t{\n\t\t\t\ty = 55;\n\t\t\t}\n\t\t\t\n\t\t\tif(y + height >= Main.gameHeight - 30) //bottom\n\t\t\t{\n\t\t\t\ty = Main.gameHeight - height - 30;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d1d8bd2187594a2bb38bedf4cb556764", "score": "0.55770284", "text": "private void LimitBounds(View view) {\n Region2D bounds = view.Bounds();\n Region2D viewBounds = view.ViewBounds();\n\n // Handle the case when the map is smaller than the control.\n if(bounds.Width() < viewBounds.Width()) {\n view.SetLeftMargin(viewBounds.Width() / 2 - bounds.Width() / 2);\n }\n else {\n view.SetLeftMargin(0);\n }\n\n if(bounds.Height() < viewBounds.Height()) {\n view.SetTopMargin(viewBounds.Height() / 2 - bounds.Height() / 2);\n }\n else {\n view.SetTopMargin(0);\n }\n\n // Don't let the map to be moved above the bottop-right edge.\n if(bounds.Right() > view.MaxBounds().Right()) {\n bounds.SetLeft(view.MaxBounds().Right() - bounds.Width());\n }\n\n if(bounds.Bottom() > view.MaxBounds().Bottom()) {\n bounds.SetTop(view.MaxBounds().Bottom() - bounds.Height());\n }\n\n bounds.SetLeft(Math.max(0, bounds.Left()));\n bounds.SetTop(Math.max(0, bounds.Top()));\n }", "title": "" }, { "docid": "fbf051afbd8e16cdef9a039de97a1f59", "score": "0.5553691", "text": "public Bounds getBounds() {\n return new Bounds(north, west, south, east);\n }", "title": "" }, { "docid": "287a1d5dc80b39d56aeae6fd09535477", "score": "0.5546569", "text": "public void setBoundingRect(RectF r){\n rect.right=r.right;\n rect.left=r.left;\n rect.top=r.top;\n rect.bottom=r.bottom;\n\n }", "title": "" }, { "docid": "dce849f09a7e26d104761b310dd57f35", "score": "0.5544534", "text": "@Override\r\n\tRectangle getBounds();", "title": "" }, { "docid": "08a8445743916079728348c9188e3c21", "score": "0.55440295", "text": "public GeographicBoundingBox getBounds()\r\n {\r\n return myBounds;\r\n }", "title": "" }, { "docid": "9ca42bcc3bcee999feda8c3300e3bb1f", "score": "0.5527579", "text": "public void set(int i, double value){\n bounds[i] = value;\n }", "title": "" }, { "docid": "6eefcc9009538e6764a9f9eb213435e9", "score": "0.55128044", "text": "private void updateBounds( GraphicalData o ) {\n\t\tLogger logger = null;\n\t\t\n\t\tif( Core.DEBUG ) {\n\t\t\tlogger = Logger.getLogger(this.getClass());\n\t\t\tlogger.setLevel(Level.DEBUG);\n\t\t}\n\t\t\n\t\tif( o == null ) return;\n\t\tRectangle bounds = o.getBounds();\n\t\t\n\t\t\n\t\tint x1 = (int) bounds.getX();\n\t\tint y1 = (int) bounds.getY();\n\t\tint w1 = (int) bounds.getWidth();\n\t\tint h1 = (int) bounds.getHeight();\n\n\t\tif( vertices.size() + edges.size() == 1 ) {\n\t\t\t// we have only one element in the graph, the element is the bounds\n\t\t\tx = x1; y = y1; w = w1; h = h1;\n\t\t\tif( Core.DEBUG ) logger.debug(\"Graph bounds reset to: (x = \" + Integer.toString(x) + \", \" +\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t \"y = \" + Integer.toString(y) + \", \" +\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t \"w = \" + Integer.toString(w) + \", \" +\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t \"h = \" + Integer.toString(h) + \")\");\n\t\t\treturn;\n\t\t}\n\n\t\t\n\t\tboolean mod = false;\n\t\tif( x1 < x ) { // if the new element is to the left of the current bounds.\n\t\t\tw += x - x1; // expand the graph so the right bound is where it was before\n\t\t\tx = x1; // move the bounds to the left\n\t\t\tmod=true; \n\t\t} \n\t\tif( y1 < y ) { // if the new element is above the current bounds.\n\t\t\th += y - y1; // expand the graph down\n\t\t\ty = y1; // move the graph up\n\t\t\tmod=true; \n\t\t}\n\t\t\n\t\t// IMPORTANT TO CALCULATE THESE VARIABLES AFTER THE FIRST TWO IF STATEMENTS!!!\n\t\t// The first two if statements change x, w, y, and h which are variables used to\n\t\t// calculate l and m. So they must be calculated after the if statements.\n\t\tint l = x + w; // the highest x coordinate of the current bounds\n\t\tint l1 = x1 + w1; // the highest x coordinate of the element\n\t\tint m = y + h; // the highest y coordinate of the current bounds\n\t\tint m1 = y1 + h1; // the highest y coordinate of the element\n\t\t\n\t\tif( l1 > l ) { // if the new element is to the right of the bounds\n\t\t\tw += l1 - l; // expand the graph to the right\n\t\t\tmod=true; \n\t\t} \n\t\tif( m1 > m ) { // if the new element is below the current bounds\n\t\t\th += m1 - m; // expand the graph down\n\t\t\tmod=true; \n\t\t} \n\t\t\n\t\tif( Core.DEBUG )\n\t\t\tif(mod) logger.debug(\"Graph bounds updated to: (x = \" + Integer.toString(x) + \", \" +\n\t\t\t\t\t\t\t\t\t\t\t \"y = \" + Integer.toString(y) + \", \" +\n\t\t\t\t\t\t\t\t\t\t\t \"w = \" + Integer.toString(w) + \", \" +\n\t\t\t\t\t\t\t\t\t\t\t \"h = \" + Integer.toString(h) + \")\");\n\t}", "title": "" }, { "docid": "b475012738364244b6fffe18b5e1a729", "score": "0.55122226", "text": "public Rectangle getBounds() { return snapToAwtRect(_shp.getBounds()).getBounds(); }", "title": "" }, { "docid": "ee9c2c792c094164057951816d1474ca", "score": "0.55013597", "text": "@Override\n\t\tpublic Rectangle getBounds() {\n\t\t\treturn new Rectangle((int) position.x, (int)position.y, 32,32); \n\t\t\t}", "title": "" }, { "docid": "c0200427feac14f30c3ad3eee5aa5ab2", "score": "0.5498763", "text": "public Rectangle getBounds();", "title": "" }, { "docid": "c0200427feac14f30c3ad3eee5aa5ab2", "score": "0.5498763", "text": "public Rectangle getBounds();", "title": "" }, { "docid": "127ef0feeae5ffe6bc05c3854430a972", "score": "0.5491168", "text": "public BoundingVolume getBounds() { return _bounds; }", "title": "" }, { "docid": "3eee08fdaa80711496c32ca160debf86", "score": "0.54767376", "text": "@Override\r\n\tpublic Rectangle getBounds() {\r\n\t\treturn new Rectangle((int) (x +13), (int) (y+93), 40, 14);\r\n\t}", "title": "" }, { "docid": "016adc130e7d22d53106c165496b520b", "score": "0.5472459", "text": "protected void recalculateBounds() {\n\t\tgetAllComponents().forEach(gc->{\n\t\t\tif (gc instanceof GridLayout ) {\n\t\t\t\t((GridLayout)gc).recalculateBounds();\n\t\t\t}\n\t\t});\n\t\tif (!overwriteMin) {\n\t\t\tfloat w = getCumulativeMinWidth();\n\t\t\tfloat h = getCumulativeMinHeight();\n\t\t\tsetMinSize(new PVector(w, h), false);\n\t\t}\n\n\t\tif (!overwriteMax) {\n\t\t\tfloat w = getCumulativeMaxWidth();\n\t\t\tfloat h = getCumulativeMaxHeight();\n\t\t\tsetMaxSize(new PVector(w, h), false);\n\t\t}\n\t}", "title": "" }, { "docid": "b0409843705902e961b7fd43d38328cc", "score": "0.5470292", "text": "public interface BoundsListener {\n\tpublic int boundsChanged(int left, int top, int right, int bottom);\n}", "title": "" }, { "docid": "4728cda745cd7f8de1d11d85c0da7b13", "score": "0.5461534", "text": "SettingsRectangle(){\n\n\n minimizedRectangle = new MinimizedSettingsRectangle(this);\n minimizedRectangle.setOnMouseClicked(TuringMachineDrawer.getInstance().mouseHandler);\n\n // Set the clip so that no inner shape may move outside the rectangle without disappearing.\n Rectangle clipRectangle = new Rectangle();\n this.setClip(clipRectangle);\n\n maximizedRectangle = new Rectangle();\n\n maximizedRectangle.xProperty().bindBidirectional(clipRectangle.xProperty());\n maximizedRectangle.yProperty().bindBidirectional(clipRectangle.yProperty());\n maximizedRectangle.widthProperty().bindBidirectional(clipRectangle.widthProperty());\n maximizedRectangle.heightProperty().bindBidirectional(clipRectangle.heightProperty());\n\n maximizedRectangle.setWidth(TuringMachineDrawer.SETTING_RECTANGLE_MINIMIZED_WIDTH);\n maximizedRectangle.setHeight(TuringMachineDrawer.SETTINGS_RECTANGLE_MINIMIZED_HEIGHT);\n maximizedRectangle.setFill(TuringMachineDrawer.STATE_SETTINGS_RECTANGLE_INNER_COLOR);\n maximizedRectangle.setStroke(TuringMachineDrawer.STATE_SETTINGS_RECTANGLE_OUTER_COLOR);\n\n timeline = new Timeline();\n\n maximized = false;\n\n this.getChildren().addAll(maximizedRectangle, minimizedRectangle);\n\n maximizedRectangle.setX(- maximizedRectangle.getWidth() / 2);\n maximizedRectangle.setY(- maximizedRectangle.getHeight() + TuringMachineDrawer.SETTINGS_RECTANGLE_MINIMIZED_HEIGHT / 2);\n }", "title": "" }, { "docid": "c3be0febcd8442cb0709f73e8504daa8", "score": "0.545868", "text": "public abstract Rectangle2D.Double getBounds();", "title": "" }, { "docid": "5daa7fdd1f37552986d0c0a738ead167", "score": "0.5458027", "text": "@Override\r\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(x,y, 20, 20);\r\n\t}", "title": "" }, { "docid": "f450ca253931533ada8584147929acbd", "score": "0.5456585", "text": "public double[][] bounds(){\r\n return bnds;\r\n }", "title": "" }, { "docid": "0b7b0d1d28e3d34874c63424934ae71f", "score": "0.54521596", "text": "public com.anychart.core.annotations.Label bounds(com.anychart.core.utils.Bounds bounds) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".bounds(%s);\", (bounds != null) ? bounds.getJsBase() : null));\n\n return this;\n }", "title": "" }, { "docid": "e1de73180d31ae691bfe0b5798506b25", "score": "0.5439235", "text": "public final native LatLngBounds getBounds() /*-{\n return this.getBounds();\n }-*/;", "title": "" }, { "docid": "5ed005ebc0d8cb1a1e77a0e8e56a1235", "score": "0.5430011", "text": "public void setBound(boolean paramBoolean)\n/* */ {\n/* 361 */ this.bound = paramBoolean;\n/* */ }", "title": "" }, { "docid": "c0a8248406910d00ea7210e835c95a96", "score": "0.5405511", "text": "@JsMethod\n\tpublic native LatLngBounds getBounds();", "title": "" }, { "docid": "5cee7312494be61b24f716df41e952c0", "score": "0.5403774", "text": "@Override\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(x,y,10,10);\n\t}", "title": "" }, { "docid": "5da91263b6464781352228b4c70ac46b", "score": "0.53982955", "text": "@Override\r\n\tpublic Rectangle getBounds() {\r\n\t\treturn new Rectangle((int)this.getX(),(int)this.getY(), 32, 32);\r\n\t}", "title": "" }, { "docid": "f21a55df1ae8518f2d73e5b5623eeb82", "score": "0.53652185", "text": "public void recalculateBounds() {\n\t\t\n\t\t// reset the bounds\n\t\tx = 0; y = 0; w = 0; h = 0;\n\t\t\n\t\t// and recalculate them from the vertices and edges\n\t\tIterator<Canvas2Vertex> vertIter = vertices.iterator();\n\t\twhile( vertIter.hasNext() ) updateBounds(vertIter.next().getObject());\n\t\t\n\t\tIterator<Canvas2Edge> edgeIter = edges.iterator();\n\t\twhile( edgeIter.hasNext() ) updateBounds(edgeIter.next().getObject());\n\t}", "title": "" }, { "docid": "4b3f555830d606b951ccf8cb66ca6ce6", "score": "0.5361321", "text": "private Rectangle getBounds(){\n return new Rectangle(getX(), getY(), getWidth(), getHeight());\n }", "title": "" }, { "docid": "a4da3d1f0d5b18c544247839c17ff2c4", "score": "0.5351763", "text": "private void initWorldSize(Range xRangeIn, Range yRangeIn) {\n xRange = xRangeIn;\n yRange = yRangeIn;\n }", "title": "" }, { "docid": "c34126d84ed47b1f812da73941626ded", "score": "0.5328906", "text": "public void setRect();", "title": "" }, { "docid": "9b0cb86dafa06f093ab4ab7825613bff", "score": "0.5328186", "text": "@Override\n\tpublic Rectangle2D getBounds() {\n\t\treturn null; //null bounds, infinite\n\t}", "title": "" }, { "docid": "4855a235447944b895923db07088d549", "score": "0.5328126", "text": "public Rectangle getBounds()\r\n/* 225: */ {\r\n/* 226: 463 */ return new Rectangle(this.bounds);\r\n/* 227: */ }", "title": "" }, { "docid": "f4613d7832d85fca925edb193b9de517", "score": "0.53263724", "text": "public Rectangle getBounds() {\n\t\t\r\n\t\treturn new Rectangle((int)x, (int)y, 32, 32);\r\n\t}", "title": "" }, { "docid": "810be063f80039b51a877adee64c9665", "score": "0.5323154", "text": "protected void updateBounds() {\n if (!checkSize) {\n return;\n }\n Rectangle bbox = getBounds();\n Dimension minSize = getMinimumSize();\n bbox.width = Math.max(bbox.width, minSize.width);\n bbox.height = Math.max(bbox.height, minSize.height);\n setBounds(bbox.x, bbox.y, bbox.width, bbox.height);\n }", "title": "" }, { "docid": "2eda11ca0eda8e9f50606c199da03d00", "score": "0.5313979", "text": "void setLowerBound(double lowerBound);", "title": "" }, { "docid": "383aa56eced63faa94b036b14a9d2aa9", "score": "0.53063107", "text": "public void getBounds(final BoundsUserSpace bounds) {\n model.getBounds(bounds);\n }", "title": "" }, { "docid": "ca9240a8dcf40bb16960da109cd9b838", "score": "0.53049135", "text": "@Override\n\t\t\tpublic Rectangle getBounds() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "4ef3d2484e12c5926704090b8c97e9b7", "score": "0.52935845", "text": "public Rectangle getBounds() {\n return new Rectangle((int)this.x, (int)this.y, 52, 52);\n }", "title": "" }, { "docid": "81d5ad488ead496cbb677909abd6b7f1", "score": "0.5285974", "text": "public interface BoundsAdapter<T> {\n }", "title": "" }, { "docid": "46fe1ac857d5a30c6e0eb75c921235af", "score": "0.52848154", "text": "public abstract Bounds3D getBounds();", "title": "" }, { "docid": "a28de393bee5aebf785ee987e4fa918e", "score": "0.52846915", "text": "public void setMakeBounds(Rectangle2D makeBounds) {\n this.makeBounds = makeBounds;\n }", "title": "" } ]
2304d31b6824f864f7beff687e9371a5
optional bool result = 1;
[ { "docid": "7f58f87733e9e42f7d160e3e56b1b60b", "score": "0.58747786", "text": "public Builder setResult(boolean value) {\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "b740a01ab92b1c019157e369aee13a2c", "score": "0.6874348", "text": "boolean getResult();", "title": "" }, { "docid": "1eb73df3b8dda47fd24f8431d72b4eb0", "score": "0.6723591", "text": "public boolean getResult() {\n/* 266 */ return this._result;\n/* */ }", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "3211affff6d724ae6091dc03e5ac9de9", "score": "0.65039426", "text": "boolean hasResult();", "title": "" }, { "docid": "55882b7a48f393af809567ddc004709c", "score": "0.633674", "text": "public boolean getResult()\n {\n return this.result;\n }", "title": "" }, { "docid": "42f2f87542b0e462c19b9793613a6c24", "score": "0.6313875", "text": "void isReturnedTo(Boolean v);", "title": "" }, { "docid": "ca8cc730a42fb68225d16e773ff56db2", "score": "0.6298416", "text": "public boolean a(){ return false; }", "title": "" }, { "docid": "8215a5bb1e568228649b9367d96c7d2b", "score": "0.6278673", "text": "boolean noVal();", "title": "" }, { "docid": "31fc671b75bc49b7aaf878b92ef9b123", "score": "0.6275511", "text": "public BooleanResult() {\r\n setAnswer(Boolean.FALSE);\r\n setLog(new arf.Log());\r\n }", "title": "" }, { "docid": "38b563e895140e7362c9a244626f6249", "score": "0.62694377", "text": "public abstract boolean boolValue();", "title": "" }, { "docid": "9496b42412885a3a5222272cdcef13c3", "score": "0.6261427", "text": "boolean hasRet();", "title": "" }, { "docid": "b0ed8129a1602b7233483a7cbef2b327", "score": "0.62442577", "text": "abstract boolean hasValueResult();", "title": "" }, { "docid": "f21b8231a75f75c5a5f7f187601a0751", "score": "0.6214289", "text": "public boolean Int(){\n return false;\n }", "title": "" }, { "docid": "52e16e67c851dee7355fe22349ef8bbb", "score": "0.6213946", "text": "void mo47224a(boolean z);", "title": "" }, { "docid": "bfc5421cbaa27815f6b1b3c3b0d69f68", "score": "0.6203422", "text": "public boolean answer();", "title": "" }, { "docid": "04f7bfd719213ae00c99294c38cf6806", "score": "0.6198142", "text": "public boolean bool(){\n return false;\n }", "title": "" }, { "docid": "23c8865ca59d6cf7020edd176eee5e22", "score": "0.6185955", "text": "Value of( boolean value);", "title": "" }, { "docid": "30fc605395931bca42f780003c3b836c", "score": "0.61795354", "text": "public abstract boolean booleanValue();", "title": "" }, { "docid": "a0547bc356631d61f6c5cb5bd4f2ff03", "score": "0.6172111", "text": "void method_217(boolean var1);", "title": "" }, { "docid": "0a8b483c722a2fb050c316b62dc665ae", "score": "0.61521226", "text": "void mo733a(boolean z);", "title": "" }, { "docid": "eca752e553144fc09e804526e579cbe1", "score": "0.61466974", "text": "boolean hasValue2();", "title": "" }, { "docid": "78be462534888f4389b36ab27b98e076", "score": "0.614568", "text": "public boolean var(){\n return false;\n }", "title": "" }, { "docid": "33e32b358d4513ff696bb0f1c8879faf", "score": "0.6131798", "text": "public boolean hasResult() {\n return fieldSetFlags()[9];\n }", "title": "" }, { "docid": "0c77805bcb7006752903e1abea34bac9", "score": "0.6102496", "text": "boolean isOptional();", "title": "" }, { "docid": "0c77805bcb7006752903e1abea34bac9", "score": "0.6102496", "text": "boolean isOptional();", "title": "" }, { "docid": "a36ecd8960437f2a4230f2fdfa697966", "score": "0.6096561", "text": "boolean getTwoPCResult();", "title": "" }, { "docid": "1b88f608914d067d4fdd07f8aeb495a0", "score": "0.6083077", "text": "void mo5689a(boolean z);", "title": "" }, { "docid": "00080726525af2b448325b0963bf2428", "score": "0.6081021", "text": "boolean mo16515b(boolean z);", "title": "" }, { "docid": "198fe68191877345d33df9f2abb5680f", "score": "0.6079882", "text": "Bool createBool();", "title": "" }, { "docid": "fbd7cb923bcacd7c64d846b58bd6a297", "score": "0.6060601", "text": "public abstract void mo25862cq(boolean z);", "title": "" }, { "docid": "7bc8458a470264a469a8e94ca70e4fde", "score": "0.60591257", "text": "boolean hasValue1();", "title": "" }, { "docid": "9f994c73f41ccb3fbc0a19a204ee0ece", "score": "0.60581326", "text": "boolean hasValue3();", "title": "" }, { "docid": "557f5bc08fc93b44f4c88de2bab39cf5", "score": "0.60550594", "text": "public boolean getReturnVal(){\n return returnVal;\n }", "title": "" }, { "docid": "fa9974cb9634c985d6f30e6ba9d73d8e", "score": "0.60426676", "text": "public abstract boolean isTrue();", "title": "" }, { "docid": "305a57e48d0a09fe824ea93f2b810c19", "score": "0.6030243", "text": "public boolean a(boolean paramBoolean)\n/* */ {\n/* 141 */ return false;\n/* */ }", "title": "" }, { "docid": "dbe3f5637d7fada4c562f513c7ecc428", "score": "0.6029476", "text": "void mo26400my(boolean z);", "title": "" }, { "docid": "7dca1aaecb2fdb6754b39771253f19db", "score": "0.60240954", "text": "public abstract boolean expectValue();", "title": "" }, { "docid": "8bd246036a8b109585af102d4d92c390", "score": "0.60119516", "text": "boolean mo7902a();", "title": "" }, { "docid": "1da49af2cf07f5181bd5d32386f16874", "score": "0.600588", "text": "private int check() {\n return 0;\n }", "title": "" }, { "docid": "cb6c733db5d95c8f1aaf9c7e5414caf9", "score": "0.59673315", "text": "public boolean If(){\n\n return false;\n }", "title": "" }, { "docid": "e1e20179a31290394d4ac73ca0f04aef", "score": "0.59497005", "text": "void mo11752a(boolean z);", "title": "" }, { "docid": "9047419c0cf302aae23fa19059c24994", "score": "0.59496456", "text": "public boolean test();", "title": "" }, { "docid": "656bc83eee0faa987672cc68857d6371", "score": "0.5937631", "text": "void mo17644a(boolean z);", "title": "" }, { "docid": "bc6435b417e2e6ee7f1836faeb826e6f", "score": "0.5936505", "text": "void mo1114a(boolean z);", "title": "" }, { "docid": "7d2fd3c1fef7b97e50855cee1d8169ce", "score": "0.59052974", "text": "private boolean returnSomthing() {\r\n\t\tboolean result = false; //stating the the boolean is false, \r\n\t\t\t\t\t\t\t\t//boolean = variable, result = variable name, =false is what the variable equals to\r\n\t\treturn result; \t\t\t//returning the variable name result\r\n\t}", "title": "" }, { "docid": "ee85e16eaa39171d5c97d6ae4cc200aa", "score": "0.5881667", "text": "public boolean eval(){\r\n return val;\r\n }", "title": "" }, { "docid": "88dc6e7170f20711bfcfdc3c9ea9063d", "score": "0.5869022", "text": "public boolean isSetResult() {\r\n return this.result != null;\r\n }", "title": "" }, { "docid": "b29d9ca18c99bf8dea8ad342edcc2db9", "score": "0.58653945", "text": "boolean testNonNull();", "title": "" }, { "docid": "08e9265171c842af330d7c4cea335935", "score": "0.58597344", "text": "boolean getPassed();", "title": "" }, { "docid": "1d2efc9e01101632b61ed6069f8bb275", "score": "0.5853732", "text": "public abstract boolean nextBool();", "title": "" }, { "docid": "892a89e680f0a7479107ddc93faa0ce9", "score": "0.5851937", "text": "boolean mo11666a();", "title": "" }, { "docid": "83830c84f67932b6bfc73e85b2437164", "score": "0.5850591", "text": "public abstract void mo732b(boolean z);", "title": "" }, { "docid": "9bbb81377969c933560805bae6fca9d3", "score": "0.58218026", "text": "public void getResponse(boolean result);", "title": "" }, { "docid": "9eb31e41f1e140fcee5e50749939ba63", "score": "0.5808871", "text": "boolean isSetIVANoRet();", "title": "" }, { "docid": "ae66baad897dc25dda6793d744de8ae0", "score": "0.5806385", "text": "boolean isProvable();", "title": "" }, { "docid": "126a2e769db5df9f29f528cc61a8a955", "score": "0.57922345", "text": "Boolean getReturnable();", "title": "" }, { "docid": "80e9c3ce6c1db057285def6e5b2650b0", "score": "0.57865137", "text": "public void mo1333M(boolean z) {\n }", "title": "" }, { "docid": "d3f47f85b94ef1bed64b3296fb4a296b", "score": "0.5772221", "text": "boolean flag(int flag);", "title": "" }, { "docid": "a14b97ee6792ac5537db041a053c71a6", "score": "0.57521635", "text": "boolean mo8108a();", "title": "" }, { "docid": "67efee49455a2980985e2b160bedbb8e", "score": "0.57503474", "text": "@NotNull\n @Support\n Field<T> otherwise(T result);", "title": "" }, { "docid": "8f3dec598ba22509dddd301a083ebecc", "score": "0.57463455", "text": "public abstract boolean isSuccess();", "title": "" }, { "docid": "a8588c05e271d20c2d9ffd9874d099a7", "score": "0.57418364", "text": "boolean isVal();", "title": "" }, { "docid": "a8588c05e271d20c2d9ffd9874d099a7", "score": "0.57418364", "text": "boolean isVal();", "title": "" }, { "docid": "7955ffdffc5f707f8f298dc75ee13c06", "score": "0.573862", "text": "public boolean isSetResult() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RESULT_ISSET_ID);\n }", "title": "" }, { "docid": "87b77a06bc443a60fb9b1479b65d276e", "score": "0.5729993", "text": "void mo97267a(boolean z);", "title": "" }, { "docid": "1af1da2ad1dd8aa6c8f5f6a38c4bc84b", "score": "0.57298654", "text": "public boolean a() {\n return false;\n }", "title": "" }, { "docid": "6123f11ec429d2f6a1c0e4ba852649a2", "score": "0.57293075", "text": "com.google.ortools.sat.BoolArgumentProto getAtMostOne();", "title": "" }, { "docid": "7e2babbb8ecd5556b5617a441091850c", "score": "0.57286483", "text": "T ok();", "title": "" }, { "docid": "0df06f0653021be1cbabb8045a39cb9f", "score": "0.57259315", "text": "public void mo1332L(boolean z) {\n }", "title": "" }, { "docid": "f58b508052204d16f0b0c9aa34f6aa1e", "score": "0.5719404", "text": "@NotNull\n @Support\n Field<T> else_(T result);", "title": "" }, { "docid": "83d6039138e72bc150779d952c6c75db", "score": "0.5717516", "text": "Itypes bool_or(Booleans b);", "title": "" }, { "docid": "e39ae62b0a488884765a4f0687895643", "score": "0.5703308", "text": "boolean getBoolValue();", "title": "" }, { "docid": "e39ae62b0a488884765a4f0687895643", "score": "0.5703308", "text": "boolean getBoolValue();", "title": "" }, { "docid": "0109b470adbf218782495abefd2eaac0", "score": "0.5703011", "text": "public abstract boolean test(boolean zero, boolean carry);", "title": "" }, { "docid": "4c7a985f78a5af478969b216ed518f3f", "score": "0.5700804", "text": "boolean isExpected();", "title": "" }, { "docid": "b3c6b0026566eef254b8e3144c44e473", "score": "0.5692885", "text": "public abstract boolean isOK();", "title": "" } ]
5f5dada17020c8c35d21a53c26ccac3f
optional .CHIDMessageToRemote.DeviceGetFeatureReport device_get_feature_report = 7;
[ { "docid": "95ef705aee1b55e88339f064e1f9b6c8", "score": "0.7353936", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.Builder getDeviceGetFeatureReportBuilder() {\n return getDeviceGetFeatureReportFieldBuilder().getBuilder();\n }", "title": "" } ]
[ { "docid": "ca81764061234500c428836dac10db9a", "score": "0.88375795", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport getDeviceGetFeatureReport();", "title": "" }, { "docid": "ec47c14ae97308eb2985312da2694794", "score": "0.84506756", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReportOrBuilder getDeviceGetFeatureReportOrBuilder();", "title": "" }, { "docid": "b6cdd0c70654de7e9797d9395b0a069c", "score": "0.8427624", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport getDeviceSendFeatureReport();", "title": "" }, { "docid": "ad90fe4e4da840fce9339857b00c8139", "score": "0.79169506", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReportOrBuilder getDeviceGetFeatureReportOrBuilder() {\n if (commandCase_ == 7) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance();\n }", "title": "" }, { "docid": "f1acea966d7b3e31babb71936f1f0738", "score": "0.7909919", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReportOrBuilder getDeviceGetFeatureReportOrBuilder() {\n if ((commandCase_ == 7) && (deviceGetFeatureReportBuilder_ != null)) {\n return deviceGetFeatureReportBuilder_.getMessageOrBuilder();\n } else {\n if (commandCase_ == 7) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "210edc88e8358c5c0b9f1542509ba40f", "score": "0.7731235", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport getDeviceGetFeatureReport() {\n if (deviceGetFeatureReportBuilder_ == null) {\n if (commandCase_ == 7) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance();\n } else {\n if (commandCase_ == 7) {\n return deviceGetFeatureReportBuilder_.getMessage();\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "62787f0600ba078bd2bae4892c80c671", "score": "0.7655888", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport getDeviceGetFeatureReport() {\n if (commandCase_ == 7) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance();\n }", "title": "" }, { "docid": "974ecae0e0938e0731028c3e33bb0673", "score": "0.7383385", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReportOrBuilder getDeviceSendFeatureReportOrBuilder();", "title": "" }, { "docid": "59acf85550196d1fc6874cc3ba99b926", "score": "0.7326665", "text": "public Builder setDeviceGetFeatureReport(SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport value) {\n if (deviceGetFeatureReportBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n command_ = value;\n onChanged();\n } else {\n deviceGetFeatureReportBuilder_.setMessage(value);\n }\n commandCase_ = 7;\n return this;\n }", "title": "" }, { "docid": "f54baffd543fbf7d62aa8182bcb4109f", "score": "0.73164654", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport getDeviceRequestFullReport();", "title": "" }, { "docid": "9bc4731807553d9ee1487179046ae939", "score": "0.71069175", "text": "public boolean hasDeviceGetFeatureReport() {\n return commandCase_ == 7;\n }", "title": "" }, { "docid": "1cc917d40dd2e35d07ec7964550e89dc", "score": "0.70977575", "text": "public boolean hasDeviceGetFeatureReport() {\n return commandCase_ == 7;\n }", "title": "" }, { "docid": "5131be9ed4e81a29205809febe513e48", "score": "0.7073022", "text": "boolean hasDeviceGetFeatureReport();", "title": "" }, { "docid": "1d51d14d177a604a2ce17cc96cf09c39", "score": "0.6906148", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReportOrBuilder getDeviceSendFeatureReportOrBuilder() {\n if (commandCase_ == 6) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance();\n }", "title": "" }, { "docid": "c48af8329ca31e43c0df13f9cd4e49d2", "score": "0.6897859", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReportOrBuilder getDeviceSendFeatureReportOrBuilder() {\n if ((commandCase_ == 6) && (deviceSendFeatureReportBuilder_ != null)) {\n return deviceSendFeatureReportBuilder_.getMessageOrBuilder();\n } else {\n if (commandCase_ == 6) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "ff5ecf5ad474d7796108ea91ab37564d", "score": "0.68896985", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport getDeviceSendFeatureReport() {\n if (deviceSendFeatureReportBuilder_ == null) {\n if (commandCase_ == 6) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance();\n } else {\n if (commandCase_ == 6) {\n return deviceSendFeatureReportBuilder_.getMessage();\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "4c2b2157f8a669eda7865839a7cdd1e5", "score": "0.6729481", "text": "boolean hasDeviceSendFeatureReport();", "title": "" }, { "docid": "e1804046e80000b32d0aa7d1f665bceb", "score": "0.671898", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport getDeviceSendFeatureReport() {\n if (commandCase_ == 6) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance();\n }", "title": "" }, { "docid": "91d97f471ed1f046d4ff4e5069c7848b", "score": "0.6674205", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.Builder getDeviceSendFeatureReportBuilder() {\n return getDeviceSendFeatureReportFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "e4a7ea40cd2a664481d8acb4bc23e6a9", "score": "0.66621375", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport, SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.Builder, SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReportOrBuilder> \n getDeviceGetFeatureReportFieldBuilder() {\n if (deviceGetFeatureReportBuilder_ == null) {\n if (!(commandCase_ == 7)) {\n command_ = SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance();\n }\n deviceGetFeatureReportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport, SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.Builder, SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReportOrBuilder>(\n (SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport) command_,\n getParentForChildren(),\n isClean());\n command_ = null;\n }\n commandCase_ = 7;\n onChanged();;\n return deviceGetFeatureReportBuilder_;\n }", "title": "" }, { "docid": "8063f9762f1770418751db06dbd406aa", "score": "0.6623754", "text": "public Builder mergeDeviceGetFeatureReport(SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport value) {\n if (deviceGetFeatureReportBuilder_ == null) {\n if (commandCase_ == 7 &&\n command_ != SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.getDefaultInstance()) {\n command_ = SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.newBuilder((SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport) command_)\n .mergeFrom(value).buildPartial();\n } else {\n command_ = value;\n }\n onChanged();\n } else {\n if (commandCase_ == 7) {\n deviceGetFeatureReportBuilder_.mergeFrom(value);\n }\n deviceGetFeatureReportBuilder_.setMessage(value);\n }\n commandCase_ = 7;\n return this;\n }", "title": "" }, { "docid": "cbb1b85512a7986ee40e214bb169740d", "score": "0.65478134", "text": "SteammessagesHiddevices.CHIDDeviceInfo getInfo();", "title": "" }, { "docid": "5822ea2a7b62019d410c8ebdf919085b", "score": "0.64960736", "text": "SteammessagesHiddevices.CHIDMessageFromRemote.DeviceInputReports getReports();", "title": "" }, { "docid": "0b8940aa6107fb538b36c074a516ee43", "score": "0.6495541", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceOpen getDeviceOpen();", "title": "" }, { "docid": "8f5c65e8ff64c4bf82dda32fd2ab11cd", "score": "0.6489923", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceStartInputReports getDeviceStartInputReports();", "title": "" }, { "docid": "b48bf90837c070b2efd099d726d49538", "score": "0.64775956", "text": "public Builder setDeviceGetFeatureReport(\n SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetFeatureReport.Builder builderForValue) {\n if (deviceGetFeatureReportBuilder_ == null) {\n command_ = builderForValue.build();\n onChanged();\n } else {\n deviceGetFeatureReportBuilder_.setMessage(builderForValue.build());\n }\n commandCase_ = 7;\n return this;\n }", "title": "" }, { "docid": "3ee70dddf7ab016275e26b2901c7382a", "score": "0.6468489", "text": "public boolean hasDeviceSendFeatureReport() {\n return commandCase_ == 6;\n }", "title": "" }, { "docid": "0d2e91bb2e64cef73dd8610b46c3344f", "score": "0.6460764", "text": "public boolean hasDeviceSendFeatureReport() {\n return commandCase_ == 6;\n }", "title": "" }, { "docid": "336a031255a50a971cf2ba9d3e04554b", "score": "0.63898635", "text": "private DeviceGetFeatureReport(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "11d1dc13769ee577a7f3bc9965ae4831", "score": "0.63835424", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceRead getDeviceRead();", "title": "" }, { "docid": "21c8a1ab285dca29999a8dba84e0f93b", "score": "0.62293833", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetProductString getDeviceGetProductString();", "title": "" }, { "docid": "93b8d8a7bf3d928fbe84db502562b3e4", "score": "0.6088834", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReportOrBuilder getDeviceRequestFullReportOrBuilder();", "title": "" }, { "docid": "25d8023bd2cef25c75a81cae5cca4b7a", "score": "0.60590297", "text": "public Builder setDeviceSendFeatureReport(SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport value) {\n if (deviceSendFeatureReportBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n command_ = value;\n onChanged();\n } else {\n deviceSendFeatureReportBuilder_.setMessage(value);\n }\n commandCase_ = 6;\n return this;\n }", "title": "" }, { "docid": "471a2fed3e8853e91924d5e1ae26d961", "score": "0.6013719", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport, SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.Builder, SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReportOrBuilder> \n getDeviceSendFeatureReportFieldBuilder() {\n if (deviceSendFeatureReportBuilder_ == null) {\n if (!(commandCase_ == 6)) {\n command_ = SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance();\n }\n deviceSendFeatureReportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport, SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.Builder, SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReportOrBuilder>(\n (SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport) command_,\n getParentForChildren(),\n isClean());\n command_ = null;\n }\n commandCase_ = 6;\n onChanged();;\n return deviceSendFeatureReportBuilder_;\n }", "title": "" }, { "docid": "c18c1cfc43c51803870cfe30485921d5", "score": "0.59760696", "text": "private BluetoothGattService hidService(boolean inputReport, boolean outputReport, boolean featureReport) {\n BluetoothGattService bluetoothGattService = new BluetoothGattService(SERVICE_HID_OVER_GATT_UUID, BluetoothGattService.SERVICE_TYPE_PRIMARY);\n do {\n } while (!bluetoothGattService.addCharacteristic(new BluetoothGattCharacteristic(HID_INFO_UUID, PROPERTY_READ, PERMISSION_READ_ENCRYPTED)));\n\n do {\n } while (!bluetoothGattService.addCharacteristic(new BluetoothGattCharacteristic(REPORT_MAP_UUID, PROPERTY_READ, PERMISSION_READ_ENCRYPTED)));\n\n BluetoothGattCharacteristic bluetoothGattCharacteristic = new BluetoothGattCharacteristic(PROTOCOL_MODE_UUID, PROPERTY_READ | PROPERTY_WRITE_NO_RESPONSE, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED);\n bluetoothGattCharacteristic.setWriteType(WRITE_TYPE_NO_RESPONSE);\n do {\n } while (!bluetoothGattService.addCharacteristic(bluetoothGattCharacteristic));\n\n bluetoothGattCharacteristic = new BluetoothGattCharacteristic(HID_CONTROL_POINT_UUID, PROPERTY_WRITE_NO_RESPONSE, PERMISSION_WRITE_ENCRYPTED);\n bluetoothGattCharacteristic.setWriteType(WRITE_TYPE_NO_RESPONSE);\n do {\n } while (!bluetoothGattService.addCharacteristic(bluetoothGattCharacteristic));\n\n if (inputReport) {\n bluetoothGattCharacteristic = new BluetoothGattCharacteristic(REPORT_UUID, PROPERTY_READ | PROPERTY_WRITE | PROPERTY_NOTIFY, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED);\n BluetoothGattDescriptor bluetoothGattDescriptor = new BluetoothGattDescriptor(DESCRIPTOR_CHARACTERISTIC_CONFIG_UUID, BluetoothGattDescriptor.PERMISSION_READ_ENCRYPTED | BluetoothGattDescriptor.PERMISSION_WRITE_ENCRYPTED);\n bluetoothGattDescriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);\n bluetoothGattCharacteristic.addDescriptor(bluetoothGattDescriptor);\n bluetoothGattCharacteristic.addDescriptor(new BluetoothGattDescriptor(DESCRIPTOR_REPORT_REFERENCE_UUID, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED));\n do {\n } while (!bluetoothGattService.addCharacteristic(bluetoothGattCharacteristic));\n this.mInputReportCharacteristic = bluetoothGattCharacteristic;\n }\n if (outputReport) {\n bluetoothGattCharacteristic = new BluetoothGattCharacteristic(REPORT_UUID, PROPERTY_READ | PROPERTY_WRITE_NO_RESPONSE | PROPERTY_WRITE, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED);\n bluetoothGattCharacteristic.setWriteType(WRITE_TYPE_NO_RESPONSE);\n bluetoothGattCharacteristic.addDescriptor(new BluetoothGattDescriptor(DESCRIPTOR_REPORT_REFERENCE_UUID, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED));\n do {\n } while (!bluetoothGattService.addCharacteristic(bluetoothGattCharacteristic));\n }\n if (featureReport) {\n bluetoothGattCharacteristic = new BluetoothGattCharacteristic(REPORT_UUID, PROPERTY_READ | PROPERTY_WRITE, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED);\n bluetoothGattCharacteristic.addDescriptor(new BluetoothGattDescriptor(DESCRIPTOR_REPORT_REFERENCE_UUID, PERMISSION_WRITE_ENCRYPTED | PERMISSION_READ_ENCRYPTED));\n do {\n } while (!bluetoothGattService.addCharacteristic(bluetoothGattCharacteristic));\n }\n\n return bluetoothGattService;\n }", "title": "" }, { "docid": "13456f119efa89c7a228d74903794582", "score": "0.5939363", "text": "SteammessagesHiddevices.CHIDDeviceInfo getDevices(int index);", "title": "" }, { "docid": "cf8f9312a70a3ee7de27d07e7706cb02", "score": "0.5932603", "text": "SteammessagesHiddevices.CHIDMessageFromRemote.DeviceInputReports.DeviceInputReport getDeviceReports(int index);", "title": "" }, { "docid": "44fc13540d641d30c2cdf56b011b22be", "score": "0.58853656", "text": "SteammessagesHiddevices.CHIDDeviceInfoOrBuilder getInfoOrBuilder();", "title": "" }, { "docid": "08ad281ab4bb0beae95d0fad4f3ef1d6", "score": "0.5863022", "text": "public Builder clearDeviceGetFeatureReport() {\n if (deviceGetFeatureReportBuilder_ == null) {\n if (commandCase_ == 7) {\n commandCase_ = 0;\n command_ = null;\n onChanged();\n }\n } else {\n if (commandCase_ == 7) {\n commandCase_ = 0;\n command_ = null;\n }\n deviceGetFeatureReportBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "2d1267c42fab9b4e6c8211c94cf9bbdd", "score": "0.58575785", "text": "java.util.List<SteammessagesHiddevices.CHIDDeviceInfo> \n getDevicesList();", "title": "" }, { "docid": "4e00ddb5d19a6cbd28110aaf759a0de5", "score": "0.58400357", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceWrite getDeviceWrite();", "title": "" }, { "docid": "e5942ddd26659c3c3432996e12d02de9", "score": "0.5800292", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceReadOrBuilder getDeviceReadOrBuilder();", "title": "" }, { "docid": "9c5f9c4eb48fcf8c2cbb409b95a4af9e", "score": "0.5772528", "text": "SteammessagesHiddevices.CHIDMessageFromRemote.RequestResponse getResponse();", "title": "" }, { "docid": "83e8b8864a3c7ef0949aefb7007dc51f", "score": "0.57594156", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceOpenOrBuilder getDeviceOpenOrBuilder();", "title": "" }, { "docid": "75ee19fe185e40a8902c5aa3be695298", "score": "0.5751433", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceGetVendorString getDeviceGetVendorString();", "title": "" }, { "docid": "05061473633289cdde795d174072e966", "score": "0.5718903", "text": "SteammessagesHiddevices.CHIDMessageFromRemote.CloseDevice getCloseDevice();", "title": "" }, { "docid": "ddf4b4e75bd436d0619931edfc82bfbe", "score": "0.56993794", "text": "boolean hasDeviceRequestFullReport();", "title": "" }, { "docid": "50e3116bb4b442ae4146f7b13df5388b", "score": "0.56958693", "text": "java.lang.String getFeature();", "title": "" }, { "docid": "6d4a404768083df0400797acfddc7172", "score": "0.5665374", "text": "java.util.List<SteammessagesHiddevices.CHIDMessageFromRemote.DeviceInputReports.DeviceInputReport> \n getDeviceReportsList();", "title": "" }, { "docid": "fd581ca04e583bc4c29fc423d2ad64b4", "score": "0.5640363", "text": "public String getGFFFeature() { return GFFFeature; }", "title": "" }, { "docid": "5e98065b937e01a2e8da7795c0038e55", "score": "0.56320363", "text": "Pointer rs2_get_device_info(Realsense2Library.rs2_device device, int info, PointerByReference error);", "title": "" }, { "docid": "e05227c5378615d3d57cdc87a5d3c172", "score": "0.5606658", "text": "private DeviceSendFeatureReport(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "2f2778ed3a16acef564e6395bd5913bb", "score": "0.56006545", "text": "SteammessagesHiddevices.CHIDMessageFromRemote.UpdateDeviceList getUpdateDeviceList();", "title": "" }, { "docid": "01567d28575390d56f7884e145754442", "score": "0.5590681", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReportOrBuilder getDeviceRequestFullReportOrBuilder() {\n if ((commandCase_ == 12) && (deviceRequestFullReportBuilder_ != null)) {\n return deviceRequestFullReportBuilder_.getMessageOrBuilder();\n } else {\n if (commandCase_ == 12) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "9f1f9b3174eebbb7bec011aade979312", "score": "0.5589479", "text": "SteammessagesHiddevices.CHIDMessageFromRemote.DeviceInputReportsOrBuilder getReportsOrBuilder();", "title": "" }, { "docid": "029056ec6a0df78816d7380b849fac96", "score": "0.5586981", "text": "public Builder mergeDeviceSendFeatureReport(SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport value) {\n if (deviceSendFeatureReportBuilder_ == null) {\n if (commandCase_ == 6 &&\n command_ != SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.getDefaultInstance()) {\n command_ = SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.newBuilder((SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport) command_)\n .mergeFrom(value).buildPartial();\n } else {\n command_ = value;\n }\n onChanged();\n } else {\n if (commandCase_ == 6) {\n deviceSendFeatureReportBuilder_.mergeFrom(value);\n }\n deviceSendFeatureReportBuilder_.setMessage(value);\n }\n commandCase_ = 6;\n return this;\n }", "title": "" }, { "docid": "05343640578103d757c8d79e1afc3572", "score": "0.5583481", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport getDeviceRequestFullReport() {\n if (deviceRequestFullReportBuilder_ == null) {\n if (commandCase_ == 12) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport.getDefaultInstance();\n } else {\n if (commandCase_ == 12) {\n return deviceRequestFullReportBuilder_.getMessage();\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "011d76887a0f1dd8c2efa1bc41e5b68e", "score": "0.5569721", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReportOrBuilder getDeviceRequestFullReportOrBuilder() {\n if (commandCase_ == 12) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport.getDefaultInstance();\n }", "title": "" }, { "docid": "7401fc7a8e4ec0eafbba90bcf3534fa3", "score": "0.55243033", "text": "@Override\r\n\tpublic boolean readDeviceInfo() {\n\t\tintoSecondLevel(5);\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "fb1a0df2e2fe9617fe9ba593a80a53d3", "score": "0.5519342", "text": "SteammessagesHiddevices.CHIDMessageToRemote.DeviceClose getDeviceClose();", "title": "" }, { "docid": "f1a5e1dec64a33b499df303c2066726b", "score": "0.5500478", "text": "protected String getFeature()\r\n {\r\n return m_feature;\r\n }", "title": "" }, { "docid": "a13869f4cdafd2d7654dae946590741b", "score": "0.54991025", "text": "NetconfDeviceInfo getDeviceInfo();", "title": "" }, { "docid": "9f2732cd42bd06263558ef3611d614c7", "score": "0.5479208", "text": "SteammessagesHiddevices.CHIDDeviceInputReport getReports(int index);", "title": "" }, { "docid": "4d3deaa6f40227735cedd559a30fded6", "score": "0.545888", "text": "SteammessagesHiddevices.EHIDDeviceLocation getLocation();", "title": "" }, { "docid": "f48df3b4b80eaf69e832861ef8cf8bb4", "score": "0.54526544", "text": "java.util.List<SteammessagesHiddevices.CHIDDeviceInputReport> \n getReportsList();", "title": "" }, { "docid": "214fb75d6d073e8b802bc285d88d0728", "score": "0.5446752", "text": "java.util.List<? extends SteammessagesHiddevices.CHIDDeviceInfoOrBuilder> \n getDevicesOrBuilderList();", "title": "" }, { "docid": "6289679d934e5104b428cfa7b7206781", "score": "0.54360855", "text": "public String method_6613() {\r\n String[] var10000 = field_6522;\r\n return String.format(\"ID %02d - %s, ver %d. Features enabled: %b\", new Object[]{Integer.valueOf(class_1303.method_6876(this.field_6521).method_5932()), class_1303.method_6876(this.field_6521).method_5922(), Integer.valueOf(class_1303.method_6876(this.field_6521).method_5925()), Boolean.valueOf(class_1303.method_6877(this.field_6521))});\r\n }", "title": "" }, { "docid": "b76785a4b75c55612db9feda08e1fd62", "score": "0.5414003", "text": "com.google.protobuf.ByteString getMSG408026();", "title": "" }, { "docid": "6fbe5b2ad7b72e3b7b3ceb41fe234166", "score": "0.5396591", "text": "public void onGetDeviceInfoResponse(Bundle response);", "title": "" }, { "docid": "9c670d9387d59033c80cb0544f6d8698", "score": "0.5395395", "text": "BleDeviceSimple getDevice();", "title": "" }, { "docid": "fd49413306c4ab8d8206c24a8fc9b10e", "score": "0.5390209", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport getDeviceRequestFullReport() {\n if (commandCase_ == 12) {\n return (SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport) command_;\n }\n return SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport.getDefaultInstance();\n }", "title": "" }, { "docid": "22d2bbf7f0431ce023f1322cc7d7ac38", "score": "0.5388359", "text": "public Bundle getCurrentAgFeatures(BluetoothDevice device) {\n final IBluetoothHeadsetClient service =\n getService();\n if (service != null && isEnabled()) {\n try {\n return service.getCurrentAgFeatures(device);\n } catch (RemoteException e) {\n Log.e(TAG, e.toString());\n }\n } else {\n Log.w(TAG, \"Proxy not attached to service\");\n if (DBG) Log.d(TAG, Log.getStackTraceString(new Throwable()));\n }\n return null;\n }", "title": "" }, { "docid": "dfbdb7b0f4d403f6219229c58ef4cb2c", "score": "0.5386575", "text": "com.google.protobuf.ByteString getMSG408006();", "title": "" }, { "docid": "c52d4ddd63cf7b63341f2fa7fe38d2e2", "score": "0.53834957", "text": "public Builder setDeviceSendFeatureReport(\n SteammessagesHiddevices.CHIDMessageToRemote.DeviceSendFeatureReport.Builder builderForValue) {\n if (deviceSendFeatureReportBuilder_ == null) {\n command_ = builderForValue.build();\n onChanged();\n } else {\n deviceSendFeatureReportBuilder_.setMessage(builderForValue.build());\n }\n commandCase_ = 6;\n return this;\n }", "title": "" }, { "docid": "eb1940ddeec9f4f3e2503322b95be68f", "score": "0.5378781", "text": "public SteammessagesHiddevices.CHIDMessageToRemote.DeviceRequestFullReport.Builder getDeviceRequestFullReportBuilder() {\n return getDeviceRequestFullReportFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "6279e11e7b89cf47202f4583ef79fe7a", "score": "0.53773016", "text": "java.util.List<? extends SteammessagesHiddevices.CHIDMessageFromRemote.DeviceInputReports.DeviceInputReportOrBuilder> \n getDeviceReportsOrBuilderList();", "title": "" }, { "docid": "d32dc34a841393bc79ce2defa86a453b", "score": "0.5367642", "text": "public org.pentaho.pms.cwm.pentaho.meta.transformation.CfmapFeature getCfmapFeature();", "title": "" }, { "docid": "0dd1ab0e87a039be7d50e3c3f9b4392a", "score": "0.5351584", "text": "int rs2_supports_device_info(Realsense2Library.rs2_device device, int info, PointerByReference error);", "title": "" }, { "docid": "ed89639403f6155b3d4ef7c6a28e1e2b", "score": "0.53479016", "text": "@NotNull\n @Generated\n @CVariable()\n @MappedReturn(ObjCStringMapper.class)\n public static native String CIDetectorReturnSubFeatures();", "title": "" }, { "docid": "802789bc72889e02424f0f17fca8cfe4", "score": "0.53453326", "text": "byte getDevice();", "title": "" }, { "docid": "e36d1aabee345700e6bc7b9dd01acc74", "score": "0.53405815", "text": "public boolean hasDeviceRequestFullReport() {\n return commandCase_ == 12;\n }", "title": "" }, { "docid": "dd512d223597896d66c5b698f510e3a5", "score": "0.5329187", "text": "public KnownDevices getKnownDevices();", "title": "" }, { "docid": "852d2b065a91c0191a38d396e88ac8ee", "score": "0.53070396", "text": "public String getFeature() {\n \treturn bmi.getFeatureType();\n }", "title": "" }, { "docid": "1c1cd018b7b9eb1a4359fbdcf1b1d80f", "score": "0.53037846", "text": "public boolean hasDeviceRequestFullReport() {\n return commandCase_ == 12;\n }", "title": "" }, { "docid": "c3d73922909af9cb24a2660de5bba5ff", "score": "0.5291608", "text": "com.google.protobuf.ByteString getMSG408020();", "title": "" }, { "docid": "e0ce688aa9229c09bc237b7920bc99fb", "score": "0.52895856", "text": "public Builder clearDeviceSendFeatureReport() {\n if (deviceSendFeatureReportBuilder_ == null) {\n if (commandCase_ == 6) {\n commandCase_ = 0;\n command_ = null;\n onChanged();\n }\n } else {\n if (commandCase_ == 6) {\n commandCase_ = 0;\n command_ = null;\n }\n deviceSendFeatureReportBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "15554db8c0dbccebc3b4d1b81b721baa", "score": "0.5281152", "text": "public SteammessagesHiddevices.CHIDDeviceInfo getInfo() {\n if (infoBuilder_ == null) {\n return info_ == null ? SteammessagesHiddevices.CHIDDeviceInfo.getDefaultInstance() : info_;\n } else {\n return infoBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "138181f1cc366ebc7a87926bb3b76b65", "score": "0.5280399", "text": "public boa.types.GFeature.Feature getFeature(int index) {\n if (featureBuilder_ == null) {\n return feature_.get(index);\n } else {\n return featureBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "56f40ed2bbfecb220e9f22a72b8595a7", "score": "0.52595085", "text": "protected adb method_4267() {\r\n return class_1010.field_5225;\r\n }", "title": "" }, { "docid": "039f7b29ff63b64290ee431b7159141f", "score": "0.5259135", "text": "private String m6811f() {\n try {\n String simOperator = ((TelephonyManager) this.f5256a.getSystemService(\"phone\")).getSimOperator();\n if (simOperator != null) {\n if (simOperator.equals(\"46000\") || simOperator.equals(\"46002\") || simOperator.equals(\"46007\")) {\n return \"cm\";\n }\n if (simOperator.equals(\"46001\")) {\n return \"uni\";\n }\n if (simOperator.equals(\"46003\")) {\n return \"ct\";\n }\n }\n } catch (Exception e) {\n C1425a.m6440a(\"MessageHandler\", e);\n }\n return null;\n }", "title": "" }, { "docid": "155803ecbe324b15bc343124c65d720b", "score": "0.52382797", "text": "public void setGFFFeature(String feature) { this.GFFFeature = feature; }", "title": "" }, { "docid": "f872dabb25691ed455907237d8b34137", "score": "0.5230223", "text": "com.google.protobuf.ByteString getMSG408007();", "title": "" }, { "docid": "9dee5ab5830a9add8b2be8388e2f0e6c", "score": "0.5224759", "text": "long getLocalControlFeature();", "title": "" }, { "docid": "41c4dfd1ceb7ae8e13084f25fa86a928", "score": "0.5222612", "text": "public OnvifDeviceDiscoverRequest() {\n methodName = \"onvifDeviceDiscover\";\n }", "title": "" }, { "docid": "c46463e785f703d3f6fdb8fec61af38e", "score": "0.521746", "text": "public java.util.List<boa.types.GFeature.Feature> getFeatureList() {\n if (featureBuilder_ == null) {\n return java.util.Collections.unmodifiableList(feature_);\n } else {\n return featureBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "47749402cbd96dbdb954d53678cd7060", "score": "0.52167344", "text": "public interface Device {\r\n /*\r\n * Define Device Capabilities\r\n */\r\n \r\n /**\r\n * A constant indicating streaming capability of the device.\r\n */\r\n public final static String CAP_STREAMING_SUPPORTED = \"StreamingSupported\";\r\n\r\n /**\r\n * A constant indicating if the device has a tuner.\r\n */\r\n public final static String CAP_TUNER_SUPPORTED = \"TunerSupported\";\r\n\r\n /**\r\n * A constant indicating remote storage capability.\r\n */\r\n public final static String CAP_REMOTE_STORAGE_SUPPORTED = \"RemoteStorageSupported\";\r\n\r\n /**\r\n * A constant indicating MSO content recording capability.\r\n */\r\n public final static String CAP_RECORDING_SUPPORTED = \"RecordingSupported\";\r\n\r\n /*\r\n * Define Device Properties\r\n */\r\n \r\n /**\r\n * A constant for a friendly name of the device.\r\n */\r\n public final static String PROP_FRIENDLY_NAME = \"friendlyName\";\r\n\r\n /**\r\n * A constant indicating the manufacturer of this device.\r\n */\r\n public final static String PROP_MANUFACTURER = \"manufacturer\";\r\n\r\n /**\r\n * A constant providing URL to the manufacturer's web site.\r\n */\r\n public final static String PROP_MANUFACTURER_URL = \"manufacturerURL\";\r\n\r\n /**\r\n * A constant providing description of the device.\r\n */\r\n public final static String PROP_MODEL_DESCRIPTION = \"modelDescription\";\r\n\r\n /**\r\n * A constant indicates device property: model name.\r\n */\r\n public final static String PROP_MODEL_NAME = \"modelName\";\r\n\r\n /**\r\n * A constant indicates device property: model number.\r\n */\r\n public final static String PROP_MODEL_NUMBER = \"modelNumber\";\r\n\r\n /**\r\n * A constant indicates device property: model URL.\r\n */\r\n public final static String PROP_MODEL_URL = \"modelURL\";\r\n \r\n /**\r\n * A constant indicates device property: serial number.\r\n */\r\n public final static String PROP_SERIAL_NUMBER = \"serialNumber\";\r\n\r\n /**\r\n * A constant indicates device property: unique device name.\r\n */\r\n public final static String PROP_UDN = \"UDN\";\r\n\r\n /**\r\n * A constant indicates device property: universal product code.\r\n */\r\n public final static String PROP_UPC = \"UPC\";\r\n\r\n /**\r\n * A constant indicates device property: presentation URL.\r\n */\r\n public final static String PROP_PRESENTATION_URL = \"presentationURL\";\r\n\r\n /**\r\n * A constant indicates device property: location of the device.\r\n */\r\n public final static String PROP_LOCATION = \"location\";\r\n\r\n /**\r\n * A constant indicates device property: middleware profile.\r\n */\r\n public final static String PROP_MIDDLEWARE_PROFILE = \"middlewareProfile\";\r\n\r\n /**\r\n * A constant indicates device property: middleware version.\r\n */\r\n public final static String PROP_MIDDLEWARE_VERSION = \"middlewareVersion\";\r\n \r\n /**\r\n * A constant indicates device property: device type\r\n */\r\n public final static String PROP_DEVICE_TYPE = \"deviceType\";\r\n\r\n /**\r\n * A constant representing a device version number \r\n */\r\n public final static String PROP_DEVICE_VERSION = \"deviceVersion\";\r\n \r\n /*\r\n * Define device types\r\n */\r\n \r\n /**\r\n * A constant indicates device type: Heater-Vent-Air Conditioning System.\r\n */\r\n public final static String TYPE_HVAC_SYSTEM = \"HVAC_System\";\r\n\r\n /**\r\n * A constant indicates device type: Heater-Vent-Air Conditioning Thermostat.\r\n */\r\n public final static String TYPE_HVAC_ZONE_THERMOSTAT = \"HVAC_ZoneThermostat\";\r\n\r\n /**\r\n * A constant indicates device type: Internet gateway device.\r\n */\r\n public final static String TYPE_INTERNET_GATEWAY_DEVICE = \"InternetGatewayDevice\";\r\n\r\n /**\r\n * A constant indicates device type: LAN device.\r\n */\r\n public final static String TYPE_LAN_DEVICE = \"LANDevice\";\r\n\r\n /**\r\n * A constant indicates device type: WAN connection device.\r\n */\r\n public final static String TYPE_WAN_CONNECTION_DEVICE = \"WANConnectionDevice\";\r\n\r\n /**\r\n * A constant indicates device type: WAN device.\r\n */\r\n public final static String TYPE_WAN_DEVICE = \"WANDevice\";\r\n\r\n /**\r\n * A constant indicates device type: Binary Light (on/off).\r\n */\r\n public final static String TYPE_BINARY_LIGHT = \"BinaryLight\";\r\n\r\n /**\r\n * A constant indicates device type: Dimmable Light (light intensity control).\r\n */\r\n public final static String TYPE_DIMMABLE_LIGHT = \"DimmableLight\";\r\n\r\n /**\r\n * A constant indicates device type: Media Server.\r\n */\r\n public final static String TYPE_MEDIA_SERVER = \"MediaServer\";\r\n\r\n /**\r\n * A constant indicates device type: Media Renderer.\r\n */\r\n public final static String TYPE_MEDIA_RENDERER = \"MediaRenderer\";\r\n\r\n /**\r\n * A constant indicates device type: Printer.\r\n */\r\n public final static String TYPE_PRINTER = \"printer\";\r\n\r\n /**\r\n * A constant indicates device type: Remote UI Client Device, \r\n * Allows for basic operations on a Remote UI client including: \r\n * user interface connection management, optionally user interface \r\n * availability management and optionally basic user interaction.\r\n */\r\n public final static String TYPE_REMOTE_UI_CLIENT_DEVICE = \"RemoteUIClientDevice\";\r\n\r\n /**\r\n * A constant indicates device type: Remote UI Server Device.\r\n * @see #TYPE_REMOTE_UI_CLIENT_DEVICE\r\n */\r\n public final static String TYPE_REMOTE_UI_SERVER_DEVICE = \"RemoteUIServerDevice\";\r\n\r\n /**\r\n * A constant indicates device type: Scanner.\r\n */\r\n public final static String TYPE_SCANNER = \"Scanner\";\r\n\r\n /**\r\n * A constant indicates device type: WAN access point device.\r\n */\r\n public final static String TYPE_WLAN_ACCESS_POINT_DEVICE = \"WLANAccessPointDevice\";\r\n\r\n /**\r\n * A constant indicates device type: OCAP Host.\r\n */\r\n public final static String TYPE_OCAP_HOST = \"OCAP_Host\";\r\n\r\n /**\r\n * A constant indicates device type: OCAP terminal.\r\n */\r\n public final static String TYPE_OCAP_TERMINAL = \"OCAP_Terminal\";\r\n\r\n /**\r\n * Returns capabilities of this device in <code>Enumeration</code>.\r\n * Capabilities are defined in <code>Device</code>.\r\n * \r\n * @return An enumeration of String objects representing capabilities \r\n * \t\t\tof this device.\r\n */\r\n public java.util.Enumeration getCapabilities();\r\n\r\n /**\r\n * Returns the name of this device. Device name is unique within a home\r\n * network. The naming rule is proprietary. For example,\r\n * \"LivingRoom:OCAP_HOST1\".\r\n * \r\n * @return name of this device\r\n */\r\n public String getName();\r\n\r\n /**\r\n * Returns property of this device specified by a key. Minimum supported keys\r\n * are defined in <code>Device</code>, like PROP_MANUFACTURER, \r\n * PROP_MODEL_NUMBER, etc.\r\n * \r\n * @param key\r\n * key of the property\r\n * @return property value specified by the key\r\n */\r\n public String getProperty(String key);\r\n\r\n /**\r\n * Returns all property keys supported by this device in\r\n * <code>Enumeration</code>. Keys returned may include standardized\r\n * keys (as documented with constants in this interface), as well\r\n * as additional keys supported by this device.\r\n * \r\n * @return An enumeration of String objects representing all\r\n * \t\t\tproperty keys supported by this device\r\n */\r\n public java.util.Enumeration getKeys();\r\n\r\n /**\r\n * Returns Locator for this device.\r\n * \r\n * @return Locator for this device\r\n */\r\n //public javax.tv.locator.Locator getLocator();\r\n\r\n /**\r\n * Returns the list of NetModules supported by this device.\r\n * \r\n * @return <code>NetList</code> supported by this device\r\n */\r\n public NetList getNetModuleList();\r\n\r\n /**\r\n * Returns the NetModule by module id. Module id is unique within a device.\r\n * \r\n * @param moduleId\r\n * \t\t\tunique id of a NetModule\r\n * @return NetModule by id, if specified NetModule is not supported by\r\n * \t\t\tthis device, then null is returned.\r\n */\r\n public NetModule getNetModule(String moduleId);\r\n\r\n /**\r\n * Returns a list of sub devices hosted by this device.\r\n * \r\n * @return list of sub-devices.\r\n */\r\n public NetList getSubDevices();\r\n \r\n /**\r\n * Returns the parent of this device.\r\n * \r\n * @return the parent device, or null if this device has no parent.\r\n */\r\n public Device getParentDevice();\r\n\r\n /**\r\n * Returns the type of this device, for example, MediaRenderer, MediaServer,\r\n * etc. All OCAP-HN device types are defined in <code>Device</code>.\r\n * \r\n * @return type of this device\r\n */\r\n public String getType();\r\n\r\n /**\r\n * Returns the version number associated with this Device's device type.\r\n * \r\n * @return a String representing the version of this Device's device type\r\n */\r\n public String getVersion();\r\n \r\n /**\r\n * Returns true when this is the local device.\r\n * \r\n * @return true if this is the local device\r\n */\r\n public boolean isLocal();\r\n \r\n /**\r\n * Adds a DeviceEventListener instance to this Device. \r\n * If the listener passed in is already registered with this Device,\r\n * this method does nothing. \r\n *\r\n * @param listener a DeviceEventListener instance to be notified \r\n * of DeviceEvents. \r\n */\r\n public void addDeviceEventListener(DeviceEventListener listener);\r\n\r\n /**\r\n * Removes a DeviceEventListener instance from this Device. \r\n * If the specified instance is not registered with this Device, \r\n * this method does nothing.\r\n * \r\n * @param listener a DeviceEventListener instance to be removed \r\n * from this Device.\r\n */\r\n public void removeDeviceEventListener(DeviceEventListener listener);\r\n\r\n /**\r\n * Returns the IP address for this device. \r\n * \r\n * @return an InetAddress representing this device's IP address\r\n */\r\n public InetAddress getInetAddress();\r\n\r\n /**\r\n * Sets the value of the PROP_FRIENDLY_NAME property.\r\n *\r\n * @param value The value to set the property to.\r\n *\r\n * @throws IllegalArgumentException if the parameter violates the format\r\n * specified by protocol mapping.\r\n * @throws UnsupportedOperationException if the <code>Device</code> is not\r\n * local; see the <code>isLocal</code> method.\r\n * @throws SecurityException if the calling application has not been\r\n * granted HomeNetPermission(\"contentmanagement\").\r\n */\r\n public void setFriendlyName(String value);\r\n}", "title": "" }, { "docid": "cc85ba1c4815fec72a46a14e78f1ec2a", "score": "0.52070665", "text": "public interface OBXParserInterface_VTVFCounters {\r\n\t\r\n\tpublic String getMDC_IDC_STAT_TACHYTHERAPY_SHOCKS_DELIVERED_RECENT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_TACHYTHERAPY_SHOCKS_ABORTED_RECENT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_TYPE_AF() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_TYPE_SVT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_TYPE_NSVT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_TYPE_FVT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_TYPE_VF() throws PropertyNotFoundException;\r\n\t\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_AF() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_SVT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_NSVT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_VT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_FVT() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_VF() throws PropertyNotFoundException;\r\n\t\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_DTM_START() throws PropertyNotFoundException;\r\n\tpublic String getMDC_IDC_STAT_EPISODE_RECENT_COUNT_DTM_END() throws PropertyNotFoundException;\r\n\t//public String getMDC_IDC_STAT_TACHYTHERAPY_ATP_DELIVERED_RECENT() throws PropertyNotFoundException;\r\n}", "title": "" }, { "docid": "d7547f1781ea8b1436678af0f21c0c1e", "score": "0.5206102", "text": "public String getDescriptorId() {\n/* 1664 */ return this.descriptorId;\n/* */ }", "title": "" }, { "docid": "73426ac129345d1751b2c701d51f0d57", "score": "0.52041405", "text": "public interface GetFeatureParser {\r\n\r\n /**\r\n * Returns the number of features if advertised by the server and the parser was able to get\r\n * that information for example from the {@code wfs:FeatureCollection} \"numberOfFeatures\" xml\r\n * attribute, or {@code -1} if unknown.\r\n * \r\n * @return number of features advertised by server, or {@code -1} if unknown\r\n */\r\n public int getNumberOfFeatures();\r\n\r\n /**\r\n * @return the next feature in the stream or {@code null} if there are no more features to\r\n * parse.\r\n */\r\n SimpleFeature parse() throws IOException;\r\n\r\n void close() throws IOException;\r\n}", "title": "" }, { "docid": "1241ef07b7bd2057cbc7d21bb70a2f71", "score": "0.5203338", "text": "java.util.List<? extends SteammessagesHiddevices.CHIDDeviceInputReportOrBuilder> \n getReportsOrBuilderList();", "title": "" } ]
170655b9c4ae84f29de7424109f45af8
/ renamed from: com.facebook.ads.internal.j.a.d
[ { "docid": "58de1edc0c1420fdff331cc22707123e", "score": "0.0", "text": "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "title": "" } ]
[ { "docid": "b8d0ca6b2ab2b2158daa093444e1c120", "score": "0.6770852", "text": "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "title": "" }, { "docid": "50c33766bac375ba38abe323bdfc63e5", "score": "0.6323666", "text": "private void m110495a() {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f89235a.f89233a.f77546j);\n Aweme aweme = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75511a(\"result_ad\", aweme2.getAwemeRawAd(), \"bg_download_button\");\n Aweme aweme3 = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }", "title": "" }, { "docid": "cb739f70ca1df86583440681726a0313", "score": "0.61741614", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "ecaa639c75a3960b7bb3b31fb9e9fbd9", "score": "0.61347055", "text": "C1477ma(java.lang.String r16, com.google.android.gms.internal.ads.awd r17) {\n /*\n r15 = this;\n r0 = r17\n java.lang.String r3 = r0.f2954b\n long r4 = r0.f2955c\n long r6 = r0.f2956d\n long r8 = r0.f2957e\n long r10 = r0.f2958f\n java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h\n if (r1 == 0) goto L_0x0014\n java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h\n r12 = r1\n goto L_0x0049\n L_0x0014:\n java.util.Map<java.lang.String, java.lang.String> r1 = r0.f2959g\n java.util.ArrayList r2 = new java.util.ArrayList\n int r12 = r1.size()\n r2.<init>(r12)\n java.util.Set r1 = r1.entrySet()\n java.util.Iterator r1 = r1.iterator()\n L_0x0027:\n boolean r12 = r1.hasNext()\n if (r12 == 0) goto L_0x0048\n java.lang.Object r12 = r1.next()\n java.util.Map$Entry r12 = (java.util.Map.Entry) r12\n com.google.android.gms.internal.ads.bff r13 = new com.google.android.gms.internal.ads.bff\n java.lang.Object r14 = r12.getKey()\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r12 = r12.getValue()\n java.lang.String r12 = (java.lang.String) r12\n r13.<init>(r14, r12)\n r2.add(r13)\n goto L_0x0027\n L_0x0048:\n r12 = r2\n L_0x0049:\n r1 = r15\n r2 = r16\n r1.<init>(r2, r3, r4, r6, r8, r10, r12)\n byte[] r0 = r0.f2953a\n int r0 = r0.length\n long r0 = (long) r0\n r2 = r15\n r2.f5708a = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C1477ma.<init>(java.lang.String, com.google.android.gms.internal.ads.awd):void\");\n }", "title": "" }, { "docid": "718a1b98cdf1cdb0d20418a0029f7b47", "score": "0.6102262", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "c4049b1ea2defe5d5f97634c9a7214f8", "score": "0.60660374", "text": "public abstract void mo90486a(C9515Ad ad);", "title": "" }, { "docid": "7403fdca121bb2bbb399d2acbf01d8b1", "score": "0.60525566", "text": "public final void mo75263ad() {\n String str;\n super.mo75263ad();\n if (C25352e.m83313X(this.f77546j)) {\n if (C6399b.m19944t()) {\n if (!C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) && C25371n.m83443a(mo75261ab())) {\n C25371n.m83471b(mo75261ab(), C25352e.m83305P(this.f77546j));\n }\n } else if (!DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f77546j);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75512a(\"result_ad\", aweme2.getAwemeRawAd(), false);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }\n }\n m110463ax();\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) || DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"click\");\n if (C25352e.m83313X(this.f77546j)) {\n str = \"download_button\";\n } else {\n str = \"more_button\";\n }\n b.mo65283e(str).mo65270a(mo75261ab());\n }\n }", "title": "" }, { "docid": "9eb201b9610d83436aebe1932c7f87a5", "score": "0.5981331", "text": "public void mo1636a() {\n if (this.f9849a.f9856g != null) {\n this.f9849a.f9856g.onAdClicked(this.f9849a);\n }\n }", "title": "" }, { "docid": "3a5d3946567b56196b91fec312846026", "score": "0.5965933", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "fb890582738414236419020208937d93", "score": "0.5964669", "text": "@javax.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private final com.google.android.gms.internal.ads.alc m16975a(@javax.annotation.Nullable android.content.Context r4, boolean r5, boolean r6) {\n /*\n r3 = this;\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11765Q\n com.google.android.gms.internal.ads.ars r1 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r1.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n r1 = 0\n if (r0 != 0) goto L_0x0014\n return r1\n L_0x0014:\n boolean r0 = com.google.android.gms.common.util.C3563o.m12763b()\n if (r0 != 0) goto L_0x001b\n return r1\n L_0x001b:\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11773Y\n com.google.android.gms.internal.ads.ars r2 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r2.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0040\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11771W\n com.google.android.gms.internal.ads.ars r2 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r2.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0040\n return r1\n L_0x0040:\n if (r5 == 0) goto L_0x0045\n if (r6 == 0) goto L_0x0045\n return r1\n L_0x0045:\n java.lang.Object r5 = r3.f13322a\n monitor-enter(r5)\n android.os.Looper r6 = android.os.Looper.getMainLooper() // Catch:{ all -> 0x007f }\n if (r6 == 0) goto L_0x007d\n if (r4 != 0) goto L_0x0051\n goto L_0x007d\n L_0x0051:\n com.google.android.gms.internal.ads.akx r6 = r3.f13331j // Catch:{ all -> 0x007f }\n if (r6 != 0) goto L_0x005c\n com.google.android.gms.internal.ads.akx r6 = new com.google.android.gms.internal.ads.akx // Catch:{ all -> 0x007f }\n r6.<init>() // Catch:{ all -> 0x007f }\n r3.f13331j = r6 // Catch:{ all -> 0x007f }\n L_0x005c:\n com.google.android.gms.internal.ads.alc r6 = r3.f13330i // Catch:{ all -> 0x007f }\n if (r6 != 0) goto L_0x006f\n com.google.android.gms.internal.ads.alc r6 = new com.google.android.gms.internal.ads.alc // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.akx r0 = r3.f13331j // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.zzang r1 = r3.f13328g // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.ck r4 = com.google.android.gms.internal.ads.C3712cg.m16480a(r4, r1) // Catch:{ all -> 0x007f }\n r6.<init>(r0, r4) // Catch:{ all -> 0x007f }\n r3.f13330i = r6 // Catch:{ all -> 0x007f }\n L_0x006f:\n com.google.android.gms.internal.ads.alc r4 = r3.f13330i // Catch:{ all -> 0x007f }\n r4.mo14478a() // Catch:{ all -> 0x007f }\n java.lang.String r4 = \"start fetching content...\"\n com.google.android.gms.internal.ads.C3900je.m17433d(r4) // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.alc r4 = r3.f13330i // Catch:{ all -> 0x007f }\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n return r4\n L_0x007d:\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n return r1\n L_0x007f:\n r4 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C3883io.m16975a(android.content.Context, boolean, boolean):com.google.android.gms.internal.ads.alc\");\n }", "title": "" }, { "docid": "c79a23306032a5a79401b014df5644b3", "score": "0.5964015", "text": "public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }", "title": "" }, { "docid": "faca9d254399a3f7ae59611f3596f0e6", "score": "0.5950757", "text": "@Override\r\n public void onAdClicked() {\n }", "title": "" }, { "docid": "3f12ddf953fdf65ec84f0ef8e74eb06a", "score": "0.59296817", "text": "private static AdResponseParcel m5544a(Context context, C0552b bVar, AdRequestInfoParcel adRequestInfoParcel) {\n bqgg bqgg;\n boolean z;\n bqgg bqgg2;\n Bundle bundle;\n bqgg bqgg3;\n String str;\n C0386k kVar;\n String str2;\n C0384i iVar;\n C0563m mVar;\n AdResponseParcel adResponseParcel;\n char c;\n Context context2 = context;\n C0552b bVar2 = bVar;\n AdRequestInfoParcel adRequestInfoParcel2 = adRequestInfoParcel;\n C0633h.m5664a(\"Starting ad request from service using: google.afma.request.getAdDictionary\");\n C0386k kVar2 = new C0386k(((Boolean) C0395h.f8335b.mo6621a()).booleanValue(), \"load_ad\", adRequestInfoParcel2.f8611d.f8140a);\n if (adRequestInfoParcel2.f8601a > 10) {\n long j = adRequestInfoParcel2.f8575A;\n if (j != -1) {\n kVar2.mo6618a(kVar2.mo6617a(j), \"cts\");\n }\n }\n C0384i a = kVar2.mo6616a();\n bqgg a2 = bqga.m112773a(bVar2.f8722f.mo6707a(context2), ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS, C0645d.f8975c);\n bqgg a3 = bqga.m112775a((Object) null);\n if (((Boolean) C0371o.f8214aA.mo6604a()).booleanValue()) {\n bqgg = bVar2.f8719c.getDoritosCookieAsynchronously(adRequestInfoParcel2.f8614g.packageName);\n } else {\n bqgg = a3;\n }\n bqgg doritosCookiesAsynchronously = bVar2.f8719c.getDoritosCookiesAsynchronously(adRequestInfoParcel2.f8614g.packageName);\n bqgg a4 = bVar2.f8723g.mo6382a(adRequestInfoParcel2.f8615h, adRequestInfoParcel2.f8614g);\n Future a5 = C0387d.m5369g().mo6747a(context2);\n bqgg a6 = bqga.m112775a((Object) null);\n Bundle bundle2 = adRequestInfoParcel2.f8610c.f8120c;\n if (bundle2 == null || bundle2.getString(\"_ad\") == null) {\n z = false;\n } else {\n z = true;\n }\n if (adRequestInfoParcel2.f8581G && !z) {\n a6 = bVar2.f8721e.mo6698a(adRequestInfoParcel2.f8613f);\n }\n bqgg a7 = bqga.m112773a(a6, ((Long) C0371o.f8225ac.mo6604a()).longValue(), TimeUnit.MILLISECONDS, C0645d.f8975c);\n bqgg a8 = bqga.m112775a((Object) null);\n if (((Boolean) C0371o.f8192F.mo6604a()).booleanValue()) {\n bqgg2 = bqga.m112773a(bVar2.f8723g.mo6380a(context2), ((Long) C0371o.f8193G.mo6604a()).longValue(), TimeUnit.MILLISECONDS, C0645d.f8975c);\n } else {\n bqgg2 = a8;\n }\n if (adRequestInfoParcel2.f8601a < 4 || (bundle = adRequestInfoParcel2.f8622o) == null) {\n bundle = null;\n }\n if (bundle == null && ((Boolean) C0390c.f8324b.mo6621a()).booleanValue()) {\n bundle = new Bundle();\n }\n Bundle bundle3 = bundle;\n if (bundle3 != null) {\n bqgg3 = C0645d.f8973a.mo25819b(new C0554d(bVar2, context2, adRequestInfoParcel2, bundle3));\n } else {\n bqgg3 = null;\n }\n if (C0387d.m5363a().mo6856a(context2, \"android.permission.ACCESS_NETWORK_STATE\") && ((ConnectivityManager) context2.getSystemService(\"connectivity\")).getActiveNetworkInfo() == null) {\n C0633h.m5664a(\"Device is offline.\");\n }\n if (adRequestInfoParcel2.f8601a >= 7) {\n str = adRequestInfoParcel2.f8629v;\n } else {\n str = UUID.randomUUID().toString();\n }\n Bundle bundle4 = adRequestInfoParcel2.f8610c.f8120c;\n if (bundle4 != null) {\n kVar = kVar2;\n String string = bundle4.getString(\"_ad\");\n if (string != null) {\n return C0558h.m5554a(context2, adRequestInfoParcel2, string);\n }\n } else {\n kVar = kVar2;\n }\n List a9 = bVar2.f8725i.mo6443a(adRequestInfoParcel2.f8630w);\n if (bqgg3 != null) {\n try {\n iVar = a;\n str2 = str;\n try {\n bqgg3.get(((Long) C0390c.f8323a.mo6621a()).longValue(), TimeUnit.MILLISECONDS);\n } catch (InterruptedException | ExecutionException e) {\n e = e;\n } catch (TimeoutException e2) {\n C0633h.m5664a(\"Timed out waiting for app index fetching task\");\n Bundle bundle5 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location = (Location) C0647f.m5686a(a7);\n C0271c cVar = (C0271c) C0647f.m5686a(bqgg2);\n String str3 = (String) C0647f.m5686a(a4);\n String str4 = (String) C0647f.m5686a(bqgg);\n String str5 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n }\n }\n } catch (InterruptedException | ExecutionException e3) {\n e = e3;\n iVar = a;\n str2 = str;\n C0633h.m5673d(\"Failed to fetch app index signal\", e);\n Bundle bundle52 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location2 = (Location) C0647f.m5686a(a7);\n C0271c cVar2 = (C0271c) C0647f.m5686a(bqgg2);\n String str32 = (String) C0647f.m5686a(a4);\n String str42 = (String) C0647f.m5686a(bqgg);\n String str52 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n }\n } catch (TimeoutException e4) {\n iVar = a;\n str2 = str;\n C0633h.m5664a(\"Timed out waiting for app index fetching task\");\n Bundle bundle522 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location22 = (Location) C0647f.m5686a(a7);\n C0271c cVar22 = (C0271c) C0647f.m5686a(bqgg2);\n String str322 = (String) C0647f.m5686a(a4);\n String str422 = (String) C0647f.m5686a(bqgg);\n String str522 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n }\n }\n } else {\n iVar = a;\n str2 = str;\n }\n Bundle bundle5222 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location222 = (Location) C0647f.m5686a(a7);\n C0271c cVar222 = (C0271c) C0647f.m5686a(bqgg2);\n String str3222 = (String) C0647f.m5686a(a4);\n String str4222 = (String) C0647f.m5686a(bqgg);\n String str5222 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n C0633h.m5672d(\"Error fetching device info. This is not recoverable.\");\n return new AdResponseParcel(0);\n }\n C0551a aVar = new C0551a();\n aVar.f8714i = adRequestInfoParcel2;\n aVar.f8715j = mVar;\n aVar.f8709d = location222;\n aVar.f8707b = bundle5222;\n aVar.f8712g = str3222;\n aVar.f8713h = cVar222;\n if (a9 == null) {\n aVar.f8708c.clear();\n }\n aVar.f8708c = a9;\n aVar.f8706a = bundle3;\n aVar.f8710e = str4222;\n aVar.f8711f = str5222;\n aVar.f8716k = bVar2.f8718b.mo6419a(context2);\n boolean z2 = bVar2.f8724h;\n JSONObject a10 = C0558h.m5556a(context2, aVar);\n if (a10 == null) {\n return new AdResponseParcel(0);\n }\n if (adRequestInfoParcel2.f8601a < 7) {\n try {\n a10.put(\"request_id\", str2);\n } catch (JSONException e5) {\n }\n }\n C0386k kVar3 = kVar;\n C0384i iVar2 = iVar;\n kVar3.mo6618a(iVar2, \"arc\");\n bqgg a11 = bqga.m112773a(bqdx.m112674a(bVar2.f8726j.f8860a.mo6670b(a10), C0553c.f8727a, C0645d.f8973a), 10, TimeUnit.SECONDS, C0645d.f8975c);\n bqgg a12 = bVar2.f8720d.mo6748a();\n if (a12 != null) {\n C0647f.m5688a(a12, \"AdRequestServiceImpl.loadAd.flags\");\n }\n C0561k kVar4 = (C0561k) C0647f.m5686a(a11);\n if (kVar4 == null) {\n return new AdResponseParcel(0);\n }\n int i = kVar4.f8786g;\n if (i != -2) {\n return new AdResponseParcel(i);\n }\n synchronized (kVar3.f8298c) {\n }\n if (!TextUtils.isEmpty(kVar4.f8784e)) {\n adResponseParcel = C0558h.m5554a(context2, adRequestInfoParcel2, kVar4.f8784e);\n } else {\n adResponseParcel = null;\n }\n if (adResponseParcel == null && !TextUtils.isEmpty(kVar4.f8785f)) {\n adResponseParcel = m5545a(adRequestInfoParcel, context, adRequestInfoParcel2.f8618k.f8949a, kVar4.f8785f, str4222, str5222, kVar4, kVar3, bVar);\n }\n if (adResponseParcel != null) {\n c = 0;\n } else {\n c = 0;\n adResponseParcel = new AdResponseParcel(0);\n }\n String[] strArr = new String[1];\n strArr[c] = \"tts\";\n kVar3.mo6618a(iVar2, strArr);\n adResponseParcel.f8685y = kVar3.mo6619b();\n adResponseParcel.f8657X = kVar4.f8789j;\n return adResponseParcel;\n }", "title": "" }, { "docid": "757a13afc4b8071da42d3b9c20be9e59", "score": "0.59235257", "text": "private final void m110463ax() {\n boolean z;\n if (C25352e.m83221d(this.f77546j)) {\n C24962g.m81963b(this.f77546j);\n boolean z2 = true;\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j))) {\n z = true;\n } else {\n z = false;\n }\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n String openUrl = awemeRawAd.getOpenUrl();\n boolean b = C25371n.m83473b(openUrl);\n if (C25352e.m83361c(openUrl)) {\n String builder = Uri.parse(C24505a.f64678a).buildUpon().appendQueryParameter(\"tag\", \"result_ad\").toString();\n C7573i.m23582a((Object) builder, \"Uri.parse(CommercializeC… .toString()\");\n openUrl = C25352e.m83325a(openUrl, builder);\n } else {\n z2 = false;\n }\n if (!z || !b || !C25371n.m83458a(mo75261ab(), openUrl, this.f77546j, false, false)) {\n Context ab = mo75261ab();\n Aweme aweme2 = this.f77546j;\n String N = C25352e.m83303N(this.f77546j);\n String O = C25352e.m83304O(this.f77546j);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd2, \"mAweme.awemeRawAd!!\");\n if (C25371n.m83453a(ab, aweme2, N, O, awemeRawAd2.isUseOrdinaryWeb(), false, 5)) {\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"open_url_h5\").mo65270a(mo75261ab());\n }\n return;\n }\n if (z2) {\n C24558c a = C24558c.m80613a();\n C7573i.m23582a((Object) a, \"CommercializeManager.getInstance()\");\n a.f64800a = this.f77546j;\n }\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"open_url_app\").mo65270a(mo75261ab());\n C25371n.m83440a((C25372a) new C34217k(this));\n }\n }", "title": "" }, { "docid": "fcb2c7a42fc3bb9813b0038945b7f293", "score": "0.5902309", "text": "public final void a(com.tencent.mm.ui.chatting.ad.a r23, int r24, com.tencent.mm.ui.chatting.ChattingUI.a r25, com.tencent.mm.storage.at r26, java.lang.String r27) {\n /*\n r22 = this;\n r19 = r23;\n r19 = (com.tencent.mm.ui.chatting.m) r19;\n r0 = r25;\n r1 = r22;\n r1.onG = r0;\n r25.ay(r26);\n r19.reset();\n r0 = r26;\n r0 = r0.field_content;\n r21 = r0;\n r25.aw(r26);\n r4 = 0;\n if (r21 == 0) goto L_0x1212;\n L_0x001c:\n r0 = r26;\n r4 = r0.field_reserved;\n r0 = r21;\n r4 = com.tencent.mm.q.a.a.B(r0, r4);\n r20 = r4;\n L_0x0028:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r0 = r25;\n r6 = r0.nQK;\n r8 = 0;\n r9 = 0;\n r10 = 0;\n r5 = r26;\n r7 = r24;\n r4.<init>(r5, r6, r7, r8, r9, r10);\n if (r20 == 0) goto L_0x02a4;\n L_0x003a:\n r0 = r20;\n r5 = r0.appId;\n r0 = r20;\n r6 = r0.bpy;\n r7 = com.tencent.mm.pluginsdk.model.app.g.bA(r5, r6);\n r0 = r19;\n r5 = r0.dtY;\n r0 = r20;\n r6 = r0.title;\n r5.setText(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r20;\n r6 = r0.description;\n r5.setText(r6);\n r0 = r19;\n r5 = r0.okC;\n r6 = 1;\n r5.setMaxLines(r6);\n r0 = r19;\n r5 = r0.dtY;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r8 = 2131689909; // 0x7f0f01b5 float:1.9008847E38 double:1.0531947516E-314;\n r6 = r6.getColor(r8);\n r5.setTextColor(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r8 = 2131689792; // 0x7f0f0140 float:1.900861E38 double:1.053194694E-314;\n r6 = r6.getColor(r8);\n r5.setTextColor(r6);\n r0 = r19;\n r5 = r0.okQ;\n r6 = 2130837939; // 0x7f0201b3 float:1.7280846E38 double:1.0527738225E-314;\n r5.setBackgroundResource(r6);\n r0 = r19;\n r5 = r0.okQ;\n r6 = 0;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r8 = r8.getResources();\n r9 = 2131493152; // 0x7f0c0120 float:1.8609776E38 double:1.0530975407E-314;\n r8 = r8.getDimensionPixelSize(r9);\n r9 = 0;\n r10 = 0;\n r5.setPadding(r6, r8, r9, r10);\n r0 = r19;\n r5 = r0.okd;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okO;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okS;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okT;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okG;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okF;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okD;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okA;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.olb;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okU;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okQ;\n r6 = 0;\n r5.setVisibility(r6);\n if (r7 == 0) goto L_0x0133;\n L_0x0123:\n r5 = r7.field_appName;\n if (r5 == 0) goto L_0x0133;\n L_0x0127:\n r5 = r7.field_appName;\n r5 = r5.trim();\n r5 = r5.length();\n if (r5 > 0) goto L_0x02e5;\n L_0x0133:\n r0 = r20;\n r5 = r0.appName;\n L_0x0137:\n r6 = 1;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r9 = 12;\n com.tencent.mm.bd.a.fromDPToPix(r8, r9);\n r0 = r20;\n r8 = r0.type;\n r9 = 20;\n if (r8 == r9) goto L_0x0158;\n L_0x014b:\n r8 = \"wxaf060266bfa9a35c\";\n r0 = r20;\n r9 = r0.appId;\n r8 = r8.equals(r9);\n if (r8 == 0) goto L_0x0160;\n L_0x0158:\n r6 = com.tencent.mm.pluginsdk.j.a.bmq();\n r6 = r6.aNM();\n L_0x0160:\n if (r6 == 0) goto L_0x02f8;\n L_0x0162:\n r0 = r20;\n r6 = r0.appId;\n if (r6 == 0) goto L_0x02f8;\n L_0x0168:\n r0 = r20;\n r6 = r0.appId;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x02f8;\n L_0x0172:\n r6 = com.tencent.mm.pluginsdk.model.app.g.bo(r5);\n if (r6 == 0) goto L_0x02f8;\n L_0x0178:\n r0 = r19;\n r6 = r0.fSs;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r5 = com.tencent.mm.pluginsdk.model.app.g.a(r8, r7, r5);\n r6.setText(r5);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r8 = 0;\n r9 = 0;\n r10 = 0;\n r5.setCompoundDrawables(r6, r8, r9, r10);\n r0 = r19;\n r5 = r0.okz;\n r6 = 0;\n r5.setVisibility(r6);\n if (r7 == 0) goto L_0x02e9;\n L_0x01ae:\n r5 = r7.bnk();\n if (r5 == 0) goto L_0x02e9;\n L_0x01b4:\n r0 = r19;\n r6 = r0.fSs;\n r9 = r7.field_packageName;\n r0 = r26;\n r10 = r0.field_msgSvrId;\n r5 = r25;\n r7 = r26;\n r8 = r20;\n com.tencent.mm.ui.chatting.ad.a(r5, r6, r7, r8, r9, r10);\n L_0x01c7:\n r0 = r19;\n r5 = r0.okz;\n r0 = r20;\n r6 = r0.appId;\n r0 = r25;\n com.tencent.mm.ui.chatting.ad.a(r0, r5, r6);\n L_0x01d4:\n r5 = 0;\n r0 = r19;\n r6 = r0.okd;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r22;\n r6 = r0.lVu;\n if (r6 == 0) goto L_0x0382;\n L_0x01e3:\n r6 = 0;\n r0 = r20;\n r7 = r0.type;\n r8 = 33;\n if (r7 == r8) goto L_0x0203;\n L_0x01ec:\n r6 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r7 = r0.field_imgPath;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r8 = com.tencent.mm.bd.a.getDensity(r8);\n r9 = 0;\n r6 = r6.a(r7, r8, r9);\n L_0x0203:\n if (r6 == 0) goto L_0x037f;\n L_0x0205:\n r7 = r6.isRecycled();\n if (r7 != 0) goto L_0x037f;\n L_0x020b:\n r0 = r19;\n r7 = r0.okd;\n r7.setImageBitmap(r6);\n L_0x0212:\n r0 = r20;\n r7 = r0.type;\n r8 = 3;\n if (r7 != r8) goto L_0x022f;\n L_0x0219:\n r0 = r19;\n r7 = r0.okQ;\n r7 = r7.getViewTreeObserver();\n r8 = new com.tencent.mm.ui.chatting.aw$1;\n r0 = r22;\n r1 = r19;\n r2 = r25;\n r8.<init>(r0, r1, r2, r6);\n r7.addOnPreDrawListener(r8);\n L_0x022f:\n r0 = r19;\n r6 = r0.okH;\n r7 = 0;\n r6.setOnClickListener(r7);\n r0 = r20;\n r6 = r0.type;\n switch(r6) {\n case 0: goto L_0x0ad2;\n case 1: goto L_0x023e;\n case 2: goto L_0x023e;\n case 3: goto L_0x0396;\n case 4: goto L_0x0559;\n case 5: goto L_0x05e8;\n case 6: goto L_0x04c4;\n case 7: goto L_0x0875;\n case 8: goto L_0x023e;\n case 9: goto L_0x023e;\n case 10: goto L_0x092a;\n case 11: goto L_0x023e;\n case 12: goto L_0x023e;\n case 13: goto L_0x09e5;\n case 14: goto L_0x023e;\n case 15: goto L_0x0b50;\n case 16: goto L_0x0df5;\n case 17: goto L_0x023e;\n case 18: goto L_0x023e;\n case 19: goto L_0x0f62;\n case 20: goto L_0x0a58;\n case 21: goto L_0x023e;\n case 22: goto L_0x023e;\n case 23: goto L_0x023e;\n case 24: goto L_0x0e88;\n case 25: goto L_0x0c06;\n case 26: goto L_0x0cba;\n case 27: goto L_0x0cba;\n case 28: goto L_0x023e;\n case 29: goto L_0x023e;\n case 30: goto L_0x023e;\n case 31: goto L_0x023e;\n case 32: goto L_0x023e;\n case 33: goto L_0x06da;\n case 34: goto L_0x1034;\n default: goto L_0x023e;\n };\n L_0x023e:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x11fb;\n L_0x0244:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x11fb;\n L_0x024e:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x0269:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0274:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x1206;\n L_0x028c:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x1206;\n L_0x0292:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n L_0x0299:\n r0 = r20;\n r5 = r0.cob;\n r0 = r19;\n r1 = r21;\n com.tencent.mm.ui.chatting.m.a(r0, r1, r5);\n L_0x02a4:\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n r0 = r19;\n r4 = r0.okP;\n r0 = r25;\n r5 = r0.onh;\n r5 = r5.oqh;\n r4.setOnClickListener(r5);\n r0 = r22;\n r4 = r0.lVu;\n if (r4 == 0) goto L_0x02cb;\n L_0x02be:\n r0 = r19;\n r4 = r0.okP;\n r0 = r25;\n r5 = r0.onh;\n r5 = r5.oqj;\n r4.setOnLongClickListener(r5);\n L_0x02cb:\n r0 = r25;\n r4 = r0.onh;\n r7 = r4.cyO;\n r0 = r25;\n r8 = r0.nQK;\n r0 = r25;\n r4 = r0.onh;\n r9 = r4.oqh;\n r4 = r24;\n r5 = r19;\n r6 = r26;\n com.tencent.mm.ui.chatting.ad.a(r4, r5, r6, r7, r8, r9);\n return;\n L_0x02e5:\n r5 = r7.field_appName;\n goto L_0x0137;\n L_0x02e9:\n r0 = r19;\n r5 = r0.fSs;\n r0 = r20;\n r6 = r0.appId;\n r0 = r25;\n com.tencent.mm.ui.chatting.ad.a(r0, r5, r6);\n goto L_0x01c7;\n L_0x02f8:\n r0 = r20;\n r5 = r0.type;\n r6 = 24;\n if (r5 != r6) goto L_0x032d;\n L_0x0300:\n r0 = r19;\n r5 = r0.fSs;\n r6 = com.tencent.mm.sdk.platformtools.aa.getContext();\n r7 = 2131232638; // 0x7f08077e float:1.808139E38 double:1.0529688297E-314;\n r6 = r6.getString(r7);\n r5.setText(r6);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okz;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x01d4;\n L_0x032d:\n r0 = r20;\n r5 = r0.type;\n r6 = 19;\n if (r5 != r6) goto L_0x0362;\n L_0x0335:\n r0 = r19;\n r5 = r0.fSs;\n r6 = com.tencent.mm.sdk.platformtools.aa.getContext();\n r7 = 2131231816; // 0x7f080448 float:1.8079724E38 double:1.0529684236E-314;\n r6 = r6.getString(r7);\n r5.setText(r6);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okz;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x01d4;\n L_0x0362:\n r0 = r19;\n r5 = r0.okB;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okz;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x01d4;\n L_0x037f:\n r5 = 1;\n goto L_0x0212;\n L_0x0382:\n r0 = r19;\n r6 = r0.okd;\n r7 = r25.getResources();\n r8 = 2130838790; // 0x7f020506 float:1.7282572E38 double:1.052774243E-314;\n r7 = android.graphics.BitmapFactory.decodeResource(r7, r8);\n r6.setImageBitmap(r7);\n goto L_0x022f;\n L_0x0396:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0486;\n L_0x039c:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0486;\n L_0x03a6:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131690127; // 0x7f0f028f float:1.9009289E38 double:1.0531948593E-314;\n r7 = r7.getColor(r8);\n r6.setTextColor(r7);\n L_0x03c6:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131690127; // 0x7f0f028f float:1.9009289E38 double:1.0531948593E-314;\n r7 = r7.getColor(r8);\n r6.setTextColor(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r23;\n r6 = r0.onE;\n r0 = r26;\n r8 = r0.field_msgId;\n r6 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));\n if (r6 != 0) goto L_0x0491;\n L_0x0413:\n r0 = r19;\n r6 = r0.okH;\n r7 = 2130838733; // 0x7f0204cd float:1.7282457E38 double:1.052774215E-314;\n r6.setImageResource(r7);\n L_0x041d:\n r6 = new com.tencent.mm.ui.chatting.cp$b;\n r6.<init>();\n r0 = r26;\n r8 = r0.field_msgId;\n r6.bao = r8;\n r0 = r26;\n r7 = r0.field_content;\n r6.blq = r7;\n r0 = r26;\n r7 = r0.field_imgPath;\n r6.bhr = r7;\n r0 = r19;\n r7 = r0.okH;\n r7.setTag(r6);\n r0 = r19;\n r6 = r0.okH;\n r0 = r25;\n r7 = r0.onh;\n r7 = r7.oqp;\n r6.setOnClickListener(r7);\n if (r5 == 0) goto L_0x046f;\n L_0x044a:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x0465;\n L_0x045f:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x049c;\n L_0x0465:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165232; // 0x7f070030 float:1.7944675E38 double:1.0529355267E-314;\n r5.setImageResource(r6);\n L_0x046f:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x04a4;\n L_0x0475:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x047b:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0486:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x03c6;\n L_0x0491:\n r0 = r19;\n r6 = r0.okH;\n r7 = 2130838735; // 0x7f0204cf float:1.728246E38 double:1.052774216E-314;\n r6.setImageResource(r7);\n goto L_0x041d;\n L_0x049c:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x046f;\n L_0x04a4:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x04aa:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x04b9:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x04c4:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x054f;\n L_0x04ca:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x054f;\n L_0x04d4:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r7 = 2;\n r6.setMaxLines(r7);\n L_0x04e4:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r0 = r20;\n r7 = r0.cob;\n r8 = (long) r7;\n r7 = com.tencent.mm.sdk.platformtools.be.aw(r8);\n r6.setText(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n r6 = 0;\n r6 = java.lang.Boolean.valueOf(r6);\n r0 = r20;\n r7 = r0.aXa;\n r0 = r20;\n r8 = r0.title;\n r0 = r19;\n r1 = r26;\n com.tencent.mm.ui.chatting.m.a(r0, r6, r1, r7, r8);\n if (r5 == 0) goto L_0x0299;\n L_0x0534:\n r0 = r20;\n r5 = r0.coc;\n r5 = com.tencent.mm.sdk.platformtools.be.KY(r5);\n if (r5 != 0) goto L_0x1206;\n L_0x053e:\n r0 = r19;\n r5 = r0.okd;\n r0 = r20;\n r6 = r0.coc;\n r6 = com.tencent.mm.pluginsdk.model.p.Gt(r6);\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x054f:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x04e4;\n L_0x0559:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x05d6;\n L_0x055f:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x05d6;\n L_0x0569:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n L_0x0571:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 2130839370; // 0x7f02074a float:1.7283749E38 double:1.0527745295E-314;\n r6.setImageResource(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x05a6:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x05c1;\n L_0x05bb:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x05e0;\n L_0x05c1:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165244; // 0x7f07003c float:1.79447E38 double:1.0529355327E-314;\n r5.setImageResource(r6);\n L_0x05cb:\n r0 = r19;\n r5 = r0.okH;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x05d6:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0571;\n L_0x05e0:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x05cb;\n L_0x05e8:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x068c;\n L_0x05f7:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x068c;\n L_0x0601:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x061c:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 3;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x066a;\n L_0x0637:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 != 0) goto L_0x06a1;\n L_0x064c:\n r5 = new com.tencent.mm.pluginsdk.model.r;\n r0 = r20;\n r6 = r0.thumburl;\n r0 = r26;\n r7 = r0.field_type;\n r8 = \"@S\";\n r9 = 0;\n r5.<init>(r6, r7, r8, r9);\n r5 = com.tencent.mm.platformtools.j.a(r5);\n if (r5 == 0) goto L_0x0696;\n L_0x0663:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n L_0x066a:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x06ba;\n L_0x0670:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0681:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x068c:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x061c;\n L_0x0696:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x066a;\n L_0x06a1:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x06b2;\n L_0x06a7:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x066a;\n L_0x06b2:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x066a;\n L_0x06ba:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x06c0:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x06cf:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x06da:\n r6 = new com.tencent.mm.e.a.m;\n r6.<init>();\n r5 = r6.aWJ;\n r0 = r20;\n r7 = r0.cqp;\n r5.aWH = r7;\n r5 = com.tencent.mm.sdk.c.a.nhr;\n r5.z(r6);\n r5 = r6.aWK;\n r5 = r5.aWL;\n if (r5 == 0) goto L_0x0729;\n L_0x06f2:\n r5 = r6.aWK;\n r5 = r5.appName;\n L_0x06f6:\n r7 = r6.aWK;\n r7 = r7.aWL;\n if (r7 == 0) goto L_0x072e;\n L_0x06fc:\n r6 = r6.aWK;\n r6 = r6.aWM;\n L_0x0700:\n r0 = r20;\n r7 = r0.cqr;\n switch(r7) {\n case 1: goto L_0x0821;\n case 2: goto L_0x0733;\n default: goto L_0x0707;\n };\n L_0x0707:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x0855;\n L_0x070d:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x071e:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0729:\n r0 = r20;\n r5 = r0.bnS;\n goto L_0x06f6;\n L_0x072e:\n r0 = r20;\n r6 = r0.cqv;\n goto L_0x0700;\n L_0x0733:\n r0 = r19;\n r7 = r0.okQ;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.olb;\n r8 = 0;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.okU;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r8 = r0.okX;\n r0 = r20;\n r7 = r0.description;\n r7 = android.text.TextUtils.isEmpty(r7);\n if (r7 == 0) goto L_0x07e3;\n L_0x075b:\n r7 = 8;\n L_0x075d:\n r8.setVisibility(r7);\n r0 = r19;\n r7 = r0.old;\n r0 = r20;\n r8 = r0.title;\n r7.setText(r8);\n r0 = r19;\n r7 = r0.okX;\n r0 = r20;\n r8 = r0.description;\n r7.setText(r8);\n r0 = r19;\n r7 = r0.okZ;\n r7.setText(r5);\n r0 = r20;\n r5 = r0.cqt;\n switch(r5) {\n case 1: goto L_0x07e6;\n case 2: goto L_0x0803;\n default: goto L_0x0784;\n };\n L_0x0784:\n r0 = r19;\n r5 = r0.okY;\n r7 = 0;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.okZ;\n r7 = 0;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.ola;\n r7 = 2131230936; // 0x7f0800d8 float:1.8077939E38 double:1.052967989E-314;\n r5.setText(r7);\n L_0x079e:\n r5 = com.tencent.mm.ae.n.GL();\n r0 = r19;\n r7 = r0.okY;\n r0 = r22;\n r8 = r0.onQ;\n r5.a(r6, r7, r8);\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r7 = 1;\n r7 = r5.x(r6, r7);\n r0 = r19;\n r5 = r0.olc;\n r6 = 0;\n r5.setImageBitmap(r6);\n r5 = com.tencent.mm.t.a.b.AL();\n r0 = r19;\n r6 = r0.olc;\n r8 = new java.lang.StringBuilder;\n r9 = \"file://\";\n r8.<init>(r9);\n r7 = r8.append(r7);\n r7 = r7.toString();\n r8 = 0;\n r9 = 0;\n r10 = com.tencent.mm.ui.chatting.m.a.fVO;\n r5.a(r6, r7, r8, r9, r10);\n goto L_0x0707;\n L_0x07e3:\n r7 = 0;\n goto L_0x075d;\n L_0x07e6:\n r0 = r19;\n r5 = r0.okY;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.okZ;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.ola;\n r7 = 2131230999; // 0x7f080117 float:1.8078067E38 double:1.05296802E-314;\n r5.setText(r7);\n goto L_0x079e;\n L_0x0803:\n r0 = r19;\n r5 = r0.okY;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.okZ;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.ola;\n r7 = 2131230998; // 0x7f080116 float:1.8078065E38 double:1.0529680195E-314;\n r5.setText(r7);\n goto L_0x079e;\n L_0x0821:\n r0 = r19;\n r7 = r0.okQ;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.olb;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.okU;\n r8 = 0;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.okW;\n r7.setText(r5);\n r5 = com.tencent.mm.t.a.b.AL();\n r0 = r19;\n r7 = r0.okV;\n r8 = com.tencent.mm.t.a.a.AK();\n r9 = com.tencent.mm.t.a.c.cxH;\n r5.a(r7, r6, r8, r9);\n goto L_0x0707;\n L_0x0855:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x085b:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x086a:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0875:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x08f8;\n L_0x0884:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x08f8;\n L_0x088e:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x08a1:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 3;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x08e1;\n L_0x08bc:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x08d7;\n L_0x08d1:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x0902;\n L_0x08d7:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n L_0x08e1:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x090a;\n L_0x08e7:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x08ed:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x08f8:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x08a1;\n L_0x0902:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x08e1;\n L_0x090a:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0910:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x091f:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x092a:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.cox;\n r7 = 1;\n if (r6 != r7) goto L_0x09a8;\n L_0x0939:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234775; // 0x7f080fd7 float:1.8085725E38 double:1.0529698855E-314;\n r6.setText(r7);\n L_0x0943:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0966;\n L_0x0949:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0966;\n L_0x0953:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x0966:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0981:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x09d9;\n L_0x0999:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x09d9;\n L_0x099f:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x09a8:\n r0 = r20;\n r6 = r0.cox;\n r7 = 2;\n if (r6 != r7) goto L_0x09ba;\n L_0x09af:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234777; // 0x7f080fd9 float:1.808573E38 double:1.0529698865E-314;\n r6.setText(r7);\n goto L_0x0943;\n L_0x09ba:\n r0 = r20;\n r6 = r0.cox;\n r7 = 3;\n if (r6 != r7) goto L_0x09cd;\n L_0x09c1:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234776; // 0x7f080fd8 float:1.8085727E38 double:1.052969886E-314;\n r6.setText(r7);\n goto L_0x0943;\n L_0x09cd:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234778; // 0x7f080fda float:1.8085731E38 double:1.052969887E-314;\n r6.setText(r7);\n goto L_0x0943;\n L_0x09d9:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x09e5:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131233764; // 0x7f080be4 float:1.8083675E38 double:1.052969386E-314;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0a25:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x0a4c;\n L_0x0a3d:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x0a4c;\n L_0x0a43:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0a4c:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0a58:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0a84;\n L_0x0a5e:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0a84;\n L_0x0a68:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n L_0x0a84:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0a9f:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x0ac6;\n L_0x0ab7:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x0ac6;\n L_0x0abd:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0ac6:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0ad2:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0b3d;\n L_0x0ad8:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0b3d;\n L_0x0ae2:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n L_0x0aea:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0b16:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x0b31;\n L_0x0b2b:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x0b47;\n L_0x0b31:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0b3d:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0aea;\n L_0x0b47:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0b50:\n r0 = r20;\n r4 = r0.title;\n if (r4 == 0) goto L_0x0bf3;\n L_0x0b56:\n r0 = r20;\n r4 = r0.title;\n r4 = r4.length();\n if (r4 <= 0) goto L_0x0bf3;\n L_0x0b60:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 0;\n r4.setVisibility(r6);\n L_0x0b68:\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 0;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okC;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okH;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okD;\n r6 = 4;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 2;\n r4.setMaxLines(r6);\n if (r5 == 0) goto L_0x0bbc;\n L_0x0b94:\n r4 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r5 = r0.field_imgPath;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = com.tencent.mm.bd.a.getDensity(r6);\n r4 = r4.a(r5, r6);\n if (r4 == 0) goto L_0x0bb2;\n L_0x0bac:\n r5 = r4.isRecycled();\n if (r5 == 0) goto L_0x0bfe;\n L_0x0bb2:\n r0 = r19;\n r4 = r0.okd;\n r5 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r4.setImageResource(r5);\n L_0x0bbc:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r6 = 0;\n r8 = \"\";\n r9 = 8;\n r10 = 0;\n r11 = r25.bFU();\n r0 = r20;\n r12 = r0.bnR;\n r0 = r20;\n r13 = r0.bnS;\n r0 = r20;\n r14 = r0.title;\n r0 = r20;\n r15 = r0.coF;\n r0 = r20;\n r0 = r0.url;\n r16 = r0;\n r17 = 0;\n r18 = 0;\n r5 = r26;\n r7 = r24;\n r4.<init>(r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18);\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n goto L_0x0299;\n L_0x0bf3:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 8;\n r4.setVisibility(r6);\n goto L_0x0b68;\n L_0x0bfe:\n r0 = r19;\n r5 = r0.okd;\n r5.setImageBitmap(r4);\n goto L_0x0bbc;\n L_0x0c06:\n r0 = r20;\n r4 = r0.title;\n if (r4 == 0) goto L_0x0ca7;\n L_0x0c0c:\n r0 = r20;\n r4 = r0.title;\n r4 = r4.length();\n if (r4 <= 0) goto L_0x0ca7;\n L_0x0c16:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 0;\n r4.setVisibility(r6);\n L_0x0c1e:\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 0;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okC;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okH;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okD;\n r6 = 4;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 2;\n r4.setMaxLines(r6);\n if (r5 == 0) goto L_0x0c72;\n L_0x0c4a:\n r4 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r5 = r0.field_imgPath;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = com.tencent.mm.bd.a.getDensity(r6);\n r4 = r4.a(r5, r6);\n if (r4 == 0) goto L_0x0c68;\n L_0x0c62:\n r5 = r4.isRecycled();\n if (r5 == 0) goto L_0x0cb2;\n L_0x0c68:\n r0 = r19;\n r4 = r0.okd;\n r5 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r4.setImageResource(r5);\n L_0x0c72:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r7 = \"\";\n r8 = r25.bFU();\n r0 = r20;\n r9 = r0.bnR;\n r0 = r20;\n r10 = r0.bnS;\n r0 = r20;\n r11 = r0.title;\n r0 = r20;\n r12 = r0.cqd;\n r0 = r20;\n r13 = r0.designerName;\n r0 = r20;\n r14 = r0.designerRediretctUrl;\n r0 = r20;\n r15 = r0.url;\n r5 = r26;\n r6 = r24;\n r4.<init>(r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15);\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n goto L_0x0299;\n L_0x0ca7:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 8;\n r4.setVisibility(r6);\n goto L_0x0c1e;\n L_0x0cb2:\n r0 = r19;\n r5 = r0.okd;\n r5.setImageBitmap(r4);\n goto L_0x0c72;\n L_0x0cba:\n r0 = r20;\n r4 = r0.title;\n if (r4 == 0) goto L_0x0d7b;\n L_0x0cc0:\n r0 = r20;\n r4 = r0.title;\n r4 = r4.length();\n if (r4 <= 0) goto L_0x0d7b;\n L_0x0cca:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 0;\n r4.setVisibility(r6);\n L_0x0cd2:\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 0;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okC;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okH;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okD;\n r6 = 4;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 2;\n r4.setMaxLines(r6);\n if (r5 == 0) goto L_0x0d17;\n L_0x0cfe:\n r0 = r26;\n r4 = r0.field_imgPath;\n r4 = com.tencent.mm.sdk.platformtools.be.kS(r4);\n if (r4 == 0) goto L_0x0d86;\n L_0x0d08:\n r4 = com.tencent.mm.ae.n.GL();\n r0 = r20;\n r5 = r0.thumburl;\n r0 = r19;\n r6 = r0.okd;\n r4.a(r5, r6);\n L_0x0d17:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r4.<init>();\n r0 = r26;\n r4.bmk = r0;\n r5 = 0;\n r4.nQK = r5;\n r0 = r24;\n r4.position = r0;\n r5 = 0;\n r4.oxP = r5;\n r5 = r25.bFU();\n r4.title = r5;\n r0 = r20;\n r5 = r0.bnR;\n r4.bnR = r5;\n r0 = r20;\n r5 = r0.bnS;\n r4.bnS = r5;\n r0 = r20;\n r5 = r0.title;\n r4.oxQ = r5;\n r0 = r20;\n r5 = r0.type;\n r6 = 26;\n if (r5 != r6) goto L_0x0db9;\n L_0x0d4a:\n r5 = 12;\n r4.eKg = r5;\n r0 = r20;\n r5 = r0.tid;\n r4.tid = r5;\n r0 = r20;\n r5 = r0.cqe;\n r4.cqe = r5;\n r0 = r20;\n r5 = r0.desc;\n r4.desc = r5;\n r0 = r20;\n r5 = r0.iconUrl;\n r4.iconUrl = r5;\n r0 = r20;\n r5 = r0.secondUrl;\n r4.secondUrl = r5;\n r0 = r20;\n r5 = r0.pageType;\n r4.pageType = r5;\n L_0x0d72:\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n goto L_0x0299;\n L_0x0d7b:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 8;\n r4.setVisibility(r6);\n goto L_0x0cd2;\n L_0x0d86:\n r4 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r5 = r0.field_imgPath;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = com.tencent.mm.bd.a.getDensity(r6);\n r4 = r4.a(r5, r6);\n if (r4 == 0) goto L_0x0da4;\n L_0x0d9e:\n r5 = r4.isRecycled();\n if (r5 == 0) goto L_0x0db0;\n L_0x0da4:\n r0 = r19;\n r4 = r0.okd;\n r5 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r4.setImageResource(r5);\n goto L_0x0d17;\n L_0x0db0:\n r0 = r19;\n r5 = r0.okd;\n r5.setImageBitmap(r4);\n goto L_0x0d17;\n L_0x0db9:\n r0 = r20;\n r5 = r0.type;\n r6 = 27;\n if (r5 != r6) goto L_0x0dea;\n L_0x0dc1:\n r5 = 13;\n r4.eKg = r5;\n r0 = r20;\n r5 = r0.tid;\n r4.tid = r5;\n r0 = r20;\n r5 = r0.cqe;\n r4.cqe = r5;\n r0 = r20;\n r5 = r0.desc;\n r4.desc = r5;\n r0 = r20;\n r5 = r0.iconUrl;\n r4.iconUrl = r5;\n r0 = r20;\n r5 = r0.secondUrl;\n r4.secondUrl = r5;\n r0 = r20;\n r5 = r0.pageType;\n r4.pageType = r5;\n goto L_0x0d72;\n L_0x0dea:\n r5 = \"MicroMsg.ChattingItemAppMsgTo\";\n r6 = \"unknow view type\";\n com.tencent.mm.sdk.platformtools.v.i(r5, r6);\n goto L_0x0d72;\n L_0x0df5:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.description;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r0 = r20;\n r7 = r0.cpn;\n r6.setText(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0e72;\n L_0x0e19:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0e72;\n L_0x0e23:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x0e36:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0e51:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x0e7c;\n L_0x0e69:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0e72:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0e36;\n L_0x0e7c:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0e88:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0f1a;\n L_0x0e9f:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0f1a;\n L_0x0ea9:\n r0 = r19;\n r6 = r0.okC;\n r0 = r19;\n r7 = r0.okC;\n r7 = r7.getContext();\n r0 = r20;\n r8 = r0.title;\n r0 = r19;\n r9 = r0.okC;\n r9 = r9.getTextSize();\n r9 = (int) r9;\n r7 = com.tencent.mm.pluginsdk.ui.d.e.a(r7, r8, r9);\n r6.setText(r7);\n L_0x0ec9:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 3;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0eed;\n L_0x0ee4:\n r0 = r19;\n r6 = r0.okd;\n r7 = 8;\n r6.setVisibility(r7);\n L_0x0eed:\n r0 = r25;\n r1 = r19;\n r2 = r20;\n r3 = r26;\n com.tencent.mm.ui.chatting.m.a(r0, r1, r2, r3, r5);\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x0f42;\n L_0x0efe:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0f0f:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0f1a:\n r0 = r19;\n r6 = r0.okC;\n r0 = r19;\n r7 = r0.okC;\n r7 = r7.getContext();\n r8 = com.tencent.mm.sdk.platformtools.aa.getContext();\n r9 = 2131232755; // 0x7f0807f3 float:1.8081628E38 double:1.0529688875E-314;\n r8 = r8.getString(r9);\n r0 = r19;\n r9 = r0.okC;\n r9 = r9.getTextSize();\n r9 = (int) r9;\n r7 = com.tencent.mm.pluginsdk.ui.d.e.a(r7, r8, r9);\n r6.setText(r7);\n goto L_0x0ec9;\n L_0x0f42:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0f48:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x0f57:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0f62:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x100a;\n L_0x0f71:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x100a;\n L_0x0f7b:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r19;\n r7 = r0.okC;\n r7 = r7.getContext();\n r0 = r20;\n r8 = r0.title;\n r0 = r19;\n r9 = r0.okC;\n r9 = r9.getTextSize();\n r9 = (int) r9;\n r7 = com.tencent.mm.pluginsdk.ui.d.e.a(r7, r8, r9);\n r6.setText(r7);\n L_0x0fab:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0fcf;\n L_0x0fc6:\n r0 = r19;\n r6 = r0.okd;\n r7 = 8;\n r6.setVisibility(r7);\n L_0x0fcf:\n r0 = r19;\n r1 = r20;\n com.tencent.mm.ui.chatting.m.a(r0, r1, r5);\n r0 = r19;\n r5 = r0.okd;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okO;\n r6 = 8;\n r5.setVisibility(r6);\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x1014;\n L_0x0fee:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0fff:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x100a:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0fab;\n L_0x1014:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x101a:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x1029:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x1034:\n r0 = r20;\n r5 = r0.title;\n if (r5 == 0) goto L_0x119e;\n L_0x103a:\n r0 = r20;\n r5 = r0.title;\n r5 = r5.length();\n if (r5 <= 0) goto L_0x119e;\n L_0x1044:\n r0 = r19;\n r5 = r0.dtY;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r20;\n r5 = r0.cpw;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x1184;\n L_0x1056:\n r0 = r20;\n r5 = r0.cpw;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x116a;\n L_0x1060:\n r0 = r19;\n r5 = r0.dtY;\n r0 = r20;\n r6 = r0.cpw;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131689547; // 0x7f0f004b float:1.9008112E38 double:1.053194573E-314;\n r7 = r7.getColor(r8);\n r6 = com.tencent.mm.sdk.platformtools.be.am(r6, r7);\n r5.setTextColor(r6);\n L_0x1080:\n r0 = r19;\n r5 = r0.dtZ;\n r6 = 2;\n r5.setMaxLines(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r20;\n r5 = r0.cpx;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x11a9;\n L_0x109a:\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r20;\n r6 = r0.cpx;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131689769; // 0x7f0f0129 float:1.9008563E38 double:1.0531946825E-314;\n r7 = r7.getColor(r8);\n r6 = com.tencent.mm.sdk.platformtools.be.am(r6, r7);\n r5.setTextColor(r6);\n L_0x10ba:\n r0 = r19;\n r5 = r0.okC;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okD;\n r6 = 4;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okH;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r20;\n r5 = r0.cps;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x11c3;\n L_0x10ee:\n r0 = r19;\n r5 = r0.fSs;\n r0 = r20;\n r6 = r0.cps;\n r5.setText(r6);\n L_0x10f9:\n r0 = r22;\n r5 = r0.lVu;\n if (r5 == 0) goto L_0x11e7;\n L_0x10ff:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r8 = 0;\n r5 = r5.a(r6, r7, r8);\n if (r5 == 0) goto L_0x1131;\n L_0x1118:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x1131;\n L_0x111e:\n r6 = 0;\n r7 = r5.getWidth();\n r7 = r7 / 2;\n r7 = (float) r7;\n r6 = com.tencent.mm.sdk.platformtools.d.a(r5, r6, r7);\n r0 = r19;\n r7 = r0.okd;\n r7.setImageBitmap(r6);\n L_0x1131:\n r0 = r20;\n r6 = r0.cpv;\n r6 = com.tencent.mm.sdk.platformtools.be.kS(r6);\n if (r6 != 0) goto L_0x11cf;\n L_0x113b:\n r5 = com.tencent.mm.ae.n.GL();\n r0 = r20;\n r6 = r0.cpv;\n r7 = new android.widget.ImageView;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r7.<init>(r8);\n r8 = new com.tencent.mm.ae.a.a.c$a;\n r8.<init>();\n r9 = 1;\n r8.cPs = r9;\n r8 = r8.GU();\n r9 = new com.tencent.mm.ui.chatting.aw$2;\n r0 = r22;\n r1 = r19;\n r2 = r25;\n r9.<init>(r0, r1, r2);\n r5.a(r6, r7, r8, r9);\n goto L_0x0299;\n L_0x116a:\n r0 = r19;\n r5 = r0.dtY;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r7 = 2131689547; // 0x7f0f004b float:1.9008112E38 double:1.053194573E-314;\n r6 = r6.getColor(r7);\n r5.setTextColor(r6);\n goto L_0x1080;\n L_0x1184:\n r0 = r19;\n r5 = r0.dtY;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r7 = 2131689547; // 0x7f0f004b float:1.9008112E38 double:1.053194573E-314;\n r6 = r6.getColor(r7);\n r5.setTextColor(r6);\n goto L_0x1080;\n L_0x119e:\n r0 = r19;\n r5 = r0.dtY;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x1080;\n L_0x11a9:\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r7 = 2131689769; // 0x7f0f0129 float:1.9008563E38 double:1.0531946825E-314;\n r6 = r6.getColor(r7);\n r5.setTextColor(r6);\n goto L_0x10ba;\n L_0x11c3:\n r0 = r19;\n r5 = r0.fSs;\n r6 = 2131231814; // 0x7f080446 float:1.807972E38 double:1.0529684226E-314;\n r5.setText(r6);\n goto L_0x10f9;\n L_0x11cf:\n r0 = r19;\n r6 = r0.okQ;\n r6 = r6.getViewTreeObserver();\n r7 = new com.tencent.mm.ui.chatting.aw$3;\n r0 = r22;\n r1 = r19;\n r2 = r25;\n r7.<init>(r0, r1, r2, r5);\n r6.addOnPreDrawListener(r7);\n goto L_0x0299;\n L_0x11e7:\n r0 = r19;\n r5 = r0.okd;\n r6 = r25.getResources();\n r7 = 2130838790; // 0x7f020506 float:1.7282572E38 double:1.052774243E-314;\n r6 = android.graphics.BitmapFactory.decodeResource(r6, r7);\n r5.setImageBitmap(r6);\n goto L_0x0299;\n L_0x11fb:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0269;\n L_0x1206:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2130837666; // 0x7f0200a2 float:1.7280293E38 double:1.0527736876E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x1212:\n r20 = r4;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.ui.chatting.aw.a(com.tencent.mm.ui.chatting.ad$a, int, com.tencent.mm.ui.chatting.ChattingUI$a, com.tencent.mm.storage.at, java.lang.String):void\");\n }", "title": "" }, { "docid": "1f5bd89aceef63f63f8ecc55c2f10927", "score": "0.58988625", "text": "private void m25419a(Context context, final boolean z) {\n if (C1820a.m6851f(context)) {\n Log.d(f19101c, \"Playable Ads pre-caching is disabled.\");\n this.f19106h = true;\n this.f19105g.mo1301a(this);\n return;\n }\n WebView webView = new WebView(context);\n webView.getSettings().setCacheMode(1);\n webView.setWebViewClient(new WebViewClient(this) {\n /* renamed from: a */\n boolean f5304a = false;\n /* renamed from: c */\n final /* synthetic */ C4598w f5306c;\n\n /* renamed from: com.facebook.ads.internal.adapters.w$1$1 */\n class C17581 implements Runnable {\n /* renamed from: a */\n final /* synthetic */ C17591 f5303a;\n\n C17581(C17591 c17591) {\n this.f5303a = c17591;\n }\n\n public void run() {\n if (!this.f5303a.f5304a) {\n this.f5303a.m6645a(null);\n }\n }\n }\n\n /* renamed from: a */\n private void m6644a() {\n this.f5306c.f19106h = true;\n this.f5306c.f19105g.mo1301a(this.f5306c);\n }\n\n /* renamed from: a */\n private void m6645a(WebResourceError webResourceError) {\n if (!z) {\n if (this.f5306c.m25420a(webResourceError)) {\n m6644a();\n return;\n }\n }\n this.f5306c.f19105g.mo1302a(this.f5306c, C1700b.f5124f);\n }\n\n public void onPageFinished(WebView webView, String str) {\n this.f5304a = true;\n m6644a();\n }\n\n public void onPageStarted(WebView webView, String str, Bitmap bitmap) {\n super.onPageStarted(webView, str, bitmap);\n new Handler().postDelayed(new C17581(this), 10000);\n }\n\n public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {\n this.f5304a = true;\n m6645a(webResourceError);\n }\n });\n webView.loadUrl(this.f19110l.m6581e().m6512j().m6567a());\n }", "title": "" }, { "docid": "2f839c528ff8df6f0465e37ad40f170a", "score": "0.5877264", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "2f839c528ff8df6f0465e37ad40f170a", "score": "0.5877264", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "2f839c528ff8df6f0465e37ad40f170a", "score": "0.5877264", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "67951fe70b5d01adaabed20140b7d005", "score": "0.5866822", "text": "@Override\n public void onAdClicked() {\n }", "title": "" }, { "docid": "0caedc60c02fb5530d69faf0c9d1c019", "score": "0.58368504", "text": "@Override\n public void onAdLoaded(Ad ad) {\n }", "title": "" }, { "docid": "8980f2a171fffdeaa16da3cab2bf7145", "score": "0.5818605", "text": "private final void zzaj() {\n /*\n r6 = this;\n java.lang.Object r0 = r6.zzsC\n monitor-enter(r0)\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n if (r1 == 0) goto L_0x0013\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n java.util.concurrent.CountDownLatch r1 = r1.zzsI // Catch:{ all -> 0x0026 }\n r1.countDown() // Catch:{ all -> 0x0026 }\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ InterruptedException -> 0x0013 }\n r1.join() // Catch:{ InterruptedException -> 0x0013 }\n L_0x0013:\n long r1 = r6.zzsE // Catch:{ all -> 0x0026 }\n r3 = 0\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 <= 0) goto L_0x0024\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = new com.google.android.gms.ads.identifier.AdvertisingIdClient$zza // Catch:{ all -> 0x0026 }\n long r2 = r6.zzsE // Catch:{ all -> 0x0026 }\n r1.<init>(r6, r2) // Catch:{ all -> 0x0026 }\n r6.zzsD = r1 // Catch:{ all -> 0x0026 }\n L_0x0024:\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n return\n L_0x0026:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.identifier.AdvertisingIdClient.zzaj():void\");\n }", "title": "" }, { "docid": "8ccb7364eea5bd746de36b5c61fc778b", "score": "0.5799976", "text": "@Override\r\n public void onAdOpened() {\n }", "title": "" }, { "docid": "a2c672e67cf1a0c2908a106737829942", "score": "0.5791865", "text": "@Override\r\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "bb3511f21ac39fa310fa2c0631348c94", "score": "0.5786825", "text": "@Override\r\n\tpublic void onAdClick() {\n\r\n\t}", "title": "" }, { "docid": "17b9efec7afa2251da59465ac63bbb36", "score": "0.5763546", "text": "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "title": "" }, { "docid": "391d8681e5c9eb7ee4d5a70cb2b19e6b", "score": "0.5734803", "text": "public interface C45630d {\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$f */\n public interface C10555f {\n /* renamed from: es */\n void mo22049es(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$d */\n public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$e */\n public interface C27129e {\n void onVisibilityChanged(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$g */\n public enum C27130g {\n DEFAULT,\n FILL,\n CONTAIN,\n COVER;\n\n static {\n AppMethodBeat.m2505o(126548);\n }\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$a */\n public interface C38399a {\n void aDF();\n\n void aEZ();\n\n boolean aFA();\n\n void aFD();\n\n void aFE();\n\n boolean aFF();\n\n void aFG();\n\n void aFH();\n\n boolean aFI();\n\n void aFN();\n\n void aFO();\n\n boolean aFR();\n\n void aFy();\n\n void hide();\n\n void onDestroy();\n\n void seek(int i);\n\n void setDanmakuBtnOnClickListener(C10555f c10555f);\n\n void setDanmakuBtnOpen(boolean z);\n\n void setExitFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setIplaySeekCallback(C42594c c42594c);\n\n void setMuteBtnOnClickListener(OnClickListener onClickListener);\n\n void setMuteBtnState(boolean z);\n\n void setOnPlayButtonClickListener(OnClickListener onClickListener);\n\n void setOnUpdateProgressLenListener(C19512d c19512d);\n\n void setOnVisibilityChangedListener(C27129e c27129e);\n\n void setPlayBtnInCenterPosition(boolean z);\n\n void setShowControlProgress(boolean z);\n\n void setShowDanmakuBtn(boolean z);\n\n void setShowFullScreenBtn(boolean z);\n\n void setShowMuteBtn(boolean z);\n\n void setShowPlayBtn(boolean z);\n\n void setShowProgress(boolean z);\n\n void setStatePorter(C38400h c38400h);\n\n void setTitle(String str);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$h */\n public interface C38400h {\n int aFg();\n\n int aFh();\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$b */\n public interface C42593b {\n /* renamed from: H */\n void mo34677H(String str, int i, int i2);\n\n void aFq();\n\n void aFr();\n\n void aFs();\n\n void aFt();\n\n void aFu();\n\n void aFv();\n\n /* renamed from: de */\n void mo34684de(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$c */\n public interface C42594c {\n void aFw();\n\n /* renamed from: oA */\n void mo22044oA(int i);\n }\n\n void aEX();\n\n void akV();\n\n void akW();\n\n /* renamed from: as */\n boolean mo61579as(float f);\n\n /* renamed from: c */\n void mo61580c(boolean z, String str, int i);\n\n /* renamed from: e */\n boolean mo61581e(double d, boolean z);\n\n int getCacheTimeSec();\n\n int getCurrPosMs();\n\n int getCurrPosSec();\n\n int getVideoDurationSec();\n\n boolean isLive();\n\n boolean isPlaying();\n\n boolean pause();\n\n /* renamed from: s */\n boolean mo61590s(double d);\n\n void setControlBar(C38399a c38399a);\n\n void setIMMVideoViewCallback(C42593b c42593b);\n\n void setMute(boolean z);\n\n void setScaleType(C27130g c27130g);\n\n void setVideoSource(int i);\n\n void start();\n\n void stop();\n}", "title": "" }, { "docid": "85c2cfbad7732e9af8a1c7517295f665", "score": "0.5724758", "text": "@Override\n public void onAdClicked(Ad ad) {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "bc59d28373df6b8cf7d3e11830940a63", "score": "0.57179314", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "9db1fcf58dc03a09767731c421b14797", "score": "0.57152426", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "9db1fcf58dc03a09767731c421b14797", "score": "0.57152426", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "f3cad8aee3b91abf1f33fb7178cd5da5", "score": "0.5714207", "text": "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "title": "" }, { "docid": "d55281740d6cbb90be2610294e93e03b", "score": "0.57131964", "text": "@Override\n\tpublic void onRealClickAd() {\n\t}", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "0b4bdaf5c303d7944882bccbd725eb7e", "score": "0.57019925", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "8bb32cee7c1c9c17f954acc96e3235b8", "score": "0.5673148", "text": "@Override\n public void onAdLoaded(Ad ad) {\n }", "title": "" }, { "docid": "a11c2f340ccbf3ce60b0e9c57014e05d", "score": "0.5650234", "text": "public void mo1638a(AdAdapter adAdapter) {\n this.f9849a.f9854e = true;\n if (this.f9849a.f9856g != null) {\n this.f9849a.f9856g.onAdLoaded(this.f9849a);\n }\n }", "title": "" }, { "docid": "8825091a6247c1fc9ab8ee9e534f2432", "score": "0.5642863", "text": "@Override\r\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "0badf2e91a1cb046dcbac59ba75ef65b", "score": "0.56367016", "text": "@Override\n public void adClicked(Ad arg0) {\n\n }", "title": "" }, { "docid": "0badf2e91a1cb046dcbac59ba75ef65b", "score": "0.56367016", "text": "@Override\n public void adClicked(Ad arg0) {\n\n }", "title": "" }, { "docid": "23fffcd5f5e139ce9e4673dea5226423", "score": "0.5616388", "text": "private static C2499b m9557c(Context context) {\n try {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new C2579j(\"getAndroidId cannot be called on the main thread.\");\n }\n Method a = C2479ad.m9434a(\"com.google.android.gms.common.GooglePlayServicesUtil\", \"isGooglePlayServicesAvailable\", (Class<?>[]) new Class[]{Context.class});\n if (a == null) {\n return null;\n }\n Object a2 = C2479ad.m9423a((Object) null, a, context);\n if (a2 instanceof Integer) {\n if (((Integer) a2).intValue() == 0) {\n Method a3 = C2479ad.m9434a(\"com.google.android.gms.ads.identifier.AdvertisingIdClient\", \"getAdvertisingIdInfo\", (Class<?>[]) new Class[]{Context.class});\n if (a3 == null) {\n return null;\n }\n Object a4 = C2479ad.m9423a((Object) null, a3, context);\n if (a4 == null) {\n return null;\n }\n Method a5 = C2479ad.m9433a(a4.getClass(), \"getId\", (Class<?>[]) new Class[0]);\n Method a6 = C2479ad.m9433a(a4.getClass(), \"isLimitAdTrackingEnabled\", (Class<?>[]) new Class[0]);\n if (a5 != null) {\n if (a6 != null) {\n C2499b bVar = new C2499b();\n bVar.f7871c = (String) C2479ad.m9423a(a4, a5, new Object[0]);\n bVar.f7873e = ((Boolean) C2479ad.m9423a(a4, a6, new Object[0])).booleanValue();\n return bVar;\n }\n }\n return null;\n }\n }\n return null;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n return null;\n }\n }", "title": "" }, { "docid": "091fbb8b122da5c42a5e9b1ce075a069", "score": "0.56117535", "text": "@Override\r\n\t\t\tpublic void onAdClick() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "d3999862a7c30e1d122c10b00725165e", "score": "0.5578334", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.d(\"TAG\",\"Ad failed to load\");\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.55729544", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "48b3e27955f3ab5f7feee07b578a8914", "score": "0.5568232", "text": "public interface NativeCustomTemplateAd\n{\n\tpublic static interface OnCustomClickListener\n\t{\n\n\t\tpublic abstract void onCustomClick(NativeCustomTemplateAd nativecustomtemplatead, String s);\n\t}\n\n\tpublic static interface OnCustomTemplateAdLoadedListener\n\t{\n\n\t\tpublic abstract void onCustomTemplateAdLoaded(NativeCustomTemplateAd nativecustomtemplatead);\n\t}\n\n\n\tpublic abstract void destroy();\n\n\tpublic abstract List getAvailableAssetNames();\n\n\tpublic abstract String getCustomTemplateId();\n\n\tpublic abstract NativeAd.Image getImage(String s);\n\n\tpublic abstract CharSequence getText(String s);\n\n\tpublic abstract VideoController getVideoController();\n\n\tpublic abstract MediaView getVideoMediaView();\n\n\tpublic abstract void performClick(String s);\n\n\tpublic abstract void recordImpression();\n\n\tpublic static final String ASSET_NAME_VIDEO = \"_videoMediaView\";\n}", "title": "" }, { "docid": "55f5d92ef44a1f562cb90b469c52737f", "score": "0.5557298", "text": "@Override\n public void onAdOpened() {\n Log.d(\"TAG\",\"Ad opened\");\n }", "title": "" }, { "docid": "93cc64be814e700906a7fe4bc24a9c0e", "score": "0.55499554", "text": "public interface C2368d {\n\n /* renamed from: com.google.android.exoplayer2.upstream.d$a */\n public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }\n\n /* renamed from: a */\n int mo1684a(byte[] bArr, int i, int i2);\n\n /* renamed from: a */\n long mo1685a(C2369e c2369e);\n\n /* renamed from: a */\n Uri mo1686a();\n\n /* renamed from: b */\n void mo1687b();\n}", "title": "" }, { "docid": "789816aa04966dbfc6b26215b2a4f307", "score": "0.5532985", "text": "private final boolean m110458as() {\n String str;\n String str2;\n if (this.f89205aX == null || this.f89207aZ == null || this.f89210bb == null || this.f89209ba == null || !C25352e.m83221d(this.f77546j)) {\n return false;\n }\n this.f89212bd = (RelativeLayout) this.itemView.findViewById(R.id.eh4);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n if (aweme.isAppAd() && DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n return false;\n }\n this.f89204aW = true;\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n String str3 = null;\n if (aweme2.isAppAd()) {\n Context ab = mo75261ab();\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme3.getAwemeRawAd();\n if (awemeRawAd != null) {\n str2 = awemeRawAd.getCreativeIdStr();\n } else {\n str2 = null;\n }\n String str4 = \"bg_download_button\";\n Aweme aweme4 = this.f77546j;\n C7573i.m23582a((Object) aweme4, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme4.getAwemeRawAd();\n if (awemeRawAd2 != null) {\n str3 = awemeRawAd2.getLogExtra();\n }\n C24976t.m82210e(ab, str2, str4, str3);\n } else {\n Context ab2 = mo75261ab();\n Aweme aweme5 = this.f77546j;\n C7573i.m23582a((Object) aweme5, \"mAweme\");\n AwemeRawAd awemeRawAd3 = aweme5.getAwemeRawAd();\n if (awemeRawAd3 != null) {\n str = awemeRawAd3.getCreativeIdStr();\n } else {\n str = null;\n }\n String str5 = \"bg_more_button\";\n Aweme aweme6 = this.f77546j;\n C7573i.m23582a((Object) aweme6, \"mAweme\");\n AwemeRawAd awemeRawAd4 = aweme6.getAwemeRawAd();\n if (awemeRawAd4 != null) {\n str3 = awemeRawAd4.getLogExtra();\n }\n C24976t.m82210e(ab2, str, str5, str3);\n }\n LinearLayout linearLayout = this.f89205aX;\n if (linearLayout != null) {\n linearLayout.setAlpha(0.0f);\n }\n RelativeLayout relativeLayout = this.f89212bd;\n if (relativeLayout != null) {\n relativeLayout.setAlpha(1.0f);\n }\n RelativeLayout relativeLayout2 = this.f89212bd;\n if (relativeLayout2 != null) {\n ViewPropertyAnimator animate = relativeLayout2.animate();\n if (animate != null) {\n ViewPropertyAnimator alpha = animate.alpha(0.0f);\n if (alpha != null) {\n ViewPropertyAnimator duration = alpha.setDuration(150);\n if (duration != null) {\n ViewPropertyAnimator withEndAction = duration.withEndAction(new C34221o(this));\n if (withEndAction != null) {\n withEndAction.start();\n }\n }\n }\n }\n }\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74934d = true;\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n a2.f74935e = true;\n return true;\n }", "title": "" }, { "docid": "574284be2ef9e07ab72e8d6f1076a2d8", "score": "0.5518854", "text": "public abstract void mo20127a(AdRsp adRsp);", "title": "" }, { "docid": "0d45400323d27511d3cad258809977f4", "score": "0.5518329", "text": "@Override\n public void onAdLoaded() {\n Log.d(\"TAG\",\"Ad loaded\");\n }", "title": "" }, { "docid": "62ea7e1e75877244bc9ed27db6e9c72d", "score": "0.55174404", "text": "private void a(NativeAdData paramh)\n/* */ {\n/* 206 */ if ((this.e != null) && (paramh != null)) {\n/* 207 */ this.e.a(paramh);\n/* */ }\n/* */ }", "title": "" }, { "docid": "2b7c26f935e466632495a75e79e4fedb", "score": "0.55149245", "text": "public final void mo63044a(C44920d dVar) {\n super.mo63044a(dVar);\n if (C25352e.m83221d(this.f77546j)) {\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n this.f89215bi = awemeRawAd.getShowOutflowMaskTimes();\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74936f = 0;\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n this.f89214bh = a2.f74936f;\n C28418f a3 = C28418f.m93413a();\n C7573i.m23582a((Object) a3, \"FeedSharePlayInfoHelper.inst()\");\n a3.f74934d = false;\n C28418f a4 = C28418f.m93413a();\n C7573i.m23582a((Object) a4, \"FeedSharePlayInfoHelper.inst()\");\n a4.f74937g = false;\n if (C25352e.m83224g(this.f77546j)) {\n C24976t.m82078a(this.f77546j, \"result_ad\", \"video\");\n }\n if (!this.f89208b && mo75232H()) {\n m110464ay();\n }\n }\n }", "title": "" }, { "docid": "396260f6ec84bb28cc9c206fa2547b11", "score": "0.55143267", "text": "@Override\n public void onAdLoaded(Ad ad) {\n if (nativeAdfb == null || nativeAdfb != ad) {\n return;\n }\n // Inflate Native Ad into Container\n }", "title": "" }, { "docid": "6b3c12edf6ae2f3b958b9a743875ac72", "score": "0.5507498", "text": "@Override\n public void onAdOpened() {\n }", "title": "" }, { "docid": "04d03bad735c26bed38914a333b07a87", "score": "0.5501356", "text": "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"xxx Banner onAdOpened\");\n }", "title": "" }, { "docid": "9f7a0a180ec056935633704b6a5a0958", "score": "0.5490965", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "title": "" }, { "docid": "3ad1aeffffc0c91a8d9bf7db11681e6f", "score": "0.5490777", "text": "@Override\n public void onAdLoaded() {\n }", "title": "" }, { "docid": "d442b3af1a7b601e98180b6a3941617b", "score": "0.54750127", "text": "public abstract void mo90485a(C9515Ad.Creative creative);", "title": "" }, { "docid": "eba0e6b3e7e00afb871e4f6240bce78b", "score": "0.5451868", "text": "private void initBannerAdmob() {\n }", "title": "" }, { "docid": "28581a74a9c9d5119c17566f762db93f", "score": "0.54495853", "text": "@Override\n public void onAdClicked(BannerAd ad) {\n Log.d(TAG, \"User clicked on banner\");\n }", "title": "" }, { "docid": "0c0c6cb316ecc40d0a6731dfd122521d", "score": "0.54488534", "text": "private final void m110464ay() {\n SearchAdBottomBar searchAdBottomBar = this.f89222bp;\n if (searchAdBottomBar != null) {\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd != null) {\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd ?: return\");\n this.f89208b = true;\n int showButtonSeconds = awemeRawAd.getShowButtonSeconds() * 1000;\n if (showButtonSeconds < 0) {\n showButtonSeconds = 0;\n }\n int max = Math.max(showButtonSeconds, awemeRawAd.getShowButtonColorSeconds() * 1000);\n if (max < 0) {\n max = 0;\n }\n if (this.f89223bq.mo65903a() >= ((long) showButtonSeconds)) {\n searchAdBottomBar.mo66232a(true);\n searchAdBottomBar.mo66233b(true);\n return;\n }\n long a = this.f89223bq.mo86969a(this.f77546j, null);\n this.f89203a.mo65913a(new C25348a().mo65906a(a).mo65905a(showButtonSeconds).mo65907a((Runnable) new C34219m(searchAdBottomBar)).mo65908a(false).mo65909a());\n this.f89203a.mo65913a(new C25348a().mo65906a(a).mo65905a(max).mo65907a((Runnable) new C34220n(searchAdBottomBar)).mo65908a(false).mo65909a());\n this.f89203a.mo65912a((C25346b) this.f89223bq);\n this.f89203a.mo65914b();\n }\n }\n }", "title": "" }, { "docid": "32580482b6b970fd175c1e686c7ca2e1", "score": "0.54413855", "text": "private static void m25470a(MediationNativeAdapter mediationNativeAdapter, UnifiedNativeAdMapper unifiedNativeAdMapper, NativeAdMapper nativeAdMapper) {\n if (!(mediationNativeAdapter instanceof AdMobAdapter)) {\n VideoController videoController = new VideoController();\n videoController.zza(new zzanj());\n if (unifiedNativeAdMapper != null && unifiedNativeAdMapper.hasVideoContent()) {\n unifiedNativeAdMapper.zza(videoController);\n }\n if (nativeAdMapper != null && nativeAdMapper.hasVideoContent()) {\n nativeAdMapper.zza(videoController);\n }\n }\n }", "title": "" }, { "docid": "f8543c63237ce4171faaf547e8262b1c", "score": "0.5439992", "text": "public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }", "title": "" }, { "docid": "482cb3515beddce4db7253d7f5a74a5e", "score": "0.5428544", "text": "public void updateAds() {\n }", "title": "" }, { "docid": "7e46f33aaef09df198c8e0b24eca0f79", "score": "0.54120415", "text": "public KodularChameleonAd(com.google.appinventor.components.runtime.ComponentContainer r8) {\n /*\n r7 = this;\n r0 = r7\n r1 = r8\n r2 = r0\n r3 = r1\n com.google.appinventor.components.runtime.Form r3 = r3.$form()\n r2.<init>(r3)\n r2 = r0\n r3 = r1\n com.google.appinventor.components.runtime.Form r3 = r3.$form()\n r2.form = r3\n r2 = r0\n r3 = r1\n android.app.Activity r3 = r3.$context()\n r2.activity = r3\n r2 = r0\n com.kodular.chameleon.ChameleonAds r3 = new com.kodular.chameleon.ChameleonAds\n r6 = r3\n r3 = r6\n r4 = r6\n r5 = r0\n android.app.Activity r5 = r5.activity\n android.support.v7.app.AppCompatActivity r5 = (android.support.p003v7.app.AppCompatActivity) r5\n r4.<init>(r5)\n r2.chameleonAds = r3\n r2 = r0\n com.kodular.chameleon.ChameleonAds r2 = r2.chameleonAds\n com.google.appinventor.components.runtime.KodularChameleonAd$1 r3 = new com.google.appinventor.components.runtime.KodularChameleonAd$1\n r6 = r3\n r3 = r6\n r4 = r6\n r5 = r0\n r4.<init>(r5)\n r2.setOnAdLoadedListener(r3)\n r2 = r0\n com.kodular.chameleon.ChameleonAds r2 = r2.chameleonAds\n com.google.appinventor.components.runtime.KodularChameleonAd$2 r3 = new com.google.appinventor.components.runtime.KodularChameleonAd$2\n r6 = r3\n r3 = r6\n r4 = r6\n r5 = r0\n r4.<init>(r5)\n r2.setOnAdFailedToLoadListener(r3)\n r2 = r0\n com.kodular.chameleon.ChameleonAds r2 = r2.chameleonAds\n com.google.appinventor.components.runtime.KodularChameleonAd$3 r3 = new com.google.appinventor.components.runtime.KodularChameleonAd$3\n r6 = r3\n r3 = r6\n r4 = r6\n r5 = r0\n r4.<init>(r5)\n r2.setOnAdFailedToShowListener(r3)\n r2 = r0\n com.kodular.chameleon.ChameleonAds r2 = r2.chameleonAds\n com.google.appinventor.components.runtime.KodularChameleonAd$4 r3 = new com.google.appinventor.components.runtime.KodularChameleonAd$4\n r6 = r3\n r3 = r6\n r4 = r6\n r5 = r0\n r4.<init>(r5)\n r2.setOnAdClosed(r3)\n java.lang.String r2 = \"Kodular Chameleon Ad\"\n java.lang.String r3 = \"Kodular Chameleon Ad Created\"\n int r2 = android.util.Log.d(r2, r3)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.appinventor.components.runtime.KodularChameleonAd.<init>(com.google.appinventor.components.runtime.ComponentContainer):void\");\n }", "title": "" }, { "docid": "c5513afadad1ea1e5bf00456813c2e15", "score": "0.54115385", "text": "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "title": "" }, { "docid": "c70a42161c5641b913d3e29138f069c3", "score": "0.54114306", "text": "@Override\n public void adClicked(Ad arg0) {\n\n }", "title": "" } ]
765b50521d09560db556a69ff32c199d
Set value with expire time
[ { "docid": "86fea4c7206c496c901c77f444f141dd", "score": "0.0", "text": "public String setex(byte[] session, int expire_time, byte[] user) {\n Jedis jedis = getJedis();\n String res = jedis.setex(session, expire_time, user);\n jedis.close();\n return res;\n }", "title": "" } ]
[ { "docid": "14849b62cfe2940e64f9ae7099ba9879", "score": "0.7705041", "text": "public void setExpireTime(int seconds);", "title": "" }, { "docid": "8eb051969ddc79eddf495006cd142557", "score": "0.76332927", "text": "public void setExpiryTime(Date expire) {\n\t\t\n\t}", "title": "" }, { "docid": "518d80e65e1b53485e1987b48d51e0ee", "score": "0.7506221", "text": "@Override\n public void set(String key, V value, Long expireTime) {\n valueOperations.set(key, value ,expireTime,TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "be8cfda374d7c717425b578d173b077d", "score": "0.7301527", "text": "@Override\n public boolean set(String key, T value, DateTime expiration) throws IllegalStateException {\n return setInSeconds(key, value, (int) TimeUnit.MILLISECONDS.toSeconds(expiration.getMillis()));\n }", "title": "" }, { "docid": "a385e3050ec287c35a98f4f560d1c3a2", "score": "0.7283968", "text": "@Override\n\tpublic void expire(String k, Value v)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "c41d5f4d1e46c43c7af0776342e9f6c0", "score": "0.7239956", "text": "private void setTokenExpire() {\n ITokenCacheStore currentCache = mAuthContext.getCache();\n\n String key = CacheKey.createCacheKey(Constants.AUTHORITY_URL, Constants.RESOURCE_ID,\n Constants.CLIENT_ID, false, Constants.USER_HINT);\n TokenCacheItem item = currentCache.getItem(key);\n if (item != null) {\n Calendar timeExpired = new GregorianCalendar(TimeZone.getTimeZone(\"UTC\"));\n timeExpired.add(Calendar.MINUTE, -50);\n item.setExpiresOn(timeExpired.getTime());\n currentCache.setItem(key, item);\n }\n }", "title": "" }, { "docid": "29b6d596a23023c29339be7bc98a59d0", "score": "0.7222102", "text": "public void setExpirationDate(Date d);", "title": "" }, { "docid": "d61d0d50106cb19c87027d1df63adfc8", "score": "0.71789277", "text": "public boolean setWithExpire(final String key, final String value, final int expireSeconds);", "title": "" }, { "docid": "f9fbb5c9951e260943b8a1bcc9845f0c", "score": "0.7042778", "text": "void setExpiredAt(Date expiredAt);", "title": "" }, { "docid": "3c29496ec40fb9b0edcc4d5a2c2264ce", "score": "0.7036012", "text": "void setExpiresAt(long pTimestamp);", "title": "" }, { "docid": "51b112f1cad42c78c0858d54b5fa133b", "score": "0.6991079", "text": "public void setExpireTime(Long ExpireTime) {\n this.ExpireTime = ExpireTime;\n }", "title": "" }, { "docid": "5a9677d79ae61c2b35f857fa0c94a00f", "score": "0.6939327", "text": "public void setExpiration(long exp)\r\n\t{\r\n\t\tplayerTimeStamp= new MapMaker().expiration(exp, TimeUnit.MINUTES).makeMap();\r\n\t}", "title": "" }, { "docid": "865ceb92737b071483589f44a8cf50b7", "score": "0.6917663", "text": "public Builder expirationTime(ExpirationTime value) {\n parameters.expirationTime = value;\n return this;\n }", "title": "" }, { "docid": "29e236bdef494076e4548e19a88b80e2", "score": "0.6848394", "text": "public void setExpireTime(String ExpireTime) {\n this.ExpireTime = ExpireTime;\n }", "title": "" }, { "docid": "7761910a116567d6d55bb362e69aa871", "score": "0.6709362", "text": "@Test\n public void testSetExpire() {\n Datastore datastore = getService();\n KeyFactory keyFactory = datastore.newKeyFactory().setKind(CACHE_KIND);\n Key datastoreKey = keyFactory.newKey(\"test\");\n Entity entity = datastore.get(datastoreKey);\n assertNull(entity);\n\n // Mock the system time\n mockStatic(TimeUtils.class);\n long initialNow = 1000000000000L;\n PowerMockito.when(TimeUtils.currentTimeMillis()).thenReturn(initialNow);\n\n // Let the backend set the key/value\n int expireIn = 2;\n cache.set(\"test\", \"abcd\".getBytes(), expireIn);\n\n // Check that the key/value was correctly set\n entity = datastore.get(datastoreKey);\n assertArrayEquals(\"abcd\".getBytes(), cache.get(\"test\"));\n assertArrayEquals(\"abcd\".getBytes(), entity.getBlob(CACHE_VALUE_FIELD).toByteArray());\n\n // Change the system time again to simulate elapsing time (up to 1 millisecond before the expiry\n // time)\n long newNow = initialNow + (expireIn * 1000) - 1;\n PowerMockito.when(TimeUtils.currentTimeMillis()).thenReturn(newNow);\n\n // Check that the key/value is still accessible\n entity = datastore.get(datastoreKey);\n assertArrayEquals(\"abcd\".getBytes(), cache.get(\"test\"));\n assertArrayEquals(\"abcd\".getBytes(), entity.getBlob(CACHE_VALUE_FIELD).toByteArray());\n\n // Change the system time again up to expiry time\n newNow = initialNow + expireIn * 1000;\n PowerMockito.when(TimeUtils.currentTimeMillis()).thenReturn(newNow);\n\n // Check that the key/value is now inaccessible\n assertNull(cache.get(\"test\"));\n }", "title": "" }, { "docid": "5b35a36191ba7df8a6fc2f6c26231577", "score": "0.6688415", "text": "public void setExpired(Integer expired) {\n this.expired = expired;\n }", "title": "" }, { "docid": "0a9086c5b426077305e1c28260d07ee1", "score": "0.6676914", "text": "public void expire()\n {\n // Update to the time that we expire at.\n update( m_leaseExpirationTime, false );\n\n m_expired = true;\n }", "title": "" }, { "docid": "574b60aa9a0b9bfd9969c4baa3cae1c8", "score": "0.6670692", "text": "public void setExpired(boolean value) {\n this.expired = value;\n }", "title": "" }, { "docid": "870587d6e85790966e74f407e7916653", "score": "0.6651371", "text": "public void setExpiration(java.util.Date iE){\n\t\tthis.iE = iE;\n\t}", "title": "" }, { "docid": "7de576362a30e0f81299f1281a69f0d6", "score": "0.66506946", "text": "public void setExpiration(long expiration) {\r\n\t\t\tthis.expiration = expiration;\r\n\t\t}", "title": "" }, { "docid": "9bff63f54c32265ba889f81ef0783ca5", "score": "0.6619776", "text": "public Builder setExpirationDate(int value) {\n bitField0_ |= 0x00000002;\n expirationDate_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "09a464c54d96fe9055395ff44f0cc6d1", "score": "0.6606721", "text": "public boolean lSet(String key, Object value, long time)\n {\n redisTemplate.opsForList().rightPush(key, value);\n return expire(key, time);\n }", "title": "" }, { "docid": "98a3e2fe71ec9e8e12f1647a72f51d8a", "score": "0.65765977", "text": "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "title": "" }, { "docid": "98a3e2fe71ec9e8e12f1647a72f51d8a", "score": "0.65765977", "text": "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "title": "" }, { "docid": "98a3e2fe71ec9e8e12f1647a72f51d8a", "score": "0.65765977", "text": "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "title": "" }, { "docid": "177c2d935acccb6e06700217a8dbb713", "score": "0.65764964", "text": "public Builder setExpireMs(long value) {\n \n expireMs_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "174ba2666c19e0e63fd8a07bf9a03fca", "score": "0.65552706", "text": "public void set(String key, Object value, long time)\n {\n if(time > 0)\n {\n redisTemplate.opsForValue().set(key, value, time);\n }\n else\n {\n set(key, value);\n }\n }", "title": "" }, { "docid": "14655a3d22873bbd80d51588ffd83598", "score": "0.6523476", "text": "public void expireNow()\n {\n stateTime -= 180 * 1000;\n }", "title": "" }, { "docid": "3a79f4d29af32c03b640353b7a28e8f2", "score": "0.65163773", "text": "public int getExpireTime();", "title": "" }, { "docid": "330501e0e31a9b46a894e2fdaf570345", "score": "0.6485575", "text": "void setTimeToLive(int ttl) throws IOException;", "title": "" }, { "docid": "e998220769b4c66daec70001d1706627", "score": "0.6471779", "text": "abstract public long getExpiration();", "title": "" }, { "docid": "41d2f3d6d111935a0694964d7b7789bf", "score": "0.6457275", "text": "@Override\n public boolean set(String key, T value) throws IllegalStateException {\n int expiration = SYSTEM_CONFIG.getIntProperty(EXPIRATION_KEY, EXPIRATION_DEFAULT_VALUE);\n return setInSeconds(key, value, expiration);\n }", "title": "" }, { "docid": "e6d9045c99b6e1d6ca00a7431fcec8c6", "score": "0.6443824", "text": "public void setExpired(String expired)\n {\n this.expired = expired;\n }", "title": "" }, { "docid": "e53f3b752b3b28db94af898a200a7050", "score": "0.64381796", "text": "public void setExpires(String expires){\n\t\tsetParameter(\"expires\",expires) ;\n\t}", "title": "" }, { "docid": "e5a7fba8085462c0ab4b79f757a37591", "score": "0.6414242", "text": "@Override\n\tpublic void setExpiryDate(Date expiryDate) {\n\t\t\n\t}", "title": "" }, { "docid": "7007f04bf6202e7b2ea486d85e1c5840", "score": "0.63988066", "text": "Expiration getExpiration();", "title": "" }, { "docid": "a36235b598c7a5ab32eab831a8a66b67", "score": "0.63750315", "text": "public void setQuoteExpirationDate(final AbstractOrder item, final Date value)\n\t{\n\t\tsetQuoteExpirationDate( getSession().getSessionContext(), item, value );\n\t}", "title": "" }, { "docid": "66e4f44d433ef226f39942e2476ca673", "score": "0.6365", "text": "long getExpireMs();", "title": "" }, { "docid": "8b6872c9fc16290039d3fa1bbdb165c9", "score": "0.6357538", "text": "public void setMaxAge( int expiry )\r\n\t{\r\n\t\tmaxAge = expiry;\r\n\t}", "title": "" }, { "docid": "758205f33863dec55d3317a995c83657", "score": "0.6343781", "text": "void setTimeToLive(Duration timeToLive);", "title": "" }, { "docid": "0279a5e02f4e3485eb12dc5d11ec6bd9", "score": "0.6342885", "text": "@JsonSetter(\"expires_in\")\r\n public void setExpiresIn (Integer value) { \r\n this.expiresIn = value;\r\n }", "title": "" }, { "docid": "b71234ea8df57985d097a1946de0cad4", "score": "0.63419455", "text": "ExpiringObject(final V value, final long lastAccessTimeMillis) {\n if (value == null) {\n throw new IllegalArgumentException(\"An expiring object cannot be null.\");\n }\n this.value = value;\n this.lastAccessTime = lastAccessTimeMillis;\n }", "title": "" }, { "docid": "4eda57069c4b0093f557200c04df6e75", "score": "0.6317717", "text": "public void updateExpiration() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.SECOND, FoxyServerSettings.getInstance().getGetSessionInactivityTimeoutSeconds());\n\t\tsessionExpires = cal.getTime().getTime();\n\t}", "title": "" }, { "docid": "9d1f5930af72a1f65e841cd184bd806b", "score": "0.6315495", "text": "public void setExpires(String expires) {\n this.expires = expires;\n }", "title": "" }, { "docid": "a905765392ece72ac96dfd8cbdb125da", "score": "0.62974054", "text": "public void set(int currTime, int key, int value, int ttl) {\n int ub = (ttl == 0) ? Integer.MAX_VALUE : currTime + ttl;\n map.put(key, new Wrapper(value, currTime, ub));\n }", "title": "" }, { "docid": "fde39556f2851538de0b138382791ed6", "score": "0.62897193", "text": "public Builder setExpiresIn(int value) {\n \n expiresIn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "04a2c77f7709dd184806abcb26b743c8", "score": "0.62708485", "text": "public void setCreditExpire(String ce)\n {\n creditExpire = ce;\n }", "title": "" }, { "docid": "7b771c93723c00b68afae8edc737ed9f", "score": "0.62675124", "text": "public void setQuoteExpirationDate(final SessionContext ctx, final AbstractOrder item, final Date value)\n\t{\n\t\titem.setProperty(ctx, B2BCommerceConstants.Attributes.AbstractOrder.QUOTEEXPIRATIONDATE,value);\n\t}", "title": "" }, { "docid": "f7f60e820a22a6cf8bb99859b2a5d161", "score": "0.62659657", "text": "public Expiration getExpiration() { return expiration; }", "title": "" }, { "docid": "6e9f318ece4aa577b1646ed8b2c7a186", "score": "0.6199754", "text": "public static void set(String key, Object value, int expiration) {\r\n\t\tplay.api.cache.Cache.set(key, value, expiration,\r\n\t\t\t\tplay.api.Play.unsafeApplication());\r\n\t}", "title": "" }, { "docid": "70d5327d1e3ae69501e20885f27e332a", "score": "0.61827904", "text": "public void set(String key, String value, long ttl) throws Exception {\n log.info(\"set: \" + key+\" \"+value + \" \"+ttl);\n this.dataStore.set(key, value, ttl);\n }", "title": "" }, { "docid": "ad54f89dc63a11686cb61f55c543fe2b", "score": "0.6179484", "text": "public long getExpiration() {\r\n\t\t\treturn expiration;\r\n\t\t}", "title": "" }, { "docid": "ad54f89dc63a11686cb61f55c543fe2b", "score": "0.6179484", "text": "public long getExpiration() {\r\n\t\t\treturn expiration;\r\n\t\t}", "title": "" }, { "docid": "a14b13bf01d50c6eb5ba20c92dddbe19", "score": "0.6174825", "text": "public boolean hset(String key, String item, Object value, long time)\n {\n redisTemplate.opsForHash().put(key, item, value);\n return expire(key, time);\n }", "title": "" }, { "docid": "e24f6b8763226cb51b4f42f435a3d736", "score": "0.6148938", "text": "public Date getExpireDate() {\n return expireDate;\n }", "title": "" }, { "docid": "e24f6b8763226cb51b4f42f435a3d736", "score": "0.6148938", "text": "public Date getExpireDate() {\n return expireDate;\n }", "title": "" }, { "docid": "e24f6b8763226cb51b4f42f435a3d736", "score": "0.6148938", "text": "public Date getExpireDate() {\n return expireDate;\n }", "title": "" }, { "docid": "932d6f67789cc6047f864f6095ace05c", "score": "0.61462057", "text": "public void updateExpiryTime(EntityManager manager, String topcatSessionId, Long id, Date expiryTime) {\n if (logger.isInfoEnabled()) {\n logger.info(\"updateExpiryTime: topcatSessionId (\" + topcatSessionId + \"), id (\" + id + \"), expiry time (\" + expiryTime.toString() + \")\");\n }\n manager.createNamedQuery(\"TopcatUserDownload.updateExpiryTimeById\").setParameter(\"id\", id).\n setParameter(\"expiryTime\", expiryTime).executeUpdate();\n manager.flush();\n }", "title": "" }, { "docid": "fec7c65de7879cd982df1ae3d008a636", "score": "0.61385953", "text": "public long getExpirationDate();", "title": "" }, { "docid": "51b039eb947f7123d5de2388fdb6dbc3", "score": "0.6138208", "text": "private void setPasswordExpiry(User user) {\n\t\tCalendar date = Calendar.getInstance();\n\t\tGregorianCalendar passwordExpiry = new GregorianCalendar(date.get(Calendar.YEAR),\n \t\t\t\t\t\t\t\t\t\t\t\t date.get(Calendar.MONTH),\n \t\t\t\t\t\t\t\t\t\t\t\t date.get(Calendar.DAY_OF_MONTH));\n\t\tpasswordExpiry.add(Calendar.DAY_OF_MONTH, getPasswordDurationDays());\n\t\tuser.setPasswordExpiryDate(passwordExpiry.getTime());\n\t}", "title": "" }, { "docid": "72637f9b775c09984eb5dd6e230fd3ad", "score": "0.6137474", "text": "public Long getExpireTime() {\n return this.ExpireTime;\n }", "title": "" }, { "docid": "27dd04ee4af94e1a19cb05260118e5f4", "score": "0.6134468", "text": "@Override\n\tpublic long getExpiresTime() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "54882ba3772ed32addec95738ec309fd", "score": "0.6126198", "text": "private void setActivationTimeSec(int index, int value) {\n ensureActivationTimeSecIsMutable();\n this.activationTimeSec_.setInt(index, value);\n }", "title": "" }, { "docid": "bd0859f7043a0c94cb3d8f4401c149e4", "score": "0.6117917", "text": "public void setExpirationDate(Date expirationDate) {\n this.expirationDate = expirationDate;\n }", "title": "" }, { "docid": "4413d10f2084194c1d0941f5cd521c4c", "score": "0.6096562", "text": "public Date getExpireDateTime() \n\t{ \n\t\treturn expireDateTime; \n\t}", "title": "" }, { "docid": "9cc316facf3d1800952eb02c28250841", "score": "0.60745716", "text": "Update withFreeOfferExpirationTime(OffsetDateTime freeOfferExpirationTime);", "title": "" }, { "docid": "2b0ad7b9d2465d45f3e6b9d6fa3c656e", "score": "0.6067883", "text": "Integer expiresIn();", "title": "" }, { "docid": "fd464e7cedc64ff9f99db11fc55d77e9", "score": "0.6065751", "text": "int getExpirationDate();", "title": "" }, { "docid": "5f44bec500e31a92850f3113e573deee", "score": "0.6057837", "text": "public void expiryDate() {\n\t\tint month = random.nextInt(12 - 1 + 1) + 1;\n\t\tint year = random.nextInt(25 - 20 + 1) + 20;\n\n\t\tString expiry = String.valueOf(month) + \"/\" + String.valueOf(year);\n\t\tsetExpiry(expiry);\n\t}", "title": "" }, { "docid": "1742acba8d108f2834777cf8ed7f432a", "score": "0.6057326", "text": "private void expire() {\n \t\tisBusy = false;\n \t\tcurrentTimeout = TIMEOUT;\n \t\tvalidator.noteExpired(currentEvent);\n \t}", "title": "" }, { "docid": "5088342a313120ad151bad9ce8b8f694", "score": "0.6052443", "text": "public String getExpireTime() {\n return this.ExpireTime;\n }", "title": "" }, { "docid": "ac10fa82d3c437b936c2e9dfa7c7379d", "score": "0.6050796", "text": "public static void initProValue() {\r\n expiry = Integer.valueOf(PropertiesUtil.getProperties(AuthConstant.COOKIE_EXPIRY_TIME_KEY));\r\n }", "title": "" }, { "docid": "70ebd7312beeb0835f96d8c104ee8082", "score": "0.60349315", "text": "long getExpiresAt();", "title": "" }, { "docid": "2b324222220cdee42dc163b522561a69", "score": "0.6033032", "text": "public void set_cltv_expiry_delta(short val) {\n\t\tbindings.DirectionalChannelInfo_set_cltv_expiry_delta(this.ptr, val);\n\t}", "title": "" }, { "docid": "273fab3559f7847bfd3e011c577d51b2", "score": "0.6030139", "text": "public void setTimeToLive(int ttl) throws IOException {\n\ttry {\n\t super.setTimeToLive(ttl) ;\n\t} catch (IOException e) {\n\t if (logger.finestOn()) {\n\t\tlogger.finest(\"setTimeToLive\" , \n\t\t\t \"Unable to set Time-to-live to \" + ttl ) ;\n\t }\n\t throw e ;\n\t}\n\n\tif (logger.finerOn()) {\n\t logger.finer(\"Time-to-live\" , \"Set Time-to-live to \" + ttl ) ;\n\t}\n this.ttl = ttl ;\n }", "title": "" }, { "docid": "79617d3ec6051c86979a36331681ecb9", "score": "0.60224766", "text": "public void setPwd_expire(java.util.Date pwd_expire) {\n\n this.pwd_expire = pwd_expire;\n }", "title": "" }, { "docid": "de4b2924f5a689685c47c1da64f97068", "score": "0.6021829", "text": "private static void setCacheItem(String key, Object value) {\r\n // STUDENT TODO 4: Replace the solution with your own code\r\n// Solution.setCacheItem(memcachedClient, key, value);\r\n\t int time = 3600;\r\n\t memcachedClient.set(key, time, value);\r\n }", "title": "" }, { "docid": "f6ac0c4812b3bb3744df69903919d570", "score": "0.599127", "text": "public Builder setLeaseExpiry(long value) {\n bitField0_ |= 0x00000001;\n leaseExpiry_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "23cba0febf1b2911fa2b9871248ba5d6", "score": "0.59906346", "text": "Update withSpotExpirationTime(OffsetDateTime spotExpirationTime);", "title": "" }, { "docid": "2c709d1329e278d99cde49ebcd5de3f0", "score": "0.5989586", "text": "@NotNull public Builder expires(@NotNull java.util.Date date) {\n putValue(\"expires\", date);\n return this;\n }", "title": "" }, { "docid": "c456602e531043a388487361fc2f0601", "score": "0.59884155", "text": "public Date getExpirationDate();", "title": "" }, { "docid": "a46914a84b006223014ac828661c3a63", "score": "0.59873694", "text": "public Builder setTradeBanExpiration(int value) {\n bitField0_ |= 0x00000020;\n tradeBanExpiration_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ba0e8d5126b9f007e0aacb5923dfc088", "score": "0.5987109", "text": "public void setExpirationDate(Date expiresAt) {\n\t\tm_expirationDate = expiresAt;\n\t}", "title": "" }, { "docid": "9234cc412620f8d1fb6f7896fd3828ca", "score": "0.5975", "text": "public void setExpires_In(int expires_in) {\n this.expires_in = expires_in;\n }", "title": "" }, { "docid": "23bb8826257b2d140361c9417b0381d2", "score": "0.5973939", "text": "public Builder setExpireTime(com.google.protobuf.Timestamp value) {\n if (expireTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n expireTime_ = value;\n } else {\n expireTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a15fb974db6036a9eaeedc9b3bee2e67", "score": "0.5963315", "text": "private boolean setInSeconds(String key, T value, int expirationInSeconds) throws IllegalStateException {\n try {\n // Omitting null checking for key since it should be rare.\n // An exception will be thrown by the memcached client.\n if (SYSTEM_CONFIG.getBooleanProperty(WAIT_FOR_FUTURE, false)) {\n return client.set(key, expirationInSeconds, value).get();\n } else {\n return client.set(key, expirationInSeconds, value) != null;\n }\n } catch (Exception e) {\n Throwable exception = e.getClass() == RuntimeException.class ? e.getCause() : e;\n if (exception instanceof TimeoutException) {\n //mark and log the timeout errors on cache set\n\n CACHE_SET_TIMEOUT_FAILURES.mark(1);\n BardQueryInfo.getBardQueryInfo().incrementCountCacheSetTimeoutFailures();\n BardQueryInfo.getBardQueryInfo().addCacheInfo(\n CacheV2ResponseProcessor.getMD5Checksum(key),\n new BardCacheInfo(\n LOG_CACHE_SET_TIMEOUT,\n key.length(),\n CacheV2ResponseProcessor.getMD5Checksum(key),\n null,\n value.toString().length()\n )\n );\n\n }\n LOG.warn(\"set failed for key: {} ,cksum: {} {}\",\n key, CacheV2ResponseProcessor.getMD5Checksum(key), e.toString());\n throw new IllegalStateException(e);\n }\n }", "title": "" }, { "docid": "aef61419c541e67db6aabf20a226a661", "score": "0.59629565", "text": "public Builder setExpireTime(com.google.protobuf.Timestamp value) {\n if (expireTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n expireTime_ = value;\n } else {\n expireTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8ea9c4fe8f859c5a413f465e0f024d64", "score": "0.59470886", "text": "public Builder expiration(Expiration expiration) { this.expiration = expiration; return this; }", "title": "" }, { "docid": "f508f2357c57d2b36f5dc9566707e18e", "score": "0.594006", "text": "public long getExpiresAt()\n {\n return expiresAt;\n }", "title": "" }, { "docid": "2558f2010974a1c99db0c293a5d8a82d", "score": "0.59251404", "text": "public void expire(ModificationType t) {\n synchronized (timerLock) {\n expire(t, null); \n }\n }", "title": "" }, { "docid": "64d7f2a843b58e69f5ac933a6c8a2df3", "score": "0.59058803", "text": "public void setFloatingExpirationPeriod(Long period);", "title": "" }, { "docid": "f1894bf9af1432901bbeb86f1fed353c", "score": "0.5887998", "text": "public DateTime getExpiresAt() {\n return expiresAt;\n }", "title": "" }, { "docid": "9ad55a01af3a44e0a67f912031d32bfa", "score": "0.5886637", "text": "public void setYearExpiration(int value) {\n this.yearExpiration = value;\n }", "title": "" }, { "docid": "0597b58dbfe2d93e48fde41009ebdf62", "score": "0.58857644", "text": "public String getExpires() {\n return expires;\n }", "title": "" }, { "docid": "7bb7ed52c0ba20708dab5242e1f96cbc", "score": "0.5879451", "text": "public void setMonthExpiration(int value) {\n this.monthExpiration = value;\n }", "title": "" }, { "docid": "ec3e49f55d334ceeacc7fda97f71608b", "score": "0.58670324", "text": "public void setValidTo (Timestamp ValidTo)\n{\nset_Value (\"ValidTo\", ValidTo);\n}", "title": "" }, { "docid": "f843b788e0a0b624222a47954be913a7", "score": "0.5859777", "text": "public void setExpireDateTime(final String expireDateTime) \n\t{\n\t\tthis.expireDateTime = getDate(expireDateTime);\n\t}", "title": "" }, { "docid": "c62cede453ca65c1c4c9463c8ab466d0", "score": "0.58497614", "text": "public void setExpirationDate(String expirationDate) {\r\n this.expirationDate = expirationDate;\r\n }", "title": "" }, { "docid": "1a1bb92e3300a3611477a2dbf64ad736", "score": "0.5846058", "text": "public long getExpireMs() {\n return expireMs_;\n }", "title": "" }, { "docid": "17182ad46d96248816fb6a1a5611248e", "score": "0.5835124", "text": "private int getExpirationTime() {\n \t\tString value = properties.getProperty(EXPIRATION_TIME_KEY);\n \t\t\n \t\tif (value == null) {\n \t\t\treturn DEFAULT_EXPIRATION_TIME;\n \t\t}\n \t\t\n \t\treturn Integer.valueOf(value);\n \t}", "title": "" }, { "docid": "07007601313c80de34af2b5e8c326557", "score": "0.58320284", "text": "public Date getExpirationDate() {\n return _expirationDate;\n }", "title": "" } ]
6022e6ab9dde09da6d481b588daeb777
Usado para retorna seu STATUS CODE (um codigo de resposta da requisicao)
[ { "docid": "359de8ed04515fbdb74307bd0ab248a5", "score": "0.0", "text": "@GetMapping(\"/list\")\n\t//@PreAuthorize(\"hasRole('ROLE_USER')\")\n\t@PreAuthorize(\"hasAuthority('USER')\")\n\t@Operation(summary = \"List all animes paginated and sorted\",\n \tdescription = \"To use pagination and sort add the params ?page='number'&sort='field' to the url\",\n \ttags = {\"anime\"})\n\t@ResponseStatus\n\tpublic ResponseEntity<Page<Anime>> listAll(Pageable pageable){\n\t\t//logger.info(\"Date formatted {}\", dateUtil.formatLocalDateTimeToDBStyle(LocalDateTime.now()));\n\t\t//return new ResponseEntity<>(animeService.listAll(pageable), HttpStatus.OK); // Retorna a lista de Student e o Status da resposta HTTP\n\t\treturn ResponseEntity.ok(animeService.listAll(pageable));// => tera o mesmo resultado que o de cima\n\t}", "title": "" } ]
[ { "docid": "f1d8e6dc90d2dc994f2258051e695e53", "score": "0.74878436", "text": "gov.nasa.gsfc.spdf.ssc.ResultStatusCode.Enum getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.73814225", "text": "int getStatusCode();", "title": "" }, { "docid": "be8f7def24b5958f106db352121e16f1", "score": "0.7329881", "text": "public interface StatusCode {\n\n /**\n * Status code (100) indicating the client can continue.\n */\n int SC_CONTINUE = 100;\n\n /**\n * Status code (101) indicating the server is switching protocols according to Upgrade header.\n */\n int SC_SWITCHING_PROTOCOLS = 101;\n\n /**\n * Status code (200) indicating the request succeeded normally.\n */\n int SC_OK = 200;\n\n /**\n * Status code (201) indicating the request succeeded and created a new resource on the server.\n */\n int SC_CREATED = 201;\n\n /**\n * Status code (202) indicating that a request was accepted for processing, but was not completed.\n */\n int SC_ACCEPTED = 202;\n\n /**\n * Status code (203) indicating that the meta information presented by the client did not originate from the\n * server.\n */\n int SC_NON_AUTHORITATIVE_INFORMATION = 203;\n\n /**\n * Status code (204) indicating that the request succeeded but that there was no new information to return.\n */\n int SC_NO_CONTENT = 204;\n\n /**\n * Status code (205) indicating that the agent <em>SHOULD</em> reset the document view which caused the request to\n * be sent.\n */\n int SC_RESET_CONTENT = 205;\n\n /**\n * Status code (206) indicating that the server has fulfilled the partial GET request for the resource.\n */\n int SC_PARTIAL_CONTENT = 206;\n\n /**\n * Status code (300) indicating that the requested resource corresponds to any one of a set of representations, each\n * with its own specific location.\n */\n int SC_MULTIPLE_CHOICES = 300;\n\n /**\n * Status code (301) indicating that the resource has permanently moved to a new location, and that future\n * references should use a new URI with their requests.\n */\n int SC_MOVED_PERMANENTLY = 301;\n\n /**\n * Status code (302) indicating that the resource reside temporarily under a different URI. Since the redirection\n * might be altered on occasion, the client should continue to use the Request-URI for future requests.(HTTP/1.1) To\n * represent the status code (302), it is recommended to use this variable.\n */\n int SC_FOUND = 302;\n\n /**\n * Status code (303) indicating that the response to the request can be found under a different URI.\n */\n int SC_SEE_OTHER = 303;\n\n /**\n * Status code (304) indicating that a conditional GET operation found that the resource was available and not\n * modified.\n */\n int SC_NOT_MODIFIED = 304;\n\n /**\n * Status code (305) indicating that the requested resource <em>MUST</em> be accessed through the proxy given by\n * the\n * <code><em>Location</em></code> field.\n */\n int SC_USE_PROXY = 305;\n\n /**\n * Status code (307) indicating that the requested resource resides temporarily under a different URI. The temporary\n * URI\n * <em>SHOULD</em> be given by the <code><em>Location</em></code> field in the response.\n */\n int SC_TEMPORARY_REDIRECT = 307;\n\n /**\n * Status code (400) indicating the request sent by the client was syntactically incorrect.\n */\n int SC_BAD_REQUEST = 400;\n\n /**\n * Status code (401) indicating that the request requires HTTP authentication.\n */\n int SC_UNAUTHORIZED = 401;\n\n /**\n * Status code (402) reserved for future use.\n */\n int SC_PAYMENT_REQUIRED = 402;\n\n /**\n * Status code (403) indicating the server understood the request but refused to fulfill it.\n */\n int SC_FORBIDDEN = 403;\n\n /**\n * Status code (404) indicating that the requested resource is not available.\n */\n int SC_NOT_FOUND = 404;\n\n /**\n * Status code (405) indicating that the method specified in the <code><em>Request-Line</em></code> is not allowed\n * for the resource identified by the <code><em>Request-URI</em></code>.\n */\n int SC_METHOD_NOT_ALLOWED = 405;\n\n /**\n * Status code (406) indicating that the resource identified by the request is only capable of generating response\n * entities which have content characteristics not acceptable according to the accept headers sent in the request.\n */\n int SC_NOT_ACCEPTABLE = 406;\n\n /**\n * Status code (407) indicating that the client <em>MUST</em> first authenticate itself with the proxy.\n */\n int SC_PROXY_AUTHENTICATION_REQUIRED = 407;\n\n /**\n * Status code (408) indicating that the client did not produce a request within the time that the server was\n * prepared to wait.\n */\n int SC_REQUEST_TIMEOUT = 408;\n\n /**\n * Status code (409) indicating that the request could not be completed due to a conflict with the current state of\n * the resource.\n */\n int SC_CONFLICT = 409;\n\n /**\n * Status code (410) indicating that the resource is no longer available at the server and no forwarding address is\n * known. This condition <em>SHOULD</em> be considered permanent.\n */\n int SC_GONE = 410;\n\n /**\n * Status code (411) indicating that the request cannot be handled without a defined\n * <code><em>Content-Length</em></code>.\n */\n int SC_LENGTH_REQUIRED = 411;\n\n /**\n * Status code (412) indicating that the precondition given in one or more of the request-header fields evaluated to\n * false when it was tested on the server.\n */\n int SC_PRECONDITION_FAILED = 412;\n\n /**\n * Status code (413) indicating that the server is refusing to process the request because the request entity is\n * larger than the server is willing or able to process.\n */\n int SC_REQUEST_ENTITY_TOO_LARGE = 413;\n\n /**\n * Status code (414) indicating that the server is refusing to service the request because the\n * <code><em>Request-URI</em></code> is longer than the server is willing to interpret.\n */\n int SC_REQUEST_URI_TOO_LONG = 414;\n\n /**\n * Status code (415) indicating that the server is refusing to service the request because the entity of the request\n * is in a format not supported by the requested resource for the requested method.\n */\n int SC_UNSUPPORTED_MEDIA_TYPE = 415;\n\n /**\n * Status code (416) indicating that the server cannot serve the requested byte range.\n */\n int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;\n\n /**\n * Status code (417) indicating that the server could not meet the expectation given in the Expect request header.\n */\n int SC_EXPECTATION_FAILED = 417;\n\n /**\n * Status code (500) indicating an error inside the HTTP server which prevented it from fulfilling the request.\n */\n int SC_INTERNAL_SERVER_ERROR = 500;\n\n /**\n * Status code (501) indicating the HTTP server does not support the functionality needed to fulfill the request.\n */\n int SC_NOT_IMPLEMENTED = 501;\n\n /**\n * Status code (502) indicating that the HTTP server received an invalid response from a server it consulted when\n * acting as a proxy or gateway.\n */\n int SC_BAD_GATEWAY = 502;\n\n /**\n * Status code (503) indicating that the HTTP server is temporarily overloaded, and unable to handle the request.\n */\n int SC_SERVICE_UNAVAILABLE = 503;\n\n /**\n * Status code (504) indicating that the server did not receive a timely response from the upstream server while\n * acting as a gateway or proxy.\n */\n int SC_GATEWAY_TIMEOUT = 504;\n\n /**\n * Status code (505) indicating that the server does not support or refuses to support the HTTP protocol version\n * that was used in the request message.\n */\n int SC_HTTP_VERSION_NOT_SUPPORTED = 505;\n}", "title": "" }, { "docid": "eafac9b862d22835a9b02c1b138ad642", "score": "0.7296436", "text": "int getReturnCode();", "title": "" }, { "docid": "8051b03ac9ad59c09bad068d3443ed21", "score": "0.7264309", "text": "public int getStatusCode();", "title": "" }, { "docid": "4993b60a0e979952aeb34c2903544ff7", "score": "0.7226479", "text": "gov.nasa.gsfc.spdf.ssc.ResultStatusSubCode.Enum getStatusSubCode();", "title": "" }, { "docid": "961faee695daabbac95482b5f7c5fd49", "score": "0.71219236", "text": "StatusResponse getStatus();", "title": "" }, { "docid": "12d9f0e69f98cd4d1fb6c9052b178fb4", "score": "0.70016044", "text": "String getStatusCode();", "title": "" }, { "docid": "6fd3d05ac37cce68e1b2812074ee1255", "score": "0.69942164", "text": "HttpStatusCode getStatusCode();", "title": "" }, { "docid": "cfd6c122960a9b10065eb2404809ccc2", "score": "0.6957634", "text": "public Code getStatus(){\n\t\treturn status;\n\t}", "title": "" }, { "docid": "0d54a2cebf333b73c1aa9f0e55cfd7f3", "score": "0.69297236", "text": "int getStatusCode() throws IOException;", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.69276136", "text": "int getStatus();", "title": "" }, { "docid": "6fde0316125210334c40bd488ff42afb", "score": "0.6896231", "text": "public interface ResponseCode {\n int OK = 200; // normal\n int ERROR_INTERNAL = 500; // server logic error\n int ERROR_PARAM = 511; // argument Error\n int ERROR_TASK_NOT_EXIST = 520; // task not exist\n}", "title": "" }, { "docid": "38ed165f0a903e37969e196cb8cb4cd7", "score": "0.68821925", "text": "com.yunhui.fir.rpc.proto.FirRpcProtocol.RpcStatus getStatus();", "title": "" }, { "docid": "b5aa2fbc1f4cff6d30b8deb983824e1d", "score": "0.6874697", "text": "public void setStatus(int code) {\r\n statusCode = code;\r\n\r\n }", "title": "" }, { "docid": "62a534f9778f1a9e04c3fce1e7674871", "score": "0.683045", "text": "public int getStatusCode() { return statusCode; }", "title": "" }, { "docid": "bf8a2114b7fa473e8ba66f3f12038f8f", "score": "0.6817749", "text": "public int getStatus();", "title": "" }, { "docid": "bf8a2114b7fa473e8ba66f3f12038f8f", "score": "0.6817749", "text": "public int getStatus();", "title": "" }, { "docid": "9665cc2ea5da570828ef9fae73c48ab0", "score": "0.6804455", "text": "protected native int getStatus0();", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.67911494", "text": "Status getStatus();", "title": "" }, { "docid": "ecf092ad18fc5517e9a72b5588be0c47", "score": "0.676599", "text": "public int getHttpCodeStatus() {\n try {\n int status = initRetrofit(getResources().getString(R.string.base_url)).listMovies().execute().code();\n return status;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\n }", "title": "" }, { "docid": "dac9bddb455816d7712c3898e60dbaf5", "score": "0.6737977", "text": "public int getCode(){\n return err_code;\n }", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6731188", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6731188", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6731188", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.6729832", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "4b40baf7cf0f1701e51d5c0de509a1e4", "score": "0.67166865", "text": "gov.nasa.gsfc.spdf.ssc.ResultStatusSubCode xgetStatusSubCode();", "title": "" }, { "docid": "b74ac786bbbf73f2e102b6dcfbe2ffc4", "score": "0.67146707", "text": "public int getStatusCode() {\n return statusCode ;\n }", "title": "" }, { "docid": "a742c44ce7c3a7393207dc901ca40d7c", "score": "0.671187", "text": "public short status();", "title": "" }, { "docid": "0dc10c6cadf950b2a774e8f230b0856e", "score": "0.6698044", "text": "com.csse.grpc.generate.ResponseCode getCode();", "title": "" }, { "docid": "330e6ffaac9408100f3e16e367bef449", "score": "0.66743296", "text": "public int status() {\n\t\treturn statusCode;\n\t}", "title": "" }, { "docid": "f87714c5f99ca619c5981334f09030c6", "score": "0.6667403", "text": "public abstract int getStatus();", "title": "" }, { "docid": "862162ec40c3532c1362c5b8f972073e", "score": "0.66572434", "text": "private native int getStatus();", "title": "" }, { "docid": "ae6516226bf568e1dc52f90f1a9211fc", "score": "0.66395754", "text": "public abstract Response getServiceStatus();", "title": "" }, { "docid": "5b79cbbc8c065bfff938cd28d1394859", "score": "0.6638821", "text": "long getStatus();", "title": "" }, { "docid": "89753292f1722523c9c9123472fdf2c7", "score": "0.6625881", "text": "public int getStatusCode()\n {\n return statusCode;\n }", "title": "" }, { "docid": "314c56f4582ad760f60f09f7c088e074", "score": "0.66252345", "text": "protected WSReturnCode getReturnCode()\r\n\t{\r\n\t\treturn returnCode;\r\n\t}", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "e599094d2de83e0b0c83f2de92ecbf9c", "score": "0.6621972", "text": "int getResultCode();", "title": "" }, { "docid": "b53772c75b580810de45c398ee288c0e", "score": "0.6612069", "text": "public interface HttpResponseCode {\n\n int OK = 200;\n int NO_CONTENT = 204;\n int UNAUTHORIZED = 401;\n int CREATED = 201;\n}", "title": "" }, { "docid": "3cbeba2c9ea538b5d3947d519c09e652", "score": "0.6601569", "text": "gov.nasa.gsfc.spdf.ssc.ResultStatusCode xgetStatusCode();", "title": "" } ]
682343c0068aae3f3c468b695e2af3dd
Construct a FileSource from a file path.
[ { "docid": "65c329e0f6528f38a94f302f267aeb05", "score": "0.79978245", "text": "public static FileSource fromPath(String filename) {\n return fromPath(filename, new SmarterMap());\n }", "title": "" } ]
[ { "docid": "417f282600f2557d3d704121acd1a982", "score": "0.72700226", "text": "public static FileSource fromPath(String filename, SmarterMap options) {\n if (StringUtils.isBlank(filename))\n throw new FwissrRuntimeException(\"Unexpected file source path: \" + filename);\n return new FileSource(filename, options);\n }", "title": "" }, { "docid": "49050b84bc3740dfa836f8f89803b959", "score": "0.6566971", "text": "public Builder fromFilePath(String filePath) {\n if (StringUtil.isNullOrEmpty(filePath)) {\n throw new IllegalArgumentException(\"Illegal filePath: \" + filePath);\n }\n this.sourceFilePath = filePath;\n return this;\n }", "title": "" }, { "docid": "b2d29250c99ff2b0202221e05259f442", "score": "0.62645316", "text": "public InputSource makeInputSource(String path) throws IOException {\n return new InputSource(makeUrl(path).toString());\n}", "title": "" }, { "docid": "105e827c461c49d7588dde209e002428", "score": "0.6028258", "text": "public void source(String path) throws Exception;", "title": "" }, { "docid": "5296fe8f5bdac2a045cb754a573b9dc5", "score": "0.5830977", "text": "@Override\n public CompilationSource createCompilationSource(String name) {\n File sourceFile = getSourceFile(name);\n if (sourceFile == null || !sourceFile.exists()) {\n return null;\n }\n\n return new FileSource(name, sourceFile);\n }", "title": "" }, { "docid": "c36d19b5cf0158a9a2f172e4eb0c70d5", "score": "0.5754952", "text": "public Builder withSource(File source) {\n this.source = checkNotNull(source);\n return this;\n }", "title": "" }, { "docid": "509d8a7049328e2d69056da84e06544e", "score": "0.57402146", "text": "private StreamSource getFileSource(final File requestedFile) {\n StreamSource fileSource = new StreamSource() {\n private static final long serialVersionUID = 3275933556191707490L;\n public InputStream getStream() {\n try {\n return new org.xtreemfs.portlet.util.BufferedFileInputStream(requestedFile);\n } catch (IOException e) {\n showNotification(\"Error\", e.getMessage(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n return null;\n }\n };\n return fileSource;\n }", "title": "" }, { "docid": "106f76616edcf6a9e9d309ad185f505c", "score": "0.57356536", "text": "protected AbstractSource(final String file) {\n this.sourceFile = file;\n }", "title": "" }, { "docid": "ee36e56469511ce46a88d6066ad16cbd", "score": "0.57258373", "text": "public Builder setSrcPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n srcPath_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f657bd5b00b460a8dfbd89ff14d0f113", "score": "0.5705525", "text": "public Builder setSourceFile(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n sourceFile_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "251218f46c7095be8f14247949fcc576", "score": "0.5662518", "text": "static @Nullable ModelFile fromPath(String path) {\n final File file = new File(path);\n try {\n final ParcelFileDescriptor modelFd = ParcelFileDescriptor.open(\n file, ParcelFileDescriptor.MODE_READ_ONLY);\n final int version = TextClassifierImplNative.getVersion(modelFd.getFd());\n final String supportedLocalesStr =\n TextClassifierImplNative.getLocales(modelFd.getFd());\n if (supportedLocalesStr.isEmpty()) {\n Log.d(DEFAULT_LOG_TAG, \"Ignoring \" + file.getAbsolutePath());\n return null;\n }\n final boolean languageIndependent = supportedLocalesStr.equals(\"*\");\n final List<Locale> supportedLocales = new ArrayList<>();\n for (String langTag : supportedLocalesStr.split(\",\")) {\n supportedLocales.add(Locale.forLanguageTag(langTag));\n }\n closeAndLogError(modelFd);\n return new ModelFile(path, file.getName(), version, supportedLocales,\n languageIndependent);\n } catch (FileNotFoundException e) {\n Log.e(DEFAULT_LOG_TAG, \"Failed to peek \" + file.getAbsolutePath(), e);\n return null;\n }\n }", "title": "" }, { "docid": "24c509a75265fe15ca79dccba47b189f", "score": "0.5646477", "text": "public JCRNodeSource createSource(Session session, String path)\n throws SourceException {\n return createSource(session, path, null);\n }", "title": "" }, { "docid": "ba2193d620face398d9b7b7b50910df0", "score": "0.5645019", "text": "public Builder addSourcepath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcepathIsMutable();\n sourcepath_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "48993176ea25edfcc4be0577fd020e7e", "score": "0.5621347", "text": "public FileEvent(FileObject src) {\n this(src, src);\n }", "title": "" }, { "docid": "9c5cdf53f92a0898f2dc43cd66c6c4fa", "score": "0.5606826", "text": "public InputFile(String filePath) {\n this.filePath = filePath;\n }", "title": "" }, { "docid": "bca9cc94279ee8dae5e531f1ce3ce08c", "score": "0.5566676", "text": "public SourceFile(File file) throws Exception {\r\n\t\t// this.file = file;\r\n\t\tthis.zipFile = new ZipFile(file, \"UTF-8\");\r\n\t}", "title": "" }, { "docid": "e2c37727e5b2bca45f8427b0fa394a65", "score": "0.55290484", "text": "MafSource readSource(File sourceFile);", "title": "" }, { "docid": "06952d5ad64283ed39e8ddf7fcc4725b", "score": "0.54974663", "text": "public Path(String path) {\n this(null, path);\n }", "title": "" }, { "docid": "97f0175eb0485286e638f572937c7261", "score": "0.54921824", "text": "public void load(File source);", "title": "" }, { "docid": "3a503718c0ee1f45f89bfec3f3f1e672", "score": "0.5485053", "text": "public FileBasedConfigSource() {\n // Intentionally empty.\n }", "title": "" }, { "docid": "c53ed2dbca380225d60278c00ea33e28", "score": "0.5464467", "text": "public JenaDataSource(String filePath)\n\t{\n\t\tOntModel model = null;\n\t\t\n\t\tInputStream is = getClass().getResourceAsStream(filePath);\n\t\tmodel = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);\n\t\tmodel.read(is, null, \"TTL\");\n\t\tthis.populatePrefixMappings(model);\n\t\t\n\t\tsetModel(model);\n\t}", "title": "" }, { "docid": "810f2844063513abc36e8db1438fcb0e", "score": "0.53878427", "text": "SourceFilePath getFilePath();", "title": "" }, { "docid": "03ef668d3ecaf21cb77094caded0fa2c", "score": "0.53583664", "text": "public Builder setSrcPathBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n srcPath_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8aa41e77f3a64349f4d01fc432d8062b", "score": "0.53368795", "text": "T from(Source source);", "title": "" }, { "docid": "bb42417b2c2c18313966d9d0509615d1", "score": "0.5335263", "text": "public SourceFile getSourceFile() throws InvalidFormatException;", "title": "" }, { "docid": "581fd1e8fdfb9bde4e538e61bc7bb80b", "score": "0.53224015", "text": "public Builder setSourceFileBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n sourceFile_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5319ebe9a06c002e7abdc4cb7ab3716e", "score": "0.5302781", "text": "public void setSourcePath(String sourcePath) {\n this.sourcePath = sourcePath;\n }", "title": "" }, { "docid": "1fe1209fc830467af45573a2c89e571b", "score": "0.5282906", "text": "private <K, V> Source newIsmSource(IsmRecordCoder<WindowedValue<V>> coder, String tmpFilePath) {\n Source source = new Source();\n source.setCodec(\n CloudObjects.asCloudObject(\n WindowedValue.getFullCoder(coder, GLOBAL_WINDOW_CODER), /*sdkComponents=*/ null));\n source.setSpec(new HashMap<String, Object>());\n source.getSpec().put(PropertyNames.OBJECT_TYPE_NAME, \"IsmSource\");\n source.getSpec().put(WorkerPropertyNames.FILENAME, tmpFilePath);\n return source;\n }", "title": "" }, { "docid": "254f0f95b60a3dc88e922cc03a5e1063", "score": "0.52449083", "text": "public Builder setSourcepath(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcepathIsMutable();\n sourcepath_.set(index, value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5928b87b656e0f45c300854fb7f99b72", "score": "0.52426547", "text": "public Builder addSourcepathBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureSourcepathIsMutable();\n sourcepath_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "86c157fd0325aa57be9b06490afea7fb", "score": "0.52216166", "text": "public static FileData CreateFromFile(String pathWithFileName) throws Exception\n {\n FileData fileData = new FileData();\n fileData.ReadFrom(pathWithFileName);\n return fileData;\n }", "title": "" }, { "docid": "0f9884ba03f4d8db4e36cb66527d7242", "score": "0.521765", "text": "protected abstract InputStream getFile(final String path);", "title": "" }, { "docid": "27ce5edb99ba405af1a619d2b8651069", "score": "0.52010083", "text": "public FileCompilationProvider(File rootSourceDir) {\n if (rootSourceDir == null) {\n throw new IllegalArgumentException(\"rootSourceDir\");\n }\n\n mRootSourceDir = rootSourceDir;\n }", "title": "" }, { "docid": "2f842a23542254545fcd49b499918242", "score": "0.518702", "text": "protected Source convertString2Source(String param) {\n Source src;\n try {\n src = uriResolver.resolve(param, null);\n } catch (TransformerException e) {\n src = null;\n }\n if (src == null) {\n src = new StreamSource(new File(param));\n }\n return src;\n }", "title": "" }, { "docid": "a1734221007e26947f567cebcf6def6b", "score": "0.518695", "text": "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "title": "" }, { "docid": "3d0883c431d690a8b8240f3c7ea4d78d", "score": "0.5161326", "text": "public FileOnDisk(String filepath) throws StyxException\n {\n this(new File(filepath));\n }", "title": "" }, { "docid": "57afcff13983f5af8cf848d3a93f5b0f", "score": "0.51610154", "text": "public TypedFile getTypedFile(String path) {\r\n\tTypedFile f = new TypedFile(path);\r\n\tdeduceAndSetTypeOfFile(f);\r\n\treturn f;\r\n }", "title": "" }, { "docid": "f3b60af95cb51061675d4ca705271799", "score": "0.51409733", "text": "private Templates load(URL fileSource) throws Exception {\n return m_factory.newTemplates(new StreamSource(fileSource.openStream()));\n }", "title": "" }, { "docid": "8646d1a8a8ba0682e40b323e85079e68", "score": "0.5123435", "text": "public LocalSource(FileNode fn, String alias){\n this.fn=fn;\n this.alias=alias;\n }", "title": "" }, { "docid": "9f1e31e43c71d3df304903b32a87e843", "score": "0.510871", "text": "public void openFile(@NotNull final String path) {\n openFile(fm -> fm.load(path));\n }", "title": "" }, { "docid": "9ae13723f5c3e0e3ddb2cd596ee1aed8", "score": "0.51043093", "text": "@Override\r\n protected XarSource createXarSource(File file)\r\n {\n return xarSourceWrapper.getXarSource(this);\r\n }", "title": "" }, { "docid": "ca315336ad3b60e8a6100c184937abef", "score": "0.5103491", "text": "public Builder addSourcePath(Path value) {\n if (sourcePathBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcePathIsMutable();\n sourcePath_.add(value);\n onChanged();\n } else {\n sourcePathBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "807b212545572506cf8e0a48bd692cfe", "score": "0.50889575", "text": "public TextFileSetSource(Conf config) {\n this.config = config;\n }", "title": "" }, { "docid": "58246bb582d07e853bb2c7e29e138e03", "score": "0.50762415", "text": "public Path createSourcespath()\n {\n if( m_sourcesPath == null )\n {\n m_sourcesPath = new Path();\n }\n Path path1 = m_sourcesPath;\n final Path path = new Path();\n path1.addPath( path );\n return path;\n }", "title": "" }, { "docid": "259344a6b5644b1a5c415766e4de77d8", "score": "0.50746775", "text": "public FileData(String file_path) {\n\t\tpath = file_path;\n\t\ttry {\n\t\t\topenAndReadFile();\n\t\t}\n\t\tcatch (IOException anything) {\n\t\t\tSystem.out.println(\"Couldn't open and read \" + file_path + \". Error: \" + anything.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "02a354a65494f2fda146164cdc72fa1c", "score": "0.507459", "text": "public static LineMatcher createFileLineMatcher(Path path) {\n return new LineMatcher(LineReader.createFileLineReader(path));\n }", "title": "" }, { "docid": "1840f2884fd0af1763dca96dcc05f455", "score": "0.50695837", "text": "public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }", "title": "" }, { "docid": "355065b1cc3ac48e055dba62bbba5796", "score": "0.5064325", "text": "public static Source fromSettings(SmarterMap settings) {\n SmarterMap options = settings.clone();\n options.remove(\"filepath\");\n options.freeze();\n return fromPath((String) settings.get(\"filepath\"), options);\n }", "title": "" }, { "docid": "c60c0441e42fcd9a9b3137523a56c99f", "score": "0.504875", "text": "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "title": "" }, { "docid": "b0377358f860c4c9c4369ca048587a14", "score": "0.5042711", "text": "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "title": "" }, { "docid": "29b6cf87e639e4beb8ccd59459252f43", "score": "0.50256354", "text": "public GeneratedSourceFile(final String filePath, final String sourceCode) {\n\t\tthis(filePath, sourceCode, new ArrayList<CustomCodeSection>());\n\t}", "title": "" }, { "docid": "7d38e574a97e19e0dda2e5fb5c27d50b", "score": "0.49940053", "text": "public External withPath(String path) {\n this.path = path;\n return this;\n }", "title": "" }, { "docid": "b3e707f4b0a516ecc12deb758ad14c7f", "score": "0.4989267", "text": "@NonNull\n\t\tBuilder addFile(@NonNull String path);", "title": "" }, { "docid": "082561e81afa6d183ad0add41bc78049", "score": "0.49785015", "text": "public HasFileExpression(String path) {\r\n\t\tthis.path = path;\r\n\t}", "title": "" }, { "docid": "8c4de0c11af2460fe90f7802201997b1", "score": "0.49585456", "text": "public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ef07ab02f678e788aa03d237c5410258", "score": "0.49533138", "text": "public InputReader(File file){\n try {\n inputStream = new Scanner(file);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n instantiate();\n assert(invariant());\n }", "title": "" }, { "docid": "795fd29e1b99f96587e37ea6efbad850", "score": "0.49458", "text": "public createFile_args setPath(String path) {\n this.path = path;\n return this;\n }", "title": "" }, { "docid": "fbc842f24513fc317e23a131cd9d5ba9", "score": "0.4943596", "text": "private InputSource filesystemLookup(ResourceLocation matchingEntry) {\n\n String uri = matchingEntry.getLocation();\n // the following line seems to be necessary on Windows under JDK 1.2\n uri = uri.replace(File.separatorChar, '/');\n URL baseURL;\n\n //\n // The ResourceLocation may specify a relative path for its\n // location attribute. This is resolved using the appropriate\n // base.\n //\n if (matchingEntry.getBase() != null) {\n baseURL = matchingEntry.getBase();\n } else {\n try {\n baseURL = FILE_UTILS.getFileURL(getProject().getBaseDir());\n } catch (MalformedURLException ex) {\n throw new BuildException(\"Project basedir cannot be converted to a URL\");\n }\n }\n\n URL url = null;\n try {\n url = new URL(baseURL, uri);\n } catch (MalformedURLException ex) {\n // this processing is useful under Windows when the location of the DTD\n // has been given as an absolute path\n // see Bugzilla Report 23913\n File testFile = new File(uri);\n if (testFile.exists() && testFile.canRead()) {\n log(\"uri : '\"\n + uri + \"' matches a readable file\", Project.MSG_DEBUG);\n try {\n url = FILE_UTILS.getFileURL(testFile);\n } catch (MalformedURLException ex1) {\n throw new BuildException(\n \"could not find an URL for :\" + testFile.getAbsolutePath());\n }\n } else {\n log(\"uri : '\"\n + uri + \"' does not match a readable file\", Project.MSG_DEBUG);\n\n }\n }\n\n InputSource source = null;\n if (url != null && \"file\".equals(url.getProtocol())) {\n String fileName = FILE_UTILS.fromURI(url.toString());\n if (fileName != null) {\n log(\"fileName \" + fileName, Project.MSG_DEBUG);\n File resFile = new File(fileName);\n if (resFile.exists() && resFile.canRead()) {\n try {\n source = new InputSource(Files.newInputStream(resFile.toPath()));\n String sysid = JAXPUtils.getSystemId(resFile);\n source.setSystemId(sysid);\n log(\"catalog entry matched a readable file: '\"\n + sysid + \"'\", Project.MSG_DEBUG);\n } catch (IOException ex) {\n // ignore\n }\n }\n }\n }\n return source;\n }", "title": "" }, { "docid": "b25dac426744699b282d23397004b491", "score": "0.4938915", "text": "public Builder setFile(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n file_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "138c9329a4645a8d3139a2ce2d248e62", "score": "0.493276", "text": "public Builder setSourcePath(\n int index, Path value) {\n if (sourcePathBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcePathIsMutable();\n sourcePath_.set(index, value);\n onChanged();\n } else {\n sourcePathBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "883acafa77c306fcb0e3b288ea60e23c", "score": "0.49300998", "text": "public static ClassFileReader newInstance(Path path) throws IOException {\n if (!Files.exists(path)) {\n throw new FileNotFoundException(path.toString());\n }\n\n if (Files.isDirectory(path)) {\n return new DirectoryReader(path);\n } else if (path.getFileName().toString().endsWith(\".jar\")) {\n return new JarFileReader(path);\n } else {\n return new ClassFileReader(path);\n }\n }", "title": "" }, { "docid": "d55ffd1b04b31093e62f48e847f6ef39", "score": "0.4929437", "text": "private static File getFile(String pathFile) {\n\t\tif(!pathFile.isEmpty()){\n\t\t\treturn new File(pathFile);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cdc6093c29bdc2b986838f24d7d0a066", "score": "0.4928463", "text": "private void createSource(String sourceName, String content) {\n\t\t\n\t}", "title": "" }, { "docid": "a2af9417b0d490ce672e562a73fc3e6c", "score": "0.49271134", "text": "@Bean\n\t\tpublic MessageSource<File> sourceDirectory() {\n\t\t\tFileReadingMessageSource messageSource = new FileReadingMessageSource();\n\t\t\tmessageSource.setDirectory(new File(\"Source\"));\n\t\t\treturn messageSource;\n\t\t}", "title": "" }, { "docid": "ce2935da7a4368e1e9d73d31205e6e1b", "score": "0.4912556", "text": "public GridFSInputFile createFile(InputStream in, String filename) {\n\treturn new GridFSInputFile(this, in, filename);\n }", "title": "" }, { "docid": "b4688f78449a68c9ec8d566ad96971f6", "score": "0.4912119", "text": "public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}", "title": "" }, { "docid": "3c4661c1e68af0901b6c6938e59cab0e", "score": "0.4903706", "text": "public FileEvent(FileObject src, FileObject file) {\n super(src);\n this.file = file;\n this.time = System.currentTimeMillis ();\n }", "title": "" }, { "docid": "0ab93538c9b2f1c451222040048041b4", "score": "0.49021584", "text": "File(String path, String type)\n {\n this.path=path;\n this.type=type;\n }", "title": "" }, { "docid": "d21480524cd726c5e80d4391b1d89983", "score": "0.48975432", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "title": "" }, { "docid": "d6898ac22f2c9a4da5685fc637aba94a", "score": "0.48955613", "text": "public FileInputStream openFileInput(final String path)\n throws java.io.FileNotFoundException {\n return GDFileSystem.openFileInput(path);\n }", "title": "" }, { "docid": "05d200cfc7b343f2e854b91472d8b6e0", "score": "0.48855373", "text": "public Sound(String path) throws IOException, LineUnavailableException, UnsupportedAudioFileException {\n\t\tthis(new File(path));\n\t}", "title": "" }, { "docid": "04505ad6a3450bc7bcc04e1e1be6eb34", "score": "0.4869616", "text": "private void init(File file) throws VlException\n {\n // under windows: will return windows path\n String path = file.getAbsolutePath();\n\n //\n // Forward Flip backslashes !\n // Do this ONLY for the local filesystem !\n //\n\n if (File.separatorChar != VRL.SEP_CHAR)\n path = VRL.uripath(path, true, File.separatorChar);\n\n // under widows: will convert windows path to URI path !\n setLocation(new VRL(VRS.FILE_SCHEME, null, path));\n this.path = getPath(); // use URI path !\n\n _file = file;\n }", "title": "" }, { "docid": "af11a6b9375bda894e3b27ae3678017c", "score": "0.48608226", "text": "public static File fileFromPathOrThrow(String path) {\n File propFile = new File(path);\n if (!propFile.exists()) {\n throw new IllegalArgumentException(\"Message file '\" + path + \"' does not exist.\");\n }\n return propFile;\n }", "title": "" }, { "docid": "2194939ff27729ce0b6e675ed8f0499c", "score": "0.48602572", "text": "@NonNull\n\t\tBuilder addFile(@NonNull Path path);", "title": "" }, { "docid": "97b521e88acc8e8d856d37006bd56645", "score": "0.48574919", "text": "public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }", "title": "" }, { "docid": "4ab8b6df88affa58f52b9c7800a6ca43", "score": "0.48531166", "text": "public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4ab8b6df88affa58f52b9c7800a6ca43", "score": "0.48531166", "text": "public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0ecbb8bb3c265bc4ce0d5b4593e5d309", "score": "0.48498094", "text": "public TypedFile getTypedFile(String path, String name) {\r\n\tTypedFile f = new TypedFile(path, name);\r\n\tdeduceAndSetTypeOfFile(f);\r\n\treturn f;\r\n }", "title": "" }, { "docid": "ce5649ad9d3deeb5037b22d5a9ca1f92", "score": "0.48442024", "text": "public TileSource(String filename, int tileSize) {\n\t\tthis.tileSize = tileSize;\n\t\ttry {\n\t\t\tthis.bufImage = ImageIO.read(TileSource.class.getResourceAsStream(filename));\n\t\t\tdebug.DebugLog(\"Reading new texturepack source file:\", filename);\n\t\t}\n\t\tcatch (Exception e) {\t\t// Unable to read source data\n\t\t\tif (files.fileExists(filename)) {\n\t\t\t\tdebug.DebugLog(\"Unable to read source file.\", \"Check xkcd 2020 for further information\");\n\t\t\t} else {\n\t\t\t\tdebug.DebugLog(\"Unable to read source file:\", filename, \"Please make sure the file exists\");\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, \"Harambe died for our sins.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "26cd311e765a063e05b7347e807c957e", "score": "0.48408976", "text": "public Builder addSourcePath(\n int index, Path value) {\n if (sourcePathBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcePathIsMutable();\n sourcePath_.add(index, value);\n onChanged();\n } else {\n sourcePathBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "0c77623b59c4e17df3fb767ea0ae4fef", "score": "0.48302418", "text": "public final void setSourceFile(final String file) {\n this.sourceFile = file;\n }", "title": "" }, { "docid": "994818937cc644eb26137fa206bc21da", "score": "0.4829301", "text": "DatasetFileService getSource();", "title": "" }, { "docid": "11fd779c561693afaddb025e3ebacab9", "score": "0.48266655", "text": "protected final ByteSource getInput(String name) {\n try {\n if (name.equals(\"-\")) {\n return new StandardInputSource();\n } else {\n File file = new File(name);\n if (!file.exists()) {\n throw new FileNotFoundException(name);\n } else if (file.isDirectory()) {\n throw new IOException(name); // TODO Message? Exception?\n } else if (!file.canRead()) {\n throw new IOException(name); // TODO Message? Exception?\n } else {\n return Files.asByteSource(file);\n }\n }\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "title": "" }, { "docid": "0240f71bfec07166db10e30a7750ff34", "score": "0.48197994", "text": "public BpmnModelReader(String filePath) {\n\t\tloadedFile = new File(filePath);\n\t}", "title": "" }, { "docid": "a090e6630a50393df79423377a0fe487", "score": "0.4813556", "text": "public GridFSInputFile createFile(InputStream in, String filename,\n\t boolean closeStreamOnPersist) {\n\treturn new GridFSInputFile(this, in, filename, closeStreamOnPersist);\n }", "title": "" }, { "docid": "5750074ded1ef0ab502ac1f48cd6b21d", "score": "0.48082766", "text": "public TweetParser(Path path) {\t\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9ed57c36c2f752f00004b48d784471d8", "score": "0.4800722", "text": "public Builder setFilePath(\n java.lang.String value) {\n copyOnWrite();\n instance.setFilePath(value);\n return this;\n }", "title": "" }, { "docid": "7c8034b729fe1947a544dc97774f4c8e", "score": "0.47968382", "text": "public XMLReader()\r\n {\r\n \r\n String filePathHead = \"\";\r\n\r\n Path inputPath = Paths.get(\"src\\\\dataFiles\");\r\n\r\n try\r\n {\r\n filePathHead = inputPath.toRealPath().toString();\r\n System.out.println(\"PATH: \" + inputPath.toRealPath().toString());\r\n }\r\n catch (NoSuchFileException x)\r\n {\r\n System.err.format(\"%s: no such\" + \" file or directory%n\", filePathHead);\r\n // Logic for case when file doesn't exist.\r\n }\r\n catch (IOException x)\r\n {\r\n System.err.format(\"%s%n\", x);\r\n // Logic for other sort of file error.\r\n }\r\n }", "title": "" }, { "docid": "ad5725af6c6edde681bde229083f5730", "score": "0.47944528", "text": "public ObjReader(String filename){\n file = filename;\n }", "title": "" }, { "docid": "9f97f44d3bbcd53e2b4ce823253eb5c4", "score": "0.47922516", "text": "public PdfDocument(File path) {\n this(path.toPath());\n }", "title": "" }, { "docid": "0effddc128a28d23c420e7d2e2cb8ad7", "score": "0.47875014", "text": "public FileStorage(File path) {\n dataFolder = path;\n }", "title": "" }, { "docid": "872dc3cedb5c04f8e76ac8ea0a7819ee", "score": "0.4787073", "text": "public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }", "title": "" }, { "docid": "f6f4f103564b6a51191e87046d9e5166", "score": "0.47863495", "text": "public ClassNode source(String source) {\n $.sourceFile = source;\n return this;\n }", "title": "" }, { "docid": "ba68609d92cda578b66c38495ea1d0c1", "score": "0.4783769", "text": "public SqlFileParser(String filename) {\n try {\n this.reader = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"file not found \" + filename);\n }\n }", "title": "" }, { "docid": "5a601f6cacd7ab9fc1a89a52295be4fd", "score": "0.47807518", "text": "public Scanner(String sourceFile, String confFile) throws Exception{\n\t\ttry{\n\t\t\tsourceReader = new BufferedReader(new FileReader(sourceFile));\n\t\t} catch(IOException e) {\n\t\t\tString msj = \"Error opening source file named: \" + sourceFile;\n\t\t\tthrow new Exception(msj,e);\n\t\t}\n\t\ttry{\n\t\t\tinit(confFile);\n\t\t}catch(Exception e){\n\t\t\tString msj = \"Error during initializacion of scanner - init()\";\n\t\t\tthrow new Exception(msj,e);\n\t\t}\n\t}", "title": "" }, { "docid": "4b1777f84e80a40018fec9a99852121c", "score": "0.47768247", "text": "public void initialize(String source);", "title": "" }, { "docid": "f93f4a4b48b04e77accea2583060de51", "score": "0.4775827", "text": "public Builder setObjectFile(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n objectFile_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "875c994906697e83199193f231ed3b43", "score": "0.47644365", "text": "private IProgramElement createFileStructureNode(String sourceFilePath) {\n\t\tint lastSlash = sourceFilePath.lastIndexOf('\\\\');\n\t\tif (lastSlash == -1) {\n\t\t\tlastSlash = sourceFilePath.lastIndexOf('/');\n\t\t}\n\t\t// '!' is used like in URLs \"c:/blahblah/X.jar!a/b.class\"\n\t\tint i = sourceFilePath.lastIndexOf('!');\n\t\tint j = sourceFilePath.indexOf(\".class\");\n\t\tif (i > lastSlash && i != -1 && j != -1) {\n\t\t\t// we are a binary aspect in the default package\n\t\t\tlastSlash = i;\n\t\t}\n\t\tString fileName = sourceFilePath.substring(lastSlash + 1);\n\t\tIProgramElement fileNode = new ProgramElement(asm, fileName, IProgramElement.Kind.FILE_JAVA, new SourceLocation(new File(\n\t\t\t\tsourceFilePath), 1, 1), 0, null, null);\n\t\t// fileNode.setSourceLocation();\n\t\tfileNode.addChild(NO_STRUCTURE);\n\t\treturn fileNode;\n\t}", "title": "" }, { "docid": "d9f48f73cc4bf7cd1e9b74983f1e9c7b", "score": "0.4763898", "text": "public void setInputFilePath(String path) {\n inputFilePath = path;\n }", "title": "" }, { "docid": "c6564abde82daade5edcfcaa757d2b18", "score": "0.4755527", "text": "private void validateSource(SourcePointer.FileSource src) {\n File f = src.path.toFile();\n if (!f.exists() || !f.canRead()) {\n throw new SolrException(\n ErrorCode.BAD_REQUEST,\n String.format(\n Locale.US, \"File at %s either does not exist or cannot be read.\", src.path));\n }\n }", "title": "" } ]
0b43aac79a64612207240a37b914abc2
Create the listener list public javax.swing.event.EventListenerList listenerList = new javax.swing.event.EventListenerList(); This is the default constructor
[ { "docid": "4c3d9e2f42a0f8070ba92e147115ba26", "score": "0.0", "text": "public JWPanel() {\r\n\t\tsuper();\r\n\t\t//this.setSize(new Dimension(1024,1024));\r\n\t\t//this.setPreferredSize(new Dimension(800,600));\r\n\t\t//this.setMinimumSize(new Dimension(800,600));\r\n\t}", "title": "" } ]
[ { "docid": "e62f2dc136f03e19c45c3f5334f40fb2", "score": "0.6687404", "text": "public Nim() {\n initComponents();\n cmbListener = new ComboListener();\n btnListener = new ButtonListener();\n }", "title": "" }, { "docid": "307e1498d55e8bb9b7ce4018037f5fcd", "score": "0.6668089", "text": "private void initListeners() {\n\t this.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tmouseMove(e);\n\t\t\t}\n\n\n\t });\n\t this.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmouseClick(e);\n\t\t\t}\n\t });\n\t}", "title": "" }, { "docid": "6501e129c5a8f57bd83d2dc4dc93de70", "score": "0.65761137", "text": "private void initListeners() {\n }", "title": "" }, { "docid": "256f08085c92feeffe775d81d1b36dce", "score": "0.65099615", "text": "public Main() {\n super(new BorderLayout());\n\n setup();\n\n //Create the list and put it in a scroll pane.\n setupList();\n JScrollPane listScrollPane = new JScrollPane(list);\n\n JButton addButton = new JButton(\"Add\");\n AddListener addListener = setupAddListener(addButton);\n\n setupButtons();\n\n entryTitle = new JTextField(10);\n entryTitle.addActionListener(addListener);\n entryTitle.getDocument().addDocumentListener(addListener);\n\n setupPanel(listScrollPane, addButton);\n }", "title": "" }, { "docid": "417406ae1891e33ba8446622e4f97d34", "score": "0.64832866", "text": "protected abstract void initListeners();", "title": "" }, { "docid": "76af030c5aa9a69cd1041b214d483ba9", "score": "0.64803696", "text": "void addListeners();", "title": "" }, { "docid": "28fedbb5050d2c20967042e2eb565f37", "score": "0.6431223", "text": "@Override\n\tpublic void initListeners() {\n\t\t\n\t}", "title": "" }, { "docid": "5527ee41d1aca428e5b7988cb57f0175", "score": "0.6375663", "text": "private void init_ui_3_set_listener_to_list() {\n\t list.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tint index = E1_test_cell_renderer.list.locationToIndex(e.getPoint());\r\n\t\t\t\t\r\n\t\t\t\tif (index != -1) {\r\n\t\t\t\t\tObject obj = E1_test_cell_renderer.list.getModel().getElementAt(index);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (obj instanceof JCheckBox) {\r\n\t\t\t\t\t\tJCheckBox checkbox = (JCheckBox) obj;\r\n\r\n\t\t\t\t\t\tcheckbox.setSelected(!checkbox.isSelected());\r\n\t\t\t\t\t\trepaint();\r\n\t\t\t\t\t}\r\n\t\t\t\t}//if (index != -1)\r\n\t\t\t}//public void mousePressed(MouseEvent e)\r\n\t\t});\r\n\r\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\r\n\t}", "title": "" }, { "docid": "0e6682b5dadd8b8cea01ae92f0ecd15b", "score": "0.63334703", "text": "@Override\r\n\tprotected void initListeners() {\n\r\n\t}", "title": "" }, { "docid": "0ffea6419b7c9060a638bd46dd784eca", "score": "0.63298005", "text": "private void setListeners() {\n }", "title": "" }, { "docid": "c0992b4dfbaec259f9ebd40d520fa477", "score": "0.6325506", "text": "private void setListener() {\n\n\t}", "title": "" }, { "docid": "267f78585d8c6c903a2cfb16ccf4d2c3", "score": "0.6305386", "text": "private void createEvents() {\n\t\t\n\t\tlistArea.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tint index = listArea.getSelectedIndex();\n\t\t\t\tif (index >= 0) {\n\t\t\t\t\tString line = (String) listModel.get(index);\n\t\t\t\t\tselectCourseField.setText(line);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "052a3a4b5c2abd2f10bceb7d3104e24b", "score": "0.62356746", "text": "protected void initListener() {\r\n addKeyListener ( this );\r\n addFocusListener( this );\r\n addMouseListener( this );\r\n //addTextListener ( this );\r\n }", "title": "" }, { "docid": "f54b75a4f2c4a54313c42966e4a5a06d", "score": "0.622886", "text": "public abstract void addListeners();", "title": "" }, { "docid": "300221b4096f2e4f1c560a91de381201", "score": "0.6175337", "text": "public GameActionsListenableClass() {\r\n listeners = new ArrayList<GameActionEventListener>();\r\n }", "title": "" }, { "docid": "90423cdf91217618caee7219cfc6dd62", "score": "0.615232", "text": "@Override\n\tpublic void addListeners() {\n\n\t}", "title": "" }, { "docid": "e30c5033ab75e192f0f1c3cdf2d0e2cd", "score": "0.6137135", "text": "@Override\n\tpublic void setListeners() {\n\t\t\n\t}", "title": "" }, { "docid": "d191cc7575f8c6449ae0608b2a0bdfe7", "score": "0.6130518", "text": "protected abstract void attachComponentListeners();", "title": "" }, { "docid": "f26a8e4752c94a004899be182e01eaeb", "score": "0.61282474", "text": "public schoolevents() {\n initComponents();\n }", "title": "" }, { "docid": "c5c05ba31c96a09706731ed2ef1f101a", "score": "0.61223006", "text": "protected abstract void initListener();", "title": "" }, { "docid": "35f1851ce37372d28fd1d697560e81cf", "score": "0.6115878", "text": "public void setEventListener(EventListener eventListener) {\n\n\t}", "title": "" }, { "docid": "c87f3f1826b6968e996db406a5def9f3", "score": "0.6114368", "text": "public GraphicalViewWindowListener()\r\n\t{\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "fd3318d7be8e93b60141f900578c9ab9", "score": "0.6113753", "text": "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "title": "" }, { "docid": "edcb9dc7977b158f5394fa1ac4a71921", "score": "0.6109665", "text": "public void createMouseListeners(){\n\t\tDragMouseListener dml = new DragMouseListener(this);\r\n\t\taddMouseMotionListener(dml);\r\n\r\n\t\t//Creates MouseListener used to track the position of the first click\r\n\t\tClickMouseListener cml = new ClickMouseListener(this, dml);\r\n\t\taddMouseListener(cml);\r\n\r\n\t\t//Creates WheelListener used to change zoom when mouse wheel is rotated\r\n\t\tWheelListener wl = new WheelListener(this);\r\n\t\taddMouseWheelListener(wl);\r\n\r\n\t}", "title": "" }, { "docid": "bc503949384bf1d5651b73e39174f9ea", "score": "0.6105632", "text": "private void initListeners() {\n\t\tLoginPanelListener listener = new LoginPanelListener();\n\t\tbtnLogin.addActionListener(listener);\n\t\tbtnRegister.addActionListener(listener);\n\t}", "title": "" }, { "docid": "b939f50e006d6a943cef738afe2844b7", "score": "0.61053294", "text": "public ListenerFactory(MewsickFrame window)\n\t{\n\t\tthis.window = window;\n\t}", "title": "" }, { "docid": "5016ce780f99745636a2cc0fcc4668d7", "score": "0.6084208", "text": "List<IEventListener> getListeners();", "title": "" }, { "docid": "704551feb6f2f37cc12346e24471b4b6", "score": "0.60620093", "text": "private void addListeners() {\r\n serverList.setOnItemSelectedListener(this);\r\n }", "title": "" }, { "docid": "813342a35b08164486db403b0acab2e4", "score": "0.6061359", "text": "@Override\n\tpublic void setListeners() {\n\n\t}", "title": "" }, { "docid": "090fa40ba88462a709678fbbd659e802", "score": "0.6040149", "text": "private void initListener() {\n\t\tInputManager input = view.getInputManager();\n\t\tinput.addMapping(LeftClick, new MouseButtonTrigger(0));\n\t\tinput.addMapping(RightClick, new MouseButtonTrigger(1));\n\t\tinput.addListener(this, LeftClick, RightClick);\n\t}", "title": "" }, { "docid": "c134f35859c468b715540c93565e189f", "score": "0.60379034", "text": "@Override\n\tprotected void setListener() {\n\t\t\n\t}", "title": "" }, { "docid": "0936c13960808ee631759c6ba5a520d1", "score": "0.6033709", "text": "private void setListeners()\r\n\t{\r\n\t\tplayingFrame.addBacktoMenuListener(backToMenuListener);\r\n\t\tplayingFrame.addSaveGameListener(saveGameListener);\r\n\r\n\t\tfor (int i = 0; i < 7; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < 7; j++)\r\n\t\t\t{\r\n\t\t\t\tplayingFrame.addChessTileListener(i, j, dndListener, dndHandler);\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmainFrame.addStartGameListener(startGameListener);\r\n\t\tmainFrame.addLoadGameListener(loadGameListener);\r\n\t}", "title": "" }, { "docid": "bcd332c209ecc6b2077ca725290cadbd", "score": "0.60265857", "text": "public void init() {\n\t\taddMouseListeners();\n\t\taddKeyListeners();\n\n\t\tadd(new JButton(\"Toggle Lighthouse\"), SOUTH);\n\t\tadd(new JButton(\"New Game\"), SOUTH);\n\t\taddActionListeners();\n\t}", "title": "" }, { "docid": "56e4d6fd61b7037b16f21f8a2d64fba2", "score": "0.60142916", "text": "@Override\r\n\tprotected void setListener() {\n\r\n\t}", "title": "" }, { "docid": "a264649e06ed2b1a576a7d8ef9a03cbd", "score": "0.60118973", "text": "private void setUpListeners() {\n\t\t// TODO 1:46:48 PM complete this method\n\t\tGetUserNameListener listener1 = new GetUserNameListener();\n\t\tmessageField.addActionListener(listener1);\n\n\t\tMyWindowListener window = new MyWindowListener();\n\t\tthis.addWindowListener(window);\n\t}", "title": "" }, { "docid": "2efdf126c9c1a2165147bd12361fa39c", "score": "0.6011663", "text": "private void addListeners() {\n addWindowListener( new WindowListener() {\n public void windowActivated( WindowEvent we ) {\n }\n public void windowClosed( WindowEvent we ) {\n }\n public void windowClosing( WindowEvent we ) {\n // Remove window if the close-button is pressed\n closeWindow();\n }\n public void windowDeactivated( WindowEvent we ) {\n }\n public void windowDeiconified( WindowEvent we ) {\n }\n public void windowIconified( WindowEvent we ) {\n }\n public void windowOpened( WindowEvent we ) {\n }\n } );\n }", "title": "" }, { "docid": "d05ba40bc260bfbb8dbe1327dda90ae4", "score": "0.6008477", "text": "@objid (\"3c316219-6095-4216-a551-d25c74160d84\")\n @Override\n public void addEventListener(final XEventListener listener) {\n this.mComponents.add(listener);\n }", "title": "" }, { "docid": "ee0a2fb41c2e10df1be91e8da739c50a", "score": "0.60053873", "text": "private void initEvent()\n {\n this.addWindowListener(new WindowAdapter()\n {\n public void windowClosing(WindowEvent windowEvent)\n {\n System.exit(0);\n }\n });\n \n exit.addActionListener(new ActionListener() \n {\n @Override\n public void actionPerformed(ActionEvent actionEvent) \n {\n exitEvent(actionEvent);\n\n }\n });\n \n borrowBook.addActionListener(new ActionListener() \n {\n @Override\n public void actionPerformed(ActionEvent actionEvent) \n {\n borrowEvent(actionEvent);\n\n }\n });\n }", "title": "" }, { "docid": "1a974cc92279af720946ab6009fd2a48", "score": "0.5995382", "text": "public MainMenuClickNewReminderListener(JList list, DefaultListModel listModel, ReminderList reminderList,\r\n ReminderAppGUI reminderAppGUI) {\r\n this.list = list;\r\n this.listModel = listModel;\r\n this.reminderList = reminderList;\r\n this.reminderAppGUI = reminderAppGUI;\r\n }", "title": "" }, { "docid": "4d14ef7ac922d487ab577911bf4e9c0e", "score": "0.5986543", "text": "public AbstractGraph() {\n m_listeners=new EventListenerList();\n }", "title": "" }, { "docid": "a88509d4fb32f863bd0bf4b9de109e91", "score": "0.59764165", "text": "public ListenerCadastrarPessoasJuridicas(){\t\n }", "title": "" }, { "docid": "601bbfc24b3120ddfcb11edc00dc5e8c", "score": "0.5976385", "text": "protected void initialize() {\n _checkBox = new JCheckBox();\n _checkBox.addActionListener(new ActionListener() {\n public void actionPerformed(final ActionEvent e) {\n fireSelectionEvents(e);\n }\n });\n\n _border = BorderFactory.createTitledBorder(\"\");\n\n _itemListeners = EventSupport.create(ItemListener.class);\n _actionListeners = EventSupport.create(ActionListener.class);\n\n final MouseListener mouseListener = new MouseListener() {\n public void mouseClicked(final MouseEvent e) {\n delegateMouseEvent(e);\n }\n\n public void mouseEntered(final MouseEvent e) {\n delegateMouseEvent(e);\n }\n\n public void mouseExited(final MouseEvent e) {\n delegateMouseEvent(e);\n }\n\n public void mousePressed(final MouseEvent e) {\n delegateMouseEvent(e);\n }\n\n public void mouseReleased(final MouseEvent e) {\n delegateMouseEvent(e);\n }\n };\n\n addMouseListener(mouseListener);\n }", "title": "" }, { "docid": "07dcaacfc28734d11df323338f2d7fef", "score": "0.5972375", "text": "@Override\n protected void setListener() {\n\n }", "title": "" }, { "docid": "07dcaacfc28734d11df323338f2d7fef", "score": "0.5972375", "text": "@Override\n protected void setListener() {\n\n }", "title": "" }, { "docid": "8b13119423ed8d2fb545786ee8066c18", "score": "0.59503424", "text": "private void initializeListener() {\n FermatEventListener fermatEventListener;\n fermatEventListener = eventManager.getNewListener(EventType.COMPLETE_ASSET_REDEEM_POINT_REGISTRATION_NOTIFICATION);\n fermatEventListener.setEventHandler(new ActorAssetRedeemPointCompleteRegistrationNotificationEventHandler(this));\n eventManager.addListener(fermatEventListener);\n listenersAdded.add(fermatEventListener);\n\n// fermatEventListener = eventManager.getNewListener(EventType.NEW_RECEIVE_MESSAGE_ACTOR);\n// fermatEventListener.setEventHandler(new NewReceiveMessageEventHandler(this));\n// eventManager.addListener(fermatEventListener);\n// listenersAdded.add(fermatEventListener);\n\n fermatEventListener = eventManager.getNewListener(EventType.NEW_RECEIVE_EXTENDED_KEY_ACTOR);\n fermatEventListener.setEventHandler(new NewReceiveExtendedNotificationEventHandler(this));\n eventManager.addListener(fermatEventListener);\n listenersAdded.add(fermatEventListener);\n\n fermatEventListener = eventManager.getNewListener(com.bitdubai.fermat_ccp_api.all_definition.enums.EventType.CRYPTO_ADDRESSES_NEWS);\n fermatEventListener.setEventHandler(new CryptoAddressRequestedEventHandler(this, cryptoAddressesNetworkServiceManager));\n eventManager.addListener(fermatEventListener);\n listenersAdded.add(fermatEventListener);\n\n fermatEventListener = eventManager.getNewListener(EventType.ACTOR_ASSET_NETWORK_SERVICE_NEW_NOTIFICATIONS);\n fermatEventListener.setEventHandler(new ActorAssetRedeemPointNewNotificationsEventHandler(this));\n eventManager.addListener(fermatEventListener);\n listenersAdded.add(fermatEventListener);\n\n fermatEventListener = eventManager.getNewListener(EventType.ACTOR_ASSET_REQUEST_CONNECTIONS);\n fermatEventListener.setEventHandler(new NewRequestActorNotificationRedeemEventHandler(this));\n eventManager.addListener(fermatEventListener);\n listenersAdded.add(fermatEventListener);\n }", "title": "" }, { "docid": "a6a2d0e88a14f2e9b58d1d4d6d108634", "score": "0.59461933", "text": "public TestListener() {}", "title": "" }, { "docid": "a2b83772dc789f1419b518008ccfe7bb", "score": "0.5942134", "text": "private void initialize() {\n // Define the window title, size and the default close operation.\n this.setTitle(\"Create JList Demo\");\n this.setSize(300, 175);\n this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n // Create an array of arbitrary objects for the JList to display.\n Object[] data = new Object[] {\n new Date(), \"One\", 1, Long.valueOf(\"12345\"), \"Four\", \"Five\"\n };\n\n // Create an instance of JList and pass data variable as the\n // initial content of it. By default the JList does not have a\n // scrolling behaviour, so we create a JScrollPane as the container\n // for the JList.\n JList list = new JList(data);\n JScrollPane scrollPane = new JScrollPane(list);\n\n // Add a button to close the program.\n JButton button = new JButton(\"Close\");\n button.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n\n // Set the panel layout to BorderLayout and place the list on the\n // center and the button on the south.\n this.setLayout(new BorderLayout(5, 5));\n getContentPane().add(scrollPane, BorderLayout.CENTER);\n getContentPane().add(button, BorderLayout.SOUTH);\n }", "title": "" }, { "docid": "d924d7955e1f702e2fed9e3c4c217795", "score": "0.5940223", "text": "@Override\n\tpublic void initListener() {\n\n\t}", "title": "" }, { "docid": "6372ac51569b9c74c87db1d20be3c257", "score": "0.59371316", "text": "private void addListener() {\r\n\t\tShapeListener shapeListener = new ShapeListener();\r\n\t\tDrawingListener drawingListener = new DrawingListener();\r\n\r\n\t\tline.addActionListener(shapeListener);\r\n\t\timage.addActionListener(shapeListener);\r\n\t\toval.addActionListener(shapeListener);\r\n\t\trectangle.addActionListener(shapeListener);\r\n\t\tColorOptionListener colorListener = new ColorOptionListener();\r\n\t\tchooseColor.addActionListener(colorListener);\r\n\t\tdrawingPanel.addMouseListener(drawingListener);\r\n\t\tdrawingPanel.addMouseMotionListener(drawingListener);\r\n\t}", "title": "" }, { "docid": "ec7a80d37019343001e43fb27658293d", "score": "0.59221494", "text": "public abstract void setupListeners();", "title": "" }, { "docid": "3d73b80f58ec3d4d01e4f3c08db47d5b", "score": "0.5911164", "text": "private void installListeners ()\r\n {\r\n if ( window != null )\r\n {\r\n windowListener = createWindowListener ();\r\n window.addWindowListener ( windowListener );\r\n propertyChangeListener = createWindowPropertyChangeListener ();\r\n window.addPropertyChangeListener ( propertyChangeListener );\r\n windowMoveListener = new WindowMoveListener ();\r\n window.addComponentListener ( windowMoveListener );\r\n }\r\n }", "title": "" }, { "docid": "e11762d7a822561a510f1ca54c1f7a8b", "score": "0.5908898", "text": "protected GUIControlAdapter() {\n super();\n _listeners = new ArrayList();\n _keyActions = new Hashtable();\n }", "title": "" }, { "docid": "9b82c1e51c23ec7071ff79d70f739ba0", "score": "0.59044945", "text": "private void addListeners() {\r\n this.menu.acceptOrderDelivery.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.addNewBook.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.adjustABooksDetails.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.createNewAdminAccount.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.createNewStaffAccount.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.deleteABook.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.deleteAdminAccount.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.deleteStaffAccount.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.goToHomepage.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.generateSalesReport.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.issueRefund.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.logIn.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.logOut.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.newOrder.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.newSale.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.resetPassword.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.searchOrders.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.viewCompanyInformation.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n this.menu.viewManual.addActionListener(new MenuActionListener(left, display, right, menu, rightPanel));\r\n }", "title": "" }, { "docid": "34d890ae821bb17d8ecbb2705702d72c", "score": "0.5902613", "text": "@Override\n public void initListener() {\n }", "title": "" }, { "docid": "abcc641fbe1058a5f33e5e187edb0a30", "score": "0.5898845", "text": "@Override\n protected void addListeners()\n {\n //Nothing to do\n }", "title": "" }, { "docid": "ca4d144d698e279ebc0acf6db3463a93", "score": "0.58970237", "text": "private void addListeners()\n {\n cancelUploaderJButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdispose();\n \n // If we have started up the code from the command line, or from the IDE,\n // then clicking cancel should cause Java to exit. If invoked programmatically,\n // then the object should stick around to receive queries from the API.\n if (invokedByRun) System.exit(0);\n\t\t\t}\n\t\t});\n\n \n chooseFileJButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tchooseFileJButtonActionPerformed();\n\t\t\t}\n\t\t});\n \n \n uploadJButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tuploadJButtonActionPerformed();\n\t\t\t}\n\t\t});\n\n\n\n profileJComboBox.addItemListener(new ItemListener()\n {\n @Override\n public void itemStateChanged(ItemEvent evt)\n {\n profileJComboBoxItemStateChanged(evt, true);\n }\n });\n\n\n\n dataSubtypeJComboBox.addItemListener(new ItemListener()\n {\n @Override\n public void itemStateChanged(ItemEvent evt)\n {\n dataSubtypeJComboBoxItemStateChanged(evt);\n }\n });\n\n\n dataTypeJComboBox.addItemListener(new ItemListener()\n {\n @Override\n public void itemStateChanged(ItemEvent evt)\n {\n dataTypeJComboBoxItemStateChanged(evt);\n }\n });\n \n }", "title": "" }, { "docid": "9162e52d1cf3577e26191cc96d527a2b", "score": "0.589623", "text": "private void initListeners() {\n exitItem.addActionListener(this);\n stopAllMenuItem.addActionListener(this);\n startAllMenuItem.addActionListener(this);\n optionsMenuItem.addActionListener(this);\n trayIcon.addMouseListener(new MouseInputAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n selectionPopup.show(null, e.getX(), e.getY());\n }\n });\n }", "title": "" }, { "docid": "54f1a44cf9c0f5e87aa21338084eafbc", "score": "0.58900785", "text": "protected AbstractListenerManager()\r\n\t{\r\n\t}", "title": "" }, { "docid": "b37f09415798e7db50c46d11a0a1dd56", "score": "0.58758765", "text": "private void setListeners() {\n ap.sceneProperty().addListener((observableScene, oldScene, newScene) -> {\n if (oldScene == null && newScene != null) {\n newScene.windowProperty().addListener((observableWindow, oldWindow, newWindow) -> {\n if (oldWindow == null && newWindow != null) {\n stage = (Stage) ap.getScene().getWindow();\n }\n });\n }\n });\n model.getWallpaperData().addListener((ListChangeListener)(c -> {\n while (c.next())\n if (c.wasAdded()) {\n content.getChildren().addAll(c.getList().subList(c.getFrom(),c.getTo()));\n System.out.println(c.getList().subList(c.getFrom(),c.getTo()));\n c.getList().subList(c.getFrom(),c.getTo()).forEach(image ->\n ((UIImageView)image).setOnMouseClicked(event -> {\n ((UIImageView) image).setSelected(true);\n main.changeToEditor();\n }));\n }\n }));\n }", "title": "" }, { "docid": "92e8ab81b84e6b819348a7de1df50740", "score": "0.58598864", "text": "private void addListeners () {\n\t\tload.addActionListener(new ActionListener () {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tload();\n\t\t\t}\t\n\t\t});\n\t\texit.addActionListener(new ActionListener () {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texit();\n\t\t\t}\t\n\t\t});\n\t\terfassen.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thinzu();\t\t\t\t\n\t\t\t}\t\t\n\t\t});\n\t}", "title": "" }, { "docid": "0fcc2d2206949df8b7cee77118f1ad48", "score": "0.5859414", "text": "void addContestListListener(ListSelectionListener theListener);", "title": "" }, { "docid": "b4839b1650315632daa1b56f1e11d2fe", "score": "0.5858107", "text": "@Override\n\tprotected void setListener() {\n\t}", "title": "" }, { "docid": "360ac554f48817d5bb7c436610ef4d37", "score": "0.58555156", "text": "private void setupList() {\n list = new JList(listModel);\n list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n list.setSelectedIndex(0);\n list.addListSelectionListener(this);\n list.addMouseListener(new DisplayInformation());\n list.setVisibleRowCount(5);\n }", "title": "" }, { "docid": "bedfa20391b954103490feef75dc18d9", "score": "0.58548313", "text": "public WindowList() {\n //init window lists\n windows = new ArrayList<>();\n }", "title": "" }, { "docid": "8dec0285c3217246f6ebdf1f6b3d3332", "score": "0.5853095", "text": "@Override\r\n\tpublic void setListeners() {\n\t\tsuper.setListeners();\r\n\t}", "title": "" }, { "docid": "13a06d7fc48cc75096e655bd4cb86f06", "score": "0.5844954", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ll = new javax.swing.JLabel();\n a = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n l1 = new javax.swing.JList();\n jButton2 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(550, 400));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n getContentPane().setLayout(null);\n\n ll.setBackground(new java.awt.Color(102, 0, 102));\n ll.setFont(new java.awt.Font(\"Pristina\", 0, 24)); // NOI18N\n ll.setForeground(new java.awt.Color(153, 153, 255));\n ll.setText(\"<html><center>RULES</center><br> This is a game base on your luck. In this game the gamer has to guess the pregenerated number ranging from 0 to 100 in the text field privided and then click on the Check button to chech if the numbers match. The guessed numbers will be automaticall entered into a list box for the gamer to avoid repeptition. This game is not timed and will continue till the number is guessed or till the gamer gives up. Have Fun!<center>Click to Start</center></html>\");\n ll.setOpaque(true);\n ll.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n llMouseClicked(evt);\n }\n });\n getContentPane().add(ll);\n ll.setBounds(0, 0, 540, 370);\n\n a.setFont(new java.awt.Font(\"MV Boli\", 0, 24)); // NOI18N\n a.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n aMouseMoved(evt);\n }\n });\n a.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n aFocusLost(evt);\n }\n });\n a.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n aMouseClicked(evt);\n }\n });\n getContentPane().add(a);\n a.setBounds(249, 92, 87, 34);\n\n jButton1.setText(\"Check\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(249, 180, 99, 43);\n\n l1.setModel(new DefaultListModel());\n jScrollPane1.setViewportView(l1);\n\n getContentPane().add(jScrollPane1);\n jScrollPane1.setBounds(72, 70, 86, 238);\n\n jButton2.setText(\"Back\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2);\n jButton2.setBounds(345, 275, 55, 23);\n\n jLabel2.setFont(new java.awt.Font(\"Pristina\", 0, 36)); // NOI18N\n jLabel2.setText(\"Number Game\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(114, 11, 204, 48);\n\n pack();\n }", "title": "" }, { "docid": "d8b82d8388a42c7de2365621e59c42ae", "score": "0.5842611", "text": "String getListener();", "title": "" }, { "docid": "a9577d67c2c7824ddc5156f718f961d7", "score": "0.58425397", "text": "public ConnectFrame(GUIListener listener) {\r\n initComponents();\r\n this.listener=listener;\r\n }", "title": "" }, { "docid": "b919e8f22f681e3628a127b3f5395fbd", "score": "0.58423823", "text": "private void createSelectionListeners() {\n createZoomComboBoxListener();\n createZoomRadioListener();\n createDragRadioListener();\n createJuliaRadioListener();\n\n createMaxItButtonListener();\n createRegionButtonListener();\n createJuliaButtonListener();\n createRegionComboBoxListener();\n\n createSizeComboBoxListener();\n createEqnComboBoxListener();\n createPrecisionComboBoxListener();\n createSmoothCheckBoxListener();\n }", "title": "" }, { "docid": "8d14c3f6e0434fc4696965f88b46c875", "score": "0.5840429", "text": "public void add(InputChangedListener listener)\r\n {\r\n\r\n }", "title": "" }, { "docid": "8a968bdb0d1536c70f41878b3121beff", "score": "0.58378536", "text": "private void iniciarListaEventos()\n {\n }", "title": "" }, { "docid": "51dbd99b820872a152d85812790b240c", "score": "0.58326286", "text": "private List<SetupExtensionListener> getListener() {\r\n\t\tif (listener==null) {\r\n\t\t\tlistener = new ArrayList<>();\r\n\t\t}\r\n\t\treturn listener;\r\n\t}", "title": "" }, { "docid": "3c73520348e5ee4455a157b9060942f4", "score": "0.5831112", "text": "public interface AddListener {\n void add();\n}", "title": "" }, { "docid": "dbacd36e68287f56bfc6ae889d09509c", "score": "0.5819084", "text": "@Override\n\t\tprotected void setListener() {\n\n\t\t}", "title": "" }, { "docid": "dbacd36e68287f56bfc6ae889d09509c", "score": "0.5819084", "text": "@Override\n\t\tprotected void setListener() {\n\n\t\t}", "title": "" }, { "docid": "f5a6c593e485138443568e3e427af228", "score": "0.5815976", "text": "public List<EventListener> getEventListeners() {\n return Collections.unmodifiableList(eventListeners);\n }", "title": "" }, { "docid": "1bcfd029031db70b21bd988aeb24c5ae", "score": "0.580933", "text": "@Override\n\t\tprotected void setListener()\n\t\t\t{\n\t\t\t}", "title": "" }, { "docid": "2920da2d9dc552d8b5cdd25ef7ee4b7f", "score": "0.5806456", "text": "void registerListener();", "title": "" }, { "docid": "4bf28a0d388cd4fce20f86ef10085c06", "score": "0.5806028", "text": "public void setListener(MapPathListPanelListener listener) {\n this.addButton.addActionListener((ActionEvent ae) -> {\n JFileChooser fileChooser;\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\n \"Conquest Map file\", \"map\");\n fileChooser = new JFileChooser();\n fileChooser.setFileFilter(filter);\n fileChooser.setCurrentDirectory(new File(\".\" + File.separator + \"maps\"));\n\n if (fileChooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n String fileName = fileChooser.getSelectedFile().getAbsolutePath();\n listener.mapAdded(new MapPath(fileName));\n }\n });\n\n this.listener = listener;\n }", "title": "" }, { "docid": "42242a34ee4bea6c3fe8c81e54bfd4fc", "score": "0.5801482", "text": "public LoggerGUI() {\n super( \"Logging\" );\n\n setupGUI();\n addListeners();\n populateList();\n\n setVisible( true );\n }", "title": "" }, { "docid": "f30f90037b2cfa634af0af6b57f3da7b", "score": "0.57842314", "text": "@Override\n\tpublic void addListDataListener(ListDataListener l)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a737a85c63fc5c6c7d4a6b9bbe80758d", "score": "0.57828593", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n lstLaminates = new javax.swing.JList();\n\n jScrollPane1.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 14)); // NOI18N\n\n lstLaminates.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n lstLaminates.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lstLaminatesMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(lstLaminates);\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "5a06ba92e44a80a3b4da5b0dff915a51", "score": "0.5781681", "text": "void addListener(L listener);", "title": "" }, { "docid": "a6ac193fb1d25933e79c80481d62a96d", "score": "0.57805717", "text": "public ConnectionManagerPanel() {\n initComponents();\n lstConnections.addListSelectionListener(this);\n }", "title": "" }, { "docid": "1910ed80c9f66f3ca8d1423e281bde94", "score": "0.57795435", "text": "public void init() {\n\t\tcanvas = new FacePamphletCanvas();\n\t\tadd(canvas);\n\t\t\n\t\tstatusfield.setActionCommand(STATUS_COMMAND);\n\t\tstatusfield.addActionListener(this);\n\t\tpicturefield.setActionCommand(PICTURE_COMMAND);\n\t\tpicturefield.addActionListener(this);\n\t\tfriendfield.setActionCommand(FRIEND_COMMAND);\n\t\tfriendfield.addActionListener(this);\n\t\t\n\t\tadd(new JLabel(\"Name\"), NORTH);\n\t\tadd(namefield, NORTH);\n\t\tadd(new JButton(\"Add\"), NORTH);\n\t\tadd(new JButton(\"Delete\"), NORTH);\n\t\tadd(new JButton(\"Lookup\"), NORTH);\n\t\t\n\t\tadd(statusfield, WEST);\n\t\tadd(new JButton(STATUS_COMMAND), WEST);\n\t\tadd(new JLabel(EMPTY_LABEL_TEXT), WEST);\n\t\tadd(picturefield, WEST);\n\t\tadd(new JButton(PICTURE_COMMAND), WEST);\n\t\tadd(new JLabel(EMPTY_LABEL_TEXT), WEST);\n\t\tadd(friendfield, WEST);\n\t\tadd(new JButton(FRIEND_COMMAND), WEST);\n\t\t\n\t\taddActionListeners();\n }", "title": "" }, { "docid": "38405ccfbfff600bfd3341d56a451895", "score": "0.57742405", "text": "public ListenersModel getListeners();", "title": "" }, { "docid": "ae1e94a13020d60adc977fb91c5be726", "score": "0.57679915", "text": "void addListener(Listener listener);", "title": "" }, { "docid": "1919412f85078618108137d306bb9b04", "score": "0.57631576", "text": "void addlistener() {\r\n\t\tbtnAdd.addActionListener(this);\r\n\t\tbtnPayment.addActionListener(this);\r\n\t\tbtnDelete.addActionListener(this);\r\n\t\tbtnLogout.addActionListener(this);\r\n\t}", "title": "" }, { "docid": "467ef246108a46264afab5978d79595d", "score": "0.5763027", "text": "public void addlisteners() {\n addListnerToMedicalRecords();\n\n //add listener to Note Table\n addListnerToNoteTable();\n\n // add listener to Prescription table\n addListnerToPrescriptionTable();\n\n //add listener to Lab Test Table\n addListnerToLabTestTable();\n }", "title": "" }, { "docid": "356995dfc7acfb6c860036417bac61f1", "score": "0.5756041", "text": "public EventManager() {\n schedule = new ArrayList<>();\n }", "title": "" }, { "docid": "1dacc6eb5f7e93fad99716fbad4dd328", "score": "0.5752736", "text": "public void registerListener(EventListener eventListener) {\n\t\t\n\t}", "title": "" }, { "docid": "af6fca1dde015a6b6c385a7f2eaee38e", "score": "0.5740309", "text": "private void agregarListeners() {\n this.vista.jbCancelar.addActionListener(this);\n this.vista.jbAceptar.addActionListener(this);\n this.vista.jbQuitarRol.addActionListener(this);\n this.vista.jbAgregarRol.addActionListener(this);\n this.vista.jftCedulaIdentidad.addKeyListener(this);\n this.vista.jtfNombre.addMouseListener(this);\n this.vista.jtfApellido.addMouseListener(this);\n this.vista.jftCedulaIdentidad.addMouseListener(this);\n this.vista.dccFechaNacimiento.addMouseListener(this);\n this.vista.dccFechaIngreso.addMouseListener(this);\n this.vista.jpassword1.addMouseListener(this);\n this.vista.jpassword2.addMouseListener(this);\n this.vista.jtfAlias.addMouseListener(this);\n this.vista.jtRolesDisponibles.addMouseListener(this);\n this.vista.jtRolesSeleccionados.addMouseListener(this);\n }", "title": "" }, { "docid": "463d5ecd94606ac41e16ffed5712f09d", "score": "0.57384384", "text": "public DefaultListenerStoreImpl() {\n this.listenerMap = new HashMap<>();\n }", "title": "" }, { "docid": "8c37282c66a4ec2f07f36e709cd07915", "score": "0.5734882", "text": "private void _Setup_Listeners() {\n\t\t// TODO Auto-generated method stub\n\t\t/***************************************\n\t\t * Set listener: CONS.TabActv.lvTab1\n\t\t ***************************************/\n// \tCONS.TabActv.lvTab1.setTag(Tags.ListTags.tab_itemList);\n\t\tCONS.TabActv.lvTab1.setTag(Tags.ListTags.TAB_ITEM_LIST);\n\t\t\n\t\tCONS.TabActv.lvTab1.setOnItemClickListener(new LOI_CL(this));\n\n\t\tCONS.TabActv.lvTab1.setOnItemLongClickListener(new LOI_LCL(this));\n\t\t\n\t\t/***************************************\n\t\t * Set listener: ImageButton\n\t\t ***************************************/\n\t\tImageButton ib_tab1Choose = (ImageButton) findViewById(R.id.itemlist_tab1_ib);\n\t\t\n//\t\tib_tab1Choose.setTag(Tags.ButtonTags.itemlist_tabs_bt_choose);\n\t\tib_tab1Choose.setTag(Tags.ButtonTags.ITEMLIST_TABS_BT_CHOOSE);\n\t\t\n\t\tib_tab1Choose.setOnClickListener(new BO_CL(this));\n//\t\tib_tab1Choose.setOnClickListener(new ButtonOnClickListener(this));\n\t\t\n\t\tib_tab1Choose.setOnTouchListener(new BO_TL(this));\n\t\t\n\t\t/***************************************\n\t\t * Set listener: lvTab2\n\t\t ***************************************/\n\t\t/***************************************\n\t\t * Listener: Item click\n\t\t ***************************************/\n\t\tCONS.TabActv.lvTab2.setTag(Tags.ListTags.tab_toBuyList);\n\t\t\n\t\tCONS.TabActv.lvTab2.setOnItemClickListener(new LOI_CL(this));\n\t\t\n\t\t/***************************************\n\t\t * Listener: Item long click\n\t\t ***************************************/\n\t\tCONS.TabActv.lvTab2.setOnItemLongClickListener(new LOI_LCL(this));\n\t\t\n\t\t/***************************************\n\t\t * Change listeners: Spinner: store\n\t\t ***************************************/\n\t\tCONS.TabActv.spStore.setTag(Tags.SpinnerTag.spStrore);\n\t\tCONS.TabActv.spStore.setOnItemSelectedListener(new ItemSelectedListener(this));\n\t\t\n\t\t// Log\n\t\tString msg_Log = \"CONS.TabActv.spStore => listener set\";\n\t\tLog.d(\"TabActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", msg_Log);\n\t\t\n\t\t/***************************************\n\t\t * Change listeners: Spinner: store\n\t\t ***************************************/\n\t\tCONS.TabActv.spGenre.setTag(Tags.SpinnerTag.spGenre);\n\t\tCONS.TabActv.spGenre.setOnItemSelectedListener(new ItemSelectedListener(this));\n\t\t\n\t\t// Log\n\t\tmsg_Log = \"CONS.TabActv.spGenre => listener set\";\n\t\tLog.d(\"TabActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", msg_Log);\n\t\t\n\t\t////////////////////////////////\n\n\t\t// tab changed\n\n\t\t////////////////////////////////\n\t\tTabHost th = this.getTabHost();\n\t\t\n\t\t//REF http://stackoverflow.com/questions/3583405/get-index-of-selected-tab-in-tabhost answered Aug 27 '10 at 15:31\n\t\tth.setOnTabChangedListener(new TCL(this));\n\t\t\n\t}", "title": "" }, { "docid": "0849df4dc97685bed964810d0a20342b", "score": "0.5730467", "text": "@Override\n public void addActionListener(ActionListener actionListener) {\n }", "title": "" }, { "docid": "4d6a24c6724ee4fd0ec4b5967da6c197", "score": "0.57296526", "text": "public TeamListPanel(ArrayList<Team> teamList, MouseListener detailRefresher) {\n\t\ttheTeams = teamList;\n\t\tchangeTeamListener = detailRefresher;\n\t\toldSelection = 0;\n\t\tselections = new ArrayList<TeamScrollPanel>();\n\t\t\n\t\tinitUI();\n\t}", "title": "" }, { "docid": "159550393b4efe8cd6197060065d9983", "score": "0.5728591", "text": "private void initListeners() {\n mMap.setOnMapClickListener(this);\n\n }", "title": "" }, { "docid": "4b8632a6c4471513e407ed2caeb364f6", "score": "0.57240564", "text": "void init()\n\t{\n\t\teventBroker.subscribe(UIEvents.UILabel.TOPIC_ALL, labelHandler);\n\n\t\t// Handles the model's list of renderable elements\n\t\teventBroker.subscribe(UIEvents.UIElement.TOPIC_TOBERENDERED,\n\t\t\t\ttoBeRenderedHandler);\n\n\t\t// Handles the changes in the selected element\n\t\teventBroker.subscribe(UIEvents.ElementContainer.TOPIC_SELECTEDELEMENT,\n\t\t\t\tselectionHandler);\n\n\t\t// Handles when whole perspective stacks are added and removed\n\t\teventBroker.subscribe(UIEvents.ElementContainer.TOPIC_CHILDREN,\n\t\t\t\tchildrenHandler);\n\t}", "title": "" }, { "docid": "03ebb204409bbbf4e22e6d6e507b422c", "score": "0.5719229", "text": "@Override\n\tpublic void addListDataListener(ListDataListener l) {\n\t\t\n\t}", "title": "" }, { "docid": "bc15ea89663e111f3c629c566039be36", "score": "0.57185197", "text": "@Override\n\t\t\tpublic void addListDataListener(ListDataListener l)\n\t\t\t{\n\n\t\t\t}", "title": "" }, { "docid": "bc15ea89663e111f3c629c566039be36", "score": "0.57185197", "text": "@Override\n\t\t\tpublic void addListDataListener(ListDataListener l)\n\t\t\t{\n\n\t\t\t}", "title": "" } ]
6a70411c06b5c4321f6494beb99bcc4e
required string Name = 3;
[ { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.0", "text": "java.lang.String getName();", "title": "" } ]
[ { "docid": "24dd08ed8c2a778a1b026c47b1319c77", "score": "0.62930226", "text": "public void setName (String Name)\n{\nif (Name == null) throw new IllegalArgumentException (\"Name is mandatory\");\nif (Name.length() > 60)\n{\nlog.warning(\"Length > 60 - truncated\");\nName = Name.substring(0,59);\n}\nset_Value (\"Name\", Name);\n}", "title": "" }, { "docid": "24dd08ed8c2a778a1b026c47b1319c77", "score": "0.62930226", "text": "public void setName (String Name)\n{\nif (Name == null) throw new IllegalArgumentException (\"Name is mandatory\");\nif (Name.length() > 60)\n{\nlog.warning(\"Length > 60 - truncated\");\nName = Name.substring(0,59);\n}\nset_Value (\"Name\", Name);\n}", "title": "" }, { "docid": "21dc42150e5c88f38f57d597fc3b9b8f", "score": "0.62480694", "text": "public void setName (String Name)\n{\nif (Name == null) throw new IllegalArgumentException (\"Name is mandatory\");\nif (Name.length() > 60)\n{\nlog.warning(\"Length > 60 - truncated\");\nName = Name.substring(0,60);\n}\nset_Value (\"Name\", Name);\n}", "title": "" }, { "docid": "4cc2b7a0489794054eb22cd85bf467c4", "score": "0.59557617", "text": "@NotNull\n String getName();", "title": "" }, { "docid": "4cc2b7a0489794054eb22cd85bf467c4", "score": "0.59557617", "text": "@NotNull\n String getName();", "title": "" }, { "docid": "c67259cf1a80a221331aff135154e295", "score": "0.5904875", "text": "final String getName() {\n\n return \"Name\";\n\n }", "title": "" }, { "docid": "70acf06a64211478dc1e1b1792ea8e52", "score": "0.5900666", "text": "String getRequiredValue();", "title": "" }, { "docid": "68c6de2a65ac49a938c68b62a4c9df48", "score": "0.58793056", "text": "@Test\n @Ignore\n public void testNamedArgument() {\n Rule rule = Grammar.NamedArgument;\n\n // TODO: Implement\n }", "title": "" }, { "docid": "4619066030a8644ec9220a23f98c3acb", "score": "0.58616877", "text": "public void name(String name) { _name = name; }", "title": "" }, { "docid": "07712141ea3d5e5dfae80c28d9eded77", "score": "0.58295083", "text": "@Test\n public void testSpecifiedNamedArgument() {\n Rule rule = Grammar.SpecifiedNamedArgument;\n\n valid(rule, LIDENTIFIER, SPECIFY, STRING_LITERAL, SEMICOLON);\n }", "title": "" }, { "docid": "d624a1ceeae6d96903dca280116fdbff", "score": "0.58135504", "text": "public void setName(String inName)\r\n{\r\n name = inName; \r\n \r\n}", "title": "" }, { "docid": "df103030d2e867587e595c66cdf5239a", "score": "0.57798356", "text": "public String value(){ return name; }", "title": "" }, { "docid": "06bec196642c3a0830074f27bf3f3034", "score": "0.56873554", "text": "public Variable(@NonNull String name) {\n this.name = name;\n }", "title": "" }, { "docid": "6c8b04b3de36a016f3c64dd59a148ea9", "score": "0.56515086", "text": "public void setName(String value) {\n/* 239 */ this.name = value;\n/* */ }", "title": "" }, { "docid": "f5907a7d67bb7545f2421ec9a33f00e5", "score": "0.5649105", "text": "abstract String name();", "title": "" }, { "docid": "f5907a7d67bb7545f2421ec9a33f00e5", "score": "0.5649105", "text": "abstract String name();", "title": "" }, { "docid": "3bff8d93c1b58bb16c86cfd11d6016b2", "score": "0.56164044", "text": "@Test\n public void testLocalNamedArgument() {\n Rule rule = Grammar.LocalNamedArgument;\n\n valid(rule, VALUE_MODIFIER, LIDENTIFIER, LBRACE, RBRACE);\n valid(rule, VALUE_MODIFIER, LIDENTIFIER, LBRACE, LIDENTIFIER, SPECIFY, STRING_LITERAL, SEMICOLON, RBRACE);\n valid(rule, VALUE_MODIFIER, LIDENTIFIER, LBRACE, LIDENTIFIER, SPECIFY, STRING_LITERAL, SEMICOLON, RBRACE);\n valid(rule, UIDENTIFIER, INTERSECTION_OP, UIDENTIFIER, LIDENTIFIER, LBRACE, LIDENTIFIER, SPECIFY, STRING_LITERAL, SEMICOLON,\n RBRACE);\n }", "title": "" }, { "docid": "596e409e56e83ba941c481604442dca4", "score": "0.55872875", "text": "private static String checkName(String name) {\n return name;\n }", "title": "" }, { "docid": "0112bab6845d5c6c9df94890dc99b088", "score": "0.5576389", "text": "@Name\n public abstract String getName();", "title": "" }, { "docid": "796a3c9e429392daa261a524426f1927", "score": "0.55534697", "text": "public void setName(String n){\n name = n;\n\n }", "title": "" }, { "docid": "a9fc5df3fd0cefea8298a4a9e6ea7266", "score": "0.55453587", "text": "public static String name() { return \"name\"; }", "title": "" }, { "docid": "50c799eaea21cf7718d3f928a6299f6a", "score": "0.554215", "text": "public void setName(String input){\n name = input;\n }", "title": "" }, { "docid": "65d4d4c370688e25afb6de908fa81614", "score": "0.5533416", "text": "@NotNull\r\n\tString getName();", "title": "" }, { "docid": "39e8cd592f64d707ff45b6c301780fea", "score": "0.5532346", "text": "public void setName(String name){ this.name = name; }", "title": "" }, { "docid": "9efb78520da0f3b0658dacb5034c3ade", "score": "0.55283946", "text": "void setName(String name){//setters are usually void\n if(name.length()<20){\n this.name=name;\n }else{\n System.out.println(\"Name can not be grater than 20 characters\");\n }\n }", "title": "" }, { "docid": "4b60cdffd45ecb19370a2761c0acf032", "score": "0.5522398", "text": "FieldDecl name(String name);", "title": "" }, { "docid": "23ef8a7b0becb1e3fb2fa6b7ff340a9c", "score": "0.5521504", "text": "public void setName(String aName)\n{\n\tname = aName;\n}", "title": "" }, { "docid": "9f1f02e26320a10501a555d4dc9094c7", "score": "0.5519578", "text": "public void setName (String _name) { name = _name; }", "title": "" }, { "docid": "2e23e4285e04208270c41170e19957ef", "score": "0.549806", "text": "public void setName(String name) {\r\n/* 48 */ this.name = name;\r\n/* */ }", "title": "" }, { "docid": "f13ba568d46a4e4f5875359f2bc4e710", "score": "0.54793036", "text": "public String getName()\r\n{\r\n return name; \r\n}", "title": "" }, { "docid": "7ccc815e6605478fae4a6fd489a2060c", "score": "0.5462724", "text": "@NotNull\n\t@Required\n\tString getValue();", "title": "" }, { "docid": "b07298aff8a1488b74df5b01935d70b8", "score": "0.5462597", "text": "public JamVal nameNeed() {\n AST prog = parser.parse();\n contextCheck(prog, null);\n return prog.accept(nameNeedEvalVisitor);\n }", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5462146", "text": "public void setName (String Name);", "title": "" }, { "docid": "82a3580d63011ee24aac26c315ccd5c2", "score": "0.54603225", "text": "String name(int v);", "title": "" }, { "docid": "028cb6fa56b13e98dc3f0c7e4f23eb8b", "score": "0.545689", "text": "public Name() {\r\n this.setPromptText(\"Name\");\r\n }", "title": "" }, { "docid": "9ace3bd73554e2b339f09bb9c8a8cf40", "score": "0.5444527", "text": "private boolean validateName (String inName)\r\n{\r\n boolean valid = (inName != null); \r\n return valid; \r\n \r\n}", "title": "" }, { "docid": "a9ae1d343a7a8945edea1ab08d056b92", "score": "0.5441299", "text": "private boolean validateName(String name) {\n return (name.length() > 0) && !name.equals(\"default\") && name.length() < 40;\n }", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.5439644", "text": "public String getName(){return name;}", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.5439644", "text": "public String getName(){return name;}", "title": "" }, { "docid": "2b6d02e311a56dc1eefafd58d00955f6", "score": "0.54391617", "text": "private void nameSetin() {\n\n }", "title": "" }, { "docid": "a1f422352de77040d058ca27583f2a13", "score": "0.54373276", "text": "String name(int value);", "title": "" }, { "docid": "b40dd885f51f1aa65ec01aeaae3e52a3", "score": "0.54355854", "text": "@Required\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "69bf2edfa7a195409902ba6def7b8b2c", "score": "0.5431184", "text": "public Variable(String thename)\n {\n name = thename;\n }", "title": "" }, { "docid": "0f3d53fd428643a82ad2ab19c3b47fb1", "score": "0.5420107", "text": "public void addRequire( String name ) {\n setBits( name, REQUIRED ) ;\n }", "title": "" }, { "docid": "603491ac5286a07da8af9a1ecd815d09", "score": "0.54152346", "text": "abstract int numMandatoryNamedOnly();", "title": "" }, { "docid": "4c8a789e5eb1617ef6e7451b3f8f52a6", "score": "0.54132015", "text": "public void setName(String nam) { name = nam; }", "title": "" }, { "docid": "6eff62eda4272d692abf23f446c6bbd5", "score": "0.54109514", "text": "public native\n @Name(\"name\")\n @StdString\n String getName();", "title": "" }, { "docid": "70068af5299ff5a412e98511307b660f", "score": "0.5409773", "text": "private Type(String name,int strength,int agility,int defence,int strBonus,int agilBonus,int defBonus)\n {\n this.name = name;\n this.strength = strength;\n this.agility = agility;\n this.defence = defence;\n\n strengthBonus = strBonus;\n agilityBonus = agilBonus;\n defenceBonus = defBonus;\n }", "title": "" }, { "docid": "756c4730dbd644518bbfa68939ebee19", "score": "0.54034567", "text": "public NameAlreadyBound(String paramString) {\n/* 22 */ super(NameAlreadyBoundHelper.id() + \" \" + paramString);\n/* */ }", "title": "" }, { "docid": "8f6eb8d4aeb39f622fc40b1e976195d8", "score": "0.5398729", "text": "abstract String getName();", "title": "" }, { "docid": "8f6eb8d4aeb39f622fc40b1e976195d8", "score": "0.5398729", "text": "abstract String getName();", "title": "" }, { "docid": "8f6eb8d4aeb39f622fc40b1e976195d8", "score": "0.5398729", "text": "abstract String getName();", "title": "" }, { "docid": "f33af6fd3abc2f33f9dee3ee2840752e", "score": "0.53980976", "text": "@Override\n\tpublic void setName(String name) throws InvalidName {\n\n\t}", "title": "" }, { "docid": "821e9ce918880abecd72d7c239ccbf41", "score": "0.5389524", "text": "public void setName(String name) {this.name = name;}", "title": "" }, { "docid": "5b898de172e01499cc8acea03ba77db0", "score": "0.5387888", "text": "VarName createVarName();", "title": "" }, { "docid": "adcd4cc2d84cb5f6eb54f4f36707ca48", "score": "0.5378123", "text": "public String getName(){ return name; }", "title": "" }, { "docid": "adcd4cc2d84cb5f6eb54f4f36707ca48", "score": "0.5378123", "text": "public String getName(){ return name; }", "title": "" }, { "docid": "d4345db840d267281835c2ff15e22eb1", "score": "0.537806", "text": "NameOrBuilder getNameOrBuilder();", "title": "" }, { "docid": "f81cf5284a9af5b52d689b5e008801a6", "score": "0.5355533", "text": "public String getName()\n{\n return name;\n\n}", "title": "" }, { "docid": "a8a1a24a1d628d32b2c34c7a13e759b0", "score": "0.53437513", "text": "String name ();", "title": "" }, { "docid": "b23f562fed301d70c98f20541f17ee5d", "score": "0.5341065", "text": "public Type(String name) {\r\n\t\tthis.name = name;\r\n\t\tcheckValid(name);\r\n\t}", "title": "" }, { "docid": "16e7b9d8a2e782f69f4198cef6a8de47", "score": "0.5340814", "text": "void setName(final String name);", "title": "" }, { "docid": "190c193c6f15e82b26b91ddf95095c1a", "score": "0.53384906", "text": "int getValueNameInt();", "title": "" }, { "docid": "0793d6e4b7affbaab3017181142e212f", "score": "0.5329071", "text": "private Interpretation(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "08b961184bb77f75643271cac40fc916", "score": "0.5327866", "text": "public void setName(@NotNull String name) {\n this.name = name;\n }", "title": "" }, { "docid": "08b961184bb77f75643271cac40fc916", "score": "0.5327866", "text": "public void setName(@NotNull String name) {\n this.name = name;\n }", "title": "" }, { "docid": "1b77465325723308a92900986c6f4463", "score": "0.5322745", "text": "public Type(String s, int w){\n name = s;\n size = w;\n }", "title": "" }, { "docid": "ae0d794cb9b96b40a36f2701a32869ad", "score": "0.5321946", "text": "abstract int numOptionalNamedOnly();", "title": "" }, { "docid": "dcf2c2cc843598940a930286c45ad895", "score": "0.5320015", "text": "NameType getName();", "title": "" }, { "docid": "a1382e934419dccddf25190ee4506a89", "score": "0.53170675", "text": "public void setName(String name) throws IllegalArgumentException {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9f87728a544de4e1626d9589ca195c50", "score": "0.5316583", "text": "re\n\npublic abcdef(String name) {\n\tthis.name=name;\n\t//this.num=num;\n}", "title": "" }, { "docid": "5bd834d3fe412657920e1d215c282547", "score": "0.53143567", "text": "public String getName() {\n/* 37 */ return this.name;\n/* */ }", "title": "" }, { "docid": "33b79fe498a81c4b66b3baa5c6730b5b", "score": "0.5311452", "text": "default String notRequired() {\n\t\treturn \"Default implementation\";\n\t}", "title": "" }, { "docid": "9af740de4856ba0f648781cb96f36de1", "score": "0.53081435", "text": "public Name getName () { return name;}", "title": "" }, { "docid": "4b76b6eb4d3fc002cd10f98a1d9e32dc", "score": "0.5304509", "text": "public abstract int getName();", "title": "" }, { "docid": "ee8e73085025bf07da01eeb2d1773cf2", "score": "0.53007567", "text": "public String getName() {\n/* 83 */ return this.name;\n/* */ }", "title": "" }, { "docid": "61155cd8545339eb75c3c96b3dc462d8", "score": "0.5295349", "text": "public void checkNameLength(String name){\n String[] nameSplit = name.split(\" \");\n\n if(nameSplit.length > 4){\n throw new IllegalArgumentException();\n\n }\n }", "title": "" }, { "docid": "401f6ac997ced1660ba058ae6a06e0d2", "score": "0.52873987", "text": "int getName();", "title": "" }, { "docid": "cf404d2eb5815e2d0788c408c69392a0", "score": "0.5286458", "text": "public void setName(String name) { this.name = name; }", "title": "" }, { "docid": "cf404d2eb5815e2d0788c408c69392a0", "score": "0.5286458", "text": "public void setName(String name) { this.name = name; }", "title": "" }, { "docid": "cf404d2eb5815e2d0788c408c69392a0", "score": "0.5286458", "text": "public void setName(String name) { this.name = name; }", "title": "" }, { "docid": "694aba442cf0c7c8d9d733e3aab500f3", "score": "0.5276651", "text": "public Size(String name){\n this.name = name;\n }", "title": "" }, { "docid": "7a9c78cc6b03c2d2c43edc511be5c6fd", "score": "0.5273512", "text": "public void setName(String in){\n name = in;\n }", "title": "" }, { "docid": "0c6be0a7eb0f9781a00173aaa17d2598", "score": "0.52726173", "text": "@UseDefaults\n Property<String> nameAttribute();", "title": "" }, { "docid": "0ac959a7b0e1d064a45f341b85e1e8f5", "score": "0.52666813", "text": "public void testValidParameterName() throws Exception\n {\n IComponentSpecification spec = parseComponent(\"ValidParameterName.jwc\");\n \n IParameterSpecification ps = spec.getParameter(\"valid\");\n \n assertNotNull(\"Parameter specification.\", ps);\n checkLine(ps, 9);\n }", "title": "" }, { "docid": "3d6aa4227665822d64c0a1326e25c98a", "score": "0.5266273", "text": "public String getName() {\n \n return Name;\n \n }", "title": "" }, { "docid": "45fbd9c7073e32a89cc5ed96818a3a23", "score": "0.5264612", "text": "public void setName(String name)\n{\n\tthis.name = name;\n}", "title": "" }, { "docid": "ca8f0a9c5e07fddd13ee0c3bc9e6eeef", "score": "0.5264219", "text": "@Test\n public void testGetName() {\n String expResult = name;\n String result = instance.getName();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "1ac8cb33b63708f8eeb1982d98f82627", "score": "0.52406657", "text": "@Test\n public void testSetName1() {\n final Property p = new Property();\n p.setName(\"any string\");\n Assert.assertEquals(\"Name can be assigned any string\", \"any string\", p.getName());\n }", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.52389365", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.52389365", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.52389365", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.52389365", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.52389365", "text": "public void setName(final String name);", "title": "" }, { "docid": "7a635bb81c7aed6ea012ee5e69bc8559", "score": "0.52372247", "text": "@Override\n\tpublic String getNameFromInput() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4a1e97d42e83c49e60487590714f5ca5", "score": "0.52323323", "text": "public Identifier(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "c5d4c8b3f8fc02c3f033a04a006ed63d", "score": "0.52274704", "text": "public String getName() {\n/* 227 */ return this.name;\n/* */ }", "title": "" }, { "docid": "1b1bee1e94b6ecb1683cbafe30cc6e03", "score": "0.5227317", "text": "public void testValidateName001() {\n\n assertEquals(false, dp.validateString(\"B\"));\n }", "title": "" }, { "docid": "6cb17f93fe98ad41fdaace642334721d", "score": "0.5225022", "text": "void setName(org.hl7.fhir.String name);", "title": "" }, { "docid": "311215e6f4d29ab779ebc726d3741f03", "score": "0.52221936", "text": "public void setName(java.lang.String value);", "title": "" }, { "docid": "dadd5d14074226a3117b84abca0b45b7", "score": "0.52210397", "text": "Optional<String> checkerName();", "title": "" } ]
4e680f2be942c8f12c1bae3eb310a337
Sets the payment status to yes and adds the payment method
[ { "docid": "5a568ae1d9cd211e9784218c6af01638", "score": "0.54616106", "text": "public void premiumPayment (String name, String paymentMethod) {\r\n for (Premium member : premium) {\r\n if (member.getName() == name.toLowerCase()) {\r\n member.setPaid(true);\r\n member.setPaymentMethod(paymentMethod);\r\n }\r\n }\r\n }", "title": "" } ]
[ { "docid": "75ee6a001b02f3a72570c56d21489445", "score": "0.62839156", "text": "@Override\r\n\tpublic String addPaymentToStatus(Payment p) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ca75849298420dd32e9e5b0b78f9a75d", "score": "0.62576944", "text": "public void pay(){\r\n outstanding = true;\r\n }", "title": "" }, { "docid": "d8c45064241733296f5d0bf21600341a", "score": "0.6240833", "text": "public boolean pay() {\n this.setStatus(Status.PAID);\n return true;\n }", "title": "" }, { "docid": "6f463897c85ca114bbb39e3ad385e96c", "score": "0.6103723", "text": "public void setPaid(boolean paid) {\n this.paid = paid;\n }", "title": "" }, { "docid": "d81a3e71cf14805ff52ea9c7a9c7c3a1", "score": "0.6096672", "text": "public void setPaymentMethod(com.gottaeat.domain.payment.CreditCard value) {\n this.payment_method = value;\n }", "title": "" }, { "docid": "f4b516983ac7941f72f2790ea73d32c7", "score": "0.60945797", "text": "public void setPaymentMethod(String paymentmethod) {\n this.paymentmethod = paymentmethod;\n }", "title": "" }, { "docid": "657f2b4c4fefc579bfb138806caea2ee", "score": "0.6091458", "text": "boolean Pay() {\n return true;\n }", "title": "" }, { "docid": "6f1bace972b977eb1465c09bef173a9e", "score": "0.606599", "text": "@Override\r\n\tpublic String updatePaymentStatus(Payment p) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4b53e4a0c6a931d7049d64ed1a0c5a5d", "score": "0.5984133", "text": "boolean successfulPayment();", "title": "" }, { "docid": "aa3ed066c8bb5891d0f73051da83be94", "score": "0.5972068", "text": "private void submitPayment() {\n //this codes displays the diff payment methods that the user can use to pay\n //https://github.com/braintree/braintree-android-drop-in\n DropInRequest dropInRequest = new DropInRequest().clientToken(token).vaultManager(true);\n startActivityForResult(dropInRequest.getIntent(AddCreditScreen.this), REQUEST_CODE);\n }", "title": "" }, { "docid": "959ad55e6b21c14a3b9dfcd6344bed0a", "score": "0.5949637", "text": "public void setPayment(String payment) {\n this.payment = payment;\n }", "title": "" }, { "docid": "586b5515ff416eed60a41934b930abbb", "score": "0.5876969", "text": "public String getPaymentMethod() {\n return paymentMethod;\n }", "title": "" }, { "docid": "84f260b2a7511505f9fa38983f74b80d", "score": "0.58735406", "text": "public boolean hasPaymentMethod() {\n return fieldSetFlags()[7];\n }", "title": "" }, { "docid": "d371a60649d748640502b6f4721771e4", "score": "0.58727485", "text": "public void makePayment(){\n\r\n }", "title": "" }, { "docid": "bfbd1ab673fd87870b01a4e2d873e251", "score": "0.5867788", "text": "public void pay(PaymentStrategy paymentMethod){\r\n double amount = calculateTotal();\r\n paymentMethod.pay(amount);\r\n }", "title": "" }, { "docid": "6d2766622f6a7a409fcd0a904575ecb4", "score": "0.58275294", "text": "void onPaymentCompleted(PaymentStatus paymentStatus);", "title": "" }, { "docid": "02268476366c8b19b556419dcffd1b3e", "score": "0.57741076", "text": "private void checkPayment() {\n ServiceExecute.execute(new HyperShopOrderService(this).getOne(new HyperPref(this).lastOrder()))\n .subscribe(new NtkObserver<ErrorException<HyperShopOrderModel>>() {\n @Override\n public void onNext(@NonNull ErrorException<HyperShopOrderModel> resposne) {\n //hide loading of page\n findViewById(R.id.inc_loading).setVisibility(View.GONE);\n //if paid is success\n if (resposne.Item.SystemMicroServiceIsSuccess)\n SuccessPage();\n else\n unSuccessPage();\n }\n\n @Override\n public void onError(@NonNull Throwable e) {\n Toasty.error(CheckPaymentActivity.this, e.toString()).show();\n finish();\n }\n });\n }", "title": "" }, { "docid": "2cf9f403eeed939f313e1e9f36ec4c9f", "score": "0.5758129", "text": "public void startPayment() {\n\n final Activity activity = this;\n\n final Checkout co = new Checkout();\n\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", \"Doit Corp\");\n options.put(\"description\", schoice+\" course \"+sdomain);\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", \"https://lh3.googleusercontent.com/CJNJ3_nBPQjsAUHUz-WJu-kXNcSrbkgN5kcR0Zb0FfECgfCDMGSs4gGhFYVNpmHbuA\");\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", snew+\"00\");\n\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"we.beyond.horizons@doit.com\");\n preFill.put(\"contact\", \"1230984567\");\n\n options.put(\"prefill\", preFill);\n\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ba64f02f5f55fe412cdc27d3c3d36d93", "score": "0.57560086", "text": "public boolean generatePayment() {\n\t\tint invoiceID = DB.getSQLValue(get_Trx(), \"SELECT C_Invoice_ID from C_Invoice where C_Order_ID = ? \" , getC_Order_ID());\n\t\t\n\t\tMOrg org = new MOrg(getCtx(), getAD_Org_ID(), get_Trx());\n\t\tMOrgPOS orgPOS = MOrgPOS.getOrgPos(getCtx(), getAD_Org_ID(), get_Trx());\n\t\tint bankAcctID = DB.getSQLValue(get_Trx(), \"select c_bankaccount_id from z_orgpos where ad_org_id=?\", getAD_Org_ID());\n\t\tint bankDocTypeID = DB.getSQLValue(get_Trx(),\"select doctype_bankacct_id from z_orgpos where ad_org_id=?\",getAD_Org_ID());\n\n\t\tMPayment paym = new MPayment(getCtx(),0,get_Trx());\n\t\tpaym.setClientOrg(getAD_Client_ID(), getAD_Org_ID());\n\t\t\tpaym.setC_BankAccount_ID(bankAcctID);\n\t\t\tpaym.setC_DocType_ID(bankDocTypeID);\n\t\t\tint ZSubPR_ID = orgPOS.getZSubPaymentRule_ID();//MERGE\n\t\t\tif (this.get_ValueAsInt(\"ZSubPaymentRule_ID\") > 0 ) ZSubPR_ID = this.get_ValueAsInt(\"ZSubPaymentRule_ID\");\n\t\t\tpaym.set_Value(\"ZSubPaymentRule_ID\", ZSubPR_ID); \n\t\t\tpaym.setPayAmt(getGrandTotal());\n\t\t\tpaym.setC_BPartner_ID(getC_BPartner_ID());\n\t\t\tif (invoiceID > 0)\n\t\t\t\tpaym.setC_Invoice_ID(invoiceID);\n\t\t\tif (paym.getDescription() != null)\n\t\t\t\tpaym.setDescription(paym.getDescription() + \" - \" + getDocumentNo());\n\t\t\telse\n\t\t\t\tpaym.setDescription(getDocumentNo());\n\t\t\tpaym.setC_Currency_ID(orgPOS.getC_Currency_ID());\n\t\t\tpaym.set_Value(\"ZCreateFromOpenInvoice\", \"N\");\n\t\t\tpaym.set_Value(\"DueDate\", getDateOrdered());\n\t\t\tpaym.setC_ConversionType_ID(MConversionType.getDefault(getAD_Client_ID()));//MERGE\n\t\t\tpaym.setChargeAmt(BigDecimal.ZERO);\n\t\t\tpaym.setOProcessing(\"N\");\n\t\t\tpaym.setDocAction(MOrder.DOCACTION_Complete);\n\t\t\tpaym.setC_Order_ID(getC_Order_ID());\n\t\t\tpaym.setC_Invoice_ID(getC_Invoice_ID());\n\t\t\tpaym.save(get_Trx());\n\t\t\t// Verify Ss-mth\n\t\t\tX_ZSubPaymentRule xZs = new X_ZSubPaymentRule(getCtx(), ZSubPR_ID, get_Trx());\n\t\t\tif(xZs.get_ValueAsBoolean(\"IsAllocated\")){\n\t\t\t\tboolean successPay = DocumentEngine.processIt(paym, DocActionConstants.ACTION_Complete);\n\t\t\t\tif (!successPay) throw new CompiereException(paym.getProcessMsg());\n\t\t\t}\n\t\t\tpaym.save(get_Trx());\n\t\t\treturn true;\n\t}", "title": "" }, { "docid": "f844d44d4145ac75a28a569dfd4617f6", "score": "0.5713304", "text": "public Enum getPaymentStatus() {\n return paymentStatus;\n }", "title": "" }, { "docid": "b4735952acf89475a6b13ba725c96ef4", "score": "0.5691402", "text": "public String getPaymentMethod() {\n return paymentmethod;\n }", "title": "" }, { "docid": "27f28fc60326ab5ef720b087945fcae1", "score": "0.5666002", "text": "public boolean isPaid() {\n return paid;\n }", "title": "" }, { "docid": "4ade777a11e9cdf6a41f45fe83cac389", "score": "0.56536585", "text": "public static void setPaymentCompleteOnce() {\n SharedPreferencesManager.getInstance().writeBoolean(\n ChromePreferenceKeys.PAYMENTS_PAYMENT_COMPLETE_ONCE, true);\n }", "title": "" }, { "docid": "c0dc67dfb8155ad1f774f93b0998b5b4", "score": "0.5651061", "text": "public void nextPaymentClicked(View view) {\n sharedPreferences = getSharedPreferences(MenuScreenActivity.SHARED_PREF_NAME, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Intent intent = new Intent(this, CardDetailsActivity.class);\n\n int radioId = radioGroup.getCheckedRadioButtonId();\n RadioButton radioButton = findViewById(radioId);\n nextButton.setEnabled(true);\n\n // Checking the user's selected payment option and based on that taking user to different activities.\n String selectedPayment;\n if (radioButton == findViewById(R.id.radio_credit)) {\n selectedPayment = \"Credit Card\";\n } else if (radioButton == findViewById(R.id.radio_debit)) {\n selectedPayment = \"Debit Card\";\n } else {\n selectedPayment = \"Cash\";\n intent = new Intent(this, CustomerDetailsActivity.class);\n }\n editor.putString(\"paymentOption\", selectedPayment);\n editor.apply();\n startActivity(intent);\n }", "title": "" }, { "docid": "9fe026fc8b82bef3066bcc1f3689dc7f", "score": "0.5609502", "text": "public void setPaymentOneGate(int paymentOneGate);", "title": "" }, { "docid": "cd29430836dcc4168e4f2d5c6a47310b", "score": "0.56027687", "text": "public com.gottaeat.domain.order.FoodOrder.Builder setPaymentMethod(com.gottaeat.domain.payment.CreditCard value) {\n validate(fields()[7], value);\n this.payment_methodBuilder = null;\n this.payment_method = value;\n fieldSetFlags()[7] = true;\n return this;\n }", "title": "" }, { "docid": "2b33de632cab159adeef91a2ade216e9", "score": "0.557542", "text": "public void paymentRadioButtonClicked(View view) {\n nextButton.setEnabled(true);\n }", "title": "" }, { "docid": "325492c97a190586cdf870cc33f4c616", "score": "0.5568843", "text": "public void setPaymentType(String paymentType) {\r\n this.paymentType = paymentType;\r\n }", "title": "" }, { "docid": "4b4e309b40fa61ca6dd071252986022a", "score": "0.55428845", "text": "private void triggerPayment(boolean isUpiIntent) {\n String token =tokengenerate;\n\n\n /* * stage allows you to switch between sandboxed and production servers\n * for CashFree Payment Gateway. The possible values are\n *\n * 1. TEST: Use the Test server. You can use this service while integrating\n * and testing the CashFree PG. No real money will be deducted from the\n * cards and bank accounts you use this stage. This mode is thus ideal\n * for use during the development. You can use the cards provided here\n * while in this stage: https://docs.cashfree.com/docs/resources/#test-data\n *\n * 2. PROD: Once you have completed the testing and integration and successfully\n * integrated the CashFree PG, use this value for stage variable. This will\n * enable live transactions*/\n\n String stage = \"TEST\";\n\n /*\n * appId will be available to you at CashFree DashboardActivity. This is a unique\n * identifier for your app. Please replace this appId with your appId.\n * Also, as explained below you will need to change your appId to prod\n * credentials before publishing your app.*/\n\n String appId = \"3337dc7156012958cc5c3d1f7333\";\n String orderId = \"Order0001\";\n String orderAmount = String.valueOf(totalPrice);\n String orderNote = \"Test Order\";\n String customerName =RegPrefManager.getInstance(this).getLoginName();\n String customerPhone = \"9040019803\";\n String customerEmail = RegPrefManager.getInstance(this).getLoginEmailId();\n\n Map<String, String> params = new HashMap<>();\n\n params.put(PARAM_APP_ID, appId);\n params.put(PARAM_ORDER_ID, orderId);\n params.put(PARAM_ORDER_AMOUNT, orderAmount);\n params.put(PARAM_ORDER_NOTE, orderNote);\n params.put(PARAM_CUSTOMER_NAME, customerName);\n params.put(PARAM_CUSTOMER_PHONE, customerPhone);\n params.put(PARAM_CUSTOMER_EMAIL,customerEmail);\n\n\n for(Map.Entry entry : params.entrySet()) {\n Log.d(\"CFSKDSample\", entry.getKey() + \" \" + entry.getValue());\n }\n\n CFPaymentService cfPaymentService = CFPaymentService.getCFPaymentServiceInstance();\n cfPaymentService.setOrientation(0);\n\n if (isUpiIntent) {\n // Use the following method for initiating UPI Intent Payments\n cfPaymentService.upiPayment(this, params, token, this, stage);\n }\n else {\n // Use the following method for initiating regular Payments\n cfPaymentService.doPayment(this, params, token, this, stage);\n }\n\n }", "title": "" }, { "docid": "bd2879c225e19c0390fcccce6a5caa74", "score": "0.5542499", "text": "@Override\n\tpublic void makePayments() {\n\n\t}", "title": "" }, { "docid": "c0b95b05ce9bc414f26f595f3df9f8c3", "score": "0.55341804", "text": "public void showPayment(){\n\r\n }", "title": "" }, { "docid": "646cdfffbac4dfcd0d21d138d1aedcd8", "score": "0.5532352", "text": "public void setPayment(Double payment) {\n this.payment = payment;\n }", "title": "" }, { "docid": "60e01d7a8bc1eddf48dcc2df1088a8fb", "score": "0.55145484", "text": "@Override\n\tpublic void makePayments() {\n\t\t\n\t}", "title": "" }, { "docid": "7f816244fc3125860a0454f443463c7c", "score": "0.55041456", "text": "@Test\n public void checkIfPaid() {\n\t UIPayment pay =new UIPayment(0.0,order1);\n\t order1=nigel.getOrder(16); //Get order from web service that has id of 16\n\t nigel.resetOrder(order1); //reset order stage\n\t assertEquals(\"Test 4\",0.0,order1.getTotalPaid(),0.001);//check its unpaid\n\t pay.postPayment(order1);//update total paid by posting payment to webserver\n\t assertEquals(\"TEST 4\",order1.getTotalCost(),order1.getTotalPaid(),0.001);//assert paid is the same as cost\n }", "title": "" }, { "docid": "5f4e366b2e9c8ec715a1ccb157a73ba0", "score": "0.550295", "text": "void addPaymentMethod(PaymentMethod PaymentMethod) {\n\t\tif (this.checkLeftEmpty()) {\n\t\t\tthis.leftNode = PaymentMethod;\n\t\t} else if (this.checkRightEmpty()) {\n\t\t\tthis.rightNode = PaymentMethod;\n\t\t}\n\t}", "title": "" }, { "docid": "2bdec1f5170ff4bdcf2e3838729167fb", "score": "0.5498334", "text": "@Override\n public PaymentType getPaymentType(){\n //To Do auto-generated method stub\n return PAYMENT_TYPE;\n }", "title": "" }, { "docid": "da480e462a77030ed910c604b0394e2b", "score": "0.5489678", "text": "@Override\n public Boolean submitPaymentBusinessTripRequest(String username, String originalDecNo,\n BusinessPaymentDTO businessPaymentDTO) throws BusinessException, SystemException {\n BusinessTripRequestDTO businessTripRequestDTO = getBusinessTripRequestByOrginalDecNo(\n originalDecNo);\n businessTripRequestDTO.setPaymentDetails(businessPaymentDTO);\n createOrUpdateBusinessTrip(username, businessTripRequestDTO,\n Constants.DECISION_TYPE_BUSINESSMISSION_PAYMENT);\n // need to confirm about payment details\n return true;\n }", "title": "" }, { "docid": "b4ccc4a3855b5207db814d3b83e86eb5", "score": "0.5473053", "text": "@Override\n public boolean makePayment(String cardNumber, String cardName, String expireDate, int cardCvv, String cardType, Double amount) {\n\n PaymentCard card = findCard(cardNumber, cardName, expireDate, cardCvv, cardType);\n\n if(card == null) return false;\n\n\n System.out.println(amount);\n\n if(!checkBalance(cardNumber, cardName,expireDate,cardCvv,cardType,amount)) return false;\n\n double substractedBalance = card.getBalance() - amount;\n\n card.setBalance(substractedBalance);\n\n boolean isMasterCard = cardType != null && !cardType.isEmpty() && cardType.equalsIgnoreCase(MASTER_CARD);\n\n boolean isSuccess = false;\n\n if (isMasterCard) {\n masterCardRepository.save(card); //updating balance.\n isSuccess = true;\n } else{//we have only two card type.. else its visa card.\n visaCardRepository.save(card); //updating balance.\n isSuccess = true;\n }\n //send an email.\n\n\n return isSuccess;\n }", "title": "" }, { "docid": "16b1a138f689a6173837445b816ce7fe", "score": "0.5466115", "text": "@Override\n\tpublic PaymentMethod add(PaymentMethod t) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fe01743e6253b17fdc1530acc74a812b", "score": "0.54500103", "text": "public void setPaymentSuccess(final MfpPaymentResult mfpPaymentResult) {\n this.paymentResult = mfpPaymentResult;\n checkReportPaymentSuccess();\n if (this.finished) {\n PaymentsLogger.d(\"[%s] setPaymentSuccess: called, but already finished\", TAG);\n } else if (getConfigService().isVariantEnabled(DisableReceiptPostToServer.NAME)) {\n ((SubscriptionService) this.subscriptionService.get()).addIncompleteReceipt(mfpPaymentResult, new Function0() {\n public void execute() {\n Toast.makeText(PaymentActivityBase.this, \"SIMULATED BACKEND FAILURE FOR TESTING!\", 1).show();\n FunctionUtils.invokeIfValid(PaymentActivityBase.this.subscribeFailure, mfpPaymentResult, null);\n }\n });\n } else {\n PaymentsLogger.d(\"[%s] setPaymentSuccess: recording receipt with PurchaseService...\", TAG);\n ((SubscriptionService) this.subscriptionService.get()).processReceipt(mfpPaymentResult, this.subscribeSuccess, this.subscribeFailure);\n }\n }", "title": "" }, { "docid": "f423c5ccd00c744cde3752385fed2e37", "score": "0.54417634", "text": "public void setPaid(boolean pagado) {\n\t\tthis.pagado = pagado;\n\t}", "title": "" }, { "docid": "4ec0fcf89bc76c3ce048c5dead09b5d8", "score": "0.5436116", "text": "public void setPayment(final Payment payment);", "title": "" }, { "docid": "515850e4ef04c21aaaf8e7ff94670551", "score": "0.5435784", "text": "private void netPayment() {\n\t\t citrusClient = CitrusClient.getInstance(getApplicationContext()); // Activity Context\n\t\t // No need to call init on CitrusClient if already done.\n\t\t netbankingOption = new NetbankingOption(\"ICICI Bank\" ,\"CID001\");\n\t\t // Init Net Banking PaymentType\n\t\t Amount amount = new Amount(\"7\");\n\t\t try {\n\t\t\tpgPayment = new PaymentType.PGPayment(amount, BILL_URL, netbankingOption, new CitrusUser(\"developercitrus@gmail.com\",\"9876543210\"));\n\t\t} catch (CitrusException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(\"error\", \"eror\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "306ff7e2b68d02c52f3cf9e98f78a3d5", "score": "0.54235643", "text": "public String getPaymentType() {\r\n return paymentType;\r\n }", "title": "" }, { "docid": "306ff7e2b68d02c52f3cf9e98f78a3d5", "score": "0.54235643", "text": "public String getPaymentType() {\r\n return paymentType;\r\n }", "title": "" }, { "docid": "30b1ca3f3c263eb4635c8426c0fe6998", "score": "0.54080504", "text": "@Override\n public void placed() {\n makePayment();\n }", "title": "" }, { "docid": "5be14edf4bd56b5401476fbab768e5d6", "score": "0.5404923", "text": "public void setPaymentType(java.lang.String paymentType) {\r\n this.paymentType = paymentType;\r\n }", "title": "" }, { "docid": "0d4fcef3e7f818291cca81bb283f498c", "score": "0.5402323", "text": "@Override\n public void calculatePayment() {\n double payment = annualSalary / PAYPERIOD;\n setPayment(payment);\n }", "title": "" }, { "docid": "23e7faebe9fd68cfa46516a861d266d5", "score": "0.5394837", "text": "public static void makePayment(){\n\t\t//Get client id\n\t\tint clientId = getClientId();\n\t\tif(!warehouse.verifyClient(clientId)){\n\t\t\tSystem.out.println(\"Error, invalid client id. Aborting operation\");\n\t\t\treturn;\n\t\t}//end if\n\t\t//Get payment amount\n\t\tSystem.out.print(\"Enter a payment amount: \");\n\t\tdouble amount = Double.valueOf(new Scanner(System.in).nextLine());\n\t\tif(amount <= 0.0){\n\t\t\tSystem.out.println(\"Error, payment must be a positive value. Aborting operation\");\n\t\t\treturn;\n\t\t}//end if\n System.out.println(\"Please enter a description for this transaction (ie payment method)\");\n String description = (new Scanner(System.in).nextLine());\n\t\twarehouse.makePayment(clientId, amount, description);\n\t\tSystem.out.println(\"Payment received successfully\");\n\t}", "title": "" }, { "docid": "9d3b78f2efafb4f879083d8c8cfc387d", "score": "0.53870165", "text": "private void makeFirstPayment() throws Exception {\n final PaymTestData testData = getTestDataRow(testName);\n\n step(\"Open Mobile version\");\n navigateToCobrandedFundingPage(testData);\n\n step(\"Fill Payment Options\");\n fundingPage.pageVerification(testData);\n fundingPage.selectFundingInformation(testData.getNewFunding(),\n testData.getPaymentEntity(), testData.getPaymentType());\n fundingPage.fillCardType(testData);\n fundingPage.fillCardInfo(testData);\n fundingPage.fillCvv(testData.getCvv());\n fundingPage.markRetainFunding(true);\n fundingPage.compliteFillPayerDetails();\n\n confirmPage.pageVerification(testData);\n confirmPage.submit();\n\n step(\"Receipt Page\");\n receiptPage.pageVerification(testData);\n rememberNewFunding(testData);\n\n step(\"Database verification\");\n OpayWebDBHelper.checkPaymentDatabase(testData);\n OpayWebDBHelper.verifyRetainFundingInfo(testData, 1);\n }", "title": "" }, { "docid": "3a2df80aabdd6d122e782ee764da3b52", "score": "0.53657746", "text": "public String getPayment() {\n return payment;\n }", "title": "" }, { "docid": "3a2df80aabdd6d122e782ee764da3b52", "score": "0.53657746", "text": "public String getPayment() {\n return payment;\n }", "title": "" }, { "docid": "1457f05c9a4757a2c97e2d2d917cd412", "score": "0.5365335", "text": "public boolean Pay(double totalprice) { \n return true;\n }", "title": "" }, { "docid": "5ca296a6965f9aca4fb01df96fcba34e", "score": "0.5364402", "text": "Boolean isPaymentfee ();", "title": "" }, { "docid": "b386b8893489e267fe6d2693fdb9c370", "score": "0.5338423", "text": "public boolean makePayment(PaymentForm form, double amount){\n if(paymentService.makePayment(form.getCardNo(), form.getCardName(), form.getExpirationDate(),form.getCcv(),form.getCardType(), amount))\n return true;\n else return false;\n }", "title": "" }, { "docid": "103db5121c5011fef78a45b6e6381a1d", "score": "0.53278685", "text": "public String getPaymentType() {\r\n\t\treturn paymentType;\r\n\t}", "title": "" }, { "docid": "cf44811b33a86351d6f27ff0ec421b45", "score": "0.53233933", "text": "public void onNextClick(View view) {\n int selectedId = group.getCheckedRadioButtonId();\n\n // find the radiobutton by returned id\n radioButton = (RadioButton) findViewById(selectedId);\n\n // Toast.makeText(getApplicationContext(), radioButton.getText(), Toast.LENGTH_SHORT).show();\n\n if(radioButton.getText().toString().equals(\"1\")){\n\n\n\n Toast.makeText(getApplicationContext(),Payment1, Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), PayExPaymentActivity.class);\n intent.putExtra(\"Status\",\"Single\");\n intent.putExtra(\"PaymentResponce\",Payment1);\n startActivity(intent);\n finish();\n }\n else{\n\n\n Toast.makeText(getApplicationContext(), Payment2, Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), SignUpDuoActivity.class);\n intent.putExtra(\"PaymentResponce\",Payment2);\n startActivity(intent);\n finish();\n }\n\n\n\n\n }", "title": "" }, { "docid": "f9ec42c9c324504d91d8a1b706382351", "score": "0.53200996", "text": "public com.gottaeat.domain.payment.CreditCard getPaymentMethod() {\n return payment_method;\n }", "title": "" }, { "docid": "e5d2557c5455ac01a4593eca751dc5ce", "score": "0.53107923", "text": "public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }", "title": "" }, { "docid": "401d191361be2800d9da69431ba4bedd", "score": "0.53040963", "text": "public com.gottaeat.domain.payment.CreditCard getPaymentMethod() {\n return payment_method;\n }", "title": "" }, { "docid": "b9994abc43db320832cb20472a4fd2ad", "score": "0.53008676", "text": "public void setPaymentType(String paymentType) {\r\n\t\tthis.paymentType = paymentType;\r\n\t\tsetDirty();\r\n\t}", "title": "" }, { "docid": "a7399c897e7a625908486f4825e1da2f", "score": "0.52934843", "text": "Payment createPayment();", "title": "" }, { "docid": "1386f7f34b49a17b1f74ba42c2c281cd", "score": "0.5291054", "text": "public Amount initiatePayment(Amount paidAmount)\n {\n \tthis.change = paidAmount.minus(this.totalDiscountPrice);\n \n \treturn this.change;\n }", "title": "" }, { "docid": "d366220ac2e362af51558ac2b9be0b7c", "score": "0.52842104", "text": "public void paymentInfo() {\r\n\r\n }", "title": "" }, { "docid": "cfb027be3dfd348162e724c503150874", "score": "0.5279835", "text": "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n BillDAO dao = new BillDAO(c);\n Bill bill = new Bill();\n if (resultCode == Activity.RESULT_OK) {\n PaymentConfirmation confirm = data.getParcelableExtra(com.paypal.android.sdk.payments.PaymentActivity.EXTRA_RESULT_CONFIRMATION);\n if (confirm != null) {\n try {\n Log.i(\"PayPalPayment\", confirm.toJSONObject().toString(4));\n\n // TODO: send 'confirm' to your server for verification.\n // Maybe Ibrahim will add something there\n // For now I save the bill\n\n bill.setAmount(amount);\n bill.setInsertDate(new Date());\n bill.setInsertUser(user.getId());\n bill.setNote(confirm.toJSONObject().toString(4));\n bill.setStatus(\"Payment successfully completed\");\n\n boolean insertedOnServer = dao.insertBill(bill);\n\n Toast.makeText(c, \"Payment successfully completed - \"+insertedOnServer, Toast.LENGTH_LONG).show();\n\n } catch (JSONException e) {\n Log.e(\"PayPalPayment\", \"an extremely unlikely failure occurred: \", e);\n Toast.makeText(c, \"An extremely unlikely failure occurred\", Toast.LENGTH_LONG).show();\n }\n }\n }\n else if (resultCode == Activity.RESULT_CANCELED) {\n Log.i(\"PayPalPayment\", \"The user canceled.\");\n Toast.makeText(c, \"Payment canceled by the user\", Toast.LENGTH_LONG).show();\n }\n else if (resultCode == com.paypal.android.sdk.payments.PaymentActivity.RESULT_EXTRAS_INVALID) {\n Log.i(\"PayPalPayment\", \"An invalid Payment or PayPalConfiguration was submitted. Please see the docs.\");\n Toast.makeText(c, \"An invalid Payment or PayPalConfiguration was submitted. Please see the docs.\", Toast.LENGTH_LONG).show();\n bill.setAmount(amount);\n bill.setInsertDate(new Date());\n bill.setInsertUser(user.getId());\n bill.setNote(\"An invalid Payment or PayPalConfiguration was submitted. Please see the docs.\");\n bill.setStatus(\"Payment failed\");\n }\n }", "title": "" }, { "docid": "7be84d6def359d2a263665dff639b41d", "score": "0.5277638", "text": "public boolean isPaid() {\n\t\treturn pagado;\n\t}", "title": "" }, { "docid": "b57922ad9957ccc89be29c4afdf7fcfd", "score": "0.5268985", "text": "public void makePayment(double amount) { // make a payment\n System.out.println(\"Pagamento de R$\" + amount);\n balance -= amount;\n \n // Exemplo de resolucao da atividade 01/T1, 1.1\n if (balance > 0) {\n balance *= (1+(taxaJurosMes/100)); \n } \n \n }", "title": "" }, { "docid": "8564d43cfed22b6cc6cbd4a1b53ab99a", "score": "0.52656686", "text": "private boolean makePaypalPayment(PaypalPayment payment) throws SQLException {\r\n\t\tString sql = \"INSERT INTO `tbl_payments`( `appointment_id`, `amount`, `payment_date`, `paypal_payment_refarance`, `type`) \"\r\n\t\t\t\t+ \"VALUES (?,?,?,?,?)\";\r\n\t\tPreparedStatement statement = this.sqlConnection.prepareStatement(sql);\r\n\t\tthis.assignCommonParams(statement, payment);\r\n\t\tstatement.setString(4, payment.getPaypalReferenceNumber());\r\n\t\tstatement.setString(5, PaymentMethod.PayPal.name());\r\n\r\n\t\treturn statement.execute();\r\n\t}", "title": "" }, { "docid": "1e3641a5c87781202af4c375fef1f569", "score": "0.5264125", "text": "@Override\r\n\tpublic boolean paidTransaction(Balance balance, Item item) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "0d0cd9baef4d56249ec7944c51982d52", "score": "0.52591044", "text": "public void setPaymentType(Integer paymentType) {\n this.paymentType = paymentType;\n }", "title": "" }, { "docid": "c03ff3e145a9c795e4a68b65ba83b145", "score": "0.5256376", "text": "public com.gottaeat.domain.order.FoodOrder.Builder setPaymentMethodBuilder(com.gottaeat.domain.payment.CreditCard.Builder value) {\n clearPaymentMethod();\n payment_methodBuilder = value;\n return this;\n }", "title": "" }, { "docid": "fa60958ca42f4dc1c6eaf864ebfdc8d3", "score": "0.52519065", "text": "public void setPayStatus(Byte payStatus) {\n this.payStatus = payStatus;\n }", "title": "" }, { "docid": "f00b307ba2340652c5f1c9c6617f65bb", "score": "0.5242377", "text": "public Payment createPayment(HttpServletRequest req,\n HttpServletResponse resp) {\n Address billingAddress = new Address();\n billingAddress.setCity(\"Johnstown\");\n billingAddress.setCountryCode(\"US\");\n billingAddress.setLine1(\"52 N Main ST\");\n billingAddress.setPostalCode(\"43210\");\n billingAddress.setState(\"OH\");\n\n // ###CreditCard\n // A resource representing a credit card that can be\n // used to fund a payment.\n CreditCard creditCard = new CreditCard();\n creditCard.setBillingAddress(billingAddress);\n creditCard.setCvv2(\"012\");\n creditCard.setExpireMonth(11);\n creditCard.setExpireYear(2018);\n creditCard.setFirstName(\"Joe\");\n creditCard.setLastName(\"Shopper\");\n creditCard.setNumber(\"4669424246660779\");\n creditCard.setType(\"visa\");\n\n // ###Details\n // Let's you specify details of a payment amount.\n Details details = new Details();\n details.setShipping(\"1\");\n details.setSubtotal(\"5\");\n details.setTax(\"1\");\n\n // ###Amount\n // Let's you specify a payment amount.\n Amount amount = new Amount();\n amount.setCurrency(\"USD\");\n // Total must be equal to sum of shipping, tax and subtotal.\n amount.setTotal(\"7\");\n amount.setDetails(details);\n\n // ###Transaction\n // A transaction defines the contract of a\n // payment - what is the payment for and who\n // is fulfilling it. Transaction is created with\n // a `Payee` and `Amount` types\n Transaction transaction = new Transaction();\n transaction.setAmount(amount);\n transaction\n .setDescription(\"This is the payment transaction description.\");\n\n // The Payment creation API requires a list of\n // Transaction; add the created `Transaction`\n // to a List\n List<Transaction> transactions = new ArrayList<Transaction>();\n transactions.add(transaction);\n\n // ###FundingInstrument\n // A resource representing a Payeer's funding instrument.\n // Use a Payer ID (A unique identifier of the payer generated\n // and provided by the facilitator. This is required when\n // creating or using a tokenized funding instrument)\n // and the `CreditCardDetails`\n FundingInstrument fundingInstrument = new FundingInstrument();\n fundingInstrument.setCreditCard(creditCard);\n\n // The Payment creation API requires a list of\n // FundingInstrument; add the created `FundingInstrument`\n // to a List\n List<FundingInstrument> fundingInstrumentList = new ArrayList<FundingInstrument>();\n fundingInstrumentList.add(fundingInstrument);\n\n // ###Payer\n // A resource representing a Payer that funds a payment\n // Use the List of `FundingInstrument` and the Payment Method\n // as 'credit_card'\n Payer payer = new Payer();\n payer.setFundingInstruments(fundingInstrumentList);\n payer.setPaymentMethod(\"credit_card\");\n\n // ###Payment\n // A Payment Resource; create one using\n // the above types and intent as 'sale'\n Payment payment = new Payment();\n payment.setIntent(\"sale\");\n payment.setPayer(payer);\n payment.setTransactions(transactions);\n Payment createdPayment = null;\n try {\n // ### Api Context\n // Pass in a `ApiContext` object to authenticate\n // the call and to send a unique request id\n // (that ensures idempotency). The SDK generates\n // a request id if you do not pass one explicitly.\n\n //example\n // Replace these values with your clientId and secret. You can use these to get started right now.\n String clientId = \"Aa7Bw1nkj6--HLSBIUo0-H-sR-F_12P0e2qzVwMyYt2Zx0R1qJlbu14_tsSVch085hpjEr4bEOSF24IF\";\n String clientSecret = \"EDaQT5qOMkb8GiRocpOgPPmDkdFVH4DCopeaBhApztzVmQhoBI7FDhK4mgBKBOtFf5apNVM3t96A5A4v\";\n\n //change sandbox to live before PROD\n APIContext apiContext = new APIContext(clientId, clientSecret, \"sandbox\");\n\n // Create a payment by posting to the APIService\n // using a valid AccessToken\n // The return object contains the status;\n createdPayment = payment.create(apiContext);\n\n LOGGER.info(\"Created payment with id = \" + createdPayment.getId()\n + \" and status = \" + createdPayment.getState());\n//\t\t\tResultPrinter.addResult(req, resp, \"Payment with Credit Card\",\n//\t\t\t\t\tPayment.getLastRequest(), Payment.getLastResponse(), null);\n } catch (PayPalRESTException e) {\n LOGGER.log(Level.SEVERE, null, e.getMessage());\n\n//\t\t\tResultPrinter.addResult(req, resp, \"Payment with Credit Card\",\n//\t\t\t\t\tPayment.getLastRequest(), null, e.getMessage());\n }\n return createdPayment;\n\n }", "title": "" }, { "docid": "6768639c06aa0ad15be0d781df4a44e2", "score": "0.52353877", "text": "private void createOrderAndMakeAPayment (RemoteWebDriver driver, String vmpURLFull, String secureUser, String vendorPaymentResponsibility, boolean enterCustomOrderFee, String vendorsOrderFee, String customerNumberToBackDateOrders, String paymentMethod) throws Exception {\n\t\t\n\t\t// Create the VMP order\n\t\tString[] values = createVMPOrder(driver, vmpURLFull, vendorPaymentResponsibility, enterCustomOrderFee);\n\t\t\n\t\t// Set the new order info variables\n\t\tString orderFee = values[0];\n\t\tString techFee = values[1];\n\t\tString combined = values[2];\n\t\tString productItemID = values[3];\n\t\tString orderNumber = StoredVariables.getloanID().get();\n\t\t\n\t\t// Login to Secure and assign the order to an appraiser\n\t\tsecure.loginAndAssignOrderToAppraiser(driver, secureUser, password, orderNumber, vendorsUser);\n\t\t\n\t\t// Login to Vendors and accept the order\n\t\tvendors.loginAndAcceptOrder(driver, vendorsLogin, password, orderNumber);\n\t\t\n\t\t// Check the database entries\n\t\tperformDBChecksOnSecondOrderAfterOrderIsAccepted(driver, orderNumber, productItemID, vendorPaymentResponsibility, vendorsOrderFee, paymentMethod);\n\t\t\n\t\t// Make a payment from the new Make A Payment page\n\t\tsecure.makeAPayment(driver, vmpURLFull, StoredVariables.getpropertyInformationAddress().get(), StoredVariables.getpropertyInformationZip().get(), orderFee, techFee, combined, \"Automation\", \"Test\", \"4111111111111111\", \"November\", \"2026\", \"73099\", \"automation@dntest.net\");\n\t\t\n\t\t// Check database to verify an entry is written to the MercuryOrderReceivables table for the second order\n\t\tperformDBChecksAfterPaymentIsMadeOnSecondOrder(driver, orderNumber);\n\t\t\n\t\t// Run query to back-date the orders\n\t\tbackDateOrder(driver, customerNumberToBackDateOrders);\n\t\t\n\t\t// Verify second order entries in the database after the billing processor runs\n//\t\tperformDBChecksAfterBillingProcessorRuns(driver, orderNumberAMC);\n\t\t\n\t\t\n\t\t\n//\t\t// Set date format\n//\t\tCalendar cal = Calendar.getInstance();\n//\t\tcal.add(Calendar.DATE, 0);\n//\t\tSimpleDateFormat format1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n//\t\tString today = format1.format(cal.getTime());\n//\t\t\n//\t\t// Verify there is now a row in the Mercury.dbo.VendorPaymentQueue table and data is correct\n//\t\t// Set SQL statement\n//\t\tString sqlStatement = \"SELECT * FROM Mercury.dbo.VendorPaymentQueue \"\n//\t\t\t\t+ \"WHERE LoanID = '\"+trackingNumber+\"'\";\n//\t\t\n//\t\t// Query the DB and build an array out of the results\n//\t\tArrayList<String> vendorPaymentQueue = db.queryDBArray(driver, \"Mercury\", sqlStatement);\n//\t\tString loanID = vendorPaymentQueue.get(1);\n//\t\tString enteredStamp = vendorPaymentQueue.get(2);\n//\t\tString paymentDate = vendorPaymentQueue.get(3);\n//\t\t\n//\t\t// Verify the values are correct\n//\t\tperform.verification(driver, loanID, \"equals\", trackingNumber);\n//\t\tperform.verification(driver, enteredStamp, \"contains\", today);\n//\t\tperform.verification(driver, paymentDate, \"contains\", today);\n\t\t\n\t}", "title": "" }, { "docid": "02df24ffc5db1e289c7be029670d2754", "score": "0.5231008", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Indicates whether the payment method is enabled (**true**) or disabled (**false**).\")\n\n public Boolean getEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "71e1243af16f0899c0c3657d78a057c7", "score": "0.5229232", "text": "public static boolean doExpressCheckout(String token){\n try{\n // PayPal SDK requires property object as a constructor parameter.\n Properties PayPalProperties = new Properties();\n PayPalProperties.load(WebApplication.get().getServletContext().getResourceAsStream(\"/WEB-INF/PayPal.properties\"));\n PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(PayPalProperties);\n // Generation of getExpressCheckout request.\n GetExpressCheckoutDetailsReq req = new GetExpressCheckoutDetailsReq();\n GetExpressCheckoutDetailsRequestType reqType = new GetExpressCheckoutDetailsRequestType(token);\n req.setGetExpressCheckoutDetailsRequest(reqType);\n GetExpressCheckoutDetailsResponseType resp = service.getExpressCheckoutDetails(req);\n\n if(resp == null || resp.getAck() != AckCodeType.SUCCESS){\n return false;\n }\n // Reads Payer's ID from getExpressCheckout response\n String payerID = resp.getGetExpressCheckoutDetailsResponseDetails().getPayerInfo().getPayerID();\n\n // Generating doExpressCheckout request to actually bill user's account\n DoExpressCheckoutPaymentRequestType doCheckoutPaymentRequestType = new DoExpressCheckoutPaymentRequestType();\n DoExpressCheckoutPaymentRequestDetailsType details = new DoExpressCheckoutPaymentRequestDetailsType();\n\n details.setToken(token);\n details.setPayerID(payerID);\n details.setPaymentAction(PaymentActionCodeType.SALE); //Type need to be set as SALE\n\n List<PaymentDetailsType> payDetails = new ArrayList<PaymentDetailsType>();\n PaymentDetailsType paydtl = new PaymentDetailsType();\n paydtl.setPaymentAction(PaymentActionCodeType.SALE); //Type need to be set as SALE\n BasicAmountType totalAmount = new BasicAmountType();\n // Currency code\n // For developing purposes set to GBP, might be changes to EUR or an input param in case of multi-currency store\n totalAmount.setCurrencyID(CurrencyCodeType.EUR);\n totalAmount.setValue(EEGDataBaseSession.get().getShoppingCart().getTotalPrice().toPlainString());\n paydtl.setOrderTotal(totalAmount);\n payDetails.add(paydtl);\n\n details.setPaymentDetails(payDetails);\n\n\n doCheckoutPaymentRequestType.setDoExpressCheckoutPaymentRequestDetails(details);\n DoExpressCheckoutPaymentReq doExpressCheckoutPaymentReq = new DoExpressCheckoutPaymentReq();\n doExpressCheckoutPaymentReq.setDoExpressCheckoutPaymentRequest(doCheckoutPaymentRequestType);\n\n DoExpressCheckoutPaymentResponseType doCheckoutPaymentResponse = service\n .doExpressCheckoutPayment(doExpressCheckoutPaymentReq);\n\n if(doCheckoutPaymentResponse != null && doCheckoutPaymentResponse.getAck() == AckCodeType.SUCCESS){\n return true;\n }\n } catch (Exception e) {}\n return false;\n }", "title": "" }, { "docid": "79bb158bc10ae3097f7372a8770e3e69", "score": "0.5227417", "text": "public void choosePayment() {\n\t\tcommonMethods.forceWait((long) 4000);\n\t\tcommonMethods.waitUntilClickable(driver, wait, By.xpath(\"//*[@id='orderSummaryPrimaryActionBtn']//input\"))\n\t\t\t\t.click();\n\t}", "title": "" }, { "docid": "6b6de0848bcd118de22f1f0ceaeba740", "score": "0.5223858", "text": "public void clickOnPaidBooking(boolean status) {\n\t\tif(status) {\n\t\t\tif(SeleniumUtility.checkElementIsSelected(driver, findVehicleBooking.inputTagPaidBookingVehicleBooking)) {\n\t\t\t\treturn;\n\t\t\t}else {\n\t\t\t\tSeleniumUtility.clickOnElement(driver, findVehicleBooking.inputTagPaidBookingVehicleBooking);\n\t\t\t}\t\t\t\n\t\t}else {\n\t\t\tif(SeleniumUtility.checkElementIsSelected(driver, findVehicleBooking.inputTagPaidBookingVehicleBooking)) {\n\t\t\t\tSeleniumUtility.clickOnElement(driver, findVehicleBooking.inputTagPaidBookingVehicleBooking);\n\n\t\t\t}else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "7027a8ee1ca0f004ffafbaa118558f26", "score": "0.5223556", "text": "public void pay() {\n\n\n order_no = sharedPrefsHelper.get(AppConstants.ORDER_NO, \"\");\n String user_name = sharedPrefsHelper.get(AppConstants.USER_NAME, \"\");\n String email = sharedPrefsHelper.get(AppConstants.EMAIL, \"\");\n Integer user_id = sharedPrefsHelper.get(AppConstants.USER_ID, 0);\n String phonenumber = sharedPrefsHelper.get(AppConstants.PHONE_NUMBER, \"\");\n\n Locale current = getResources().getConfiguration().locale;\n String currency = Currency.getInstance(current).getCurrencyCode();\n\n MerchantID = \"36945b03f0395f9685b0\";\n API_Key = \"wHURN7If4egq4DzlrZm9I-DwRFDaXTWKabz9BA2xd9-LzHws0mrFFg4CGjIJdgu-YgetvegMog4BFJ2NV0M\";\n double amountFailed = 1.00;\n double amountSuccess = 2.00;\n String REDIRECT_URL = \"https://sandbox.expresspaygh.com/api/checkout.php\"; // it called finally when transaction completed\n\n\n HashMap<String, String> params = new HashMap<String, String>();\n\n\n// params.put(\"request\", \"Submit\");\n params.put(\"order-id\", order_no);\n params.put(\"email\", email);\n params.put(\"phone_number\", phonenumber);\n params.put(\"merchant-id\", MerchantID);\n params.put(\"api-key\", API_Key);\n params.put(\"firstname\", user_name);\n params.put(\"lastname\", \"Ventures\");\n params.put(\"currency\", \"GHS\");\n params.put(\"amount\", String.valueOf(amountSuccess));\n params.put(\"redirect-url\", \"http://employeelive.com/Kwiqmall/public/\");\n\n\n expressPayApi.submit(params, PaymentMethodActivity.this, new ExpressPayApi.ExpressPaySubmitCompletionListener() {\n @Override\n public void onExpressPaySubmitFinished(JSONObject jsonObject, String message) {\n /**\n * Once the request is completed this listener is called with the response\n * if the jsonObject is null then there was an error\n */\n\n if (jsonObject != null) {\n //You can access the returned token\n try {\n\n String status = jsonObject.getString(\"status\");\n\n if (status.equalsIgnoreCase(\"1\")) {\n String token = expressPayApi.getToken();\n\n checkout(token);\n\n } else {\n\n Log.d(\"expressPayDemo\", message);\n showDialog(message);\n }\n } catch (JSONException e) {\n\n e.printStackTrace();\n Log.d(\"expressPayDemo\", message);\n showDialog(message);\n\n }\n\n } else {\n\n Log.d(\"expressPayDemo\", message);\n showDialog(message);\n }\n\n\n }\n });\n\n }", "title": "" }, { "docid": "93ce0d46ccc354b36983e729d72cebbe", "score": "0.52169216", "text": "private void PayCheck() {\n\t\tprint(\"paying Check\");\n\n\t\tcustomerGui.DoGoToCashier();\n\t\ttry {\n\t\t\tatCashier.acquire();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t((CashierRoleWc) cashier).msgPayMyCheck(this, getPersonAgent().getMoney());\n\t\tgetPersonAgent().setMoney(0.0);\n\t\tprint (\"Paying my bill\");\n\t}", "title": "" }, { "docid": "3097cbf64115e5c68a736aeacc78b9b4", "score": "0.5214813", "text": "private void makeSecondPayment() throws Exception {\n final PaymTestData testData = getTestDataRow(testName + \"_2\");\n\n step(\"Making one more payment\");\n navigateToCobrandedFundingPage(testData);\n\n step(\"Check retained funding\");\n fundingPage.isFundingIncludeElements(fundings, true);\n\n step(\"Change CDE value\");\n fundingPage.back();\n acceptTermsPage.accept();\n detailsPage.compliteFillPayerDetails();\n cdePage.fillCDEValue(testData.getCDEName(), testData.getCDEValue() + \"0\");\n cdePage.compliteFillPayerDetails();\n\n step(\"Check retained funding\");\n fundingPage.isFundingIncludeElements(fundings, false);\n\n step(\"Change CDE value back\");\n fundingPage.back();\n acceptTermsPage.accept();\n detailsPage.compliteFillPayerDetails();\n cdePage.fillCDEValue(testData.getCDEName(), testData.getCDEValue());\n cdePage.compliteFillPayerDetails();\n fundingPage.isFundingIncludeElements(fundings, true);\n\n step(\"Fill Payment Options\");\n fundingPage.pageVerification(testData);\n fundingPage.selectFundingInformation(testData.getNewFunding(),\n testData.getPaymentEntity(), testData.getPaymentType());\n fundingPage.fillCardType(testData);\n fundingPage.fillCardInfo(testData);\n fundingPage.fillCvv(testData.getCvv());\n fundingPage.markRetainFunding(true);\n fundingPage.compliteFillPayerDetails();\n\n confirmPage.pageVerification(testData);\n confirmPage.submit();\n\n step(\"Receipt Page\");\n receiptPage.pageVerification(testData);\n rememberNewFunding(testData);\n\n step(\"Database verification\");\n OpayWebDBHelper.checkPaymentDatabase(testData);\n OpayWebDBHelper.verifyRetainFundingInfo(testData, 1);\n }", "title": "" }, { "docid": "66ff817c21df83fc769d893a3c8d3a85", "score": "0.52077365", "text": "protected void setPayment(float payment) {\n\t\tthis.payment = payment;\n\t}", "title": "" }, { "docid": "1c0d138cb00632bbdc589ce78b738b97", "score": "0.5204999", "text": "@Override\n\tpublic void addPayment(Payment payment) {\n\t\tlog.info(\"Saving payment: {}\", payment);\n\n\t\tTransaction transaction = session.beginTransaction();\n\t\tsession.save(payment);\n\n\t\ttransaction.commit();\n\t}", "title": "" }, { "docid": "f4b4ec5101e07a9a9ed845bb81864998", "score": "0.5202874", "text": "public void setPaymentResponse(PaymentResponse withPaymentResponse) {\n this.paymentResponse = withPaymentResponse;\n }", "title": "" }, { "docid": "2a5b42485847945e6d133c5e6398b60c", "score": "0.5201975", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_CODE_PAYMENT) {\n if (resultCode == Activity.RESULT_OK) {\n\n Toast.makeText(getApplicationContext(), \"Payment done succesfully \", Toast.LENGTH_LONG).show();\n\n }\n\n else if (resultCode == Activity.RESULT_CANCELED) {\n\n Toast.makeText(getApplicationContext(), \"Payment Canceled , Try again \", Toast.LENGTH_LONG).show();\n\n\n } else if (resultCode == PaymentActivity.RESULT_EXTRAS_INVALID) {\n\n Toast.makeText(getApplicationContext(), \"Payment failed , Try again \", Toast.LENGTH_LONG).show();\n\n }\n }\n }", "title": "" }, { "docid": "1b1c8fc1408f05e7448464f9702b7ce8", "score": "0.5198705", "text": "@Override\n public void onClick(final View view) {\n CharSequence options[] = new CharSequence[] {\"Place Order\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Checkout.this);\n builder.setTitle(\"Checkout\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n if(which == 0){\n if(addPayment.isChecked()){\n final Card cardToSave = mCardInputWidget.getCard();\n if (cardToSave == null) {\n //mErrorDialogHandler.showError(\"Invalid Card Data\");\n Snackbar.make(view, \"Invalid Card Data\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n } else {\n cardToSave.validateNumber();\n cardToSave.validateCVC();\n if(!cardToSave.validateCard()) {\n Snackbar.make(view, \"Card Data Invalid\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n } else {\n Snackbar.make(view, \"Card Data Valid\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n\n //Accept payment and checkout\n Stripe stripe = new Stripe(view.getContext(), getResources().getString(R.string.stripe_key)); //TODO: Change this to the official product public key\n stripe.createToken(\n cardToSave,\n new TokenCallback() {\n public void onSuccess(Token token) {\n // Send token to your server\n Log.d(\"token\", token.getCard().toString());\n\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n FirebaseUser user = firebaseAuth.getCurrentUser();\n String uid = user.getUid();\n Log.d(\"UID for Payment\", uid);\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference(\"/stripe_customers/\" + uid + \"/sources\");\n String pushId = reference.push().getKey(); //String\n //reference.child(pushId).child(\"token\").setValue(token.getCard());\n card.put(\"object\", \"card\");\n card.put(\"exp_month\", cardToSave.getExpMonth());\n card.put(\"exp_year\", cardToSave.getExpYear());\n card.put(\"number\", cardToSave.getNumber());\n card.put(\"cvc\", cardToSave.getCVC());\n\n\n //creates a new source before payment\n reference.child(pushId).child(\"token\").updateChildren(card);\n\n\n getPaymentsReady();\n\n Snackbar.make(view, \"Payment Successful\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n\n }\n public void onError(Exception error) {\n // Show localized error message\n Snackbar.make(view, error.getLocalizedMessage(), Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }\n }\n );\n\n }\n }\n\n }\n\n else {\n getPaymentsReady();\n }\n }\n\n else {\n //Go back to checkout\n }\n }\n });\n\n builder.show(); //shows the dialog box for the checkout click choice\n\n }", "title": "" }, { "docid": "f7aadc4a73f2c55989b845d42361f344", "score": "0.5194443", "text": "public void setPaymentName(String paymentName) {\n this.paymentName = paymentName;\n }", "title": "" }, { "docid": "33a1e1363f916dfe3c694ff13a021189", "score": "0.51772314", "text": "public boolean updatePayment(Payment payment) {\n if (payment.getDayNumber() - currentPayment.getDayNumber() <= PAYMENT_DAY_TOLERANCE) {\n this.currentPayment = payment;\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "dd7580105a8545a3785cca065be835c4", "score": "0.5169776", "text": "private void createOrderAndMakeAPaymentWithAMCVendorOnly (RemoteWebDriver driver, String vmpURLFull, String secureUser, String amcUser, String amcCompanyName, String vendorPaymentResponsibility, \n\t\t\tboolean enterCustomOrderFee, String vendorsOrderFee, String paymentMethod, boolean makePaymentViaXSite) throws Exception {\n\t\t\n\t\t// Create the VMP order\n\t\tString[] values = createVMPOrder(driver, vmpURLFull, vendorPaymentResponsibility, enterCustomOrderFee);\n\t\t\n\t\t// Set the new order info variables\n\t\tString orderFee = values[0];\n\t\tString techFee = values[1];\n\t\tString combined = values[2];\n\t\tString productItemID = values[3];\n\t\tString orderNumber = StoredVariables.getloanID().get();\n\t\t\n\t\t// Login to Secure as the Lender and assign the order to an AMC\n\t\tsecure.loginAndAssignOrderToAMC(driver, secureUser, password, orderNumber, amcCompanyName);\n\t\t\n\t\t// Check the database entries\n\t\tperformDBChecksOnSecondOrderAfterOrderIsAccepted(driver, orderNumber, productItemID, vendorPaymentResponsibility, vendorsOrderFee, paymentMethod);\n//\t\tperformDBChecksOnThirdOrderAfterOrderIsAccepted(driver, orderNumberAMC, productItemID, vendorPaymentResponsibility, vendorsOrderFee);\n\t\t\n\t\t// Make a payment from the new Make A Payment page\n\t\tsecure.makeAPayment(driver, vmpURLFull, StoredVariables.getpropertyInformationAddress().get(), StoredVariables.getpropertyInformationZip().get(), orderFee, techFee, combined, \"Automation\", \"Test\", \"4111111111111111\", \"November\", \"2026\", \"73099\", \"automation@dntest.net\");\n\t\t\n\t\t// Make a payment from the XSite\n\t\tif (makePaymentViaXSite==true) {\n\t\t\t\n\t\t\t// View the XSite order as the lender\n\t\t\tsecure.viewXSiteOrderFromSecure(driver, secureUser, password, orderNumber);\n\t\t\t\n\t\t\t// Charge the card from the XSite\n\t\t\tsecure.chargeCardXSite(driver, \"\", \"\", \"\", \"4111111111111111\", \"12\", \"2025\", \"\", \"\", false);\n\t\t\t\n\t\t} // end if\n\t\t\n\t\telse {\n\t\t\t\n\t\t// Check database to verify an entry is written to the MercuryOrderReceivables table for the second order\n\t\tperformDBChecksAfterPaymentIsMadeOnSecondOrder(driver, orderNumber);\n\t\t\n\t\t} // end if/else\n\t\t\n\t\t// Run query to back-date the orders\n//\t\tbackDateOrder(driver, customerNumberToBackDateOrders);\n\t\t\n\t\t// Verify second order entries in the database after the billing processor runs\n//\t\tperformDBChecksAfterBillingProcessorRuns(driver, orderNumberAMC);\n\t\t\n\t}", "title": "" }, { "docid": "e50cc84bfd5831f68d5b9b786f62dab8", "score": "0.5168322", "text": "public void addReceivedPayment(User theStudent, BigDecimal amount, String description) throws Exception;", "title": "" }, { "docid": "b08832a65b009a21c7bdbff5b569e68f", "score": "0.51627743", "text": "public void click_on_PayFor_In_Payment(String Option)throws Exception {\n\t\t\n\t\tif(Option.contains(\"Mobile\"))\n\t\t{\n\t\t\tdo{\n\t\t\t\tVerifyElementPresentAndClick(Desktop_XPATH_PayFor_Elements_Mobile_Not_Selected, \"Mobile Tab\");\n\t\t\t\tThread.sleep(1000);\n\t\t\t\t}\n\t\t\twhile(!waitForElementToAppear(Desktop_XPATH_PayFor_Elements_Mobile_Enabled_Selected, 1));\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tdo{\n\t\t\t\tVerifyElementPresentAndClick(Desktop_XPATH_PayFor_Elements_FixedLine_Not_Selected, \"Mobile Tab\");\n\t\t\t\tThread.sleep(1000);\n\t\t\t\t}\n\t\t\twhile(!waitForElementToAppear(Desktop_XPATH_PayFor_Elements_FixedLine_Enabled_Selected, 1));\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "bd4bf7b817df2cdb909de8d8e1eeea02", "score": "0.51592284", "text": "private boolean addingDefaultDetails() {\n String money = checkAmount();\n if(money.isEmpty() || money.equals(\"\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.card_details_verification)\n .setTitle(R.string.card_error_title\n )\n .setPositiveButton(android.R.string.ok, null);\n AlertDialog dialog = builder.create();\n dialog.show();\n return true;\n }\n completeAmount = PESOS * Integer.parseInt(money);\n chargeParams.put(\"amount\", completeAmount);\n chargeParams.put(\"currency\", \"mxn\");\n chargeParams.put(\"customer\", accountId);\n description = getString(R.string.charge_description) + productName + \" - Boundzu\";\n chargeParams.put(\"description\", description);\n return false;\n }", "title": "" }, { "docid": "60ec0e28e6f4d49e9af337725fc02466", "score": "0.5156345", "text": "protected void sendVATPaymentNotification(Payment payment) {\n \t\t String PPM_INSTANCE_URL=\"http://dev.mobivat.com:8080/demo-rpm/api/v1/payments\";\n \t \n \t\t HttpHeaders headers = new HttpHeaders();\n \t headers.setContentType(MediaType.APPLICATION_JSON);\n \t \n \t RestTemplate restTemplate = new RestTemplate();\n \t \n \t // Data attached to the request.\n \t HttpEntity<Payment> requestBody = new HttpEntity<>(payment, headers);\n \t \n \t // Send request with POST method.\n \t ResponseEntity<String> result \n \t = restTemplate.postForEntity(PPM_INSTANCE_URL, requestBody, String.class);\n \t \n \t System.out.println(\"Status code:\" + result.getStatusCode());\n \t \n \t // Code = 200.\n \t if (result.getStatusCode() == HttpStatus.OK) {\n \t \tString thePayment = result.getBody();\n \t System.out.println(\"(Client Side) Notification sent to PPM: \"+ thePayment);\n \t }\n \t \n \t}", "title": "" }, { "docid": "0b6c116154fd69ba17175f63af846c26", "score": "0.5149577", "text": "public void finishWithSuccess(MfpPaymentResult mfpPaymentResult, boolean z) {\n Intent intent;\n PaymentsLogger.d(\"[%s] finishWithSuccess\", TAG);\n this.backendSyncCompleted = true;\n this.paymentResult = mfpPaymentResult;\n this.genericError = GenericError.NO_ERROR;\n writeResultAndFinish();\n if (ConfigUtils.isPremiumOnboardingEnabled(getConfigService())) {\n intent = OnboardingActivity.newStartIntent(this);\n } else {\n intent = PaymentConfirmation.newStartIntent(this, mfpPaymentResult, z, ExtrasUtils.getBoolean(getIntent(), EXTRA_FREE_TRIAL_ENABLED), ExtrasUtils.getInt(getIntent(), \"free_trial_duration\"));\n }\n getNavigationHelper().withIntent(intent).startActivity();\n }", "title": "" }, { "docid": "fe6ee018f310d0effdad887fd04eca85", "score": "0.51489633", "text": "public void setStatusPay(java.lang.String newStatusPay) {\n this.statusPay = newStatusPay;\n }", "title": "" }, { "docid": "32bcab5c7e7f003e83232e9fca6b03b0", "score": "0.5140301", "text": "public void setPaymentType(String paymentType) {\r\n this.paymentType = paymentType == null ? null : paymentType.trim();\r\n }", "title": "" }, { "docid": "f73e7bc02fd06efe7f48008486360fe3", "score": "0.5138441", "text": "@Override\r\n\tpublic void update(Payments payment) {\n\t\t\r\n\t}", "title": "" }, { "docid": "101bca2c2f960b7b678c029cfd0a6c32", "score": "0.513353", "text": "void saveNoPaid();", "title": "" }, { "docid": "58dc5cfd952df04be9b23cb6b1ef7667", "score": "0.51251847", "text": "public void recurringPayment() throws Exception{\n Client client = new Client(\"YourWSUser\", \"YourWSPassword\", Environment.TEST, \"myTestPayment\");\n Payment payment = new Payment(client);\n\n /**\n * A recurring payment can be submitted to the authorise method of the PaymentResult Class with a PaymentRequest Object,\n * containing the following setters:\n *\n * <pre>\n * - setSelectedRecurringDetailReference(String selectedRecurringDetailReference) : The recurringDetailReference you want to use for this payment.\n * The value LATEST can be used to select the most recently used recurring detail.\n * - setRecurring(Recurring recurring)\n * - setContract(Recurring.ContractEnum contract) : This should be the same value as recurringContract in the payment where the recurring\n * contract was created. However if ONECLICK,RECURRING was specified initially then this\n * field can be either ONECLICK or RECURRING.\n * - setShopperInteraction(AbstractPaymentRequest.ShopperInteractionEnum shopperInteraction) : Set to ContAuth if the contract value is RECURRING, or Ecommerce if the contract\n * value is ONECLICK.\n *\n * - setMerchantAccount(String merchantAccount) : The merchant account for which you want to process the payment.\n * - setAmountData(\n * String amount, : The transaction amount.\n * String currency : The three character ISO currency code.\n * )\n * - setReference(String reference) : Your reference for this payment.\n * - setShopperEmail(String shopperEmail) : The email address of the shopper. This does not have to match the email address\n * supplied with the initial payment since it may have changed in the mean time.\n * - setShopperReference(String shopperReference) : The reference to the shopper. This shopperReference must be the same as the\n * shopperReference used in the initial payment.\n * - setShopperIP(String shopperIP) : The shopper's IP address. (recommended)\n * - setFraudOffset(Integer fraudOffset) : An integer that is added to the normal fraud score. (optional)\n * - setCard(Card card)\n * - setCvc(String cvc) : The card validation code. (only required for OneClick card payments)\n * </pre>\n */\n // Create new Payment Request\n PaymentRequest paymentRequest= new PaymentRequest();\n paymentRequest.setReference(\"123456\");\n paymentRequest.setMerchantAccount(\"YourMerchantAccount\");\n paymentRequest.setShopperEmail(\"YourShopperEmail\");\n\n // Set Amount\n paymentRequest.setAmountData(\"37\", \"EUR\");\n\n // Set recurring contract\n Recurring modelRecurring = new Recurring();\n modelRecurring.setContract(com.adyen.model.recurring.Recurring.ContractEnum.RECURRING);\n paymentRequest.setRecurring(modelRecurring);\n paymentRequest.setShopperReference(\"YourShopperReference\");\n paymentRequest.setShopperInteraction(AbstractPaymentRequest.ShopperInteractionEnum.CONTAUTH);\n paymentRequest.setSelectedRecurringDetailReference(\"LATEST\");\n\n // Authorise the Payment Request\n PaymentResult paymentResult = payment.authorise(paymentRequest);\n\n /**\n * If the payment passes validation a risk analysis will be done and, depending on the outcome, an authorisation\n * will be attempted. You receive a payment response with the following getters:\n *\n * <pre>\n * - getPspReference() : Adyen's unique reference that is associated with the payment.\n * - getResultCode() : The result of the payment. Possible values: Authorised, Refused, Error or Received.\n * - getAuthCode() : The authorisation code if the payment was successful. Blank otherwise.\n * - getRefusalReason() : Adyen's mapped refusal reason, populated if the payment was refused.\n * </pre>\n */\n\n System.out.println(\"Payment Result:\");\n System.out.println(\"- pspReference: \" + paymentResult.getPspReference());\n System.out.println(\"- resultCode: \" + paymentResult.getResultCode());\n System.out.println(\"- authCode: \" + paymentResult.getAuthCode());\n System.out.println(\"- refusalReason: \" + paymentResult.getRefusalReason());\n\n }", "title": "" }, { "docid": "bd0205eceedc1127fe47d097ef0b497f", "score": "0.5118598", "text": "@Override\n public Boolean call() {\n try {\n callbackServlet.pushExpectedEvent(ExtBusEventType.PAYMENT_SUCCESS);\n paymentApi.voidPayment(paymentOtherTenant.getPaymentId(), new PaymentTransaction(), NULL_PLUGIN_NAMES, NULL_PLUGIN_PROPERTIES, requestOptions);\n final Payment voidPaymentOtherTenant2 = paymentApi.getPayment(paymentOtherTenant.getPaymentId(), NULL_PLUGIN_PROPERTIES, requestOptions);\n callbackServlet.assertListenerStatus();\n voidPaymentOtherTenant2Ref.set(voidPaymentOtherTenant2);\n return voidPaymentOtherTenant2 != null;\n } catch (final KillBillClientException e) {\n // Invalidation hasn't happened yet\n return false;\n }\n }", "title": "" } ]
f024df61ae40e7fa3c41fe680c8d1fc9
Sets the given copy as the production copy. As a prerequisite, all link settings between this copy and other local/remote copies must be added to the consistency group.
[ { "docid": "a265b6064c2645118d6a2ef6fd157949", "score": "0.6967483", "text": "public void setCopyAsProduction(FunctionalAPIImpl impl, ConsistencyGroupCopyUID cgCopyUID) throws RecoverPointException {\n String cgCopyName = null;\n String cgName = null;\n\n try {\n cgCopyName = impl.getGroupCopyName(cgCopyUID);\n cgName = impl.getGroupName(cgCopyUID.getGroupUID());\n try {\n // Wait for the RP failover to complete before obtaining the list of production copies.\n // This wait looks for the ACTIVE CG copy state. If the failover copy was initially\n // in direct access mode, it will already be ACTIVE. When a swap is performed and the failover\n // copy is in direct access mode, a wait/sleep will be required before any other CG operation\n // is performed. This is to ensure the swap/RP failover has time to complete.\n waitForCGCopyState(impl, cgCopyUID, false);\n logger.info(String.format(\"Setting copy %s as the new production copy.\", cgCopyName));\n impl.setProductionCopy(cgCopyUID, true);\n } catch (FunctionalAPIActionFailedException_Exception e) {\n // Isolating a very specific exception message to determine if the production copy we are trying to set\n // as production is already set as production. Reason for this type of logic is there is no way of\n // knowing when or if the swap copy is even set as the new production copy. In cases such as MetroPoint\n // or CLR, the swap copy is NOT set as the production copy after the swap. But other cases\n // such as CDP, the swap copy is automatically set as the production copy after swap. So why\n // not check the swap copy to see if it has the ACTIVE role (production copies always have the ACTIVE role)?\n // Because if we failover to a target copy in direct access mode prior to a swap, the target copy will\n // already be in ACTIVE mode. So instead of writing a bunch of error prone complicated logic to see if the\n // copy has completed the swap (RP failover), we just try to set the copy as production and see what happens.\n // If the copy can't be set as production because it already is, oh well, we just move on.\n if (e.getMessage().contains(\"Cannot perform action on production copy\")) {\n logger.warn(String\n .format(\"Encountered exception [%s] while setting copy %s as production. It appears the copy is already set as the production copy. Ignoring the exception and continuing.\",\n e.getMessage(), cgCopyName));\n } else {\n throw e;\n }\n }\n } catch (FunctionalAPIActionFailedException_Exception | FunctionalAPIInternalError_Exception | InterruptedException e) {\n throw RecoverPointException.exceptions.failedToSetCopyAsProduction(cgCopyName, cgName, e);\n }\n }", "title": "" } ]
[ { "docid": "ba979d593f4db27e504f52d09094726e", "score": "0.6114768", "text": "void setCopyTrust(boolean copy);", "title": "" }, { "docid": "fb9d8e240874a7f8e3ddda5a5b9ed793", "score": "0.6017832", "text": "public final void setCopyMode(int copy) {\n myTree.setCopyMode(copy);\n }", "title": "" }, { "docid": "f25dd9cd363987ddc35c0c97b27bd738", "score": "0.55313337", "text": "void setCopyClaimSettings(boolean copy);", "title": "" }, { "docid": "73e75c543b1c4096a1fb2a4074489dba", "score": "0.55250347", "text": "void setCopyOptions(boolean copy);", "title": "" }, { "docid": "f29edd2081e8296d43a7124d4af9661c", "score": "0.54505575", "text": "void setCopyPermissions(boolean copy);", "title": "" }, { "docid": "e795f3bb38e6ed6f76769c5cd26fd8cc", "score": "0.54436946", "text": "Builder copyTrust(boolean copy);", "title": "" }, { "docid": "3ab63eb83747e176ec746af2685ecdd8", "score": "0.5415143", "text": "public void setMapByCopy(Board copy) {\n\t\tthis.map = copy.getCopyMap();\n\t}", "title": "" }, { "docid": "79a23639c9340e2ebab830081a31b4d3", "score": "0.5091815", "text": "public final void setCopyInfoMode(int copy) {\n myTree.setCopyInfoMode(copy);\n }", "title": "" }, { "docid": "64b55b3557d8ba21b49b4ca59218beae", "score": "0.50547975", "text": "public void setDbCopy(AVCACHEModel aAVCACHEModel){ \r\n dbCopy = aAVCACHEModel;\r\n }", "title": "" }, { "docid": "6131c21fd4a98cbe2c43bfc2f9bd1a1f", "score": "0.50397784", "text": "public void updateNewValues(SuitabilityScenario copy) {\n\n super.updateNewValues(copy);\n\n Set<SuitabilityRule> copyrules = copy.getSuitabilityRules();\n if (copyrules != null) {\n for (SuitabilityRule copyRule : copyrules) {\n for (SuitabilityRule rule : this.getSuitabilityRules()) {\n if (rule.getId().equals(copyRule.getId())) {\n rule.updateNewValues(copyRule);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c5427cb124dd597a9d2207118643f6c2", "score": "0.5009386", "text": "Builder copyClaimSettings(boolean copy);", "title": "" }, { "docid": "86dc4c0427e9ca7ead3679f83f7e20ea", "score": "0.48930115", "text": "public void setCopiesQuantity(int value) {\n this.copiesQuantity = value;\n }", "title": "" }, { "docid": "193d2b40cc3117ec89443b57a40fcd32", "score": "0.48520595", "text": "protected void copyInternalFields(CommonGraphics2D copy) {\r\n if (clip == null) {\r\n copy.setTransformedClip(null);\r\n } else {\r\n copy.setTransformedClip(new MultiRectArea(clip));\r\n }\r\n copy.setBackground(bgColor);\r\n copy.setColor(fgColor);\r\n copy.setPaint(paint);\r\n copy.setComposite(composite);\r\n copy.setStroke(stroke);\r\n copy.setFont(font);\r\n copy.setTransform(new AffineTransform(transform));\r\n //copy.origTransform = new AffineTransform(origTransform);\r\n copy.origPoint = new Point(origPoint);\r\n }", "title": "" }, { "docid": "6663a43cf29a5b358cd16b99ef517cba", "score": "0.4843366", "text": "Builder copyOptions(boolean copy);", "title": "" }, { "docid": "c1c57c19858fd7c3d60f45f9c92e2774", "score": "0.4836822", "text": "public void setcopies(int copies){\n this.copies = copies;\n }", "title": "" }, { "docid": "163626e3c5e0a418fd84fc8249f03633", "score": "0.4776988", "text": "public PartJoint(PartJoint copy) {\r\n pointA = copy.pointA;\r\n pointB = copy.pointB;\r\n angularVelocity = copy.angularVelocity;\r\n percentOne = copy.percentOne;\r\n percentTwo = copy.percentTwo;\r\n }", "title": "" }, { "docid": "1675e71d8458d6ad27250b7fd18d6773", "score": "0.47098428", "text": "private void copyProperties(ReviewEntity source, ReviewEntity destination) {\n\t\tif (source == null || destination == null)\n\t\t\treturn;\n\n\t\tif (source.getComments() != null)\n\t\t\tdestination.setComments(source.getComments());\n\n\t\tif (source.getFeedbackScore() != null)\n\t\t\tdestination.setFeedbackScore(source.getFeedbackScore());\n\n\t\tif (source.getReview() != null)\n\t\t\tdestination.setReview(source.getReview());\n\t}", "title": "" }, { "docid": "1eb883cfe452e9b437562e9f7de0bb43", "score": "0.470578", "text": "private void recoverProductionAndWait(FunctionalAPIImpl impl, ConsistencyGroupCopyUID groupCopy)\n throws FunctionalAPIActionFailedException_Exception, FunctionalAPIInternalError_Exception, RecoverPointException,\n InterruptedException\n {\n logger.info(\"Wait for recoverProduction to complete\");\n impl.recoverProduction(groupCopy, true);\n logger.info(\"Wait for recoverProduction to complete\");\n // 4.0 logic. Wait for the copy to no longer be in image access mode.\n this.waitForCGCopyState(impl, groupCopy, false, ImageAccessMode.UNKNOWN);\n }", "title": "" }, { "docid": "3f171c824bef8255325f155e382e606d", "score": "0.46954685", "text": "public void setCopyFrom(String CopyFrom) {\n\t\tif (CopyFrom != null && CopyFrom.length() > 1) {\n\t\t\tlog.warning(\"Length > 1 - truncated\");\n\t\t\tCopyFrom = CopyFrom.substring(0, 0);\n\t\t}\n\t\tset_Value(\"CopyFrom\", CopyFrom);\n\t}", "title": "" }, { "docid": "dcb9d7ddf58f1ee1207255186e25c86d", "score": "0.468829", "text": "public void copy(Prefab source, Prefab target) {\n for (Parameter p : this.getAllParameters()) {\n Object value = p.invokeGet(source);\n\n if (value != null) {\n Object cloned = PropertyReflector.clone(value);\n p.invokeSet(target, cloned, false);\n }\n }\n }", "title": "" }, { "docid": "b74f820bfc23b62657a54828271cd562", "score": "0.46640623", "text": "public void setProduction(boolean production) {\n\t\tmProduction = production;\n\t}", "title": "" }, { "docid": "f85c6d964e74cf1df500adf6cea899db", "score": "0.46434876", "text": "void copyPropertiesTo(final ComponentTag dest)\n\t{\n\t\tdest.id = id;\n\t\tdest.flags = flags;\n\t\tdest.autoComponentFactory = autoComponentFactory;\n\n\t\tif (markupClassRef != null)\n\t\t{\n\t\t\tdest.setMarkupClass(markupClassRef.get());\n\t\t}\n\t\tif (behaviors != null)\n\t\t{\n\t\t\tdest.behaviors = new ArrayList<>(behaviors);\n\t\t}\n\t\tif (userData != null)\n\t\t{\n\t\t\tdest.userData = new HashMap<>(userData);\n\t\t}\n\t}", "title": "" }, { "docid": "6c751608f5ef74e9ac2e8ad315d45c7a", "score": "0.46231943", "text": "public void copyTo(String copyLocation)\n {\n File file = new File(copyLocation);\n if (!file.exists())\n {\n createFileIfNotExist(file);\n }\n saveAsTree(file);\n }", "title": "" }, { "docid": "0e55e75d71d79e77e27c0fee576c30ad", "score": "0.45985907", "text": "public void setAllowCopyTo(boolean value) {\r\n this.allowCopyTo = value;\r\n }", "title": "" }, { "docid": "b9305af03c51853b4256712c667676b9", "score": "0.4589345", "text": "Builder copyPermissions(boolean copy);", "title": "" }, { "docid": "b2b046d02d03f566fbfe0e0ebbe84b97", "score": "0.45707965", "text": "public void copyingPrivateUserAttributes(final Anything copy) \n\t\t\t\tthrows PersistenceException{\n }", "title": "" }, { "docid": "a7736c07257be91047e23405c1573ff2", "score": "0.45699462", "text": "public void copyingPrivateUserAttributes(final Anything copy) \n\t\t\t\tthrows PersistenceException{\n\t}", "title": "" }, { "docid": "f6cbb2e49a65b36a1f057c5020795efe", "score": "0.4563854", "text": "public void setTotal_copies(int total_copies) {\n this.total_copies = total_copies;\n }", "title": "" }, { "docid": "9c611d7e815eb38b97e89076bce68676", "score": "0.45394763", "text": "public void setCopyFormFields(boolean copyFormFields) {\n this.copyFormFields = copyFormFields;\n }", "title": "" }, { "docid": "80521ca4d05c413cfebd6806bee10fb3", "score": "0.45102897", "text": "public void setDestination(Destination dest)\n {\n this.dest = dest;\n }", "title": "" }, { "docid": "28594a9dd5a0af8fb77629c447449858", "score": "0.44904768", "text": "public void copy(Propertybidfinalize that) {\n\t\tsetBidFinalizeId(that.getBidFinalizeId());\n\t\tsetBrokerageMouDocument(that.getBrokerageMouDocument());\n\t\tsetIsCommissionPayment(that.getIsCommissionPayment());\n\t\tsetIsFinalPayment(that.getIsFinalPayment());\n\t\tsetPropertybidprocess(that.getPropertybidprocess());\n\t}", "title": "" }, { "docid": "b9a2a318ae42f4f557c8e5bdb0605349", "score": "0.4477755", "text": "private void copy(LogicalCompositeComponent composite, CompositeResource resource, String baseUrl) {\n for (LogicalComponent<?> component : composite.getComponents()) {\n URL url = ResourceHelper.createUrl(baseUrl + component.getUri().getPath().substring(1)); // strip leading '/'\n if (component instanceof LogicalCompositeComponent) {\n CompositeResource childResource = new CompositeResource(component.getUri(), component.getZone());\n SelfLink selfLink = new SelfLink(url);\n childResource.setSelfLink(selfLink);\n copy((LogicalCompositeComponent) component, childResource, baseUrl);\n resource.addComponent(childResource);\n } else {\n ComponentResource childResource = createComponentResource(component, url);\n resource.addComponent(childResource);\n }\n }\n }", "title": "" }, { "docid": "1468537746eec336608afda93716e85d", "score": "0.44611755", "text": "public synchronized void registerSoftCopy(NikeFS2LazyRandomAccessStorageImpl copycat) {\n\t\tsoftCopies.add(copycat);\n\t}", "title": "" }, { "docid": "a26950a14b68a36fc0618482bea13f9f", "score": "0.44595182", "text": "public void setDestination(Location newDest) {\r\n this.dest = newDest;\r\n }", "title": "" }, { "docid": "9c3f8558c30506504ac88058eca1dedb", "score": "0.4429638", "text": "public void setLinkedProduct(Product linkedProduct){\n this.linkedProduct = linkedProduct;\n }", "title": "" }, { "docid": "f0e83972072608e7d79f6727b54fa50d", "score": "0.44276878", "text": "public void setOldCopy(DAOModel aDAOModel){ \r\n if (aDAOModel != null) {\r\n \tdbCopy = (AVCACHEModel)aDAOModel;\r\n }\r\n else\r\n {\r\n \tdbCopy = null;\r\n }\r\n }", "title": "" }, { "docid": "dde3803af9f96164bd6465b4aae8df93", "score": "0.44227904", "text": "private void copyWithOverwriting() {\n /** Get item to copy */\n final StorableNode item = items.get(itemIndex);\n\n try {\n /** Delete destination item */\n String deletePath = destination.getPath() + \"/\" + item.getName();\n projectServiceClient.delete(deletePath, new AsyncRequestCallback<Void>() {\n @Override\n protected void onSuccess(Void result) {\n /** Copy the item */\n projectServiceClient.copy(item.getPath(), destination.getPath(), null, copyCallback);\n }\n\n @Override\n protected void onFailure(Throwable error) {\n /** Handle error and stop copying */\n notificationManager.showNotification(new Notification(error.getMessage(), ERROR));\n dialogFactory.createMessageDialog(\"ERROR\", error.getMessage(), null).show();\n }\n });\n } catch (Exception error) {\n /** Handle error and stop copying */\n notificationManager.showNotification(new Notification(error.getMessage(), ERROR));\n dialogFactory.createMessageDialog(\"ERROR\", error.getMessage(), null).show();\n }\n }", "title": "" }, { "docid": "c5af8e4051708b1a1ac32e48b72155ca", "score": "0.44189134", "text": "public CopexReturn copyProc(String name, LearnerProcedure procToCopy, boolean copy,boolean setTrace, boolean loadProcCopy) {\n if (loadProcCopy){\n ArrayList v = new ArrayList();\n CopexReturn cr = loadProc(procToCopy, false, v);\n if (cr.isError())\n return cr;\n procToCopy = (LearnerProcedure)v.get(0);\n }\n LearnerProcedure proc = (LearnerProcedure)procToCopy.clone();\n //proc.setName(CopexUtilities.getTextLocal(name, getLocale()));\n proc.setName(name);\n proc.setRight(MyConstants.EXECUTE_RIGHT);\n // save in db and get the id\n // save proc\n ArrayList v = new ArrayList();\n CopexReturn cr = ExperimentalProcedureFromDB.createProcedureInDB(db.getDbC(),getLocale(), proc, dbKeyLabDoc, v);\n if (cr.isError()){\n return cr;\n }\n long dbKeyProc = (Long)v.get(0);\n proc.setDbKey(dbKeyProc);\n long dbKeyQuestion = (Long)v.get(1);\n proc.getQuestion().setDbKey(dbKeyQuestion);\n proc.getListTask().get(0).setDbKey(dbKeyQuestion);\n //hyp, princ, eval\n if(proc.getHypothesis() != null ){\n ArrayList v2 = new ArrayList();\n cr = ExperimentalProcedureFromDB.createHypothesisInDB(db.getDbC(), getLocale(),proc, proc.getHypothesis(), v2);\n if(cr.isError())\n return cr;\n }\n if(proc.getGeneralPrinciple() != null ){\n ArrayList v2 = new ArrayList();\n cr = ExperimentalProcedureFromDB.createGeneralPrincipleInDB(db.getDbC(), getLocale(),proc, proc.getGeneralPrinciple(), v2);\n if(cr.isError())\n return cr;\n }\n if(proc.getEvaluation() != null ){\n ArrayList v2 = new ArrayList();\n cr = ExperimentalProcedureFromDB.createEvaluationInDB(db.getDbC(), getLocale(),proc, proc.getEvaluation(), v2);\n if(cr.isError())\n return cr;\n }\n // lock\n setLocker(dbKeyLabDoc);\n // material to used\n if(!copy){\n proc.setListMaterialUsed(getListMaterialUsed(proc));\n cr = ExperimentalProcedureFromDB.createListMaterialUsedInDB(db.getDbC(),getLocale(), proc.getDbKey(), proc.getListMaterialUsed());\n if(cr.isError())\n return cr;\n }\n // save tasks\n v = new ArrayList();\n cr = TaskFromDB.createTasksInDB(db.getDbC(), getLocale(), proc.getDbKey(), proc.getListTask(), proc.getQuestion(), false, v);\n if (cr.isError()){\n return cr;\n }\n // get the new id tasks\n ArrayList<CopexTask> listT = (ArrayList<CopexTask>)v.get(0);\n proc.setListTask(listT);\n updateDatasheetProd(proc);\n proc.lockMaterialUsed();\n // update modifiction date\n cr = db.updateDateProc(proc);\n if (cr.isError()){\n return cr;\n }\n cr = exportHTML(proc);\n if (cr.isError()){\n return cr;\n }\n cr = updateLabdocStatus();\n if(cr.isError())\n return cr;\n // update\n proc.setOpen(true);\n this.listProc.add(proc);\n // logging\n if (setTrace() && setTrace){\n if (copy){\n copex.logCopyProc(proc, procToCopy);\n }else{\n // create proc\n copex.logCreateProc(proc);\n }\n }\n //gui\n copex.createProc((LearnerProcedure)proc.clone());\n return cr;\n }", "title": "" }, { "docid": "66b878fa3895a80992521ab48b863fe9", "score": "0.44045055", "text": "public void copy(final TBussObjTmpl that) {\n\t\tsetTmplId(that.getTmplId());\n\t\tsetTmplName(that.getTmplName());\n\t\tsetTmplDesc(that.getTmplDesc());\n\t\tsetDefFlag(that.getDefFlag());\n\t\tsetEffStartDt(that.getEffStartDt());\n\t\tsetEffEndDt(that.getEffEndDt());\n\t\tsetCreatedBy(that.getCreatedBy());\n\t\tsetCreateDt(that.getCreateDt());\n\t\tsetUpdatedBy(that.getUpdatedBy());\n\t\tsetUpdateDt(that.getUpdateDt());\n\t\tsetTenantId(that.getTenantId());\n\t\tsetActiveFlag(that.getActiveFlag());\n\t}", "title": "" }, { "docid": "ce43eb6be92da4131e41f93b9d2a8179", "score": "0.43987855", "text": "public void setShare(boolean share) {\n\t\tif(selectedBoard != null && !selectedBoard.isRemote()) {\n \tselectedBoard.setShared(share);\n \tsetShareToServer(selectedBoard, share);\n } else {\n \tlog.severe(\"there is no selected board\");\n }\n\t}", "title": "" }, { "docid": "21107d15fff9fdbd74175a690b66cf54", "score": "0.43934122", "text": "public void setCopyRestricciones(java.lang.String copyRestricciones);", "title": "" }, { "docid": "73ca5bdf4096b07d3b4ed161d685b2aa", "score": "0.43891504", "text": "public boolean verifyCopyIsCurrentSourceCopy(FunctionalAPIImpl port, ConsistencyGroupCopyUID groupCopy)\n throws FunctionalAPIActionFailedException_Exception, FunctionalAPIInternalError_Exception {\n\n // Create a state param object to verify the group state\n VerifyConsistencyGroupStateParam stateParam = new VerifyConsistencyGroupStateParam();\n\n // Set the specified copy as the expected source copy\n stateParam.setSourceCopy(groupCopy);\n\n // Now verify the state- this is an a-sync call so we should wait until the call finishes and check the result\n TransactionID transactionID = port.verifyConsistencyGroupStateWithDefaultTimeout(groupCopy.getGroupUID(), stateParam);\n TransactionResult result;\n try {\n\n // Get the result of the transaction - this might take a while...\n result = getTransactionResult(port, transactionID);\n if (result != null) {\n if (result.getExceptionMessage() != null) {\n logger.error(\"verifyGroupSourceCopy failed with: \" + result.getExceptionMessage());\n }\n }\n\n } catch (InterruptedException e) {\n logger.error(\"Caught InterruptedException while checking for failover complete\", e);\n return false;\n }\n\n // The verify call is successful if there is no exception\n return (result != null) && (result.getExceptionType() == null);\n }", "title": "" }, { "docid": "49d9b85614c34dd9b62760e160f4748c", "score": "0.43817353", "text": "public void testCopyConstructor() {\r\n Configuration c = TestConfiguration.makeDefaultConfiguration();\r\n Configuration copy = new DefaultConfiguration(c);\r\n //Basic check\r\n Assert.assertEquals((Object) copy.getRunnings(), (Object) c.getRunnings());\r\n Assert.assertEquals((Object) copy.getWaitings(), (Object) c.getWaitings());\r\n Assert.assertEquals((Object) copy.getSleepings(), (Object) c.getSleepings());\r\n\r\n Assert.assertEquals((Object) copy.getOnlines(), (Object) c.getOnlines());\r\n Assert.assertEquals((Object) copy.getOfflines(), (Object) c.getOfflines());\r\n\r\n for (Node n : c.getOnlines()) {\r\n Assert.assertEquals((Object) c.getRunnings(n), (Object) copy.getRunnings(n));\r\n Assert.assertEquals((Object) c.getSleepings(n), (Object) copy.getSleepings(n));\r\n }\r\n\r\n for (VirtualMachine vm : c.getSleepings()) {\r\n Assert.assertEquals(c.getSleepingLocation(vm), copy.getSleepingLocation(vm));\r\n Assert.assertEquals(c.getSleepingLocation(vm), copy.getSleepingLocation(vm));\r\n }\r\n\r\n for (VirtualMachine vm : c.getRunnings()) {\r\n Assert.assertEquals(c.getRunningLocation(vm), copy.getRunningLocation(vm));\r\n Assert.assertEquals(c.getRunningLocation(vm), copy.getRunningLocation(vm));\r\n }\r\n\r\n //Check\r\n //TODO: Make modification in the source and check cloning\r\n DefaultNode n = new DefaultNode(\"NY\", 1, 2, 3);\r\n copy.addOnline(n);\r\n Assert.assertFalse(c.getOnlines().contains(n));\r\n\r\n c.addOnline(n);\r\n VirtualMachine vm = c.getRunnings().get(\"VM1\");\r\n c.setRunOn(vm, n);\r\n\r\n Assert.assertNotSame(copy.getRunningLocation(vm), c.getRunningLocation(vm));\r\n }", "title": "" }, { "docid": "be1916c89079766c5d719601870cef0b", "score": "0.4380505", "text": "public void copy(Category that) {\n\t\tsetId(that.getId());\n\t\tsetCategoryField(that.getCategoryField());\n\t\tsetDescrib(that.getDescrib());\n\t\tsetSymptoms(new java.util.LinkedHashSet<edu.yangsheng.domain.Symptom>(that.getSymptoms()));\n\t\tsetQuestions(new java.util.LinkedHashSet<edu.yangsheng.domain.Question>(that.getQuestions()));\n\t\tsetMedicines(new java.util.LinkedHashSet<edu.yangsheng.domain.Medicine>(that.getMedicines()));\n\t\tsetPathogenesises(new java.util.LinkedHashSet<edu.yangsheng.domain.Pathogenesis>(that.getPathogenesises()));\n\t\tsetUserCategories(new java.util.LinkedHashSet<edu.yangsheng.domain.UserCategory>(that.getUserCategories()));\n\t}", "title": "" }, { "docid": "54ddf421d69e1262ac2476ddbeb43ea4", "score": "0.4363374", "text": "private StepMeta addSlaveCopy( TransMeta transMeta, StepMeta stepMeta, SlaveServer slaveServer ) {\n StepMeta copy = (StepMeta) stepMeta.clone();\n if ( copy.isPartitioned() ) {\n StepPartitioningMeta stepPartitioningMeta = copy.getStepPartitioningMeta();\n PartitionSchema partitionSchema = stepPartitioningMeta.getPartitionSchema();\n String slavePartitionSchemaName = createSlavePartitionSchemaName( partitionSchema.getName() );\n PartitionSchema slaveSchema = transMeta.findPartitionSchema( slavePartitionSchemaName );\n if ( slaveSchema != null ) {\n stepPartitioningMeta.setPartitionSchema( slaveSchema );\n }\n // Always just start a single copy on the slave server...\n // Otherwise the confusion w.r.t. to partitioning & re-partitioning would be complete.\n //\n copy.setCopies( 1 );\n }\n\n transMeta.addStep( copy );\n return copy;\n }", "title": "" }, { "docid": "1fdff4d7523165332a0df07f12679ddc", "score": "0.4361526", "text": "@Override\n\tpublic void updateBookCopy(BookLoan bookCopy) {\n\t\t\n\t}", "title": "" }, { "docid": "1d07877f826fe9e975bcdf1b8258764b", "score": "0.43607026", "text": "public void setClone(String clone) {\n this.clone = clone;\n }", "title": "" }, { "docid": "5201626af92f8ef20897b6456f10fc90", "score": "0.4353358", "text": "private void setDest(){\n\tdestStr = cmdLine.getDestDir();\n\tif(destStr != null){\n\t File f = new File(destStr);\n\t set.setDestinationPath(f);\t\n\t}\n\tset.setDestinationPath(((DefaultSet)set).getDefaultDestPath());\n }", "title": "" }, { "docid": "75ed364fcf782707fcec767535d6b567", "score": "0.4352344", "text": "public CycPair(CycPair copy)\r\n\t{\r\n\t\tformula = copy.formula;\r\n\t\tresult = copy.result;\r\n\t}", "title": "" }, { "docid": "945ffec72ce57fcce7ebeb7a2d452bb7", "score": "0.43472707", "text": "public void enableCGCopyDirectAcess(FunctionalAPIImpl impl, RPCopyRequestParams copyToEnableDirectAccess)\n throws RecoverPointException {\n String cgCopyName = NAME_UNKNOWN;\n String cgName = NAME_UNKNOWN;\n String accessState = \"N/A\";\n\n // Not checking cgCopUID for null because RecoverPointUtils.mapRPVolumeProtectionInfoToCGCopyUID\n // ensures it will not be null.\n ConsistencyGroupCopyUID cgCopyUID = RecoverPointUtils.mapRPVolumeProtectionInfoToCGCopyUID(copyToEnableDirectAccess\n .getCopyVolumeInfo());\n\n try {\n cgCopyName = impl.getGroupCopyName(cgCopyUID);\n cgName = impl.getGroupName(cgCopyUID.getGroupUID());\n\n // Get the storage access state prior to enabling direct access. In the event of a failure,\n // we want to present the current state of the copy to the user.\n ConsistencyGroupCopyState copyState = getCopyState(impl, cgCopyUID);\n if (copyState != null && copyState.getStorageAccessState() != null) {\n accessState = copyState.getStorageAccessState().name();\n }\n\n impl.enableDirectAccess(cgCopyUID);\n\n // Wait for the CG copy state to change to DIRECT_ACCESS\n logger.info(String.format(\"Waiting for copy %s in consistency group %s to change access state to DIRECT_ACCESS.\", cgCopyName,\n cgName));\n waitForCGCopyState(impl, cgCopyUID, false);\n } catch (FunctionalAPIActionFailedException_Exception | FunctionalAPIInternalError_Exception | InterruptedException e) {\n throw RecoverPointException.exceptions.failedToEnableDirectAccessForCopy(cgCopyName, cgName, e, accessState);\n }\n }", "title": "" }, { "docid": "644b3f14a46484a3a52c8fb0ef773029", "score": "0.43463293", "text": "public void setBalorazioKopurua(long balorazioKopurua) {\n\t\t_sagardotegi.setBalorazioKopurua(balorazioKopurua);\n\t}", "title": "" }, { "docid": "318b8b3dfa2340ea5fe2d5116b58d324", "score": "0.43444502", "text": "public void setSupplyCenterOwner(Province province, Power power)\t \t\t\r\n\t{\r\n\t\tProvinceData pd = getProvinceData(province);\r\n\t\tpd.setSCOwner(power);\r\n\t}", "title": "" }, { "docid": "54afd15d2282f18aac42df78c9f4968e", "score": "0.43351653", "text": "public void copy(BCA sample){\r\n\t\tif(bca!=null){ \r\n\t\t\tfor(int r=0;r<ROWS;r++){\r\n\t\t\t\tfor(int c=0;c<COLS;c++){\r\n\t\t\t\t\tthis.bca[r][c]=sample.bca[r][c];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c6d4b1fcc8fd1b1d58a3266367a45bbc", "score": "0.43280664", "text": "private static void copyProperty(Property to, Property from) {\n to.setName(from.getName());\n \n if (from.getValue() != null) {\n to.setValue(from.getValue());\n }\n if (from.getFile() != null) {\n to.setFile(from.getFile());\n }\n if (from.getResource() != null) {\n to.setResource(from.getResource());\n }\n if (from.getPrefix() != null) {\n to.setPrefix(from.getPrefix());\n }\n if (from.getRefid() != null) {\n to.setRefid(from.getRefid());\n }\n if (from.getEnvironment() != null) {\n to.setEnvironment(from.getEnvironment());\n }\n if (from.getClasspath() != null) {\n to.setClasspath(from.getClasspath());\n }\n }", "title": "" }, { "docid": "ab818993fa0052d4999fdcf3c74a7a4a", "score": "0.43233126", "text": "public void setData(Destination newDest) {\n\t\tdata = newDest;\n\t}", "title": "" }, { "docid": "dda568a342a9ca4d2c392677d6655a8f", "score": "0.43171903", "text": "protected void copyFrom(SubmissionTarget target)\n throws SubmissionTargetException\n {\n // Used for delay-loading. Takes the specified definition object\n // and copies it into the current object.\n\n setAmbiguityResolution(target.getAmbiguityResolution());\n setChildren(target.getChildren());\n setIncludedFiles(target.getIncludedFiles());\n setExcludedFiles(target.getExcludedFiles());\n setRequiredFiles(target.getRequiredFiles());\n\n setTransport(target.getTransport());\n setTransportParameters(target.getTransportParameters());\n\n setPackager(target.getPackager());\n setPackagerParameters(target.getPackagerParameters());\n }", "title": "" }, { "docid": "293edebda08cfae78774e94de504498a", "score": "0.43016082", "text": "public void restoreEnabledCGCopy(FunctionalAPIImpl impl, ConsistencyGroupCopyUID cgCopyUID) throws RecoverPointException {\n\n String cgName = null;\n String cgCopyName = null;\n\n try {\n cgCopyName = impl.getGroupCopyName(cgCopyUID);\n cgName = impl.getGroupName(cgCopyUID.getGroupUID());\n logger.info(String.format(\"Restore the image to copy name: %s for CG name: %s\", cgCopyName, cgName));\n recoverProductionAndWait(impl, cgCopyUID);\n // For restore, just wait for link state of the copy being restored. Wait for active of paused link state.\n // If one of the copies is in direct access mode, paused is a valid link state.\n waitForCGLinkState(impl, cgCopyUID.getGroupUID(),\n RecoverPointImageManagementUtils.getPipeActiveState(impl, cgCopyUID.getGroupUID()), PipeState.PAUSED);\n logger.info(\"Successful restore to copy name: \" + cgCopyName + \" for CG Name: \" + cgName);\n } catch (FunctionalAPIActionFailedException_Exception e) {\n throw RecoverPointException.exceptions.failedToFailoverCopy(cgCopyName, cgName, e);\n } catch (FunctionalAPIInternalError_Exception e) {\n throw RecoverPointException.exceptions.failedToFailoverCopy(cgCopyName, cgName, e);\n } catch (InterruptedException e) {\n logger.error(e.getMessage(), e);\n throw RecoverPointException.exceptions.exceptionWaitingForStateChangeAfterRestore();\n }\n }", "title": "" }, { "docid": "21dd2199873f9d283fb4e38525944718", "score": "0.4300056", "text": "public static void makeAutConfigCopy(Map<String, String> autConfigOrig, \n Map<String, String> autConfigCopy) {\n \n autConfigCopy.clear();\n final Set<String> autConfigKeys = autConfigOrig.keySet();\n for (String key : autConfigKeys) {\n String value = autConfigOrig.get(key);\n if (value != null && value.length() > 0) {\n autConfigCopy.put(key, value);\n }\n }\n }", "title": "" }, { "docid": "7b1b01de6abd8d6452807c97bbd89326", "score": "0.4295358", "text": "public ParameterizedSparqlString copy(boolean copyParams) {\n return this.copy(copyParams, true, true);\n }", "title": "" }, { "docid": "a645ead4a6496e1d78d88568cd5fa9a9", "score": "0.4295085", "text": "@Test\n\tpublic void test_copyAvailable()\n\t{\n\t\t// Valid Patron\n\t\tPatron p1 = new Patron(\"P1\", \"Eric\");\n\n\t\t// Valid Copy\n\t\tCopy c1 = new Copy(\"C1\", \"Fun with Objects\");\n\t\tCopy c3 = new Copy(\"C3\", \"More fun with Obejcts\");\n\n\t\tc1.setOutTo(p1);\n\t\tassertTrue(c1 instanceof Copy);\n\n\t\tc1.setCopyID(\"F3\");\n\t\tassertTrue(c1.getCopyID().equals(\"F3\"));\n\t}", "title": "" }, { "docid": "1a3a47627825ad55e57514b82df62d81", "score": "0.42877665", "text": "public void copy(LabConstructionProjectAudit that) {\n\t\tsetId(that.getId());\n\t\tsetComments(that.getComments());\n\t\tsetLabConstructionProject(that.getLabConstructionProject());\n\t\tsetCDictionary(that.getCDictionary());\n\t\tsetTag(that.getTag());\n\t\tsetUser(that.getUser());\n\t}", "title": "" }, { "docid": "cc7c6bb28352ffaa0a981f4e343847ef", "score": "0.4285647", "text": "public void setTotalCopies(int total)\n\t{\n\t\tm_totalCopies = total;\n\t}", "title": "" }, { "docid": "384fb3791c895bd3844ab35a5174b426", "score": "0.42818996", "text": "public void setKartaKop(int pKartaKop) {\r\n\t\tthis.kartaKop = pKartaKop;\r\n\t}", "title": "" }, { "docid": "724731f71e2ccdcef01fe07f8816627e", "score": "0.4281332", "text": "public void copyTo(final BwLocpr val) {\n super.copyTo(val);\n }", "title": "" }, { "docid": "c0431685de0701e808785a7d0223da86", "score": "0.4270922", "text": "public void disableCGCopy(FunctionalAPIImpl impl, ConsistencyGroupCopyUID cgCopy) throws RecoverPointException {\n\n String cgName = null;\n String cgCopyName = null;\n\n try {\n cgCopyName = impl.getGroupCopyName(cgCopy);\n cgName = impl.getGroupName(cgCopy.getGroupUID());\n\n boolean startTransfer = true;\n logger.info(String.format(\"Attempting to disable the image for copy %s in consistency group %s\", cgCopyName, cgName));\n try {\n impl.disableImageAccess(cgCopy, startTransfer);\n } catch (FunctionalAPIActionFailedException_Exception e) {\n // Try again\n logger.info(String.format(\"Disable the image failed for copy %s in consistency group %s. Try again\", cgCopyName, cgName));\n try {\n Thread.sleep(Long.valueOf(disableRetrySleepTimeSeconds * numMillisInSecond));\n } catch (InterruptedException e1) {\n // Fuggeddaboudit!\n }\n impl.disableImageAccess(cgCopy, startTransfer);\n }\n\n waitForCGCopyState(impl, cgCopy, StorageAccessState.NO_ACCESS);\n logger.info(String.format(\"Successfully disabled image for copy %s in consistency group %s\", cgCopyName, cgName));\n } catch (FunctionalAPIActionFailedException_Exception | FunctionalAPIInternalError_Exception | InterruptedException e) {\n throw RecoverPointException.exceptions.failedToDisableCopy(cgCopyName, cgName, e);\n }\n }", "title": "" }, { "docid": "b77d9028f63955138f0ccd91e155c3a4", "score": "0.42696136", "text": "public void copyStack( int[] copy ){\n\t\n\tfor( int i = 0; i < max_size; i++ ){\n\t copy[i] = stk_ary[i];\n\t}\n \n }", "title": "" }, { "docid": "e46396eea5197b2445fd8cc2636cac1d", "score": "0.4264123", "text": "protected void setProduct(Product product) {\n\t\tthis.product = product;\n\t}", "title": "" }, { "docid": "76d86f301d65c8715b5c74644aae0d6d", "score": "0.42621", "text": "void copy(Board b) {\n internalCopy(b);\n }", "title": "" }, { "docid": "76d86f301d65c8715b5c74644aae0d6d", "score": "0.42621", "text": "void copy(Board b) {\n internalCopy(b);\n }", "title": "" }, { "docid": "946b84cdc07aef75b1cd5a851bff6904", "score": "0.42620918", "text": "PropertyMap(PropertyMap copy)\n {\n super(copy);\n _set = copy._set;\n _user = copy._user;\n _objectId = copy._objectId;\n _category = copy._category;\n _propertyEncryption = copy._propertyEncryption;\n _store = copy._store;\n }", "title": "" }, { "docid": "bfe6ac9607db8f6d18489f18e95e38c7", "score": "0.42610934", "text": "public void createOptionGroup2ByCopy(String optionGroupCopyName, String group, String type, String appearance,\n\t\t\tString Country) {\n\t\t\n\t\tproductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tproductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tproductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tproductDevelopmentPg.switchToDefaultContent();\n\t\tproductDevelopmentPg.switchToFrame(\"content\");\n\t\tdriver.switchTo().frame(merchantProductDevelopmentPg.get_FrameLevel2_Options());\n\t\tproductDevelopmentPg.switchToFrame(\"tableContentFrame\");\n\t\tproductDevelopmentPg.switchToFrame(\"tableBodyRight\");\n\t\tmerchantProductDevelopmentPg.get_CheckboxOptionCopy().click();\n\t\tproductDevelopmentPg.switchToDefaultContent();\n\t\tproductDevelopmentPg.switchToFrame(\"content\");\n\t\tdriver.switchTo().frame(merchantProductDevelopmentPg.get_FrameLevel2_Options());\n\t\tproductDevelopmentPg.switchToFrame(\"tableContentFrame\");\n\t\tmerchantProductDevelopmentPg.get_Actions_OptionCopy().click();\n\t\tmerchantProductDevelopmentPg.get_OptionByCopy_CheckboxOptionCopy().click();\n\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tproductDevelopmentPg.switchToDefaultContent();\n\t\tproductDevelopmentPg.switchToFrame(\"content\");\n\t\tdriver.switchTo().frame(merchantProductDevelopmentPg.get_FrameLevel2_Options());\n\t\tproductDevelopmentPg.switchToFrame(\"tvcInlineFrame_0\");\n\t\tmerchantProductDevelopmentPg.get_TextoptionGroupName_OptionCopy().sendKeys(optionGroupCopyName);\n\t\tmerchantProductDevelopmentPg.get_copyButton_OptionCopy().click();\n\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tparentWindow = merchantProductDevelopmentPg.get_CurrentWindowHandle();\n\t\tmerchantProductDevelopmentPg.getWindowHandle();\n\t\tmerchantProductDevelopmentPg.switchToDefaultContent();\n\t\tdriver.manage().window().maximize();\n\t\tmerchantProductDevelopmentPg.switchToFrame(\"content\");\n//\t\t//merchantProductDevelopmentPg.switchToFrame(\"detailsDisplay\");\n//\t\tmerchantProductDevelopmentPg.switchToFrame(\"TopPanelContentFrame\");\n\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\t merchantProductDevelopmentPg.get_productionGroup_Options().isDisplayed();\n\t\t \n//\t\tmerchantProductDevelopmentPg.SelectElementFromDropdown(\n//\t\t\t\tmerchantProductDevelopmentPg.get_productionGroup_Options(), \"visibleText\", group);\n//\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n//\t\tmerchantProductDevelopmentPg.SelectElementFromDropdown(\n//\t\t\t\tmerchantProductDevelopmentPg.get_productionType_Options(), \"visibleText\", type);\n//\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n//\t\tmerchantProductDevelopmentPg.SelectElementFromDropdown(\n//\t\t\t\tmerchantProductDevelopmentPg.get_productionAppearance_Options(), \"visibleText\", appearance);\n//\t\tmerchantProductDevelopmentPg.SelectElementFromDropdown(\n//\t\t\t\tmerchantProductDevelopmentPg.get_CountryofProduction_Options(), \"visibleText\", Country);\n\t\t \n\t\t\tmerchantProductDevelopmentPg.get_productionGroup_Options().click();\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\t\tmerchantProductDevelopmentPg.get_productionGroup_Options().click();\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\t\tmerchantProductDevelopmentPg.get_productionGroup_Options().clear();\n\t\t\tmerchantProductDevelopmentPg.get_productionGroup_Options().sendKeys(group);\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\t\tdriver.findElement(By.xpath(\"//div[@class='selectize-dropdown single alpaca-control plugin-close_dropdown_on_widget_scroll']//div[text()='\"+group+\"']\")).click();\n//\t\t\tdriver.findElement(By.xpath(\"//*[@class='highlight' and text()='\"+group+\"']\")).click();\t\t\t\t\n\t\t\tmerchantProductDevelopmentPg.reportLog(\"Select group : \" + group);\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\t\tmerchantProductDevelopmentPg.get_productionType_Options().click();\n\t\t\tmerchantProductDevelopmentPg.get_productionType_Options().clear();\n\t\t\tmerchantProductDevelopmentPg.get_productionType_Options().sendKeys(type);\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\t\tdriver.findElement(By.xpath(\"//div[@class='selectize-dropdown single alpaca-control plugin-close_dropdown_on_widget_scroll']//div[text()='\"+type+\"']\")).click();\n//\t\t\tdriver.findElement(By.xpath(\"//*[@class='highlight' and text()='\"+type+\"']\")).click();\t\n\t\t\tmerchantProductDevelopmentPg.reportLog(\"Select type : \" + type);\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToDisappear();\n\t\t\tmerchantProductDevelopmentPg.get_productionAppearance_Options().click();\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\t\tmerchantProductDevelopmentPg.get_productionAppearance_Options().clear();\n\t\t\tdriver.findElement(By.xpath(\"//div[@class='selectize-dropdown single alpaca-control plugin-close_dropdown_on_widget_scroll']//div[text()='\"+appearance+\"']\")).click();\n\t\t\tmerchantProductDevelopmentPg.reportLog(\"Select appearance : \" + appearance);\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\t\tmerchantProductDevelopmentPg.get_CountryofProduction_Options().click();\n\t\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\t\tmerchantProductDevelopmentPg.get_CountryofProduction_Options().clear();\n\t\t\tmerchantProductDevelopmentPg.get_CountryofProduction_Input().sendKeys(Country);\n\t\t\tdriver.findElement(By.xpath(\"//div[@class='selectize-dropdown single alpaca-control plugin-close_dropdown_on_widget_scroll']//div[text()='\"+Country+\"']\")).click();\n//\t\t\tdriver.findElement(By.xpath(\"//*[@class='highlight' and text()='\"+Country+\"']\")).click();\n\t\t\tmerchantProductDevelopmentPg.reportLog(\"select Country : \" + Country);\n\t\t \t\t \n\t\t \n\t\tmerchantProductDevelopmentPg.checkWeekSliderSpinnerToAppear();\n\t\tmerchantProductDevelopmentPg.reportLog(\"Create option gropu by copy\");\n\t\tmerchantProductDevelopmentPg.reportLog(\"Select group : \" + group);\n\t\tmerchantProductDevelopmentPg.reportLog(\"Select type : \" + type);\n\t\tmerchantProductDevelopmentPg.reportLog(\"Select appearance : \" + appearance);\n\t\tmerchantProductDevelopmentPg.reportLog(\"Select Country : \" + Country);\n\t}", "title": "" }, { "docid": "59f7bd76ddc472b5a5930e21304261a4", "score": "0.42538774", "text": "@DISPID(1611071488) //= 0x60070000. The runtime will prefer the VTID if present\n @VTID(23)\n void itemToCopy(\n AnyObject oToCopy);", "title": "" }, { "docid": "8c1cb69b4df729193213e24d1b510ffc", "score": "0.42489904", "text": "private void copySettings(XMLSerializer src, XMLSerializer dest) {\n dest.fDOMErrorHandler = fErrorHandler;\n dest._format.setEncoding(src._format.getEncoding());\n dest._format.setLineSeparator(src._format.getLineSeparator());\n dest.fDOMFilter = src.fDOMFilter;\n }", "title": "" }, { "docid": "12bfd64a50f53d51c9ce818e81deed12", "score": "0.4234171", "text": "public void setSubstanceAdministration(com.walgreens.rxit.ch.cda.POCDMT000040SubstanceAdministration substanceAdministration)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040SubstanceAdministration target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040SubstanceAdministration)get_store().find_element_user(SUBSTANCEADMINISTRATION$24, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.POCDMT000040SubstanceAdministration)get_store().add_element_user(SUBSTANCEADMINISTRATION$24);\n }\n target.set(substanceAdministration);\n }\n }", "title": "" }, { "docid": "1329747026e576f69116dd8ea747d5c9", "score": "0.4234017", "text": "public void setCopyState(int x, int y, boolean state) {\n copyArrayList.get(x).get(y).setCopyArrayState(state);\n }", "title": "" }, { "docid": "265fdf315e3c2ae4793949596be09974", "score": "0.4233903", "text": "public abstract void copy(Object destination);", "title": "" }, { "docid": "07038ca6dff247e4d7f936889dd82f0e", "score": "0.42293543", "text": "public static void copy(ModelSet source, ModelSet target) throws ModelRuntimeException {\r\n\t\tfor(Iterator<? extends Model> i = source.getModels(); i.hasNext();) {\r\n\t\t\tModel m = i.next();\r\n\t\t\tm.open();\r\n\t\t\tModel tm = target.getModel(m.getContextURI());\r\n\t\t\ttm.open();\r\n\t\t\tcopy(m, tm);\r\n\t\t}\r\n\t\t// copy default model\r\n\t\tModel m = source.getDefaultModel();\r\n\t\tm.open();\r\n\t\tModel tm = target.getDefaultModel();\r\n\t\ttm.open();\r\n\t\tcopy(m, tm);\r\n\t}", "title": "" }, { "docid": "14a0edbcd10ead0ef93908d73dc6e58c", "score": "0.42261952", "text": "public void enableCopyImage(FunctionalAPIImpl impl, RPCopyRequestParams copyToEnableTo, boolean failover) throws RecoverPointException {\n // Check the params\n // If bookmark != null, enable the bookmark on the copy, and failover to that copy\n // If APITTime != null, enable the specified APIT on the copy, and failover to that copy\n // If both are null, enable the most recent imagem, and failover to that copy\n String bookmarkName = copyToEnableTo.getBookmarkName();\n Date apitTime = copyToEnableTo.getApitTime();\n // FunctionalAPIImpl impl = new RecoverPointConnection().connect(endpoint, username, password);\n ConsistencyGroupCopyUID cgCopyUID = RecoverPointUtils.mapRPVolumeProtectionInfoToCGCopyUID(copyToEnableTo.getCopyVolumeInfo());\n if (bookmarkName != null) {\n logger.info(\"Enable copy to bookmark : \" + bookmarkName);\n } else if (apitTime != null) {\n logger.info(\"Enable copy to APIT : \" + apitTime.toString());\n } else {\n logger.info(\"Enable copy to most recent image\");\n }\n RecoverPointImageManagementUtils imageManager = new RecoverPointImageManagementUtils();\n // Make sure your copies are OK to enable.\n // Will throw an exception if it's not in the right state\n if (!imageManager.verifyCopyCapableOfEnableImageAccess(impl, cgCopyUID, copyToEnableTo.getBookmarkName(), failover)) {\n try {\n String cgCopyName = impl.getGroupCopyName(cgCopyUID);\n String cgName = impl.getGroupName(cgCopyUID.getGroupUID());\n logger.info(\"Copy \" + cgCopyName + \" of group \" + cgName + \" is in a mode that disallows enabling the CG copy.\");\n throw RecoverPointException.exceptions.notAllowedToEnableImageAccessToCG(cgName,\n cgCopyName);\n } catch (FunctionalAPIActionFailedException_Exception e) {\n throw RecoverPointException.exceptions.notAllowedToEnableImageAccessToCGException(e);\n } catch (FunctionalAPIInternalError_Exception e) {\n throw RecoverPointException.exceptions.notAllowedToEnableImageAccessToCGException(e);\n }\n }\n\n boolean waitForLinkState = false;\n imageManager.enableCGCopy(impl, cgCopyUID, waitForLinkState, ImageAccessMode.LOGGED_ACCESS, bookmarkName, apitTime);\n }", "title": "" }, { "docid": "8f7fc57b7af0d9c077d58b2dcab878a3", "score": "0.42226648", "text": "@SuppressWarnings(\"unused\")\n private void setDestinationTerminologyId(String destinationConceptId) {\n if (destinationConcept == null) {\n destinationConcept = new ConceptJpa();\n }\n destinationConcept.setTerminologyId(destinationConceptId);\n\n }", "title": "" }, { "docid": "4ea7ad8fae4b282e3668c8e2668eb205", "score": "0.4211625", "text": "@Test public void copySet() {\n LinkedSet<Integer> test = new LinkedSet<Integer>();\n \n test.add(10);\n test.add(6);\n test.add(3);\n test.add(11);\n test.add(112);\n \n \n test.copySet();\n \n boolean expected = true;\n boolean actual = test.equals(test.copySet());\n Assert.assertEquals(expected, actual);\n }", "title": "" }, { "docid": "8aae2ee4070395eb5470e056654daf06", "score": "0.41960672", "text": "public void copyPressed()\n\t{\n\t\tPlatform p = platformSelectPanel.getSelectedPlatform();\n\t\tif (p == null)\n\t\t{\n\t\t\tTopFrame.instance().showError(\n\t\t\t\t\tdbeditLabels.getString(\"PlatformListPanel.selectCopy\"));\n\t\t} \n\t\telse\n\t\t{\n\t\t\tif (!p.isComplete())\n\t\t\t{\n\t\t\t\ttry { p.read(); }\n\t\t\t\tcatch (DatabaseException e)\n\t\t\t\t{\n\t\t\t\t\tTopFrame.instance().showError(\n\t\t\t\t\t\t\tLoadResourceBundle.sprintf(\n\t\t\t\t\t\t\t\t\tdbeditLabels.getString(\"PlatformListPanel.cannotRead\"),\n\t\t\t\t\t\t\t\t\tp.makeFileName(), e.toString()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPlatform newOb = p.noIdCopy();\n\t\t\tplatformSelectPanel.addPlatform(newOb);\n\t\t\tdoOpen(newOb);\n\t\t}\n\t}", "title": "" }, { "docid": "6421edb7ae9f257cb60ff577ede6b0ed", "score": "0.4187409", "text": "protected Classe copyInto(Classe copyObj) throws TorqueException\r\n {\r\n return copyInto(copyObj, true);\r\n }", "title": "" }, { "docid": "d880657cad87ed04f5d90f475e593d5f", "score": "0.41870305", "text": "public StdTextProduct(StdTextProduct aProductToCopy) {\n this(aProductToCopy.getProdId(), aProductToCopy.getBbbid(),\n aProductToCopy.getRefTime(), aProductToCopy.getProduct());\n }", "title": "" }, { "docid": "1be6d0926fcf2c935c081899ea76db2c", "score": "0.41844824", "text": "void copy(String resource, String destination);", "title": "" }, { "docid": "d02ac6196d8594ef5fb85386d2d0fca7", "score": "0.41836345", "text": "public static void copyJSON(ProcessCreationActivity act, JSONObject copyObject) {\n String answer = null;\n try {\n //String questionDraft = BasicMethodsUtil.getInstance().getServerName(question);\n\n if (act.aPageSectionListBean != null && act.aPageSectionListBean.size() > 0) {\n List<PageSectionListBean> aPageSectionListBean = act.aPageSectionListBean;\n\n for (int i = 0; i < aPageSectionListBean.size(); i++) {\n //if (aPageSectionListBean.get(i).getPageSection_Name().equalsIgnoreCase(section)) {\n\n String sectionName = BasicMethodsUtil.getInstance().getServerName(aPageSectionListBean.get(i).getPageSection_Name());\n JSONObject jsonSection = copyObject.getJSONObject(sectionName);\n for (Iterator<String> it = jsonSection.keys(); it.hasNext(); ) {\n String key = it.next();\n if (jsonSection.get(key) instanceof JSONArray) {\n setCopyRequest(act, sectionName, key, \"\", jsonSection.getJSONArray(key));\n } else {\n answer = jsonSection.getString(key);\n String ques = BasicMethodsUtil.getInstance().getServerName(\"Please click OK to submit\");\n if(!key.equalsIgnoreCase(ques)) {\n setCopyRequest(act, sectionName, key, answer, null);\n }\n }\n }\n //break;\n //}\n }\n }\n } catch (Exception e) {\n ExceptionLogger.Logger(e.getCause(), e.getMessage(), ServerRequest.class, \"copyJSON\");\n }\n }", "title": "" }, { "docid": "6daad9a1e03033c35c0d31b5025e515d", "score": "0.4180144", "text": "public void copyServer() {\r\n\t}", "title": "" }, { "docid": "046562b0e0a52aea2947920f790636a9", "score": "0.41735274", "text": "public static void copy(int copy, ItemDefinition itemDefinition) {\r\n ItemDefinition copyDefinition = forId(copy);\r\n itemDefinition.name = copyDefinition.name;\r\n itemDefinition.interfaceModelId = copyDefinition.interfaceModelId;\r\n itemDefinition.description = copyDefinition.description;\r\n itemDefinition.modifiedColors = copyDefinition.modifiedColors;\r\n itemDefinition.originalColors = copyDefinition.originalColors;\r\n itemDefinition.modelZoom = copyDefinition.modelZoom;\r\n itemDefinition.modelRotationY = copyDefinition.modelRotationY;\r\n itemDefinition.modelRotationX = copyDefinition.modelRotationX;\r\n itemDefinition.modelRotationZ = copyDefinition.modelRotationZ;\r\n itemDefinition.modelPositionX = copyDefinition.modelPositionX;\r\n itemDefinition.modelPositionY = copyDefinition.modelPositionY;\r\n itemDefinition.modelOffsetXOriginal = copyDefinition.modelOffsetXOriginal;\r\n itemDefinition.modelOffsetYOriginal = copyDefinition.modelOffsetYOriginal;\r\n itemDefinition.stackingType = copyDefinition.stackingType;\r\n itemDefinition.value = copyDefinition.value;\r\n itemDefinition.members = copyDefinition.members;\r\n itemDefinition.equipmentActions = copyDefinition.equipmentActions;\r\n itemDefinition.floorOptions = copyDefinition.floorOptions;\r\n itemDefinition.options = copyDefinition.options;\r\n itemDefinition.maleModelId = copyDefinition.maleModelId;\r\n itemDefinition.maleArmModelId = copyDefinition.maleArmModelId;\r\n itemDefinition.maleModelTranslationY = copyDefinition.maleModelTranslationY;\r\n itemDefinition.femaleModelId = copyDefinition.femaleModelId;\r\n itemDefinition.femaleArmModelId = copyDefinition.femaleArmModelId;\r\n itemDefinition.femaleModelTranslationY = copyDefinition.femaleModelTranslationY;\r\n itemDefinition.maleModelId3 = copyDefinition.maleModelId3;\r\n itemDefinition.femaleModelId3 = copyDefinition.femaleModelId3;\r\n itemDefinition.equipped_model_male_dialogue_1 = copyDefinition.equipped_model_male_dialogue_1;\r\n itemDefinition.equipped_model_male_dialogue_2 = copyDefinition.equipped_model_male_dialogue_2;\r\n itemDefinition.equipped_model_female_dialogue_1 = copyDefinition.equipped_model_female_dialogue_1;\r\n itemDefinition.equipped_model_female_dialogue_2 = copyDefinition.equipped_model_female_dialogue_2;\r\n itemDefinition.stackIds = copyDefinition.stackIds;\r\n itemDefinition.stackAmounts = copyDefinition.stackAmounts;\r\n itemDefinition.noteItemId = copyDefinition.noteItemId;\r\n itemDefinition.noteTemplateId = copyDefinition.noteTemplateId;\r\n itemDefinition.modelScaleX = copyDefinition.modelScaleX;\r\n itemDefinition.modelScaleY = copyDefinition.modelScaleY;\r\n itemDefinition.modelScaleZ = copyDefinition.modelScaleZ;\r\n itemDefinition.lightIntensity = copyDefinition.lightIntensity;\r\n itemDefinition.lightMagnitude = copyDefinition.lightMagnitude;\r\n }", "title": "" }, { "docid": "3d7baf6fba20ec84bd2db694a2dceef5", "score": "0.41693577", "text": "final void setCloned() throws FndException\n {\n if(DEBUG) debug(\"ASPPoolElement.setCloned(): \"+this);\n raiseNotUndefined();\n setState(DEFINED);\n }", "title": "" }, { "docid": "00d9a91875f305fd10e1c5f764c39fe5", "score": "0.41647607", "text": "public KSTransition deepCopy(KSState sa, KSState sb) {\n\t\treturn makeCopy(sa, sb);\n\t}", "title": "" }, { "docid": "67e092ae1c7b0a5d2105a11efe15478a", "score": "0.4163341", "text": "private Memcopying createMemcopying(Host src, Host dst) {\n\t\t\tHost host = dst;\n\t\t\t\n\t\t\tint srcHost = src.getId();\n\t\t\tint dstHost = host.getId();\n\t\t\t\n\t\t\tint srcVm = this.dataCenter.getMigHostIdToVmIdTable().get(srcHost);\n\t\t\tint dstVm = this.dataCenter.getMigHostIdToVmIdTable().get(dstHost);\n\t\t\t\n\t\t\tVm vm = this.dataCenter.findVm(srcVm);\n\t\t\t\n\t\t\tlong amountMem = (long) (1*Math.pow(10,9));\n\t\t\tdouble startTime = -1;\n\t\t\tdouble currentTime = CloudSim.clock();\n\t\t\tMemcopying act = new Memcopying(srcVm, dstVm, srcHost, dstHost, amountMem, startTime, currentTime);\n\t\t\t//act.setMigVm(vm.getId());\n\t\t\tact.setPrecopy(false);\n\t\t\tact.setStopandcopy(false);\n\t\t\t\n\t\t\t//set VM/VNF resources requirement\n\t\t\tact.setVmRAM(1);\n\t\t\tact.setVmBw(1);\n\t\t\tact.setVmDisk(1);\n\t\t\t\n\t\t\tint chId = this.dataCenter.findMigFlow(act.getSrcHost(), act.getDstHost());\n\t\t\tact.setChId(chId);\n\t\t\t\n\t\t\tMap<String, Object> migrate = new HashMap<>();\n\t\t\tmigrate.put(\"vm\", vm);\n\t\t\tmigrate.put(\"host\", dst);\n\t\t\t\n\t\t\t// all version compatibility\n\t\t\tact.migrate = migrate;\n\t\t\t\n\t\t\t//delay-aware migration\n\t\t\tact.setDeadline(0);\n\t\t\treturn act;\n\t\t}", "title": "" }, { "docid": "ff2d00ca0ae5ac84bb5897685ff243b5", "score": "0.41632617", "text": "public void copy(SchoolWeekday that) {\n\t\tsetId(that.getId());\n\t\tsetWeekdayName(that.getWeekdayName());\n\t}", "title": "" }, { "docid": "37991403193caed6946e4907be7be88b", "score": "0.4159013", "text": "@Test\n public void test_Copy_AsCloneFromCard_ZamWesell() {\n addCard(Zone.HAND, playerA, \"Zam Wesell\"); // {2}{U}{U}\n addCard(Zone.BATTLEFIELD, playerA, \"Island\", 4);\n //\n addCard(Zone.HAND, playerB, \"Akoum Warrior\", 1);\n\n // cast as copy of mdf card\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Zam Wesell\");\n addTarget(playerA, playerB); // target opponent\n addTarget(playerA, \"Akoum Warrior\"); // creature card to copy\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);\n checkPermanentCount(\"after\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Akoum Warrior\", 1);\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n }", "title": "" }, { "docid": "6c3ddebad8d02deb09e28a65ce064213", "score": "0.41550946", "text": "public void copyAsset(RepositoryResourceImpl from) {\n _asset = from._asset;\n }", "title": "" }, { "docid": "9a0ec3139d04324f8df90f7f10609e5c", "score": "0.41529712", "text": "protected void copyOriginal(Step step) {\n m_manager = (StepManagerImpl) step.getStepManager();\n m_stepToEdit = step;\n try {\n // copy the original config in case of cancel\n m_stepOriginal = (Step) GenericObjectEditor.makeCopy(step);\n } catch (Exception ex) {\n showErrorDialog(ex);\n }\n }", "title": "" }, { "docid": "a4efe24e876d273271caac34f7c3b658", "score": "0.41430685", "text": "private void setOriginalDestinationPort(int originalDestinationPort) {\n this.originalDestinationPort = originalDestinationPort;\n }", "title": "" }, { "docid": "05aa961b54877cf343ef6cf3023c7e04", "score": "0.41418943", "text": "public void copy(PurchaseOrder that) {\n\t\tsetPurchaseOrderId(that.getPurchaseOrderId());\n\t\tsetPurchaseOrderAddress(that.getPurchaseOrderAddress());\n\t\tsetPurchaseOrderCreatedDate(that.getPurchaseOrderCreatedDate());\n\t\tsetPurchaseOrderExpectedDate(that.getPurchaseOrderExpectedDate());\n\t\tsetPurchaseOrderRecievedDate(that.getPurchaseOrderRecievedDate());\n\t\tsetPurchaseOrderStatus(that.getPurchaseOrderStatus());\n\t\tsetClients(new java.util.LinkedHashSet<axi.source.domain.Client>(that.getClients()));\n\t\tsetInventories(new java.util.LinkedHashSet<axi.source.domain.Inventory>(that.getInventories()));\n\t}", "title": "" }, { "docid": "cde17bc6fbd4370aed878467b58e4fa3", "score": "0.41379046", "text": "public void setDestination(N dest) {\n this.destination = dest;\n }", "title": "" }, { "docid": "d25a8b6e58e98a3c0cdc9c9f9c76bdad", "score": "0.41360578", "text": "public void updateCopy() {\n for (int i = 0; i < DIM; i++) {\n for (int j = 0; j < DIM; j++) {\n copy.setField(board.getField(i, j).getBall().getColour(), i, j);\n }\n }\n }", "title": "" }, { "docid": "110d1b2a5d6c0be3d035cec9b096c352", "score": "0.41317916", "text": "public void secondarySetAbonentbill(com.hps.july.persistence.AbonentBill anAbonentbill) throws java.rmi.RemoteException {\n\tthis.getAbonentbillLink().secondarySet(anAbonentbill);\n}", "title": "" }, { "docid": "d3335d791c026537eae05530b7dbdf48", "score": "0.41315007", "text": "protected void postCopyIn(Dictionary alreadyDone) {\n super.postCopyIn(alreadyDone);\n localBase = localBase.copiedVersionFrom(alreadyDone);\n }", "title": "" } ]
c9802961fdc0cfb04913e9ed5d40414a
| 0 | 1 | 2 | | 3 | X | 5 | | 6 | 7 | 8 | This method will check if a turn is possible & if check=false, it will do the move.
[ { "docid": "d99d6c9e8af0d144bb9610714cc4b559", "score": "0.0", "text": "public boolean putPiece(Board board, int direction, int x, int y, Player getter, boolean check){\n return currentGame.settings.putPiece(this,board,direction,x,y,getter,check);\n }", "title": "" } ]
[ { "docid": "f466d55230cb9efa565207473759caca", "score": "0.71555924", "text": "static void playerTurn() {\r\n int move = s.nextInt();\r\n ArrayList<Integer> legalMoves = getLegalMoves();\r\n\r\n while(!legalMoves.contains(move)) {\r\n System.out.println(\"That is not a legal move.\");\r\n move = s.nextInt();\r\n }\r\n makeMove(move);\r\n }", "title": "" }, { "docid": "9f6c22c5633d66503b73754e79225dff", "score": "0.71098727", "text": "public void turn(){\n\t if(move == 1){\n\t move = -1;\n\t } else {\n\t move = 1;\n\t }\n\t}", "title": "" }, { "docid": "7c8006d375f9192f796e259d798dc1fb", "score": "0.71056473", "text": "private boolean verifyMove(int side, int move, boolean bKillerMove, Board.CheckInfo checkInfo) \n { \n \n if ( move == 0) {\n return false;\n }\n \n int from = MoveFunctions.getFrom( move );\n int to = MoveFunctions.getTo( move );\n int piece = chessBoard.piece_in_square[ from ];\n \n if( bKillerMove ) {\n if( piece != MoveFunctions.getKillerPiece( move ) ) {\n return false;\n }\n }\n \n if( piece == -1 || piece /6 != side ) {\n return false;\n }\n \n switch( MoveFunctions.moveType(move) )\n {\n case( Global.ORDINARY_MOVE ):\n if( chessBoard.piece_in_square[ to ] != -1 ) { \n return false;\n }\n \n if( piece % 6 != 5 ) {\n if ( (chessBoard.getAttackBoard(from) & (1L << to)) == 0 ) {\n return false;\n }\n }\n else {\n if( to != from + Global.forwardRank[side] ) {\n return false;\n }\n \n if( Global.RelativeRanks[side][from/8] > 5 || Global.RelativeRanks[side][from/8] < 1) {\n return false;\n }\n }\n break;\n \n case( Global.ORDINARY_CAPTURE ):\n int capPiece = chessBoard.piece_in_square[ to ];\n if( capPiece == -1 || capPiece /6 != (side^1) ) {\n return false;\n }\n if ( (chessBoard.getAttackBoard(from) & (1L << to)) == 0 ) {\n return false;\n }\n if( piece % 6 == 5 && ( Global.RelativeRanks[side][from/8] > 5 || Global.RelativeRanks[side][from/8] < 1) ) {\n return false;\n }\n \n break;\n \n case( Global.DOUBLE_PAWN ):\n int rank = from / 8;\n if( piece % 6 != 5 ) {\n return false;\n }\n if( Global.RelativeRanks[side][rank] != 1) {\n return false;\n }\n if( chessBoard.piece_in_square[ from +Global.forwardRank[side]] != -1 || chessBoard.piece_in_square[ from + Global.forwardRank[side] * 2] != -1) {\n return false;\n } \n \n break;\n \n case( Global.PROMO_Q ):\n rank = from / 8;\n if( piece % 6 != 5 ) {\n return false;\n }\n if( Global.RelativeRanks[side][rank] != 6) {\n return false;\n }\n boolean bOk = false;\n if( to == from + Global.forwardRank[side] ) { //non capture\n if( chessBoard.piece_in_square[ to ] == -1 ) {\n bOk = true;\n }\n }\n else { //capture\n if( (chessBoard.getPawnAttack(side, from) & (1L << to)) != 0 ) {\n bOk = true;\n }\n }\n if( !bOk ) {\n return false;\n } \n \n break;\n case( Global.EN_PASSANT_CAP ):\n if( piece % 6 != 5 ) {\n return false;\n }\n else if( Global.RelativeRanks[side][to/8] != 5 ) {\n return false;\n }\n else if( (chessBoard.getPawnAttack(side, from) & (1L << to)) == 0 ) {\n return false;\n }\n else if( to != chessBoard.getPassant( side ^1)) {\n return false;\n }\n break;\n \n case( Global.SHORT_CASTLE ):\n if( piece % 6 != 4 ) {\n return false;\n }\n if( chessBoard.checkers != 0) {\n return false;\n }\n if( from != chessBoard.pieceList[piece][0] || from != (4 + 56 * side) ) {\n return false;\n }\n if( to == 6 + 56 * side && (chessBoard.castleFlag[side] & Global.SHORT_CASTLE) != 0 ) {\n long castleBits = chessBoard.getKingCastle(((int)(chessBoard.bitboard >>> (56 * side)) & 255));\n if( (castleBits & (1L << 6)) != 0 ) {\n if( chessBoard.isAttacked(side, 5 + (56 * side)) || chessBoard.isAttacked(side, 6 + (56 * side)) || chessBoard.isAttacked(side, 4 + (56 * side)) ) {\n return false;\n }\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n break; \n \n case( Global.LONG_CASTLE ): \n if( piece % 6 != 4 ) {\n return false;\n }\n if( chessBoard.checkers != 0) {\n return false;\n }\n \n if( from != chessBoard.pieceList[piece][0] || from != (4 + 56 * side) ) {\n return false;\n }\n if( to == 2 + 56 * side && (chessBoard.castleFlag[side] & Global.LONG_CASTLE) != 0) {\n long castleBits = chessBoard.getKingCastle(((int)(chessBoard.bitboard >>> (56 * side)) & 255));\n if( (castleBits & (1L << 2)) != 0 ) {\n if( chessBoard.isAttacked(side, 2 + (56 * side)) || chessBoard.isAttacked(side, 3 + (56 * side)) || chessBoard.isAttacked(side, 4 + (56 * side)) ) {\n return false;\n }\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n \n break;\n \n }\n \n if( chessBoard.checkers != 0 ) {\n \n if( chessBoard.MoreThanOne( chessBoard.checkers )) {\n //only a escape move is acceptable\n if( piece != Global.PIECE_KING ) {\n return false;\n }\n else if( chessBoard.isAttacked(side, to, chessBoard.bitboard ^ ((1L << from) | (1L << to)))) {\n return false;\n }\n }\n else {\n //either a move to block or capture the checker, or a king escape move\n if( piece == Global.PIECE_KING ) { \n if( chessBoard.isAttacked(side, to, chessBoard.bitboard ^ ((1L << from) | (1L << to)))) {\n return false;\n }\n }\n else {\n int checker = Long.numberOfTrailingZeros(chessBoard.checkers);\n int king = chessBoard.pieceList[side][Global.PIECE_KING];\n if(to != checker && (Global.mask_between[king][checker] & (1L << to)) == 0 ) {\n return false;\n }\n } \n }\n }\n return true;\n }", "title": "" }, { "docid": "b0eb5f63f077205efda6990fba14ae75", "score": "0.6955773", "text": "private void doMoveInCheck(Point to) {\n if (moving.isActionLegal(from, to)) {\n checkEnPassant(to);\n move(moving, from, to);\n final Point location = locateKing(isWhiteTurn);\n final King king = new King(isWhiteTurn);\n if (!king.isCheck(location)) {\n isWhiteTurn = !isWhiteTurn;\n chess.flipBoard();\n checkEndgame();\n isInCheck = false;\n } else {\n move(moving, to, from);\n }\n }\n }", "title": "" }, { "docid": "6d89f58c63000dfae17d20897b6b203e", "score": "0.6888559", "text": "public void playerTurnMove(int playerID) {\r\n\t\tif (!myBoard.isMovePossible(players[playerID]) && !(myOptions.getFlyRule() != 3 \r\n\t\t\t\t&& (((myOptions.getFlyRule() == 1) \r\n\t\t\t\t\t\t&& myBoard.piecesOnSide(currentPlayer) >= 6) \r\n\t\t\t\t\t\t|| ((myOptions.getFlyRule() == 2) \r\n\t\t\t\t\t\t\t\t&& myBoard.piecesOnSide(currentPlayer) >= 5)))){\r\n\t\t\t//then skip turn they shouldn't have gotten trapped\r\n\t\t\tcurrentPlayer = (currentPlayer+1) % 2;\r\n\t\t\tSystem.out.println(\"player trapped\");\r\n\t\t} else \r\n\t\t{\r\n\t\t\tint take[] = {-1,-1};\r\n\t\t\tint position[][] = {{-1, -1},{-1, -1}};\t\t\r\n\t\r\n\t\t\tif(players[playerID].getIsHuman()){\r\n\t\t\t\tboardInterface.setTurnInfo(playerID, \"YOUR TURN<br>CLICK A PIECE\");\r\n\t\t\t\twhile(isGameOver() < 0 && \r\n\t\t\t\t\t\t(position[0][0] == -1 || \r\n\t\t\t\t\t\tmyBoard.getPiece(position[0]) == null ||\r\n\t\t\t\t\t\t!myBoard.getPiece(position[0]).getOwner().equals(players[playerID])))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 2){\r\n\t\t\t\t\t\tSystem.out.println(\"UNDO\");\r\n\t\t\t\t\t\tundo();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 1){\r\n\t\t\t\t\t\tSystem.out.println(\"SKIP\");\r\n\t\t\t\t\t\tskip();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tposition[0] = boardInterface.positionSelect();\r\n\t\t\t\t}\r\n\t\t\t\tboardInterface.setPosSelected(position[0][0], position[0][1]);\r\n\t\t\t\tboardInterface.setTurnInfo(playerID, \"YOUR TURN<br>CLICK A POSITION\");\r\n\t\t\t\twhile(isGameOver() < 0 && \r\n\t\t\t\t\t\t(position[1][0] == -1 ||\r\n\t\t\t\t\t\tmyBoard.getPiece(position[1]) != null ||\r\n\t\t\t\t\t\t!isMoveValid(position[0], position[1]) ||\r\n\t\t\t\t\t\tmyBoard.movePiece(position[0], position[1]) == -1))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 2){\r\n\t\t\t\t\t\tSystem.out.println(\"UNDO\");\r\n\t\t\t\t\t\tundo();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Skip turn if button pressed\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 1){\r\n\t\t\t\t\t\tSystem.out.println(\"SKIP\");\r\n\t\t\t\t\t\tskip();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tposition[1] = boardInterface.positionSelect();\r\n\t\t\t\t\t//undo first selection if second selection is same piece\r\n\t\t\t\t\tif(Arrays.equals(position[0], position[1])){\r\n\t\t\t\t\t\t//restart move process\r\n\t\t\t\t\t\tpassBoard();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//Computer AI\r\n\t\t\t\twhile(isGameOver() < 0 && \r\n\t\t\t\t\t(position[0][0] == -1 || \r\n\t\t\t\t\tmyBoard.getPiece(position[0]) == null ||\r\n\t\t\t\t\t!isMoveValid(position[0], position[1]) ||\r\n\t\t\t\t\tmyBoard.movePiece(position[0], position[1]) == -1))\r\n\t\t\t\t{\r\n\t\t\t\t\tposition = players[playerID].movePiece();\r\n\t\t\t\t\tSystem.out.print(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Increment number of moves for player\r\n\t\t\tplayers[playerID].incrementNumMoves();\r\n\t\t\t//check if move created a mill\t\r\n\t\t\tif((isGameOver() < 0) && myBoard.isMill(position[1])){\r\n\t\t\t\tSystem.out.println(\"it is\");\r\n\t\t\t\tpassBoard();\r\n\t\t\t\tSystem.out.println(\"board passed\");\r\n\t\t\t\ttake = playerTake(playerID);\r\n\t\t\t\t// player press undo/skip during playerTake\r\n\t\t\t\tif(take[0] == -1){\r\n\t\t\t\t\t// undo game state to start of turn\r\n\t\t\t\t\tmyBoard.movePiece(position[1], position[0]);\r\n\t\t\t\t\tplayers[playerID].decrementNumMoves();\r\n\t\t\t\t\tif(boardInterface.isTurnSkipUndo() == 2){\r\n\t\t\t\t\t\t// undo\r\n\t\t\t\t\t\tSystem.out.println(\"UNDO\");\r\n\t\t\t\t\t\tundo();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// skip\r\n\t\t\t\t\t\tSystem.out.println(\"SKIP\");\r\n\t\t\t\t\t\tskip();\r\n\t\t\t\t\t\treturn;\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// Save prev moves and takes\r\n\t\t\tprevPrevTake = prevTake.clone();\r\n\t\t\tprevTake = take.clone();\r\n\t\t\tprevPrevMove = prevMove.clone();\r\n\t\t\tprevMove = position.clone();\r\n\t\t\t\r\n\t\t\t// pass the board to the gui\r\n\t\t\tpassBoard();\r\n\t\t\t\r\n\t\t\t//Change current player\r\n\t\t\tcurrentPlayer = (currentPlayer+1) % 2;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "114020c8373698873cbaae056daf39fe", "score": "0.6867935", "text": "public abstract boolean checkCanForceInMovePhase(Turn turn, Worker forcedWorker);", "title": "" }, { "docid": "db2ed2cbcfeb3c5993e9b171ce5bb1c2", "score": "0.6852041", "text": "boolean hasMove(Piece side) {\n return _turn == side;\n }", "title": "" }, { "docid": "18273ced0f1603a4e3b8d50b46bee4e0", "score": "0.6831547", "text": "@Override\r\n\tpublic boolean checkIfValidMove() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b1d2e8366e18f548e8ba251b4078686d", "score": "0.6822939", "text": "boolean hasTurn();", "title": "" }, { "docid": "5c18c9efab92dd6e9e020e4775dd18fa", "score": "0.67849404", "text": "boolean isTurn();", "title": "" }, { "docid": "36057b890ccdc1bcee003b6da4ea7979", "score": "0.67652607", "text": "public boolean makeMove(int x) {\n for (int i = 0; i < 6; i++) {\n if (discs[x][i] == null) {\n discs[x][i] = turn;\n switchTurn();\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "5275735d313369503c5ca51ef1da583b", "score": "0.6756795", "text": "private void letUserKnowLegalMoves() {\n final Color darkGreen = new Color(0, 100, 40);\n final Color lightGreen = new Color(0, 140, 50);\n for (int i = 0; i < Chess.BOARD_SIZE; i++) {\n for (int j = 0; j < Chess.BOARD_SIZE; j++) {\n final Point checkAt = new Point(j, i);\n final Color usedColor = ((i + j) % 2 == 0 ^ !isWhiteTurn) ? lightGreen : darkGreen;\n if (moving instanceof King) {\n final Piece backup = Chess.getBoard(from);\n Chess.setBoard(from, null);\n if (moving.isActionLegal(from, checkAt)) {\n chess.fillInSubSection(usedColor, j, i);\n }\n Chess.setBoard(from, backup);\n } else if (moving.isActionLegal(from, checkAt)) {\n chess.fillInSubSection(usedColor, j, i);\n }\n }\n }\n if (canQueenSideCastle()) {\n chess.fillInSubSection(isWhiteTurn ? darkGreen : lightGreen, 0, Chess.BOARD_SIZE - 1);\n }\n if (canKingSideCastle()) {\n chess.fillInSubSection(isWhiteTurn ? lightGreen : darkGreen, Chess.BOARD_SIZE - 1, Chess.BOARD_SIZE - 1);\n }\n if (enPassant != null) {\n final boolean canCaptureEnPassant = from.y == enPassant.y + 1\n && Math.abs(from.x - enPassant.x) == 1;\n if (canCaptureEnPassant && isEnPassantLegal(enPassant)) {\n final Color usedColor = ((enPassant.y + enPassant.x) % 2 == 0 ^ !isWhiteTurn) ? lightGreen : darkGreen;\n chess.fillInSubSection(usedColor, enPassant.x, enPassant.y);\n }\n }\n chess.setPieces();\n }", "title": "" }, { "docid": "9f1f833d936204bfe2c1ccc04b0628c8", "score": "0.6735525", "text": "private void performTurn() {\n \t\tif (this.desiresForfeit) {\n \t\t\tthis.engine.revertBoard();\n \t\t\tthis.initiateTurn();\n \t\t\treturn;\n \t\t}\n \t\tint result = this.engine.pawnMove(this.clicks.get(0),\n \t\t\t\tthis.clicks.get(1));\n \t\tthis.repaint();\n \t\tif (result == Engine.SAME_NODE_SELECTED) {\n \t\t\tthis.informPlayerError(userMessages[1]);\n \t\t} else if (result == Engine.INVALID_MOVE) {\n \t\t\tthis.informPlayerError(userMessages[2]);\n \t\t} else if (result == Engine.NODE_NOT_FOUND) {\n \t\t\tthis.informPlayerError(userMessages[3]);\n \t\t} else if (result == Engine.NO_PIECE_SELECTED) {\n \t\t\tthis.informPlayerError(userMessages[4]);\n \t\t} else if (result == Engine.VALID_MOVE_NO_FINALIZE) {\n \t\t\t// just wait for another turn\n \t\t} else {\n \t\t\t// turn is over, rotate\n \t\t\tif (this.engine.finalizeTurn()) {\n \t\t\t\tthis.notifyPlayer(userMessages[5]);\n \t\t\t\tthis.markGameComplete();\n \t\t\t} else {\n \t\t\t\tthis.initiateTurn();\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "e1a3b0493e650413608aacec9aae117d", "score": "0.67309886", "text": "private int checkMove(final int move) {\n random = new Random();\n if (!super.noCollide(move)) {\n return checkMove(random.nextInt(9));\n }\n return move;\n }", "title": "" }, { "docid": "ce71d039d85a0d104b635013cdd1641c", "score": "0.6691235", "text": "public boolean isPossibleMove(int player)\r\n {\r\n // put your code here\r\n return forcedMove(player).length!=0 || getAllMoves(player).length!=0;\r\n }", "title": "" }, { "docid": "085bee645e18af2a0bc16337a383bc4a", "score": "0.6677896", "text": "public void initiateTurn() { moves_remaining = initial_moves; }", "title": "" }, { "docid": "43bc70ca5a7afa5f6312f2cc127ee3ec", "score": "0.6676281", "text": "private boolean checkWin(node move) {\n\t\tboolean win = false;\n\t\tString x = move.getPiece();\n\t\tString player = move.getPiece();\n\t\tString y = player + player + player + player;\n\n\t\t// check vertical\n\t\tfor (int i = 1; i < 4; i++) {\n\t\t\tx = x + Board[(move.ringNum() + i) % 4][move.getLine()].getPiece();\n\t\t}\n\t\twin = resolve(x, y);\n\t\tif (win)\n\t\t\treturn win;\n\t\telse\n\t\t\tx = move.getPiece();\n\t\t// check horizontal\n\t\tfor (int i = 1; i < 4; i++) {\n\t\t\tx = x + Board[move.ringNum()][(move.getLine() + i) % 12].getPiece();\n\t\t}\n\t\tfor (int i = 1; i < 4; i++) {\n\t\t\tx = Board[move.ringNum()][(move.getLine() - i+12) % 12].getPiece() + x;\n\t\t}\n\n\t\twin = resolve(x, y);\n\t\tif (win)\n\t\t\treturn win;\n\t\telse\n\t\t\tx = move.getPiece();\n\n\t\t// check diag\n\t\tfor (int i = 1; i < 4; i++) {\n\t\t\tif (move.ringNum() - i >= 0)\n\t\t\t\tx = Board[move.ringNum() - i][(move.getLine() - i+12) % 12]\n\t\t\t\t\t\t.getPiece() + x;\n\t\t\tif (move.ringNum() + i < 4)\n\t\t\t\tx = x\n\t\t\t\t\t\t+ Board[move.ringNum() + i][(move.getLine() + i) % 12]\n\t\t\t\t\t\t\t\t.getPiece();\n\t\t}\n\t\twin = resolve(x, y);\n\t\tif (win)\n\t\t\treturn win;\n\t\telse\n\t\t\tx = move.getPiece();\n\n\t\t// check diag\n\t\tfor (int i = 1; i < 4; i++) {\n\t\t\tif (move.ringNum() - i >= 0)\n\t\t\t\tx = Board[move.ringNum() - i][(move.getLine() + i) % 12]\n\t\t\t\t\t\t.getPiece() + x;\n\t\t\tif (move.ringNum() + i < 4)\n\t\t\t\tx = x\n\t\t\t\t\t\t+ Board[move.ringNum() + i][(move.getLine() - i+12) % 12]\n\t\t\t\t\t\t\t\t.getPiece();\n\t\t}\n\t\tif (win)\n\t\t\treturn win;\n\n\t\treturn win;\n\t}", "title": "" }, { "docid": "306cde9e952ffe374ad81fd6f2cdca2f", "score": "0.6672756", "text": "@Test\n public void ableToMoveTest() {\n /*\n At current position and out of bound\n */\n boolean case1 = bishopTestPiece.ableToMove(3, 3);\n assertEquals(case1, false);\n boolean case2 = bishopTestPiece.ableToMove(8, 8);\n assertEquals(case2, false);\n /*\n Possible moving position\n */\n boolean case3 = bishopTestPiece.ableToMove(5, 1);\n assertEquals(case3, true);\n boolean case4 = bishopTestPiece.ableToMove(1, 5);\n assertEquals(case4, true);\n boolean case5 = bishopTestPiece.ableToMove(1, 1);\n assertEquals(case5, true);\n boolean case6 = bishopTestPiece.ableToMove(5, 5);\n assertEquals(case6, true);\n /*\n Not possible moving position\n */\n boolean case7 = bishopTestPiece.ableToMove(0, 3);\n assertEquals(case7, false);\n boolean case8 = bishopTestPiece.ableToMove(6, 3);\n assertEquals(case8, false);\n boolean case9 = bishopTestPiece.ableToMove(3, 0);\n assertEquals(case9, false);\n boolean case10 = bishopTestPiece.ableToMove(3, 6);\n assertEquals(case10, false);\n\n }", "title": "" }, { "docid": "27e4e8a80798b2d4e6b48cb2d827a364", "score": "0.6669608", "text": "public int makeMove(){\n \n turn++;\n \n //This is turn one. If the computer goes first it plays the center, otherwise it plays the top left corner.\n if(turn == 1) {\n \n if(TicTacToeBoard.isValidSpace(5))\n return 5;\n else\n return 1;\n }\n \n //This is turn two.\n if(turn==2) {\n \n if(block()!=-1) return block();\n \n if(TicTacToeBoard.isPlayerX())\n ourSymbol = 1;\n else\n ourSymbol = 2;\n \n if(win()!=-1) return win();\n else if(block()!=-1) return block();\n else if(blockFork()!=-1) return blockFork();\n //return a corner\n else {\n for(int i=0; i<5; i++) { \n if(i==1 && TicTacToeBoard.isValidSpace(1)) return 1;\n else if(i==2 && TicTacToeBoard.isValidSpace(3)) return 3;\n else if(i==3 && TicTacToeBoard.isValidSpace(7)) return 7;\n else if(i==4 && TicTacToeBoard.isValidSpace(9)) return 9;\n }\n }\n return -3;\n }\n \n //This is turn 3. It checks for winning moves, blocking moves, and fork blocking moves. \n if(turn==3) {\n if(win()!=-1) return win();\n else if(block()!=-1) return block();\n else if(blockFork()!=-1) return blockFork();\n else return randomMove();\n }\n \n //This is turn 4. It checks for winning moves and blocking moves, other wise it returns a random move. \n if(turn==4) {\n if(win()!=-1) return win();\n else if(block()!=-1) return block();\n else return randomMove();\n }\n \n //This is the same as turn 5. \n if(turn==5) {\n if(win()!=-1) return win();\n else if(block()!=-1) return block();\n else return randomMove();\n }\n \n return -2;\n }", "title": "" }, { "docid": "9ed2c0166900e1d7de512b3d8e568883", "score": "0.6649344", "text": "public void continueTurn();", "title": "" }, { "docid": "21351d834f519d3fd3875e4574730da6", "score": "0.6616004", "text": "private void anyMoves()\n {\n canMove();\n if(!canMove)\n { canMove = true;\n changePlayer();\n canMove();\n if(!canMove)\n {\n JOptionPane.showMessageDialog(reversi.getFrame(),reversi.getWinner(),\"GAME OVER\", JOptionPane.INFORMATION_MESSAGE); // shows who the winner is\n }\n }\n }", "title": "" }, { "docid": "c11abdf939dea77d44a567a5ab88a093", "score": "0.6599787", "text": "boolean makeMove(CheckersMove move) {\r\n return makeMove(move.fromRow, move.fromCol, move.toRow, move.toCol);\r\n }", "title": "" }, { "docid": "f5a9cd691d614c5cd443edd024cfcb70", "score": "0.6584516", "text": "public boolean moveAndCheck (int numOfMoves) {// returns true if the moving player has won\n\t\tsetBoard(getPieceX(getCurrentPlayer()), getPieceY(getCurrentPlayer()), -1);\n\t\tfor (int i = 0; i < numOfMoves; i++) {\n\t\t\tmoveOnce();\n\t\t\tif (getPieceY(getCurrentPlayer()) == 9 && getPieceX(getCurrentPlayer()) == 0)// when at the top row 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// first column\n\t\t\t\treturn true;// player has won\n\t\t}\n\t\tint currentSnake = checkSnake();\n\t\tif (currentSnake != -1) {\n\t\t\tSystem.out.println(\"You landed on a snake, you slid down to \" + snakes[currentSnake][0] + \",\"\n\t\t\t\t\t+ snakes[currentSnake][1]);\n\t\t\tsetPiece(getCurrentPlayer(), snakes[currentSnake][0], snakes[currentSnake][1]);\n\t\t}\n\t\tint currentLadder = checkLadder();\n\t\tif (currentLadder != -1) {\n\t\t\tSystem.out.println(\"You landed on a ladder, you climbed up to \" + ladders[currentLadder][2] + \",\"\n\t\t\t\t\t+ ladders[currentLadder][3]);\n\t\t\tsetPiece(getCurrentPlayer(), ladders[currentLadder][2], ladders[currentLadder][3]);\n\t\t}\n\t\tsetBoard(getPieceX(getCurrentPlayer()), getPieceY(getCurrentPlayer()), getCurrentPlayer());\n\t\tif (getCurrentPlayer() == getNumOfPieces() - 1)\n\t\t\tsetCurrentPlayer(0);\n\t\telse\n\t\t\tnextPlayer();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "930e41df30293017b4fdcef8dc92f9f9", "score": "0.65468186", "text": "boolean hasMove();", "title": "" }, { "docid": "bac71ccc942237ab3c599882d3289245", "score": "0.654167", "text": "private static boolean attemptMove(BorderPane destTile, Piece piece, int destRow, int destCol) {\n BorderPane currTile = findTile(piece.getCurrRow(), piece.getCurrCol());\n LinkedList<int[]> possibleAttacks = searchForAttacks(piece);\n Text capturedBlackCount = boardGUI.getCapturedBlackCount();\n\n if (possibleAttacks.size() > 0) {\n\n for (int[] attack : possibleAttacks) {\n if ((attack[0] - 1) == destRow && (attack[1] - 1) == destCol) {\n addPieceToSidePanel(board.getPieceGUILoc(attack[2] - 1, attack[3] - 1));\n capturedBlackCount.setText((Integer.parseInt(capturedBlackCount.getText()) + 1) + \"\");\n board.removePieceAbstractionLoc(attack[2], attack[3]);\n BorderPane capturedPieceTile = findTile(attack[2] - 1, attack[3] - 1);\n\n capturedPieceTile.getChildren().clear();\n currTile.getChildren().clear();\n board.movePiece(piece.getCurrRow(), piece.getCurrCol(), destRow, destCol);\n piece.setLocation(destRow, destCol);\n\n possibleAttacks = searchForAttacks(piece);\n\n if (possibleAttacks.size() > 0) {\n destTile.setCenter(piece.getGUIpiece());\n additionalAttack = true;\n return false;\n\n } else {\n\n if (piece.getType() == REGULAR && currentPlayer == RED && destRow == 0) {\n makeKing(piece, currentPlayer);\n } else if (piece.getType() == REGULAR && currentPlayer == BLACK && destRow == 7) {\n makeKing(piece, currentPlayer);\n }\n\n unselectPiece(piece, piece.getGUIpiece());\n destTile.setCenter(piece.getGUIpiece());\n selectedPiece = null;\n selected = false;\n currentPlayer = currentPlayer.opposite();\n additionalAttack = false;\n return true;\n }\n }\n\n }\n } else if (legalMove(piece, destTile, destRow, destCol)) {\n\n if (piece.getType() == REGULAR && currentPlayer == RED && destRow == 0) {\n makeKing(piece, currentPlayer);\n } else if (piece.getType() == REGULAR && currentPlayer == BLACK && destRow == 7) {\n makeKing(piece, currentPlayer);\n }\n\n currTile.getChildren().clear();\n unselectPiece(piece, piece.getGUIpiece());\n destTile.setCenter(piece.getGUIpiece());\n board.movePiece(piece.getCurrRow(), piece.getCurrCol(), destRow, destCol);\n piece.setLocation(destRow, destCol);\n selectedPiece = null;\n selected = false;\n currentPlayer = currentPlayer.opposite();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "35220834fa1cd6c818c00e2dcdf433f4", "score": "0.6541352", "text": "private ArrayList<Move> checkMoveFrom(boolean used1, boolean used2) {\n ArrayList<Move> moves = new ArrayList<>();\n int mulplayer = playertomove(hasToMove);\n boolean find = false;\n boolean findleft = false;\n \n /*\n * Nel caso in cui mi trovi nello stato finale del gioco e che quindi \n * possa effettivamente far uscire le pedine dalla tavola\n */\n if (playboard.canMoveHome(hasToMove)) {\n\n if (playboard.getOnBar(hasToMove).isEmpty()) {\n /*\n * In base al player che sta giocando, devo adattare il valore del dado al senso di marcia.\n */\n int tmpdc1 = (hasToMove == Board.WHITE) ? dice1 : (Board.NUM_BOARD - dice1 + 1);\n int tmpdc2 = (hasToMove == Board.WHITE) ? dice2 : (Board.NUM_BOARD - dice2 + 1);\n if (used1) {\n /*\n * Controllo se posso far uscire i checkers contenuti nella board di posizione dice\n * importante nella fase finale del gioco.\n */\n if (playboard.getBoard()[tmpdc1].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, tmpdc1, playertoOtherhome(hasToMove), dice1));\n } else {\n \n for (int i = tmpdc1; (((hasToMove == Board.BLACK) && (i >= endIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i <= endIndexBoard(hasToMove)))); i = i + (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, i, i + (dice1 * mulplayer), dice1));\n find = true;\n }\n }\n\n if (!find) {\n for (int i = tmpdc1; (((hasToMove == Board.BLACK) && (i <= startIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i >= startIndexBoard(hasToMove)))); i = i - (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove) && !findleft) {\n moves.add(new Move(hasToMove, i, playertoOtherhome(hasToMove), dice1));\n findleft = true;\n }\n }\n\n }\n\n }\n\n }\n\n if (used2) {\n /*\n * Controllo se posso far uscire i checkers contenuti nella board = dice\n */\n if (playboard.getBoard()[tmpdc2].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, tmpdc2, playertoOtherhome(hasToMove), dice2));\n } else {\n\n\n for (int i = tmpdc2; (((hasToMove == Board.BLACK) && (i >= endIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i <= endIndexBoard(hasToMove)))); i = i + (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, i, i + (dice2 * mulplayer), dice2));\n find = true;\n }\n }\n\n if (!find) {\n for (int i = tmpdc2; (((hasToMove == Board.BLACK) && (i <= startIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i >= startIndexBoard(hasToMove)))); i = i - (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove) && !findleft) {\n moves.add(new Move(hasToMove, i, playertoOtherhome(hasToMove), dice2));\n findleft = true;\n }\n }\n }\n\n }\n\n }\n\n }\n } else {\n\n for (int i = 1; (i <= 24 && playboard.getOnBar(hasToMove).isEmpty()); i++) {\n if (playboard.getBoard()[i].getPlayer() == hasToMove) {\n /*\n * Creo le 2 mosse relative ai dadi\n */\n\n if (used1) {\n moves.add(new Move(hasToMove, i, i + (dice1 * mulplayer), dice1));\n }\n if (used2) {\n moves.add(new Move(hasToMove, i, i + (dice2 * mulplayer), dice2));\n }\n\n }\n }\n }\n\n /*\n * Creo 2 move proventi dal bar\n */\n int bar = playboard.getOnBar(hasToMove).getNumofcheckers();\n\n if ((bar > 0) && (used1)) {\n moves.add(new Move(hasToMove, playertobar(hasToMove), playertoOtherobar(hasToMove) + (dice1 * mulplayer), dice1));\n\n }\n if ((bar > 0) && (used2)) {\n moves.add(new Move(hasToMove, playertobar(hasToMove), playertoOtherobar(hasToMove) + (dice2 * mulplayer), dice2));\n }\n\n if (verbose) {\n for (Move move : moves) {\n System.out.println(\"checkfrom - \" + move.toString());\n }\n }\n\n return moves;\n }", "title": "" }, { "docid": "6266582a1382b8ce48f1fa140a45537a", "score": "0.6525618", "text": "public boolean skipTurn();", "title": "" }, { "docid": "8d342a9a62189dea6f51ba70cbb22592", "score": "0.65175176", "text": "public boolean checkClickMovement() {\n if (selectedPiece != null && board.getSquare(clickedSquare) != null) { // Check that there was a piece selected and click is on the board\n if (squareList.contains(board.getSquare(clickedSquare))) { // Check if clicked square was valid move to empty square\n movePiece(selectedPiece, board.getSquare(clickedSquare), selectedPiece.getSquare()); // Move piece in game logic and graphics\n highlightsOff(); // Turn off all the highlights\n if (callForPromote()) // Check if made move allows pawn promoting\n return false;\n turn = !turn;\n updateFen(); // Update FEN before changing board layout\n checkDraw(selectedPiece, board.getSquare(clickedSquare), false); //checks for 50 move rule\n if (selectedPiece.getPieceType().equals(\"King\")) // Check castling for kings\n if (castlingSquares.contains(board.getSquare(clickedSquare))) // Target square is one of the castling rules squares. Make move for rook also\n movePiece(rookForSquare.get(board.getSquare(clickedSquare)), squareForRook.get(rookForSquare.get(board.getSquare(clickedSquare))), rookForSquare.get(board.getSquare(clickedSquare)).getSquare());\n // Check if the move caused check\n if (checkKingsForCheckmate() || checkForStalemate() || (modeKingOfTheHill && checkKingOfTheHill()))\n return false; // One king in checkmate, break here\n checkRotating(); // Check if playerTwo is AI and rotate\n return true;\n } else if (squareListTwo.contains(board.getSquare(clickedSquare))) { // Check if clicked square was valid capture movement\n int tempPieceId; // Temporarily stores id for texture\n Square enPassSquare; // Replaces square when enPassant is active\n if (board.getSquare(clickedSquare).isEnPassSquare() && // Check if the square clicked is an enPassant move\n selectedPiece.getPieceType().equals(\"Pawn\")) { // And selected piece is pawn\n if (selectedPiece.getPlayer().isFirst()) // Checks if player one\n enPassSquare = board.getSquare(clickedSquare.charAt(0) + \"\" + 5); // Show piece on doubled move\n else // Or player 2\n enPassSquare = board.getSquare(clickedSquare.charAt(0) + \"\" + 4); // Show piece on doubled move (other side of board)\n tempPieceId = enPassSquare.getPiece().getTextureId(); //set texture id to the square with the piece on it\n board.getEnPassPiece().getSquare().setPiece(null); // Eliminate piece from en pass square\n movePiece(selectedPiece, board.getSquare(clickedSquare), selectedPiece.getSquare()); // Move piece to chosen square\n graphics.eliminatePiece(tempPieceId, enPassSquare.getId()); // Eliminate old piece from graphics\n } else { // Normal capture move - not enPassantCapture\n tempPieceId = board.getSquare(clickedSquare).getPiece().getTextureId(); // Catch old piece id safe temporary\n board.getSquare(clickedSquare).getPiece().remove(false); // Eliminate old piece from game logic\n movePiece(selectedPiece, board.getSquare(clickedSquare), selectedPiece.getSquare()); // Move piece to chosen square\n graphics.eliminatePiece(tempPieceId, board.getSquare(clickedSquare).getId()); // Eliminate old piece from graphics\n }\n highlightsOff(); // Turn off all the highlights\n if (callForPromote()) // Check if made move allows pawn promoting\n return false;\n turn = !turn;\n updateFen(); // Update FEN before changing board layout\n checkDraw(null, null, true); //checks for 50 move rule\n // Check if the move caused check\n if (checkKingsForCheckmate() || checkForStalemate() || (modeKingOfTheHill && checkKingOfTheHill()))\n return false; // One king in checkmate, break here\n checkRotating(); // Check if playerTwo is AI and rotate\n return true;\n }\n }\n return false; // No move was made\n }", "title": "" }, { "docid": "109de53155e309f49bb004b1b7a53277", "score": "0.6517189", "text": "private boolean Turn(coordinatesMessage msg)\r\n\t{\r\n\t\tif(msg.ID.equals(\"Player1\") && player1.turn)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(msg.ID.equals(\"Player2\") && player2.turn)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e2292a26395f6c6259800f10dc71dddf", "score": "0.6506227", "text": "boolean makeMove(int fromRow, int fromCol, int toRow, int toCol) {\r\n // Todo: update the board for the given move.\r\n // You need to take care of the following situations:\r\n // 1. move the piece from (fromRow,fromCol) to (toRow,toCol)\r\n // 2. if this move is a jump, remove the captured piece\r\n // 3. if the piece moves into the kings row on the opponent's side of the board, crowned it as a king\r\n \tif(Math.abs(toRow - fromRow) == 2) { // is a jump\r\n \t\tif((toRow - fromRow)<0 && (board[fromRow][fromCol] == RED || (board[fromRow][fromCol] == RED_KING && toRow - fromRow < 0 ))) {\r\n \t\t\tif(toCol - fromCol > 0) {\r\n \t\t\t\tboard[fromRow-1][fromCol+1]= EMPTY;\r\n \t\t\t}else {\r\n \t\t\t\tboard[fromRow-1][fromCol-1]= EMPTY;\r\n \t\t\t}\r\n \t\t}\r\n \t\tif(board[fromRow][fromCol] == RED_KING && (toRow - fromRow)>0) {\r\n \t\t\tif(toCol - fromCol > 0) {\r\n \t\t\t\tboard[fromRow+1][fromCol+1]= EMPTY;\r\n \t\t\t}else {\r\n \t\t\t\tboard[fromRow+1][fromCol-1]= EMPTY;\r\n \t\t\t}\r\n \t\t}\r\n \t\tif((toRow - fromRow)>0 && (board[fromRow][fromCol] == BLACK || (board[fromRow][fromCol] == BLACK_KING && toRow - fromRow > 0 ))) {\r\n \t\t\tif(toCol - fromCol > 0) {\r\n \t\t\t\tboard[fromRow+1][fromCol+1]= EMPTY;\r\n \t\t\t}else {\r\n \t\t\t\tboard[fromRow+1][fromCol-1]= EMPTY;\r\n \t\t\t}\r\n \t\t}\r\n \t\tif((toRow - fromRow)<0 && board[fromRow][fromCol] == BLACK_KING) {\r\n \t\t\tif(toCol - fromCol > 0) {\r\n \t\t\t\tboard[fromRow-1][fromCol+1]= EMPTY;\r\n \t\t\t}else {\r\n \t\t\t\tboard[fromRow-1][fromCol-1]= EMPTY;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}\r\n \tif(board[fromRow][fromCol] == RED && toRow == 0) { // if a red coin reaches the opponents base\r\n \t\tboard[toRow][toCol] = RED_KING;\r\n \t\tboard[fromRow][fromCol] = EMPTY;\r\n \t\treturn true;\r\n \t}else if(board[fromRow][fromCol] == BLACK && toRow == board.length-1) { // if a black coin reaches the opponents base\r\n \t\tboard[toRow][toCol] = BLACK_KING;\r\n \t\tboard[fromRow][fromCol] = EMPTY;\r\n \t\treturn true;\r\n \t}else {\r\n \t\tboard[toRow][toCol] = board[fromRow][fromCol];\r\n \t\tboard[fromRow][fromCol] = EMPTY;\r\n \t\treturn false;\r\n \t}\r\n }", "title": "" }, { "docid": "fb4022cca15cffd7cf0043c3e601478d", "score": "0.64979035", "text": "void doTurn(TurnDirection direction);", "title": "" }, { "docid": "4502c59d379b8430d596761708c0bee7", "score": "0.6489635", "text": "private void advanceTurn() {\n mCurrentTurn = mCurrentTurn == mWhite ? mBlack : mWhite;\n }", "title": "" }, { "docid": "e95899d06437dbcd0dc1b4173eeba33a", "score": "0.6485628", "text": "public boolean nextMove(char whichPlayer) {\n\t\tif (done)\n\t\t\treturn true;\n\t\tif ((whichPlayer != 'X') && (whichPlayer != 'O')) {\n\t\t\twhichPlayer = Character.toUpperCase(whichPlayer);\n\t\t\tif ((whichPlayer != 'X') && (whichPlayer != 'O')) {\n\t\t\t\tthrow new Error(\"nextMove(): whichPlayer must be either 'X' or 'O'\");\n\t\t\t}\n\t\t}\n\t\tPlayer player = (whichPlayer == 'X') ? xPlayer : oPlayer;\n\t\tint idx = player.chooseNextMove(gameBoard.currentBoard._3x3grid, whichPlayer);\n\t\tint row = (idx / 3), col = idx - (row * 3);\n\t\tif (gameBoard.currentBoard._3x3grid[row][col] != ' ') {\n\t\t\tthrow new InternalError(\"Attempt to put an \" + whichPlayer\t+ \" in row,col \" + row + \",\" + col\t+ \" which already contains an \" + gameBoard.currentBoard._3x3grid[row][col]);\n\t\t}\n\t\t\n\t\tgameBoard.saveBoardAndIncrementMovesCount(row, col, whichPlayer);\n\n\t\t//grid[row][col] = whichPlayer;\n\t\tif (((winner = GameBoard.getWinnerForMove(row, col,gameBoard.currentBoard._3x3grid)) != ' ')\t\n\t\t\t\t|| ((gameBoard.currentBoard.getMovesSoFar()-9) == 1)) {\n\t\t\tdone = true;\n\t\t\treturn true;\n\t\t}\n\t\t// / if (!forcePlayToEnd) {\n\t\tif (!anyPossibleWins(gameBoard.currentBoard._3x3grid)) {\n\t\t\tdone = true;\n\t\t\treturn true;\n\t\t}\n\t\t// / }\n\t\treturn false;\n\t}", "title": "" }, { "docid": "93e1a1e817ce1a74464c99a9e8769acb", "score": "0.64793843", "text": "void nextTurn() throws CheckmateException {\n // TODO maybe make the promote method also update opposing team, check(), and updatecurrent team to allow for\n // promotion on the next player's turn but make it feel like it happened before that\n promotable = updatePromotable();\n currentTurn = !currentTurn;\n turnCount++;\n updateOpposingTeam();\n check();\n updateCurrentTeam();\n if(checkmate()){\n throw new CheckmateException(\"Checkmate!\");\n }\n }", "title": "" }, { "docid": "5f43a2e778e52222242ffb44c031bc0d", "score": "0.64639276", "text": "private void checkRepeated() {\n if (repeatedPosition()) {\n _winner = _turn;\n }\n }", "title": "" }, { "docid": "4bbe759f8bf35903434583d13d7aa745", "score": "0.64470613", "text": "private boolean canMove(Step steps, Board board) {\r\n\t\tString direction = steps.getDir();\r\n\t\tint count = steps.getCount();\r\n\t\tstepCount += count;\r\n\t\tint col = characterPiece.getX();\r\n\t\tint row = characterPiece.getY();\r\n\t\tint lastRow = row;\r\n\t\tint lastCol = col;\r\n\t\t\r\n\t\t//checks if user is entering the corner doors in the right direction\r\n\t\tif(getCellDirection(direction, row, col, board).isDoorway()) { \r\n\t\t\tSystem.out.println(getCellDirection(direction, row, col, board).toString());\r\n\t\t\tSystem.out.println(lastCol + \", \"+ lastRow);\r\n\t\t\tSystem.out.println(!(lastCol == 17 && lastRow == 20));\r\n\t\t\tif((getCellDirection(direction, row, col, board).toString() == \"O\")) {\r\n\t\t\t\tif(!(lastCol == 6 && lastRow == 18)) {\r\n\t\t\t\t\tsetInvalidMessage(\"Can't enter door from this direction\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}else if(board.getCell(row, col).toString() == \"S\") {\r\n\t\t\t\t\r\n\t\t\t\tif(!(lastCol == 17 && lastRow == 20)) { //not working and i have no idea why\r\n\t\t\t\t\tsetInvalidMessage(\"Can't enter door from this direction\"); \r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(board.getCell(row, col).toString() == \"C\") { //needs to be checked\r\n\t\t\t\tif(!(lastCol == 18 && lastRow == 5)) {\r\n\t\t\t\t\tsetInvalidMessage(\"Can't enter door from this direction\"); \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\t\r\n\t\tif (stepCount > numSteps) { //not enough steps left to make the move.\r\n\t\t\tint movesOver = stepCount - numSteps;\r\n\t\t\tsetInvalidMessage(\"Error: Not all moves used. \" + movesOver + \" step(s) to many\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < count; i++) {\r\n\t\t\tif(getCellDirection(direction, row, col, board)==null) { //player has gone off the board\r\n\t\t\t\tsetInvalidMessage(\"Error: Cannot move off the board\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//checks that the next cell is a valid cell for a player to walk on\r\n\t\t\tif(!(getCellDirection(direction, row, col, board).isHallway() || getCellDirection(direction, row, col, board).isRoom())) {\r\n\t\t\t\tsetInvalidMessage(\"Error: Tried to walk on invalid cell: \" + getCellDirection(direction, row, col, board) + \" At Row: \"+ row + \" Col: \" + col);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif(getCellDirection(direction, row, col, board).isOccupied() && !board.getCell(row, col).isRoom()) { //check to stop going through other players\r\n\t\t\t\tsetInvalidMessage(\"Error: Player in the way\" + \" Row: \" + row + \" Col: \" + col);\r\n\t\t\t\treturn false;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t//checks that player piece doesn't go through room wall. (From hallway to room thats not doorway)\r\n\t\t\tif(board.getCell(row, col).isHallway() && getCellDirection(direction, row, col, board).isRoom() && !getCellDirection(direction, row, col, board).isDoorway()) {\r\n\t\t\t\tsetInvalidMessage(\"Error: Player cant move through wall\");\r\n\t\t\t\treturn false;\r\n\t\t\t} \r\n\t\t\t//checks that player isn't leaving through a wall\r\n\t\t\tif(board.getCell(row, col).isRoom() && !board.getCell(row, col).isDoorway() && getCellDirection(direction, row, col, board).isHallway()) {\r\n\t\t\t\tsetInvalidMessage(\"Error: Leave the room through the doorway\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(getCellDirection(direction, row, col, board).isRoom()) {stepCount--;} //moving in a room doesn't take up steps\r\n\t\t\t\r\n\t\t\tBoardPosition currentPos = new BoardPosition(row, col);\r\n\t\t\tfor(BoardPosition cell: visitedCells) { //Stop playerPiece going on the same square twice\r\n\t\t\t\tif(cell.equals(currentPos)) { \r\n\t\t\t\t\tsetInvalidMessage(\"Error: Cannot revisit the same square in the same move\");\r\n\t\t\t\t\treturn false;\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\tvisitedCells.add(currentPos);\r\n\t\t\t\r\n\t\t\t//keeps track if the piece is in the doorway\r\n\t\t\tif(getCellDirection(direction, row, col, board).isDoorway()) {characterPiece.setInDoorway(true);}\r\n\t\t\telse {\r\n\t\t\t\tcharacterPiece.setInDoorway(false);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\tif(direction == \"N\") {row -= 1;}\r\n\t\t\telse if(direction == \"S\") {row += 1;}\r\n\t\t\telse if(direction == \"E\") {col += 1;}\r\n\t\t\telse if(direction == \"W\") {col -= 1;}\r\n\t\t\telse {throw new Error(\"Invalid direction custom move apply\");}\r\n\r\n\t\t}\r\n\t\t\r\n\r\n\t\tcharacterPiece.move(col, row);\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "c68a5876679e70c8451cb2d16c687fef", "score": "0.6423261", "text": "@java.lang.Override\n public boolean hasMove() {\n return msgCase_ == 4;\n }", "title": "" }, { "docid": "d0a1268055d0844a1972442676fae7aa", "score": "0.6406148", "text": "boolean hasMove(Piece side) {\n if (legalMoves(side).size() == 0) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ee720e624a0d4f6889384c6a5471cee2", "score": "0.6399727", "text": "public boolean turn(int index) {\n\n\t\tif (midTurn()) {\n\t\t\tSystem.out.println(\"can go yet still moving pices\");\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean winner = winner();\n\n\t\tif (players.getCurrentPlayer() == 0) {\n\t\t\tgoAgain = animation.animate(board.getCups(), index, board);\n\n\t\t\tsetPlayersEnabled();\n\t\t\trepaint();\n\t\t} else if (players.getCurrentPlayer() == 1) {\n\t\t\tmouseEnabled = false;\n\t\t\tcomputerAI.run();\n\n\t\t\tgoAgain = computerAI.goAgain();\n\n\t\t}\n\n\t\tint piecesAdded = board.checkForMoves();\n\t\tif (piecesAdded != 0) {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Left over peices added to \" + players.playersName(piecesAdded) + \"'s goal!!\");\n\t\t\trepaint();\n\t\t}\n\t\tif (!winner) {\n\t\t\tif (goAgain) {\n\t\t\t\tchangeDescription(3);\n\t\t\t\tboolean successTurn = goalTurn();\n\t\t\t\twhile (!successTurn) {\n\t\t\t\t\tsuccessTurn = goalTurn();\n\t\t\t\t\twaiting();\n\t\t\t\t}\n\n\t\t\t} else if (!goAgain) {\n\t\t\t\tgoAgain = false;\n\t\t\t\tplayers.switchPlayers();\n\t\t\t\tmouseEnabled = true;\n\t\t\t}\n\t\t\tchangeDescription(1);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "223c2c6a9a63f5737e0201059ac55509", "score": "0.63996726", "text": "public boolean testCheck() {\n {\n int kingRow = 0, kingCol = 0;\n //finds current player's king\n for (int r = 0; r < 8; r++) {\n for (int c = 0; c < 8; c++) {\n if (board[c][r] != null) {\n if (currentTurn == 'w') {\n //king is 100 value\n if (board[c][r].getValue() == 100 && board[c][r].getColor() == 'w') {\n kingRow = r;\n kingCol = c;\n break;\n }\n } else {\n if (board[c][r].getValue() == 100 && board[c][r].getColor() == 'b') {\n kingRow = r;\n kingCol = c;\n break;\n }\n }\n }\n }\n }\n //checks if it is being attacked\n for (int r = 0; r < 8; r++) {\n for (int c = 0; c < 8; c++) {\n if (board[c][r] != null) {\n if (board[c][r].getColor() != currentTurn) {\n if (board[c][r].tryMove(new Move(c, r, kingCol, kingRow, board[c][r]), board)) {\n return true;\n }\n }\n }\n }\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "9bcf03e3805afc640335ed1487cfc83d", "score": "0.63976115", "text": "public int getCheckingMoves(int side, int[] Moves, int start, Board.CheckInfo checkInfo) \n {\n long moves, doubleMoves, dcMoves, dcDoubleMoves;\n int index = start;\n long pieces = chessBoard.pieceBits[side][Global.PIECE_PAWN];\n long dcPieces = chessBoard.pieceBits[side][Global.PIECE_PAWN] & checkInfo.dcCandidates;\n if( side == Global.COLOUR_WHITE)\n {\n moves = pieces << 8 & ~chessBoard.bitboard & ~Global.rankMasks[7];\n dcMoves = dcPieces << 8 & ~chessBoard.bitboard & ~Global.rankMasks[7];\n doubleMoves = moves << 8 & Global.rankMasks[3] & ~chessBoard.bitboard;\n }\n else\n {\n moves = pieces >> 8 & ~chessBoard.bitboard & ~Global.rankMasks[0];\n dcMoves = dcPieces >> 8 & ~chessBoard.bitboard & ~Global.rankMasks[0];\n doubleMoves = moves >> 8 & Global.rankMasks[4] & ~chessBoard.bitboard;\n }\n moves &= checkInfo.checkSquares[Global.PIECE_PAWN];\n while (moves != 0) \n {\n long toBit = moves & -moves;\n moves ^= toBit;\n int to = Long.numberOfTrailingZeros(toBit);\n int from = to + Global.behindRank[side];\n moveOrder[index] = Hist[side][5][to];\n Moves[index++] = MoveFunctions.makeMove(to, from, Global.ORDINARY_MOVE);\n }\n \n dcDoubleMoves = dcMoves;\n while (dcMoves != 0) \n {\n int enemyKing = chessBoard.pieceList[4 + (side^1) * 6][0];\n long toBit = dcMoves & -dcMoves;\n dcMoves ^= toBit;\n int to = Long.numberOfTrailingZeros(toBit);\n int from = to + Global.behindRank[side];\n if(((Global.mask_between[enemyKing][from] & (1L << to)) == 0 )\n && ((Global.mask_between[enemyKing][to] & (1L << from)) == 0) ) {\n moveOrder[index] = Hist[side][5][to];\n Moves[index++] = MoveFunctions.makeMove(to, from, Global.ORDINARY_MOVE);\n }\n else {\n dcDoubleMoves ^= toBit;\n }\n }\n \n doubleMoves &= checkInfo.checkSquares[Global.PIECE_PAWN];\n while (doubleMoves != 0) \n {\n long toBit = doubleMoves & -doubleMoves;\n doubleMoves ^= toBit;\n int to = Long.numberOfTrailingZeros(toBit);\n int from = to + Global.behindRank[side] * 2;\n moveOrder[index] = Hist[side][5][to];\n Moves[index++] = MoveFunctions.makeMove(to, from, Global.DOUBLE_PAWN);\n }\n \n if( side == Global.COLOUR_WHITE) {\n dcDoubleMoves = dcDoubleMoves << 8 & Global.rankMasks[3] & ~chessBoard.bitboard; \n }\n else {\n dcDoubleMoves = dcDoubleMoves >> 8 & Global.rankMasks[4] & ~chessBoard.bitboard;\n }\n \n while (dcDoubleMoves != 0) \n {\n int enemyKing = chessBoard.pieceList[4 + (side^1) * 6][0];\n long toBit = dcDoubleMoves & -dcDoubleMoves;\n dcDoubleMoves ^= toBit;\n int to = Long.numberOfTrailingZeros(toBit);\n int from = to + Global.behindRank[side] * 2;\n if(((Global.mask_between[enemyKing][from] & (1L << to)) == 0 )\n && ((Global.mask_between[enemyKing][to] & (1L << from)) == 0) ) {\n moveOrder[index] = Hist[side][5][to];\n Moves[index++] = MoveFunctions.makeMove(to, from, Global.DOUBLE_PAWN);\n }\n }\n\n for(int i=0; i<4; i++)\n {\n int pType = i + Global.pieceAdd[side];\n for(int j=0; j < chessBoard.pieceTotals[pType]; j++)\n {\n int from = chessBoard.pieceList[pType][j];\n long toSquares = chessBoard.getAttackBoard(from);\n toSquares &= ~chessBoard.bitboard;\n if( (checkInfo.dcCandidates & (1L << from)) == 0 ) {\n toSquares &= checkInfo.checkSquares[i];\n }\n while (toSquares != 0) {\n long toBit = toSquares & -toSquares;\n toSquares ^= toBit;\n int to = Long.numberOfTrailingZeros(toBit);\n moveOrder[index] = Hist[side][i][to];\n Moves[index++] = MoveFunctions.makeMove(to, from, Global.ORDINARY_MOVE);\n }\n }\n }\n \n int kingPos = chessBoard.pieceList[4 + side * 6][0];\n if( (checkInfo.dcCandidates & (1L << kingPos)) != 0 ) {\n int enemyKing = chessBoard.pieceList[4 + (side^1) * 6][0];\n long toSquares = chessBoard.getAttackBoard(kingPos);\n toSquares &= ~chessBoard.bitboard;\n while (toSquares != 0) {\n long toBit = toSquares & -toSquares;\n toSquares ^= toBit;\n int to = Long.numberOfTrailingZeros(toBit);\n if(((Global.mask_between[enemyKing][kingPos] & (1L << to)) == 0 )\n && ((Global.mask_between[enemyKing][to] & (1L << kingPos)) == 0) ) {\n moveOrder[index] = Hist[side][Global.PIECE_KING][to];\n Moves[index++] = MoveFunctions.makeMove(to, kingPos, Global.ORDINARY_MOVE);\n }\n }\n }\n \n if (chessBoard.castleFlag[side] > Global.CASTLED) {\n long Temp = chessBoard.getKingCastle(((int)(chessBoard.bitboard >>> (56 * side)) & 255));\n if(chessBoard.castleFlag[side] != Global.SHORT_CASTLE && ((Temp & Global.set_Mask[ 2 ]) != 0 ) ) {\n if( !chessBoard.isAttacked(side, 2 + (56 * side)) && !chessBoard.isAttacked(side, 3 + (56 * side)) ) {\n if( chessBoard.MoveGivesCheck(side, MoveFunctions.makeMove(2 + (56 * side), 4 + 56 * side, Global.LONG_CASTLE), checkInfo)) { \n moveOrder[index] = Hist[side][4][2 + (56 * side)];\n Moves[index++] = MoveFunctions.makeMove(2 + (56 * side), 4 + 56 * side, Global.LONG_CASTLE);\n }\n }\n }\n if(chessBoard.castleFlag[side] != Global.LONG_CASTLE && ((Temp & Global.set_Mask[ 6 ])!=0 ) ) {\t\t\n if( !chessBoard.isAttacked(side, 5 + (56 * side)) && !chessBoard.isAttacked(side, 6 + (56 * side)) ) {\n if( chessBoard.MoveGivesCheck(side, MoveFunctions.makeMove(6 + (56 * side), 4 + 56 * side, Global.SHORT_CASTLE), checkInfo)) { \n moveOrder[index] = Hist[side][4][6 + (56 * side)];\n Moves[index++] = MoveFunctions.makeMove(6 + (56 * side), 4 + 56 * side, Global.SHORT_CASTLE);\n }\n }\n }\n }\n \n \n \n sortMoves(start, index, Moves);\n return index;\n }", "title": "" }, { "docid": "2dcb82455063cf08b8cad07a7838d347", "score": "0.63884926", "text": "@java.lang.Override\n public boolean hasTurn() {\n return msgCase_ == 12;\n }", "title": "" }, { "docid": "33040dc3b82e2c6d44f3cbed737b380b", "score": "0.6379558", "text": "private boolean canMove()\n {\n boolean successful = false;\n for( int x = 0; x < a; x++){\n for( int y = 0; y < a; y++){\n if(tiles[x][y].getText()!= getCurrentPlayer()&&tiles[x][y].getText()==\"\")\n { \n //if it finds a tile of the opposite colour or a null, it does nothing\n }\n else if (tiles[x][y].getText()== getCurrentPlayer()) {//if it finds a tile of the current player\n for( int px = x-1; px <= x+1; px++){\n for( int py = y-1; py <= y+1; py++){ //checks all direction of that one tile\n if( px >= 0 && px < a && py >= 0 && py < a ){ //checks if its within the limits of the board\n if((tiles[px][py].getText() == \"\") )\n {\n //if it finds a null, does nothing\n }\n else if(tiles[px][py].getText() != getCurrentPlayer()){ //when it finds a tile of a different colour \n int xOffSet = px - x;\n int yOffSet = py - y;\n for( int i = 2; i < a; i++){ //finds tiles of a different colour the direction of the offset to the origin \n if(xOffSet*i + x >= 0 && xOffSet*i + x < a && yOffSet*i + y >= 0 &&yOffSet*i + y < a){\n if(tiles[xOffSet*i + x][yOffSet*i + y].getText() == \"\") {\n //stops when it finds a null, i.e. finds an empty tile for the current player to place.\n successful = true;\n canMove = true;\n break;\n }\n else if(tiles[xOffSet*i + x][yOffSet*i + y].getText() == getCurrentPlayer())\n {\n //stops if it finds the next tile to be of the same colour\n break;\n }\n\n else if(tiles[xOffSet*i + x][yOffSet*i + y].getText() != getCurrentPlayer())\n {\n //carries on in same direction\n } \n }\n }\n }\n if( px == x && py == y){\n //does nothing\n }\n }\n }\n }\n }\n }\n }\n if (!successful)\n { \n JOptionPane.showMessageDialog(reversi.getFrame(),\"No more moves for Player \" + getCurrentPlayer(),\"ERROR\", JOptionPane.ERROR_MESSAGE); \n canMove = false;\n }\n return canMove;\n }", "title": "" }, { "docid": "2e2aced5f2d7a585e6340846587f0210", "score": "0.6378037", "text": "@Override\n /**\n * moves 1 space up down left right\n * can castle\n * only moves if it isn't put in check afterwards.\n */\n public boolean isMoveValid(Move move, Square[][] board) {\n if(isTryingToCastle(board, move)){\n if(isValidCastle(board, move)){\n //move rook and king\n\n return true;\n } else {\n return false;\n }\n }\n\n ArrayList<Square> possibleMoves = getPossibleMoves(board, move.getbeginLocation());\n Piece piece = grabPieceByLocation(board, move.getEndLocation());\n if(piece == null) {\n return possibleMoves.contains(move.getEndLocation()) && !putInCheck(board,move);\n } else {\n return possibleMoves.contains(move.getEndLocation()) && !capturingSameColor(piece, move) && !putInCheck(board,move);\n }\n }", "title": "" }, { "docid": "e346259ca9e0d8e7e3c8ea64d2c867c6", "score": "0.6376476", "text": "@Override\n\tpublic boolean isLegalMove(ChessBoard board, int toX, int toY) {\n\t\tif (!isMyTurn(board)) {\n\t\t\treturn false;\n\t\t}else if (toX == this.getX() && toY == this.getY()) {\n\t\t\treturn false;\n\t\t}else if (!isDestinationLegal(board, toX, toY)) {\n\t\t\treturn false;\n\t\t}else {\n\t\t\tif (!isRed) {\n\t\t\t\tif(this.getX() > toX)\n\t\t\t\t\treturn false;\n\t\t\t\tif(this.getX() <= 4 && this.getX()==toX)\n\t\t\t\t\treturn false;\n\t\t\t\tif(toX - this.getX() + Math.abs(toY - this.getY()) != 1)\n\t\t\t\t\treturn false;\n\t\t\t}else {\n\t\t\t\tif(this.getX() < toX)\n\t\t\t\t\treturn false;\n\t\t\t\tif (this.getX() >= 5 && this.getX() == toX) \n\t\t\t\t\treturn false;\n\t\t\t\tif(this.getX() - toX + Math.abs(toY - this.getY())!= 1)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "56d8870ba07b3d1d71c55912be17b030", "score": "0.6371665", "text": "protected boolean actTurn(Direction dir) {\n //System.out.println(\"In actTurn: \"+Clock.getBytecodeNum());\n if(navSys.setTurn(dir)) {\n yield();\n return true;\n }\n System.out.println(\"WARNING: tried to turn but couldn't\");\n return false;\n }", "title": "" }, { "docid": "b1ebeabf6654d4c17a1aaba8c1315e21", "score": "0.6371241", "text": "@java.lang.Override\n public boolean hasMove() {\n return msgCase_ == 4;\n }", "title": "" }, { "docid": "f02f0ce159862d979c8658ee4f94ba44", "score": "0.63631886", "text": "public boolean isValidTurn()\n {\n return currentTurn <= numTurns && !finished;\n }", "title": "" }, { "docid": "7634be009a1c51924e81081768114026", "score": "0.6360997", "text": "private boolean isMovePossible(int x, int y, boolean isPlayer)\r\n\t{\r\n\t\tchar element = matrix.getElementAtPosition(x, y);\r\n\r\n\t\tif(element == 'X' || element == 'E')\r\n\t\t\treturn false;\r\n\t\telse if(element == 'I' && thePlayer.hasPlayerPickedTheKey() && isPlayer)\r\n\t\t{\r\n\t\t\tmatrix.playerHasReachedTheKey();\r\n\r\n\t\t\tsetGameMessage(\"You unlocked the door!\");\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse if(element == 'I')\r\n\t\t\treturn false;\r\n\t\telse if(element == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0efd19e1bef72965fa1c6b420c0caf2e", "score": "0.6356973", "text": "public int readNextMove(Piece[][] Board, int turn)throws IOException{\r\n\t\tif(turn % 2 == 0){\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.print(\"White's move: \");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.print(\"Black's move: \");\r\n\t\t}\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString s = br.readLine();\r\n\t\ts = s.trim().replaceAll(\" +\", \" \");\r\n\t\t\r\n\t\tif(drawOffer == true && s.toLowerCase().equals(\"draw\")) {\r\n\t\t\t//System.out.println(\"Draw accepted!\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdrawOffer = false;\r\n\t\t}\r\n\r\n\t\tif(s.toLowerCase().equals(\"resign\")){\r\n\t\t\tif(turn % 2 == 0){\r\n\t\t\t\tSystem.out.println(\"Black wins\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"White wins\");\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\telse if(s.length() == 5 || s.length() == 7 || (s.length() == 11 && s.substring(6).equals(\"draw?\"))){\r\n\t\t\tString coord= convertCoords(s);\r\n\t\t\tif(coord.length()!=4){\r\n\t\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t\t\treturn turn;\r\n\t\t\t}\r\n\t\t\tint row1 = Integer.parseInt(coord.substring(1,2));\r\n\t\t\tint column1 = Integer.parseInt(coord.substring(0,1));\r\n\t\t\tint row2 = Integer.parseInt(coord.substring(3,4));\r\n\t\t\tint column2 = Integer.parseInt(coord.substring(2,3));\r\n\t\t\t\r\n\t\t\t//Bug where if you put something like ae bg, it will work, but that input isn't valid\r\n\t\t\tif(Board[row1][column1]==null){\r\n\t\t\t\t//if there is no piece on the spot the user put as first input\r\n\t\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t\t\treturn turn;\r\n\t\t\t}\r\n\t\t\tif(row1==row2&&column1==column2){\r\n\t\t\t\t//Piece must move to somewhere\r\n\t\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t\t\treturn turn;\r\n\t\t\t}\r\n\t\t\tif(turn % 2 == 0){\r\n\t\t\t\tif(Board[row1][column1].color.toLowerCase().equals(\"bp\") || Board[row1][column1].color.toLowerCase().equals(\"br\") || Board[row1][column1].color.toLowerCase().equals(\"bb\") || Board[row1][column1].color.toLowerCase().equals(\"bq\") || Board[row1][column1].color.toLowerCase().equals(\"bk\") || Board[row1][column1].color.toLowerCase().equals(\"bn\")){\r\n\t\t\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t\t\t\treturn turn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(turn % 2 != 0){\r\n\t\t\t\tif(Board[row1][column1].color.toLowerCase().equals(\"wp\") || Board[row1][column1].color.toLowerCase().equals(\"wr\") || Board[row1][column1].color.toLowerCase().equals(\"wb\") || Board[row1][column1].color.toLowerCase().equals(\"wq\") || Board[row1][column1].color.toLowerCase().equals(\"wk\") || Board[row1][column1].color.toLowerCase().equals(\"wn\")){\r\n\t\t\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t\t\t\treturn turn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint valid = Board[row1][column1].validMove(row1,column1,row2,column2,Board, turn);\r\n\t\t\tif(valid > 0){\r\n\t\t\t\t//Not a special case just a regular move\r\n\t\t\t\tBoard[row2][column2] = Board[row1][column1];\r\n\t\t\t\tBoard[row1][column1] = null;\r\n\t\t\t\t\r\n\t\t\t\t//Checks for special case\r\n\t\t\t\tif(valid == 2) {\r\n\t\t\t\t\tPiece p = Board[row2][column2];\r\n\t\t\t\t\t// First Move\r\n\t\t\t\t\tif('p' == p.getType()) {\r\n\t\t\t\t\t\t((Pawn)Board[row2][column2]).firstMove = turn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if('R' == p.getType()) {\r\n\t\t\t\t\t\t((Rook)Board[row2][column2]).firstMove = turn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if('K' == p.getType()) {\r\n\t\t\t\t\t\t((King)Board[row2][column2]).firstMove = turn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(valid == 3) {\r\n\t\t\t\t\tPiece p = Board[row2][column2];\r\n\t\t\t\t\t// Enpassant\r\n\t\t\t\t\tif(p.getType() == 'p') {\r\n\t\t\t\t\t\tBoard[row1][column2] = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Castle\r\n\t\t\t\t\tif(p.getType() == 'K') {\r\n\t\t\t\t\t\tint col = column1 - column2 > 0 ? 0 : 7;\r\n\t\t\t\t\t\tBoard[row1][col == 0 ? 3 : 5] = Board[row1][col];\r\n\t\t\t\t\t\tBoard[row1][col] = null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t((Rook)Board[row1][col == 0 ? 3 : 5]).firstMove = turn;\r\n\t\t\t\t\t\t((King)Board[row2][column2]).firstMove = turn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tturn += 1;\r\n\t\t\t\tPiece attacking = Board[row2][column2].underAttack(row2, column2, Board, turn);\r\n\t\t\t\tif(attacking != null) {\r\n\t\t\t\t\t//System.out.println(\"Under threat of attack by \" + attacking);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Promotion\r\n\t\t\t\tif(row2 == 0 && Board[row2][column2].color.equals(\"wp\")|| row2 == 7 && Board[row2][column2].color.equals(\"bp\")) {\r\n\t\t\t\t\t// If no valid promotion argument given, default\r\n\t\t\t\t\tif(s.length() == 5 || \"RNBQ\".indexOf(s.charAt(6)) < 0) {\r\n\t\t\t\t\t\tBoard[row2][column2].color = \"\" + Board[row2][column2].color.charAt(0) + 'Q';\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tBoard[row2][column2].color = \"\" + Board[row2][column2].color.charAt(0) + s.charAt(6);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(s.length()==11) {\r\n\t\t\t\t\tdrawOffer = true;\r\n\t\t\t\t\t//System.out.println(\"Offer to draw extended\");\r\n\t\t\t\t}\r\n\t\t\t\t//Check for stalemate\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t\t\treturn turn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(s.length() > 5 && s.substring(0, 5).equals(\"cheat\")) {\r\n\t\t\tString coord= convertCoords(s.substring(6));\r\n\t\t\tint row1 = Integer.parseInt(coord.substring(1,2));\r\n\t\t\tint column1 = Integer.parseInt(coord.substring(0,1));\r\n\t\t\tint row2 = Integer.parseInt(coord.substring(3,4));\r\n\t\t\tint column2 = Integer.parseInt(coord.substring(2,3));\r\n\t\t\tBoard[row2][column2] = Board[row1][column1];\r\n\t\t\tBoard[row1][column1] = null;\r\n\t\t\t//System.out.println(\"Cheated\");\r\n\t\t\tturn += 1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\t//Temporary placement for testing - will be removed once else statement above is implemented\r\n\t\t\tSystem.out.println(\"Illegal move, try again\");\r\n\t\t}\r\n\t\treturn turn;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "48ebf9131d9e2ea1e008d9ebf461672d", "score": "0.6354068", "text": "public static boolean Move(int a, int b, boolean check){\r\n TTT100.board[a][b]='O'; //Computer's move\r\n TTT100.currentR=a;\r\n TTT100.currentC=b;\r\n return check;\r\n }", "title": "" }, { "docid": "d04cfb7d0e630b6700fc0742951ff973", "score": "0.63537073", "text": "private void nextTurn() {\n \t\t\tturn = getNextPlayerNum();\n \t\t}", "title": "" }, { "docid": "4e92650e07b93d219dc92b08fefb4e6f", "score": "0.6353641", "text": "private void attemptToTurn() {\r\n\t\tif (energy >= TURNING_ENERGY_COST) {\r\n\t\t\tboolean didTurn = false;\r\n\t\t\tif (turnLeftKeyPressed) {\r\n\t\t\t\tdirection -= ROTATION_PER_TICK;\r\n\t\t\t\tdidTurn = true;\r\n\t\t\t}\r\n\t\t\tif (turnRightKeyPressed) {\r\n\t\t\t\tdirection += ROTATION_PER_TICK;\r\n\t\t\t\tdidTurn = true;\r\n\t\t\t}\r\n\t\t\tif (didTurn) {\r\n\t\t\t\tenergy -= TURNING_ENERGY_COST;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1db90f158be6ce40e051af17c77ad469", "score": "0.6347824", "text": "public int move(int whosTurn)\r\n {\r\n if ( whosTurn == 1 ){\r\n board[rowNum][colNum] = humanMark;\r\n whosTurn = 2; // Human's turn ended -> back to AI\r\n }\r\n else if ( whosTurn == 2 ){\r\n System.out.print(\"\\nAI's Turn\");\r\n\r\n if(board[1][1] == EMPTY)\r\n board[1][1] = aiMark;\r\n else{\r\n Random rand = new Random();\r\n \r\n while(true){\r\n int aiRow = rand.nextInt(3); // generate random int in range 0 to 2\r\n int aiCol = rand.nextInt(3); // generate random int in range 0 to 2\r\n \r\n if (board[aiRow][aiCol] == EMPTY){\r\n board[aiRow][aiCol] = aiMark;\r\n break;\r\n }\r\n }\r\n }\r\n whosTurn = 1; // AI's turn ended -> back to Human\r\n }\r\n\r\n return whosTurn;\r\n }", "title": "" }, { "docid": "992e703ecfe33d987f762227637d689c", "score": "0.63472986", "text": "protected abstract boolean isMoveCorrect();", "title": "" }, { "docid": "44a92e82d28f82969b04c44e110a6f9f", "score": "0.6343383", "text": "public void opponentTurn(){\n this.oponente.attack(this.jugador);\n Boolean activePokemonDown = this.jugador.isActivePokemonDown();\n\n //ver cómo se notifica al driver\n }", "title": "" }, { "docid": "9d407110ae4dc37f51031e07ac80852d", "score": "0.63426286", "text": "boolean validTurn(int rQI, int cQI, int rQF, int cQF, int rA, int cA);", "title": "" }, { "docid": "cd4d82123b0397cbd8c252def64df1b7", "score": "0.6342124", "text": "public void turn() throws InvalidActionException {\n }", "title": "" }, { "docid": "f61f7dcbfc6ce66edcda11ede8beda1a", "score": "0.633993", "text": "@java.lang.Override\n public boolean hasTurn() {\n return msgCase_ == 12;\n }", "title": "" }, { "docid": "b8ebd07e87d6a89f7c952ebd88c40294", "score": "0.63396364", "text": "public boolean canMakeMove(final int x)\n\t{\n\t\tif(x < 0 || x >= WIDTH || gameOver)\n\t\t\treturn false;\n\t\tfinal long newBoard = color[nplies & 1] | (1L << height[x]);\n\t\treturn (newBoard & TOP) == 0;\n\t}", "title": "" }, { "docid": "aac7cdb4098d1448f405f38dd7fd8600", "score": "0.6331581", "text": "public void checkNorth() {\n turnLeft();\n checkAhead();\n }", "title": "" }, { "docid": "4f9046f1be1661e590c93a234160f82c", "score": "0.6330583", "text": "abstract void possibleMoves();", "title": "" }, { "docid": "0654daf9e82e2ba2c052668beb29aabf", "score": "0.63298744", "text": "private boolean isMoveImpossible(King king, Point point) {\n if (!(Chess.getBoard(point) instanceof King)) {\n throw new IllegalStateException(\"King not where specified!\");\n }\n for (int i = 0; i < Chess.BOARD_SIZE; i++) {\n for (int j = 0; j < Chess.BOARD_SIZE; j++) {\n final Point start = new Point(j, i);\n final Piece me = Chess.getBoard(start);\n if (me != null && me.isWhite() == isWhiteTurn) {\n for (int k = 0; k < Chess.BOARD_SIZE; k++) {\n for (int l = 0; l < Chess.BOARD_SIZE; l++) {\n final Point end = new Point(l, k);\n final Piece save = Chess.getBoard(end);\n if (me.isActionLegal(start, end)) {\n rawMove(me, start, end);\n final Point kingLocation = locateKing(isWhiteTurn);\n final boolean isNotInCheck = !king.isCheck(kingLocation);\n rawMove(me, end, start);\n Chess.setBoard(end, save);\n if (isNotInCheck) {\n return false;\n }\n }\n }\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "1bfd7675ca50f752d7c89f8de2ed2d39", "score": "0.63217956", "text": "public boolean playerStillHasMove(HantoPlayerColor player, int turn)\n\t{\n\t\tboolean playerHasPossibleMove = true;\n\t\tif (getAnyPossibleMove(player, turn) == null) {\n\t\t\tplayerHasPossibleMove = false;\n\t\t}\n\t\treturn playerHasPossibleMove;\n\t}", "title": "" }, { "docid": "6251f9bd727a4f65100181f49e014ad0", "score": "0.63196874", "text": "public abstract boolean tryMove(String move, Player player);", "title": "" }, { "docid": "58bc3424d6a788e13ee7c49bed8ebde4", "score": "0.6319086", "text": "private void checkMove(Button btn)\n {\n int row = getButtonRow(btn);\n int col = getButtonColumn(btn);\n\n // if its my turn\n if(this.model.isMyTurn())\n {\n // check to make sure its a valid move\n if (this.model.isValidMove(row, col))\n {\n // then send it using the controller\n this.serverConn.sendMove(row, col);\n }\n else\n {\n // otherwise tell the player it was an invalid move\n javafx.application.Platform.runLater(() ->\n currentMove.setText(\"INVALID MOVE\"));\n }\n }\n else\n {\n // if by some way they are able to make a move while the buttons are disabled\n // really make sure they know it isn't their turn\n javafx.application.Platform.runLater(() ->\n currentMove.setText(\"WAIT YOUR TURN!\") );\n }\n }", "title": "" }, { "docid": "3731bafd17736fafb6dd953a37695f71", "score": "0.63162273", "text": "public boolean getTurn();", "title": "" }, { "docid": "7ac6becc9a6bb5cc37e697d2651391a7", "score": "0.63145727", "text": "public void changeTurn() {\n if (board[64] == 0) {\n board[64] = 1;\n } else {\n board[64] = 0;\n }\n }", "title": "" }, { "docid": "8238f271168b91028b8fd2ea983dc3fb", "score": "0.63132393", "text": "public boolean checkmate(){\n \n if (getCheckingPieces().isEmpty()){\n return false;\n }\n \n for (Piece piece : board.getPieces()) {\n if (piece.getSide() == turn.getSide() && pieceCanMoveTo(piece).size() > 0){\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "d9118f2ccbb898611d2ce057edfce80e", "score": "0.63027894", "text": "@Override\n public boolean legitMove(Tile[][] gameBoard, int originalRow,\n int originalColumn, int finalRow, int finalColumn){\n if(gameBoard[originalRow][originalColumn].pieceColor ==\"white\"){\n //if it is the first move\n if(gameBoard[originalRow][originalColumn].firstMove ==true){\n //to only move 1 rank\n if( ((originalRow+1) == finalRow ) && (originalColumn== finalColumn)\n && (gameBoard[finalRow][finalColumn].pieceColor != \"black\") ){\n checkSecondMove();\n return true;\n }\n //to move 2 ranks\n if( originalRow+2 == finalRow && (originalColumn== finalColumn\n && (gameBoard[finalRow][finalColumn].pieceColor != \"black\"))){\n //gameBoard[originalRow][originalColumn].firstMove = false;\n checkSecondMove();\n this.Enpassant = true;\n return true;\n }\n //to capture in the first move\n else if( (gameBoard[finalRow][finalColumn].pieceColor==\"black\") &&\n (gameBoard[originalRow+1][originalColumn+1] == gameBoard[finalRow][finalColumn]\n || gameBoard[originalRow+1][originalColumn-1] == gameBoard[finalRow][finalColumn])){\n //gameBoard[originalRow][originalColumn].firstMove = false;\n checkSecondMove();\n this.Enpassant = true;\n return true;\n }\n\n }\n //if it is not the first move\n else if(gameBoard[originalRow][originalColumn].firstMove ==false){\n //to move 1 rank\n if(originalRow+1 == finalRow && (originalColumn== finalColumn)\n && (gameBoard[finalRow][finalColumn].pieceColor != \"black\")){\n this.Enpassant = false;\n checkSecondMove();\n return true;\n }\n //to capture a piece\n else if( (gameBoard[finalRow][finalColumn].pieceColor==\"black\") &&\n (gameBoard[originalRow+1][originalColumn+1] == gameBoard[finalRow][finalColumn]\n || gameBoard[originalRow+1][originalColumn-1] == gameBoard[finalRow][finalColumn])){\n this.Enpassant = false;\n checkSecondMove();\n return true;\n }\n //to capture via enpassant\n else if( (gameBoard[originalRow+1][originalColumn+1] == gameBoard[finalRow][finalColumn]\n || gameBoard[originalRow+1][originalColumn-1] == gameBoard[finalRow][finalColumn])\n &&(gameBoard[finalRow+1][finalColumn].Enpassant==true)){ // Change finalRow + 1? to -1? or leave as is\n checkSecondMove();\n return true;\n\n }\n }\n }\n //only for black pawns\n else if(gameBoard[originalRow][originalColumn].pieceColor ==\"black\"){\n //if it is the first move\n if(gameBoard[originalRow][originalColumn].firstMove ==true){\n //to only move 1 rank\n if( (originalRow-1) == finalRow && (originalColumn== finalColumn)\n && (gameBoard[finalRow][finalColumn].pieceColor != \"white\")){\n checkSecondMove();\n return true;\n }\n //to move 2 ranks\n if( originalRow-2 == finalRow && (originalColumn== finalColumn)\n && (gameBoard[finalRow][finalColumn].pieceColor != \"white\")){\n checkSecondMove();\n this.Enpassant = true;\n return true;\n }\n //to capture in the first move\n else if( (gameBoard[finalRow][finalColumn].pieceColor==\"white\") &&\n (gameBoard[originalRow-1][originalColumn+1] == gameBoard[finalRow][finalColumn]\n || gameBoard[originalRow-1][originalColumn-1] == gameBoard[finalRow][finalColumn])){\n checkSecondMove();\n return true;\n }\n\n }\n //if it is not the first move\n else if(gameBoard[originalRow][originalColumn].firstMove ==false){\n //to only move 1 rank\n if(originalRow-1 == finalRow && (originalColumn== finalColumn)\n && (gameBoard[finalRow][finalColumn].pieceColor != \"white\")){\n checkSecondMove();\n this.Enpassant = false;\n return true;\n }\n //to capture a piece\n else if( (gameBoard[finalRow][finalColumn].pieceColor==\"white\") &&\n (gameBoard[originalRow-1][originalColumn+1] == gameBoard[finalRow][finalColumn]\n || gameBoard[originalRow-1][originalColumn-1] == gameBoard[finalRow][finalColumn])){\n checkSecondMove();\n this.Enpassant = false;\n return true;\n }\n //to capture via enpassant\n else if( (gameBoard[originalRow-1][originalColumn+1] == gameBoard[finalRow][finalColumn]\n || gameBoard[originalRow-1][originalColumn-1] == gameBoard[finalRow][finalColumn])\n &&(gameBoard[finalRow+1][finalColumn].Enpassant==true)){ // Changed finalRow-1 to finalRow + 1\n checkSecondMove();\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "4eae408627de5355065e146fa9662517", "score": "0.6295223", "text": "public void potentialMoves(ChessPiece[][] board){\n\t\tisChecking=false; \r\n\t\tmoves.clear();\r\n\t\tmoves.add(pos+19);\r\n\t\tmoves.add(pos+8);\r\n\t\tmoves.add(pos-12);\r\n\t\tmoves.add(pos-21);\r\n\t\tmoves.add(pos-19);\r\n\t\tmoves.add(pos-8);\r\n\t\tmoves.add(pos+12);\r\n\t\tmoves.add(pos+21);\r\n\r\n\t\tint i =0; //integer used in iteration\r\n\r\n\t\twhile (i!=moves.size()){ // while iterator does not exceed size of vector\r\n\t\t\tif(!inGrid(moves.get(i))){\r\n\t\t\t\t//check if it's not in the grid\r\n\t\t\t\t//remove if it's not\r\n\t\t\t\tmoves.remove(i);\t\t\t\t\r\n\t\t\t}else if(board[xBox(moves.get(i))-1][yBox(moves.get(i))-1]!=null){\r\n\t\t\t\t//if this potential move is occupied\t\t\t\t\r\n\t\t\t\tif(board[xBox(moves.get(i))-1][yBox(moves.get(i))-1].player()==player){\r\n\t\t\t\t\t//check if the piece there is on the same team\r\n\t\t\t\t\t//if so, then remove\r\n\t\t\t\t\tmoves.remove(i);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//if it's a foe, then keep it as a possible move\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//if it's not occupied then keep it as a possible move\r\n\t\t\t\ti++;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int j=0; j<moves.size(); j++){\r\n\t\t\t//checking if this piece is checking the king\r\n\t\t\tif (board[xBox(moves.get(j))-1][yBox(moves.get(j))-1]!=null){\r\n\t\t\t\tif (board[xBox(moves.get(j))-1][yBox(moves.get(j))-1].type()==\"King\"){ //checking if we \r\n\t\t\t\t\t//are checking the king\r\n\t\t\t\t\tisChecking=true;\r\n\t\t\t\t\tcheckpath.add(moves.get(j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fbfbc8e73713452d0a2ba4e2d9b55b3e", "score": "0.6291542", "text": "public boolean checkWin() {\n for (int i = 0; i < possibleMoves.length; i++) {\n int[] currentMoves = possibleMoves[i];\n int sum = 0;\n \n sum += board[currentMoves[0]].getValue();\n sum += board[currentMoves[1]].getValue();\n sum += board[currentMoves[2]].getValue();\n \n if (sum == 12) {\n\t\t\t\twinner = \"X\";\n return true;\n\t\t\t\t}\n\t\t\t\t\n else if (sum == 3) {\n\t\t\t\twinner = \"O\";\n return true;\n\t\t\t\t}\n }\n \n return false;\n }", "title": "" }, { "docid": "5267d31d1ac21ce89902b65790eff9da", "score": "0.6280627", "text": "@Test\n\tpublic void testCanMovePiece() {\n\t\tChessBoard board = new ChessBoard(8);\n\t\tboard.addPiece(new Pawn(Color.W,3,4), new int[] {3,4});\n\t\tboard.addPiece(new King(Color.B, 3,3), new int[] {3,3});\n\t\tboard.addPiece(new King(Color.W,2,6), new int[] {2,6});\n\t\tboard.addPiece(new Queen(Color.W,3,7), new int[] {3,7});\n\t\t\n\t\tassertEquals(true, BoardConfiguration.canMovePiece(new int[] {3, 4}, new int[]{4,4},Color.W,board));\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(new int[] {3, 4}, new int[]{4,4},Color.B,board));\n\t\t//if we kill pawn, queen kills us\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(new int[] {3, 3}, new int[] {3, 4},Color.B, board));\n\t\tassertEquals(true, BoardConfiguration.canMovePiece(new int[] {3, 3}, new int[] {3,2}, Color.B, board));\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(new int[] {-3, 23}, new int[] {23, 5}, Color.B, board));\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(null, null, Color.W, null));\n\t\t\n\t\tboard = new ChessBoard(8);\n\t\tboard.addPiece(new Rook(Color.W,0,3), new int[] {0,3});\n\t\tboard.addPiece(new King(Color.B, 5,4), new int[] {5,4});\n\t\tboard.addPiece(new Rook(Color.W,0,4), new int[] {0,4});\n\t\tboard.addPiece(new Queen(Color.W,2,5), new int[] {2,5});\n\t\tboard.addPiece(new King(Color.W, 1,1), new int[] {1,1});\n //try to move out of check mate\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(new int[] {5,4}, new int[] {5,5}, Color.B, board));\n\t\t\n\t\tboard = new ChessBoard(8); //special case when two kings attempt to capture one another\n\t\tboard.addPiece(new King(Color.W, 4,4), new int[] {4,4});\n\t\tboard.addPiece(new King(Color.B, 4,6), new int[] {4,6});\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(new int[] {4, 4}, new int[] {4, 5}, Color.W, board));\n\t\tassertEquals(false, BoardConfiguration.canMovePiece(new int[] {4, 6}, new int[] {4, 5}, Color.B, board));\n\t}", "title": "" }, { "docid": "d1c6c1c17a08d9e38583d77c6c2630c3", "score": "0.6273897", "text": "private List<Location> legalMoves(CheckerPiece toCheck) {\n\n\n\n boolean isKing = toCheck.isKing();\n\n //\n List<Location> legalMoves = new ArrayList<>();\n\n // list of locations if the piece were to move one diagonal forward\n List<Location> oneStepForward = toCheck.oneStepForward();\n\n for (Location loc : oneStepForward) {\n int x = loc.getX();\n int y = loc.getY();\n\n if (x < 0 || x >= rows || y < 0 || y >= cols) {\n continue;\n\n //empty place so you can go there\n } else if (!isOccupied(x, y)) {\n legalMoves.add(loc);\n\n //space is not empty, and color is not the same so you can eat it\n } else if (getPiece(x, y).getColor() != toCheck.getColor()) {\n CheckerPiece pieceToCheck = null;\n\n if (toCheck.getColor() == Colors.BLUE) {\n pieceToCheck = new Blue(x, y, Colors.BLUE, isKing);\n\n } else if (toCheck.getColor() == Colors.RED) {\n pieceToCheck = new Red(x, y, Colors.RED, isKing);\n }\n assert pieceToCheck != null;\n\n for (Location l : pieceToCheck.oneStepForward()) {\n\n\n if (l.getX() - toCheck.getLocation().getX() == 0 || l.getY() - toCheck.getLocation().getY() == 0) {\n continue;\n }\n if (l.getX() < 0 || l.getX() >= rows || l.getY() < 0 || l.getY() >= cols) {\n continue;\n } else if (!isOccupied(l.getX(), l.getY())) {\n legalMoves.add(l);\n }\n }\n }\n }\n return legalMoves;\n }", "title": "" }, { "docid": "e56ad7bc90c98bebef009ba7339054a1", "score": "0.6270018", "text": "private void passTurn() {\r\n if (whoseTurn == 1) whoseTurn = 2;\r\n else whoseTurn = 1;\r\n passCounter+=2;\r\n }", "title": "" }, { "docid": "12724ada84d1a4a9ea6e024882f100a6", "score": "0.62671113", "text": "public boolean castlingCheck() {\n castlingSquares.clear(); // BugFix for movePiece(), OK.\n\n Player enemy = playerTwo;\n if (selectedPiece.getPlayer().equals(enemy))\n enemy = playerOne;\n\n // Apply this function only for kings that can castle\n if (!selectedPiece.getPieceType().equals(\"King\") ||\n !((King) selectedPiece).checkCastling() ||\n kingInCheck(selectedPiece.getPlayer()))\n return false;\n\n // Initialize squares for player one\n Square rookOneSquare = board.getSquare(\"A1\");\n Square rookTwoSquare = board.getSquare(\"H1\");\n Square castleSquareOne = board.getSquare(\"C1\");\n Square castleSquareTwo = board.getSquare(\"G1\");\n Square rookMoveOneSquare = board.getSquare(\"D1\");\n Square rookMoveTwoSquare = board.getSquare(\"F1\");\n if (selectedPiece.getPlayer().equals(playerTwo)) { // Change values for player two\n rookOneSquare = board.getSquare(\"A8\");\n rookTwoSquare = board.getSquare(\"H8\");\n castleSquareOne = board.getSquare(\"C8\");\n castleSquareTwo = board.getSquare(\"G8\");\n rookMoveOneSquare = board.getSquare(\"D8\");\n rookMoveTwoSquare = board.getSquare(\"F8\");\n if (board.getSquare(\"B8\").getPiece() != null || // Squares between king and rook have to be empty\n board.getSquare(\"C8\").getPiece() != null ||\n rookMoveOneSquare.getPiece() != null)\n castleSquareOne = null;\n if (rookMoveTwoSquare.getPiece() != null ||\n board.getSquare(\"G8\").getPiece() != null)\n castleSquareTwo = null;\n } else {\n if (board.getSquare(\"B1\").getPiece() != null ||\n board.getSquare(\"C1\").getPiece() != null ||\n rookMoveOneSquare.getPiece() != null)\n castleSquareOne = null;\n if (rookMoveTwoSquare.getPiece() != null ||\n board.getSquare(\"G1\").getPiece() != null)\n castleSquareTwo = null;\n }\n if (rookOneSquare.getPiece() == null || // If rookSquare has no rook set castleSquare as null\n !rookOneSquare.getPiece().getPieceType().equals(\"Rook\") ||\n !((Rook) rookOneSquare.getPiece()).checkCastling())\n castleSquareOne = null;\n\n if (rookTwoSquare.getPiece() == null ||\n !rookTwoSquare.getPiece().getPieceType().equals(\"Rook\") ||\n !((Rook) rookTwoSquare.getPiece()).checkCastling())\n castleSquareTwo = null;\n\n // Check if any of the squares are exposed by enemy piece\n for (int i = 0; i < enemy.getPieceList().size(); i++) {\n List<Square> movementList = board.getValidMoves(enemy.getPieceList().get(i))[0]; // EnemyPiece's movements\n List<Square> captureList = board.getValidMoves(enemy.getPieceList().get(i))[1]; // captures\n if (enemy.equals(playerTwo)) {\n if (movementList.contains(board.getSquare(\"C1\")) ||\n movementList.contains(board.getSquare(\"D1\")))\n castleSquareOne = null;\n if (movementList.contains(board.getSquare(\"F1\")) ||\n movementList.contains(board.getSquare(\"G1\")))\n castleSquareTwo = null;\n } else {\n if (movementList.contains(board.getSquare(\"C8\")) ||\n movementList.contains(board.getSquare(\"D8\")))\n castleSquareOne = null;\n if (movementList.contains(board.getSquare(\"F8\")) ||\n movementList.contains(board.getSquare(\"G8\")))\n castleSquareTwo = null;\n }\n }\n\n if (castleSquareOne == null && castleSquareTwo == null)\n return false; // There are no valid castlingSquares, end here\n\n if (castleSquareOne != null) { // squareOne is valid\n squareList.add(castleSquareOne); // Add extra move for king\n castlingSquares.add(castleSquareOne); // Save square to other list - it's used for comparing in checkClickMovement()\n rookForSquare.put(castleSquareOne, (Rook) rookOneSquare.getPiece()); // Save pair of king's target square and rook\n squareForRook.put((Rook) rookOneSquare.getPiece(), rookMoveOneSquare); // Save pair of rook and its target square\n }\n if (castleSquareTwo != null) {\n squareList.add(castleSquareTwo);\n castlingSquares.add(castleSquareTwo);\n rookForSquare.put(castleSquareTwo, (Rook) rookTwoSquare.getPiece());\n squareForRook.put((Rook) rookTwoSquare.getPiece(), rookMoveTwoSquare);\n }\n return true; // Castling can be done\n }", "title": "" }, { "docid": "cde236303e42f0f888c2f393262fe0ba", "score": "0.6264605", "text": "private static void playersTurn() {\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"YOUR TURN\");\n\t\tint x = -1, y = -1;\n\n\t\tdo{\n\t\t\twhile(!isValid(x, y)){\n\t\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Enter X coordinate: \");\n\t\t\t\tx = input.nextInt();\n\t\t\t\tSystem.out.print(\"Enter Y coordinate: \");\n\t\t\t\ty = input.nextInt();\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\tSystem.out.println(\"Please enter numeric numbers only\");\n\t\t\t\t\t\n\t\t\t\t\tinput = new Scanner(System.in);\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}while (board.attackMove(x,y) == '-');\n\n\t\tchar event = board.attackMove(x, y);\n\n\t\tswitch (event){\n\t\tcase '2':\n\t\t\tSystem.out.println(\"Boom! You sunk the ship!\");\n\t\t\tboard.mark(x, y, '!');\n\t\t\tcomputerShips--;\n\t\t\tbreak;\n\n\t\tcase '@':\n\t\t\tSystem.out.println(\"Oh no, you sunk your own ship :(\");\n\t\t\tboard.mark(x, y, 'x');\n\t\t\tplayerShips--;\n\t\t\tbreak;\n\t\tcase ' ':\n\t\t\tSystem.out.println(\"Sorry, you missed\");\n\t\t\tboard.mark(x, y, '-');\n\t\t\tbreak;\n\t\t}\n\t\tboard.printMap();\n\n\t}", "title": "" }, { "docid": "2e1cd9fbea458ca743f8818eb25a8b1a", "score": "0.6255962", "text": "@Override\n ArrayList<Integer> getLegalMoves(Game game) {\n ArrayList<Integer> legalMoves = new ArrayList<Integer>();\n Piece[] pieces = game.getBoard2();\n int temp = position;\n int beginTemp = position;\n String color = pieces[position].getColor();\n\n if(color.equals(\"white\")) {\n temp=position+8;\n beginTemp = temp + 8;//at the beginning the pawn can move two squares\n //move forward\n if(pieces[temp].isEmpty)\n {\n if(hasNotMovedYet && pieces[beginTemp].isEmpty)\n {\n legalMoves.add(beginTemp);\n }\n legalMoves.add(temp);\n }\n\n //eat right\n temp = position+9;\n if(temp%8 != 0 && temp<64 && !(pieces[temp].isEmpty) && !(pieces[temp].equals(color)))\n {\n legalMoves.add(temp);\n if (pieces[temp] instanceof King)\n {\n setCheck(true);\n }\n }\n //eat left\n temp = position+7;\n if(temp%8 != 7 && temp<64 && !(pieces[temp].isEmpty) && !(pieces[temp].equals(color)))\n {\n legalMoves.add(temp);\n if (pieces[temp] instanceof King)\n {\n setCheck(true);\n }\n }\n }else{\n temp=position-8;\n beginTemp = temp - 8;//at the beginning the pawn can move two squares\n //move forward\n if(pieces[temp].isEmpty)\n {\n if(hasNotMovedYet && pieces[beginTemp].isEmpty)\n {\n legalMoves.add(beginTemp);\n }\n legalMoves.add(temp);\n }\n //eat right\n temp = position-7;\n if(temp%8 != 0 && temp>=0 && !(pieces[temp].isEmpty) && !(pieces[temp].equals(color)))\n {\n legalMoves.add(temp);\n if (pieces[temp] instanceof King)\n {\n setCheck(true);\n }\n }\n //eat left\n temp = position-9;\n if(temp%8 != 7 && temp>=0 && !(pieces[temp].isEmpty) && !(pieces[temp].equals(color)))\n {\n legalMoves.add(temp);\n if (pieces[temp] instanceof King)\n {\n setCheck(true);\n }\n }\n }\n return legalMoves;\n }", "title": "" }, { "docid": "b89e8750a35783ece611ef89ea7ba015", "score": "0.6255595", "text": "public void makeMove (){\n System.out.println(currentPlayer.getName()+\" is aan de beurt en speelt met de kleur: \" +getCurrentPlayer().getColor().getColorName());\n int c = 0;\n\n boolean endTurn;\n if(currentPlayer.getType() == PlayerType.NORMAL) {\n endTurn = false;\n while(!endTurn) {\n endTurn = checkHit();\n if(!endTurn) {\n Tile oldTile = null;\n do {\n oldTile = UserInteraction.askOldTile(c);\n c++;\n }\n while (oldTile == null);\n c = 0;\n Tile newTile = null;\n do {\n newTile = UserInteraction.askNewTile(c);\n c++;\n }\n while (newTile == null);\n endTurn = movePiece(oldTile, newTile);\n if (endTurn) {\n printTurn(oldTile, newTile);\n }\n }\n }\n }\n else { // CPU\n endTurn = false;\n int counter = 99;\n while(!endTurn) {\n endTurn = checkHit();\n if(!endTurn) {\n Tile tmpOld = tiles[counter];\n if (tmpOld != null && tmpOld.getPiece() != null && tmpOld.getPiece().getPieceColor() == currentPlayer.getColor()) {\n int x = tmpOld.getX() + 1;\n if (x == 10) {\n x = 8;\n }\n Tile tmpNew = new Tile(x, tmpOld.getY() + 1);\n endTurn = movePiece(tmpOld, tmpNew);\n if (endTurn) {\n printTurn(tmpOld, tmpNew);\n }\n }\n counter--;\n }\n }\n }\n\n brd.updateBoard(tiles);\n }", "title": "" }, { "docid": "6c70085cece863d00d3b19ae9b154239", "score": "0.62469345", "text": "private boolean canMoveRook(int curX, int curY, int newX, int newY, boolean turn) {\n\tif(!getRookMoves(curX, curY, turn).contains(new Pair(newX, newY)))\n\t\treturn false;\n\telse {\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "698c366227fba281f3c1e8e32b1071ed", "score": "0.62461853", "text": "public static boolean turnCheck(GameEvent gameEvent, MovableCharacter character, String move) {\r\n for (Wall wall : gameEvent.wallList) {\r\n if (move.equals(\"up\")) {\r\n if (character.CentreY() - 16 == wall.CentreY() && character.CentreX() >= wall.Left() && character.CentreX() <= wall.Right()) {\r\n return false;\r\n }\r\n } else if (move.equals(\"down\")) {\r\n if (character.CentreY() + 16 == wall.CentreY() && character.CentreX() >= wall.Left() && character.CentreX() <= wall.Right()) {\r\n return false;\r\n }\r\n } else if (move.equals(\"left\")) {\r\n if (character.CentreY() >= wall.Top() && character.CentreY() <= wall.Bottom() && character.CentreX() - 16 == wall.CentreX()) {\r\n return false;\r\n }\r\n } else if (move.equals(\"right\")) {\r\n if (character.CentreY() >= wall.Top() && character.CentreY() <= wall.Bottom() && character.CentreX() + 16 == wall.CentreX()) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "d2815d335015baf10ad314ed8e3224af", "score": "0.6245234", "text": "public void checkMove() {\n\n\t\t// this is the current highlighted move being checked for possible moves\n\t\tArrayList<Point> legalList = board[xBox][yBox].getMoves(board, xBox,\n\t\t\t\tyBox);\n\n\t\t// check if the new move is within the legal move lists\n\t\t// checking if the list is not empty\n\n\t\tif (!legalList.isEmpty()) {\n\t\t\t// iterating through the legal list of moves\n\n\t\t\tfor (Point points : legalList) {\n\t\t\t\tint pointX = (int) points.getX();\n\t\t\t\tint pointY = (int) points.getY();\n\n\t\t\t\tif (pointX == newxBox && pointY == newyBox) {\n\n\t\t\t\t\t// the move is legal, perform it\n\t\t\t\t\tmove(xBox, yBox, newxBox, newyBox);\n\n\t\t\t\t} else {\n\t\t\t\t\t// the move is illegal\n\t\t\t\t\thighlight = false;\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "575a743fe6114b5912be7ca475dfc8a0", "score": "0.6245097", "text": "@Test\n\tpublic void testPossibleMoves() {\n\t\tassertTrue(this.springer.getPossibleMoves(this.field).contains(this.field[3][4]));\n\t\tthis.field[3][4].setSet(true);\n\t\tthis.field[3][4].setFigure(new Bishop(3, 4, Team.white));\n\t\tassertFalse(this.springer.getPossibleMoves(this.field).contains(this.field[3][4]));\n\n\t\t// Kill collision\n\t\tassertTrue(this.springer.getPossibleMoves(this.field).contains(this.field[0][5]));\n\t\tthis.field[0][5].setSet(true);\n\t\tthis.field[0][5].setFigure(new Bishop(3, 4, Team.black));\n\t\tassertTrue(this.springer.getPossibleMoves(this.field).contains(this.field[0][5]));\n\t}", "title": "" }, { "docid": "352cafca726d5dc94aa7784bd45633ff", "score": "0.6243362", "text": "public String TicTacToeOne() {\n\t\tboard = new String[]{\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"};\n\t\tiniNum = new String[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"};\n\t\tBoardNum = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tint countnum = 0;\n\t\tBoolean resultOneStep = false;\n\t\tBoolean validT = true;\n\t\tSystem.out.println(\"****************************Guidance****************************\");\n\t\tSystem.out.println(\"Please enter the corresponding number(1-9) in the following box \\nto determine the position of your piece.\");\n\t\tPrintBoard(iniNum);\n\t\tScanner in = new Scanner(System.in);\n\t\tfor (int i=0; i<9; i++) {\n\t\t\tif (resultOneStep == false){\n\t\t\t\tif (i%2 == 1){\n\t\t\t\t\tSystem.out.println(\"Player X Enter your move:\");\n\t\t\t\t\tint pos = in.nextInt();\n\t\t\t\t\tvalidT = CheckValid(pos);\n\t\t\t\t\twhile (validT == false) {\n\t\t\t\t\t\tSystem.out.println(\"Player X Enter your move:\");\n\t\t\t\t\t\tpos = in.nextInt();\n\t\t\t\t\t\tvalidT = CheckValid(pos);\n\t\t\t\t\t}\n\t\t\t\t\tmove(\"X\", pos-1, -1);\n\t\t\t\t\tPrintBoard(board);\n\t\t\t\t\tcountnum = GetResult(BoardNum);\n\t\t\t\t\tif (countnum == -3) {\n\t\t\t\t\t\tresultOneStep = true;\n\t\t\t\t\t\tResultOneTime = \"X\";\n\t\t\t\t\t\tSystem.out.println(\"*** Player X wins!! ***\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Player O Enter your move:\");\n\t\t\t\t\tint pos = in.nextInt();\n\t\t\t\t\twhile (validT == false) {\n\t\t\t\t\t\tSystem.out.println(\"Player O Enter your move:\");\n\t\t\t\t\t\tpos = in.nextInt();\n\t\t\t\t\t\tvalidT = CheckValid(pos);\n\t\t\t\t\t}\n\t\t\t\t\tmove(\"O\", pos-1, 1);\n\t\t\t\t\tPrintBoard(board);\n\t\t\t\t\tcountnum = GetResult(BoardNum);\n\t\t\t\t\tif (countnum == 3) {\n\t\t\t\t\t\tresultOneStep = true;\n\t\t\t\t\t\tResultOneTime = \"O\";\n\t\t\t\t\t\tSystem.out.println(\"*** Player O wins!! ***\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (resultOneStep == false) {\n\t\t\tResultOneTime = \"Draw\";\n\t\t\tSystem.out.println(\"*** Draw!! ***\");\n\t\t}\n\t\treturn ResultOneTime;\n\t}", "title": "" }, { "docid": "7c698c343dcaaab500815544b3156810", "score": "0.6237678", "text": "@Override\n\tpublic List<Step> getNextMove(ChessBoard board) {\n\t\tList<Step> list = new ArrayList<Step>();\n\t\t//产生黑卒的走法\n\t\tif(!isRed) \n\t\t{\n\t\t\t//如果没有过河,那么就只能向前走,只需要前面的位置是空或者不是己方棋子就可以\n\t\t\tif(this.getX() <= 4) \n\t\t\t{\n\t\t\t\tif( isDestinationLegal(board, this.getX()+1, this.getY())) \n\t\t\t\t{\n\t\t\t\t\tlist.add(new Step(this.getX(),this.getY(), this.getX()+1, this.getY()));\n\t\t\t\t}\n\t\t\t}else {//过河之后有前方一个和左右两个位置可以走,但是向前走要注意是否超过棋盘的边界\n\t\t\t\tif(this.getX() < 10 && this.getY()+1 < 9 && isDestinationLegal(board, this.getX(), this.getY()+1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() + 1));\n\t\t\t\tif(this.getX() < 10 && this.getY()-1 >= 0 && isDestinationLegal(board, this.getX(), this.getY()-1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() - 1));\n\t\t\t\tif(this.getX() < 10 && isDestinationLegal(board, this.getX()+1, this.getY()))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX()+1, this.getY()));\n\t\t\t}\n\t\t}else {\n\t\t\t//如果没有过河,那么就只能向前走,只需要前面的位置是空或者不是己方棋子就可以\n\t\t\tif(this.getX() >= 5) \n\t\t\t{\n\t\t\t\tif(isDestinationLegal(board, this.getX()-1, this.getY()))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX()-1, this.getY()));\n\t\t\t}else {\n\t\t\t\t//过河之后有前方一个和左右两个位置可以走,但是向前走要注意是否超过棋盘的边界\n\t\t\t\tif(this.getX() >= 0 && this.getY()+1 < 9 && isDestinationLegal(board, this.getX(), this.getY()+1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() + 1));\n\t\t\t\tif(this.getX() >= 0 && this.getY() - 1 >= 0 && isDestinationLegal(board, this.getX(), this.getY()-1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() - 1));\n\t\t\t\tif(this.getX() >= 0 && isDestinationLegal(board, this.getX()-1, this.getY()))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX()-1, this.getY()));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "6db76471e4d5ed82fb7df2ecfa6e34f7", "score": "0.62348825", "text": "private static boolean isMate(int turn, State4 s){\n \t\tif(!State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s)){\n \t\t\treturn false;\n \t\t}\n \t\tfinal long kings = s.kings[turn];\n \t\tfor(long m = State4.getKingMoves(turn, s.pieces, s.kings[turn]); m != 0; m &= m-1){\n \t\t\ts.executeMove(turn, kings, m&-m);\n \t\t\tboolean attacked = State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s);\n \t\t\ts.undoMove();\n \t\t\tif(!attacked) return false;\n \t\t}\n \t\tfor(long queens = s.queens[turn]; queens != 0; queens &= queens-1){\n \t\t\tfinal long queen = queens&-queens;\n \t\t\tfor(long m = State4.getQueenMoves(turn, s.pieces, queen); m != 0; m &= m-1){\n \t\t\t\ts.executeMove(turn, queen, m&-m);\n \t\t\t\tboolean attacked = State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s);\n \t\t\t\ts.undoMove();\n \t\t\t\tif(!attacked) return false;\n \t\t\t}\n \t\t}\n \t\tfor(long knights = s.knights[turn]; knights != 0; knights &= knights-1){\n \t\t\tfinal long knight = knights&-knights;\n \t\t\tfor(long m = State4.getKnightMoves(turn, s.pieces, knight); m != 0; m &= m-1){\n \t\t\t\ts.executeMove(turn, knight, m&-m);\n \t\t\t\tboolean attacked = State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s);\n \t\t\t\ts.undoMove();\n \t\t\t\tif(!attacked) return false;\n \t\t\t}\n \t\t}\n \t\tfor(long bishops = s.knights[turn]; bishops != 0; bishops &= bishops-1){\n \t\t\tfinal long bishop = bishops&-bishops;\n \t\t\tfor(long m = State4.getBishopMoves(turn, s.pieces, bishop); m != 0; m &= m-1){\n \t\t\t\ts.executeMove(turn, bishop, m&-m);\n \t\t\t\tboolean attacked = State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s);\n \t\t\t\ts.undoMove();\n \t\t\t\tif(!attacked) return false;\n \t\t\t}\n \t\t}\n \t\tfor(long rooks = s.knights[turn]; rooks != 0; rooks &= rooks-1){\n \t\t\tfinal long rook = rooks&-rooks;\n \t\t\tfor(long m = State4.getRookMoves(turn, s.pieces, rook); m != 0; m &= m-1){\n \t\t\t\ts.executeMove(turn, rook, m&-m);\n \t\t\t\tboolean attacked = State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s);\n \t\t\t\ts.undoMove();\n \t\t\t\tif(!attacked) return false;\n \t\t\t}\n \t\t}\n \t\tfinal long[] temp = new long[4];\n \t\ttemp[0] = State4.getRightPawnAttacks(turn, s.pieces, s.enPassante, s.pawns[turn]);\n \t\ttemp[1] = State4.getLeftPawnAttacks(turn, s.pieces, s.enPassante, s.pawns[turn]);\n \t\ttemp[2] = State4.getPawnMoves(turn, s.pieces, s.pawns[turn]);\n \t\ttemp[3] = State4.getPawnMoves2(turn, s.pieces, s.pawns[turn]);\n \t\tfor(int a = 0; a < 4; a++){\n \t\t\tfor(long pawnsMoves = temp[a]; pawnsMoves != 0; pawnsMoves &= pawnsMoves-1){\n \t\t\t\tfinal long move = pawnsMoves&-pawnsMoves;\n \t\t\t\tfinal long pawn = turn == 0? move>>>pawnOffset[a]: move<<pawnOffset[a];\n \t\t\t\ts.executeMove(turn, pawn, move&-move);\n \t\t\t\tboolean attacked = State4.isAttacked2(BitUtil.lsbIndex(s.kings[turn]), 1-turn, s);\n \t\t\t\ts.undoMove();\n \t\t\t\tif(!attacked) return false;\n \t\t\t}\n \t\t}\n \t\treturn true;\n \t}", "title": "" }, { "docid": "49eb7d819e398a3b2590595df8e7d258", "score": "0.62308204", "text": "private void tryMove() throws GameActionException {\n\t\tNavigation.swarmMove();\n\t}", "title": "" }, { "docid": "bc130caaf68f8e06f6aed1687e09a6c7", "score": "0.62305045", "text": "private boolean tryMoveAutomatically() {\n\n for (GamePiece gamePiece : gameModel.getPlayers().get(gameModel.getLocalPlayerId()).getGamePieces()) {\n gameModel.setSelectedGamePiece(gamePiece);\n GamePiece tempSavingGamePiece = gamePiece;\n for (Card card : gameModel.getPlayers().get(gameModel.getLocalPlayerId()).getMovementCards()) {\n gameModel.setSelectedCard(card);\n if (gameModel.getSelectedCard() != null && gameModel.getSelectedGamePiece() != null) {\n gameModel.occupiedProperty().set(false);\n if (gameModel.canMoveDirectly()) {\n logger.info(\"Boolean value is -> \" + true);\n return true;\n }\n gameModel.getSelectedCard().setDisable(true);\n gameModel.addToPlayedCards();\n if (gameModel.occupiedProperty().get() == true) {\n for (Card anotherCard : gameModel.getPlayers().get(gameModel.getLocalPlayerId()).getMovementCards()) {\n if (anotherCard != gameModel.getSelectedCard()) {\n gameModel.setSelectedCard(anotherCard);\n gameBoardView.moveGamePiece(gameModel.getSelectedGamePiece());\n if (gameModel.canMoveDirectly()) {\n gameModel.occupiedProperty().setValue(false);\n gameModel.getSelectedGamePiece().resetPathId();\n gameBoardView.moveGamePiece(gameModel.getSelectedGamePiece());\n return true;\n }\n }\n }\n }\n if (gameModel.priceToCrossWaterAutomatically().get() != 0) {\n if (gameModel.canMoveDirectly()) {\n gameModel.priceToCrossWaterAutomatically().setValue(0);\n return true;\n }\n }\n }\n }\n }\n logger.info(\"Boolean value is -> \" + false);\n return false;\n }", "title": "" }, { "docid": "1207a2271df3b613a9326aa6162844b8", "score": "0.62296045", "text": "public boolean makeMove(int x, int y) \r\n\t\t{\r\n\t\t\tif(this.board[x][y] != 0)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.board[x][y] = ((this.turn % 2) + 1);\r\n\t\t\tthis.turn++;\r\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "68334a788c1277e0bbd346f133f67efd", "score": "0.6226138", "text": "private boolean movePawn(int curX, int curY, int newX, int newY, boolean turn) {\n\tif(!getPawnMoves(curX, curY, turn).contains(new Pair(newX, newY)))\n\t\treturn false;\n\telse {\n\t\tif(turn && newX==5 && newY==empAble)\n\t\t\tboard[curX][newY]=0;\n\t\tboard[newX][newY]=board[curX][curY];\n\t\tboard[curX][curY]=0;\n\t\tif(newX==(curX+2) || newX==(curX-2))\n\t\t\tempAble=newY;\n\t\telse\n\t\t\tempAble=-2;\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "2d4b517678cf4fcba6b96114c30a9d4c", "score": "0.622384", "text": "public void shiftTurn() {\n\t // Noone left - shouldn't happen, nothing to do\n\t\tif (isDefeated())\n\t return;\n\n\t\tdo {\n\t\t\tturn = (turn + 1) % worms.size();\n\t\t\tif (turn == worms.size() - 1)\n\t\t\t\tisRoundEnded = true;\n\t\t} while (worms.get(turn).isDead());\n\t}", "title": "" }, { "docid": "ad165fac25bb5ae87c69ccc5b6db08d1", "score": "0.6223445", "text": "boolean isAllowMove();", "title": "" }, { "docid": "b557f8ba478c0ccea4263b8dd844206f", "score": "0.6220261", "text": "protected boolean actMove() {\n if(navSys.getDestination()==null) {\n return false;\n }\n else if(navSys.setNextMove()) {\n yield();\n robotControl.setIndicatorString(0, \"ID: \" + robotControl.getRobot().getID() + \" - Location: \"+robotControl.getLocation().toString());\n return true;\n }\n System.out.println(\"WARNING: tried to move but couldn't\");\n return false;\n }", "title": "" }, { "docid": "a165b7252d166dbc189cb51c89e521ed", "score": "0.62187517", "text": "public void nextTurn(){\n //check if single player game, then let computer play turn\n if(!twoPlayer){\n if(freeSpots == 0){\n return ; //bail out if no more free spots\n }\n int aiColumn;\n do {\n //randomly pick a position\n aiColumn = (int) (Math.random() * boardColumns);\n }while(piecesInColumn[aiColumn]>=boardRows); //keep trying if this spot was taken\n //update grid with new play, computer is always y\n grid[aiColumn][boardRows - 1 - piecesInColumn[aiColumn]] = 'y'; \n //update free spots\n freeSpots--;\n //update number of pieces in that column\n piecesInColumn[aiColumn]++;\n }\n else{\n //change turns\n if(turn == 'r'){\n turn = 'y';\n }\n else{\n turn = 'r';\n }\n }\n return;\n }", "title": "" }, { "docid": "b91189e872ef4a18a7d615df4e3fddd6", "score": "0.6218668", "text": "public void turn(Turn turn) {\n\t\tsynchronized (this) {\n\t\t\tif (!turn.isExecuted()) // hij is aan de beurt\n\t\t\t{\n\t\t\t\tturn.setValid(this.board.turn(turn.getBlock(),\n\t\t\t\t\t\tturn.getRotation()));\n\t\t\t\tif (turn.getValid()) {\n\t\t\t\t\tturn.setExecuted(true);\n\n\t\t\t\t\tthis.localBroadcast(turn); // vertel iedereen dat de zet is\n\t\t\t\t\t\t\t\t\t\t\t\t// uitgevoerd\n\n\t\t\t\t\t// nieuwe player is aan de beurt\n\t\t\t\t\t//this.nextSettingPlayer();\n\t\t\t\t} else {\n\t\t\t\t\tPTLog.log(\"GameController\", \"DEBUG: Turn is invalid!\");\n\t\t\t\t\tthis.localBroadcast(turn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "114eb951a30062b620b0d9913e10417d", "score": "0.6218289", "text": "private boolean checkmate(){\n if(!getInCheck()){\n return false;\n } else{\n boolean currentPlayer = getCurrentPlayer();\n //boolean stillCheck = false;\n List<Piece> allPieces;\n\n if(currentPlayer){\n allPieces = whitePieces;\n } else{\n allPieces = blackPieces;\n }\n\n if(canEscapeFromCheck(allPieces)){\n return false;\n } else{\n return true;\n }\n }\n }", "title": "" }, { "docid": "6201238b3cefee12335bac4f83735f06", "score": "0.6216996", "text": "public boolean move(int fromX, int fromY, int toX, int toY)\n\t\t\tthrows Exception {\n\t\tplayer currentPlayer = turn == objectColor.white ? white : black;\n\t\tpiece piece = board[fromX][fromY].getPiece();\n\t\tboolean success = currentPlayer.move(piece, board[toX][toY]);\n\t\tif (success){\n\t\t\t\n\t\t\tturn = turn == objectColor.white ? objectColor.black\n\t\t\t\t\t: objectColor.white;\n\t\t\t\n\t\t\t//For castling logic\n\t\t\tpiece.firstMove = false;\n\t\t\t\n\t\t\t//Check for en passant. this sets the \"double move\" variable or removes the moved piece\n\t\t\tif (piece.type == pieceType.pawn){\t\t\t\n\t\t\t\tif ( (fromY - toY == -2) || (fromY - toY == 2)){\n\t\t\t\t\tpiece.pawnDoubleMove = true;\n\t\t\t\t}\n\t\t\t\t//Catches any diagional move so we still need to single out en passant moves\n\t\t\t\telse if( (fromY - toY == -1) || (fromY - toY == 1) &&\n\t\t\t\t\t\t (fromX - toX == -1) || (fromX - toX == 1)){\n\t\t\t\t\t//white en passant moving upward\n\t\t\t\t\tif( (fromY - toY == 1) && (board[toX][toY+1].getPiece().pawnDoubleMove == true) )\n\t\t\t\t\t\tboard[toX][toY+1].getPiece().setPieceState(pieceState.dead);\n\t\t\t\t\t//black en passant moving downward\n\t\t\t\t\telse if ( (fromY - toY == -1) && (board[toX][toY-1].getPiece().pawnDoubleMove == true) )\n\t\t\t\t\t\tboard[toX][toY-1].getPiece().setPieceState(pieceState.dead);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//For en passant logic. Needs to be after the en passant capture logic to make it work\n\t\t\tif (lastPieceMoved == null){\n\t\t\t\tlastPieceMoved = piece;\t\t\t\t\t//initialize\n\t\t\t\t//Don't need to set double move yet because there can't be an en passant on the 1st/2nd move\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlastPieceMoved.pawnDoubleMove = false;\t//resets last piece moved\n\t\t\t\tlastPieceMoved = piece;\t\t\t\t\t//sets current piece to \"last piece\"\n\t\t\t}\n\t\t\t\n\t\t\t//Check for a castle. All of the checking is done in king available moves, just move the rook now\n\t\t\tif (piece.type == pieceType.king && kingCastle == 1){\n\t\t\t\t\n\t\t\t\t//Special castle rules for Fischer Random Chess\n\t\t\t\tif(currentGameType == GameTypeConstraints.Fischer){\t\t\t\t\t\t\n\t\t\t\t\t//King side castle\n\t\t\t\t\tif ( toX == 6){\t\t//Moving to \"G\"\n\t\t\t\t\t\t//Grab the correct color rook. The turn swap takes place above this\n\t\t\t\t\t\tif( turn == objectColor.white ) {piece = black.pieces[9];}\n\t\t\t\t\t\telse{piece = white.pieces[9];}\t\n\n\t\t\t\t\t\t//Fix for the rook was on rank \"G\" and \"killed\" when the king moved there\n\t\t\t\t\t\tif (piece.state != pieceState.dead){\n\t\t\t\t\t\t\tboard[piece.location.x][fromY].setPiece(null);\t//Remove castle rook\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboard[5][fromY].setPiece(piece);\t\t\t\t//Create castle rook at new location\n\t\t\t\t\t\tpiece.setPieceState(pieceState.alive);\t\t\t//\"Enable\" castle rook\n\t\t\t\t\t\tpiece.location = board[5][fromY];\t\t\t\t//Fix castle rook location\n\t\t\t\t\t}\n\t\t\t\t\t//Queen side castle\n\t\t\t\t\tif ( toX == 2){\t\t//Moving to \"C\"\n\t\t\t\t\t\t//Grab the correct color rook. The turn swap takes place above this\n\t\t\t\t\t\tif( turn == objectColor.white ) {piece = black.pieces[8];}\n\t\t\t\t\t\telse{piece = white.pieces[8];}\t\n\n\t\t\t\t\t\t//Fix for the rook was on rank \"C\" and \"killed\" when the king moved there\n\t\t\t\t\t\tif (piece.state != pieceState.dead){\n\t\t\t\t\t\t\tboard[piece.location.x][fromY].setPiece(null);\t//Remove castle rook\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tboard[3][fromY].setPiece(piece);\t\t\t\t//Create castle rook at new location\n\t\t\t\t\t\tpiece.setPieceState(pieceState.alive);\t\t\t//\"Enable\" castle rook\n\t\t\t\t\t\tpiece.location = board[3][fromY];\t\t\t\t//Fix castle rook location\n\t\t\t\t\t}\n\t\t\t\t\t//Reset the castle variable. May not be the right place\n\t\t\t\t\tkingCastle = 0;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//King side castle\n\t\t\t\t\tif (fromX - toX == -2){\n\t\t\t\t\t\tpiece = board[fromX+3][fromY].getPiece();\t//Grab castle rook\n\t\t\t\t\t\tboard[fromX+3][fromY].setPiece(null);\t\t//Remove castle rook\n\t\t\t\t\t\tboard[fromX+1][fromY].setPiece(piece);\t\t//Create castle rook at new location\n\t\t\t\t\t\tpiece.setPieceState(pieceState.alive);\t\t//\"Enable\" castle rook\n\t\t\t\t\t\tpiece.location = board[fromX+1][fromY];\t\t//Fix castle rook location\n\t\t\t\t\t}\n\t\t\t\t\t//Queen side castle\n\t\t\t\t\tif (fromX - toX == 2){\n\t\t\t\t\t\tpiece = board[fromX-4][fromY].getPiece();\n\t\t\t\t\t\tboard[fromX-4][fromY].setPiece(null);\n\t\t\t\t\t\tboard[fromX-1][fromY].setPiece(piece);\n\t\t\t\t\t\tpiece.setPieceState(pieceState.alive);\n\t\t\t\t\t\tpiece.location = board[fromX-1][fromY];\n\t\t\t\t\t}\n\t\t\t\t\t//Reset the castle variable. May not be the right place\n\t\t\t\t\tkingCastle = 0;\n\t\t\t\t\n\t\t\t\t}//else not Fischer\n\t\t\t}\t//if(piece.type == pieceType.king && piece.firstMove == true)\n\t\t}\n\t\treturn success;\n\t}", "title": "" }, { "docid": "b742e72d207e6f995cd1515c71915031", "score": "0.6214652", "text": "private int playerTurn(int playerID) {\n if (playerID == 1) {\n Checker checker1 = new Checker('X');\n this.player1.move(this.gameBoard, checker1);\n rowPlacement = this.player1.getRowIndex();\n colPlacement = this.player1.getColIndex();\n playerID = 2; // Player should take turns to play\n } else {\n Checker checker2 = new Checker('O');\n this.player2.move(this.gameBoard, checker2);\n rowPlacement = this.player2.getRowIndex();\n colPlacement = this.player2.getColIndex();\n playerID = 1; // Player should take turns to play\n }\n\n return playerID;\n }", "title": "" }, { "docid": "6a38550c070cdd0dc168dedafb32e67f", "score": "0.621371", "text": "public ArrayList<Move> getLegalMoves() {\n Chip friend, enemy;\n ArrayList<Move> moveList = new ArrayList<Move>();\n\n /* if we've already calculated moves this turn, return cached results */\n // if (!moveListStale) {\n// return moveList;\n// }\n\n /* otherwise, clear the moveList and re-calculate for the current turn */\n // moveList.clear();\n // moveListStale = false;\n\n /* special case for first 2 turns */\n\n if (turn == 0) { // first turn for black\n Point p;\n /* corner pieces */\n p = new Point(0, 0);\n moveList.add(new Move(p, p));\n p = new Point((width/2)-1, (width/2)-1);\n moveList.add(new Move(p, p));\n p = new Point(width/2, width/2);\n moveList.add(new Move(p, p));\n p = new Point(width-1, width-1);\n moveList.add(new Move(p, p));\n\n return moveList;\n } else if (turn == 1) { // first turn for white\n /* scan board */\n for (int row=0; row<width; row++) {\n for (int col=0; col<width; col++) {\n /* look for empty square */\n if (this.getTile(row, col).getChip() == Chip.NONE) {\n /* tiles adjacent to an empty square are valid second moves */\n for (int rowChange=-1; rowChange<=1; rowChange++) {\n for (int colChange=-1; colChange<=1; colChange++) {\n if ((row+rowChange >= 0 && row+rowChange < width) && \n (col+colChange >= 0 && col+colChange < width) && \n (rowChange == 0 || colChange == 0) && \n (rowChange != colChange)) \n { \n Point p = new Point(row+rowChange, col+colChange);\n moveList.add(new Move(p, p));\n }\n }\n }\n }\n }\n }\n \n return moveList;\n }\n\n /* general case */\n\n /* figure out which color belongs to the current player */\n if (blackToPlay) {\n friend = Chip.BLACK;\n enemy = Chip.WHITE;\n } else {\n friend = Chip.WHITE;\n enemy = Chip.BLACK;\n }\n\n /* loop over board */\n for (int row=0; row<width; row++) {\n for (int col=0; col<width; col++) {\n /* for each square, check if the piece is ours; if not, we can't touch it */\n if (this.getTile(row, col).getChip() == friend) {\n Point start, end;\n start = new Point(row, col);\n\n /* see if we can make jumps in each direction */\n for (int rowChange=-1; rowChange<=1; rowChange++) {\n for (int colChange=-1; colChange<=1; colChange++) {\n if ( (rowChange == 0 || colChange == 0) &&\n\t\t\t\t (rowChange != 0 || colChange != 0))\n\t\t\t { // can only move in one direction at a time\n\n for (int r=row+rowChange, c=col+colChange, i=1; r<width; r+=rowChange, c+=colChange, i++) {\n\n if (r < 0 || r >= width || c < 0 || c >= width) {\n break; // we're out of bounds\n }\n if (i%2 == 0) { // ...a square we want to land in \n if (getTile(r, c).getChip() == Chip.NONE) {\n end = new Point(r, c); // if it's empty, the move is good\n moveList.add(new Move(start, end));\n } else {\n\t\t\t\t\t break; // if it's not empty, we can't jump into it\n\t\t\t\t\t}\n } else { // ...a square we want to jump over\n if (getTile(r, c).getChip() != enemy) {\n break; // nothing to jump means we can't move this direction\n }\n }\n }\n\n }\n }\n }\n\n }\n }\n }\n\n return moveList;\n }", "title": "" }, { "docid": "0074ec80744b3af4bb2d454409fe978d", "score": "0.6211982", "text": "void performTurn(Game game);", "title": "" }, { "docid": "ad5563bf25ea477b45a1b52a53e7dd0b", "score": "0.62095547", "text": "public boolean hasTurn() {\r\n return turn;\r\n }", "title": "" } ]
c97b62d0831fd1069ae9ca1513cc1138
Express the Regexp above with the code you wish you had
[ { "docid": "7a2cfc807dd580940623b9a90568f440", "score": "0.0", "text": "@Given(\"^(\\\\d+) and (\\\\d+) are provided$\")\n\tpublic void and_are_provided(int arg1, int arg2) throws Throwable {\n\t System.out.println(arg1 % arg2);\n\t}", "title": "" } ]
[ { "docid": "406695df8b70eff4275ab94aff363599", "score": "0.70254314", "text": "@Override\n\tpublic void visit(RegExpMatchOperator rexpr) {\n\t\t\n\t}", "title": "" }, { "docid": "cb1fea238a58c842d863b52bdc76873d", "score": "0.6719434", "text": "public abstract RegularExpression pattern();", "title": "" }, { "docid": "46b2937fe18424bb74d397d934ba7894", "score": "0.61265266", "text": "@Override\n protected String getRegex() {\n return \"_([^_]+)_ plays (\\\\d) _([^_]+)_, (\\\\d) _([^_]+)_ and (\\\\d) _([^_]+)_ _([^_]+)_ cards into the _([^_]+)_ pile\";\n }", "title": "" }, { "docid": "1b5a5d89dfcf67fb868d556aa287e8ed", "score": "0.61034703", "text": "public interface Regex {\n\n String getTraget();\n}", "title": "" }, { "docid": "426fbc7dea192b9211ab6eb88422b39a", "score": "0.60618985", "text": "RegexFormula all();", "title": "" }, { "docid": "d7d067860dfce2529305355912b4bc97", "score": "0.60335284", "text": "abstract void toRegexp(StringBuilder sb, List<F> filters);", "title": "" }, { "docid": "c5818ef1f029c9bc78a4d7be02981a69", "score": "0.592338", "text": "public interface Regexp extends Comparable<Regexp> {\n\n\n /**\n * Remove all references that the regexp has to the match m.\n *\n * @param m the match to remove references to.\n */\n void abandonMatch(final Match m, final Character currentChar);\n\n /**\n * Add an action to a regexp.\n *\n * @param a the action.\n */\n void add(final Action a);\n\n /**\n * Add a node and treat it as active.\n *\n * @param n the node to check for.\n */\n // XXX This should be DFA nodes. It never happens for NDFAs.\n void addActive(final Node n);\n\n /**\n * Allow a node to be treated as terminal.\n *\n * @param n a node\n */\n void addTerminalNode(final Node n); // Can be both N and D FA.\n\n /**\n * Add all the matches that are not dominated to the set of runnable\n * matches.\n *\n * @param runnableMatches A holder of matches.\n */\n void commitUndominated(final RunnableMatchesHolder runnableMatches);\n\n /**\n * Get a domination heap for a MatchSet.\n *\n * @param ms the MatchSet\n * @return the corresponding DominationHeap.\n */\n DominationHeap getDominationHeap(final MatchSet ms);\n\n /**\n * Remove all references to a particular MatchSet, and the matches within\n * it.\n *\n * @param ms a MatchSet instance..\n */\n void abandonMatchSet(final MatchSet ms);\n\n /**\n * Get the NDFANode representing the start state for the NDFA that will\n * match this regular expression.\n *\n * @return the node representing this regexp.\n */\n NDFANode getMyNode();\n\n /**\n * A string representing the same regexp as the Regexp instance.\n *\n * @return the regexp string for this regular expression.\n */\n String getRexpString();\n\n /**\n * True iff the the regexp has actions.\n *\n * @param a an action\n * @return true if the action is associated with the regexp.\n */\n // XXX Only for testing, should be moved to implementation class.\n boolean hasAction(final Action a);\n\n /**\n * True iff the regexp has any actions (if it doesn't it can be ignored\n * since it can have no observable impact).\n *\n * @return true iff the regexp has any actions associated with it.\n */\n boolean hasActions();\n\n /**\n * True iff there are matches associated with this regexp.\n *\n * @return True iff there are matches associated with the regexp.\n */\n boolean hasMatches(); // XXX Bogus?\n\n /**\n * True if a node is active for this regexp.\n *\n * @param n a node\n * @return true iff ithe node is active for the Regexp.\n */\n boolean isActiveFor(final Node n);\n\n /**\n * True iff the regexp has been compiled into an NDFA.\n *\n * @return true iff the regex is compiled to an ndfa.\n */\n boolean isCompiled();\n\n /**\n * True iff a match is dominating over all other matches for this regexp.\n *\n * @param m the match\n * @return is it dominating?\n */\n boolean isDominating(final Match m);\n\n /**\n * True iff the the node is terminal for this regexp.\n *\n * @param n the node.\n * @return true iff n is terminal for this regexp.\n */\n boolean hasTerminalNdfaNode(final Node n);\n\n /**\n * True iff the match is strongly dominated XXX Whatever that is!!\n *\n * @param m a match\n * @return true iff strongly dominated.\n */\n boolean isStronglyDominated(Match m);\n\n /**\n * Perform all actions on a buffer with a start a end location.\n *\n * @param b the buffer\n * @param start the start location\n * @param end the end location\n */\n void performActions(final Buffer b, final int start, final int end);\n\n /**\n * Register a match with this regexp.\n *\n * @param m a match that is registred with this regexp.\n */\n void registerMatch(final Match m);\n\n /**\n * Remove an action from this regexp.\n *\n * @param a removing an action from this regexp.\n */\n void remove(final Action a);\n\n /**\n * Set the compilation result to be an NDFA Node representing this regexp.\n *\n * @param myNode The NDFA node representing the entry point for the NDFA\n * representing the regexp.\n */\n void setMyNDFANode(final NDFANode myNode);\n\n /**\n * True if the regexp is associated with a particular match. For testing use\n * only (XXX So it should be removed to the implementation class and used\n * from there only).\n *\n * @param m a match\n * @return true iff the match is associated with this regexp.\n */\n boolean hasMatch(final Match m);\n}", "title": "" }, { "docid": "c26d90cd3a71a2b0b453dceefa93c9d9", "score": "0.5921325", "text": "private static ParsedRegex visitRegexStringNode(Node n,String inheritance,CompilerLogger logger)\n\t{\n\t\treturn ParsedRegex.simpleStringRegex(n.getTextContent());\n\t}", "title": "" }, { "docid": "d784def96287e7b9ef581ffbba6ddc26", "score": "0.5846267", "text": "public Regex(String aName, String aPattern, boolean isLiteral)\n{\n setName(aName); setPattern(aPattern); setLiteral(isLiteral);\n}", "title": "" }, { "docid": "bc7d78e9579896518bce67d15a27812a", "score": "0.583519", "text": "public static Tree processPattern(TregexPattern matchPattern, TsurgeonPattern p, Tree t)\n/* */ {\n/* 244 */ TregexMatcher m = matchPattern.matcher(t);\n/* 245 */ while (m.find()) {\n/* 246 */ t = p.evaluate(t, m);\n/* 247 */ if (t == null)\n/* */ break;\n/* 249 */ m = matchPattern.matcher(t);\n/* */ }\n/* 251 */ return t;\n/* */ }", "title": "" }, { "docid": "e805968297487baa2c2cace8d074d95c", "score": "0.5832078", "text": "public Regex(String aName, String aPattern) { setName(aName); setPattern(aPattern); }", "title": "" }, { "docid": "e613643850d4864bad268b36f1d28e26", "score": "0.57992804", "text": "private static String createRegex(String contains, String all) {\n StringBuilder pattern = new StringBuilder();\n pattern.append(\"^\");\n pattern.append(contains.substring(0, 1));\n createContainsGroups(contains.substring(1), pattern);\n createNotContainsGroups(contains, all, pattern);\n pattern.append(\"*$\");\n return pattern.toString();\n }", "title": "" }, { "docid": "d0f3f5a4f8af4a1844a58798144cc46b", "score": "0.577018", "text": "@Test\n\tpublic void test05RegExpDemo() {\n\t\tString tmpStr = \"My name is Bond. James Bond.\";\n\t\tPattern p = Pattern.compile(\"\\\\wond\");\n\t\tMatcher m = p.matcher(tmpStr);\n\n\t\tif (m.find()) {\n\t\t\tTestUtils.printLog(\"Group value: \" + m.group());\n\t\t\tint startIdx = m.start();\n\t\t\tTestUtils.printLog(\"1st start index: \" + startIdx);\n\t\t\tint endIdx = m.end();\n\t\t\tTestUtils.printLog(\"1st end index: \" + endIdx);\n\t\t\tTestUtils.printLog(\"Value: \" + tmpStr.substring(startIdx, endIdx));\n\t\t}\n\n\t\tif (m.find()) {\n\t\t\tTestUtils.printLog(\"Group value: \" + m.group());\n\t\t\tint startIdx = m.start();\n\t\t\tTestUtils.printLog(\"2nd start index: \" + startIdx);\n\t\t\tint endIdx = m.end();\n\t\t\tTestUtils.printLog(\"2nd end index: \" + endIdx);\n\t\t\tTestUtils.printLog(\"Value: \" + tmpStr.substring(startIdx, endIdx));\n\t\t}\n\t}", "title": "" }, { "docid": "5282e2367a33de3095e8fc284555ebcd", "score": "0.57411295", "text": "public static void main(String[] args) {\n// String regexp = \"((A*B|AC)D)\";\n String regexp = \"(.*AB((C|D|E)F)*G)\";\n String txt = \"ABG\";\n MyNFA nfa = new MyNFA(regexp);\n StdOut.println(nfa.recognizes(txt));\n }", "title": "" }, { "docid": "360935c2f7be39046ad83c52bcd6d9b6", "score": "0.5677813", "text": "public RegExp() {\n\tsuper();\n }", "title": "" }, { "docid": "efc5fd588b88452d96043f77f7e63f9d", "score": "0.56617165", "text": "private static void setupRegex()\n {\n seriePatterns.add(new SeriePattern());\n moviePatterns.add(new MoviePattern());\n }", "title": "" }, { "docid": "960eeecbf4318f82841526cefedc8ff7", "score": "0.5598376", "text": "interface ParserEx {\n // Pattern BEGINS_WITH_A_NUMBER = Pattern.compile(\"^(\\\\d+\\\\.?\\\\d*)\"); - obsolete\n Pattern IS_A_NUMBER = Pattern.compile(\"^(\\\\d+\\\\.?\\\\d*)$\");\n Pattern NONWORD_SEQUENCE = Pattern.compile(\"\\\\W+\");\n Pattern NONASCII_SEQUENCE = Pattern.compile(\"[^\\\\x00-\\\\x7F]+\");\n\n // Gets re-calculated when adding new known operators.\n // All characters included in operator tokens are automatically valid.\n Pattern DEFAULT_VALID_CHARS = Pattern.compile(\"[a-z\\\\s\\\\d\\\\.\\\\(\\\\)]*\");\n Pattern ANY_NUMBER = Pattern.compile(\"(\\\\d+\\\\.?\\\\d*)\");\n Pattern ANY_WHITESPACE = Pattern.compile(\"\\\\s+\");\n Pattern SPACES_AROUND_PARENTHESES = Pattern.compile(\"\\\\s*(\\\\(|\\\\))\\\\s*\");\n Pattern ATOM = Pattern.compile(\"ATOM\");\n\n // These replacements require regex with a capture group\n String REMOVE_SPACES_AROUND = \"$1\";\n String ADD_SPACES_AROUND = \" $1 \";\n}", "title": "" }, { "docid": "e27e7ea702c9f002864cee1ac3d5bf5f", "score": "0.55920684", "text": "private Pattern createRegEx(String pattern){\n\n String regex = pattern.replaceAll(\"\\\\*\",\".*\");\n\n return Pattern.compile(regex,Pattern.CASE_INSENSITIVE);\n }", "title": "" }, { "docid": "4e68625a5d834819aebd2f440b85cec1", "score": "0.55824745", "text": "@Test\n public void testRegexpStartText() throws Exception {\n assertEquals(\"base\", getRegexpFilterPrefixForPattern(\"base(Query)\"));\n // Quoted parts of the regexp are extracted verbatim\n assertEquals(\"base.*\", getRegexpFilterPrefixForPattern(Pattern.quote(\"base.*\")));\n // Quantifiers that can become 0 need to remove the character they work\n // on. Quantifiers on groups are handled by the group handling\n assertEquals(\"base\", getRegexpFilterPrefixForPattern(\"base+\"));\n assertEquals(\"bas\", getRegexpFilterPrefixForPattern(\"base?\"));\n assertEquals(\"bas\", getRegexpFilterPrefixForPattern(\"base*\"));\n assertEquals(\"bas\", getRegexpFilterPrefixForPattern(\"base{0,5}\"));\n }", "title": "" }, { "docid": "d21d80a03b2ebe43a1a279318fb2456d", "score": "0.55794716", "text": "public String toString() { return \"RMRegex \\\"\" + getPattern() + \"\\\"\"; }", "title": "" }, { "docid": "3c14ddf787d79210aac9cd39150e2ea9", "score": "0.5577348", "text": "java.lang.String getRE();", "title": "" }, { "docid": "3c14ddf787d79210aac9cd39150e2ea9", "score": "0.5577348", "text": "java.lang.String getRE();", "title": "" }, { "docid": "00cec84580446629f7b4c3fa164c8305", "score": "0.5562036", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tString pattern = (\"\\\\d{4}\\\\s*[A-Z]{2}\");\r\n\t\tString matcher = \"fred jansen 3100AB 10 km\";\t\t\r\n\t\t//patternMatcher(pattern,matcher);\r\n\t\t\r\n\t\tpattern = \"\\\\d{2}\";\r\n\t\tmatcher = \"fif45sss567hh458\";\r\n\t\tpatternMatcherSimple(pattern,matcher);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "08bacdb40f173a34c005024c9cd13523", "score": "0.5546862", "text": "@Override\n protected Pattern getRegexPattern() {\n return Pattern.compile(\n \"(<block>(.*?)</block>(\\r\\n)*)\" +\n \"|\" +\n \"((.+?)([.!?\\\\r\\\\n]+|$))\", Pattern.DOTALL);\n }", "title": "" }, { "docid": "7e12da3e5a2f5ec2daaa2044778290ae", "score": "0.55433536", "text": "private static ParsedRegex visitRegexPlusNode(Node n,String inheritance,CompilerLogger logger)\n\tthrows CopperException\n\t{\n\t\tParsedRegex pr = null,buffer;\n\t\tfor(int i = 0;i < n.getChildNodes().getLength();i++)\n\t\t{\n\t\t\tbuffer = visitRegexInteriorNode(n.getChildNodes().item(i),inheritance,logger);\n\t\t\tif(buffer != null && pr != null)\n\t\t\t{\n\t\t\t\tformalError(logger,n,\"has too many\",\"regex\",\"children\");\n\t\t\t}\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tpr = buffer;\n\t\t\t}\n\t\t}\n\t\treturn new Concatenation(pr,new KleeneStar(pr.clone()));\n\t}", "title": "" }, { "docid": "d7e0842191cf8379f9b929726f0ab94d", "score": "0.5483702", "text": "Pattern getScanRegexp() {\n if (regexp == null) {\n StringBuffer sb = new StringBuffer(200);\n Collection<String> patterns = Settings.getDefault().getPatterns();\n boolean needSeparator = false;\n for( String s : patterns ) {\n if (s.isEmpty()) {\n continue;\n }\n if( needSeparator ) {\n sb.append('|');\n }\n needSeparator = true;\n int n = s.length();\n // Insert token/boundary separator when we're dealing\n // with text tokens, since you probably don't want\n // a todo-match in a comment like\n // \"and now process GLYPTODON content\".\n // However, for non-token tags, such as \"<<<<\" don't\n // insert word boundary markers since it won't work - there's\n // no word on the right...\n if (Character.isJavaIdentifierPart(s.charAt(0))) {\n // isJavaIdentifierPart - roughly matches what regex\n // considers a word ([a-zA-Z_0-9])\n\n // \\W instead of \\b: Workarond for issue 30250\n sb.append(\"\\\\W\"); // NOI18N\n }\n // \"escape\" the string here such that regexp meta\n // characters are handled literally\n for (int j = 0; j < n; j++) {\n char c = s.charAt(j);\n // regexp metachar?\n if ((c == '(') || (c == ')') ||\n (c == '{') || (c == '}') ||\n (c == '[') || (c == ']') ||\n (c == '?') || (c == '*') || (c == '+') ||\n (c == '!') || (c == '|') || (c == '\\\\') ||\n (c == '^') || (c == '$') || (c == '.')) {\n sb.append('\\\\');\n }\n sb.append(c);\n }\n if (Character.isJavaIdentifierPart(s.charAt(n-1))) {\n sb.append(\"\\\\b\"); // NOI18N\n }\n }\n try {\n regexp = Pattern.compile(sb.toString(), Pattern.CASE_INSENSITIVE);\n } catch (PatternSyntaxException e) {\n // Internal error: the regexp should have been validated when\n // the user edited it\n Logger.getLogger( getClass().getName() ).log( Level.INFO, null, e );\n return null;\n }\n }\n return regexp;\n }", "title": "" }, { "docid": "1b98bde4767a4fc91aff7ca9c3d223f8", "score": "0.54836017", "text": "public boolean capture_DATE_UNIT(String sParagraph,String sRegExPrefix, String sRegExSuffix, \r\n int[] iPrevGroupNumber,boolean bMayLeave){\r\n/*\r\n$DATE_UNIT\t\t\t= \r\n qr/(?{$tempPart = '';})($DU)(?{$tempX = $map_val{lc($^N)};})\r\n ($WS$AND_PARTS)?(?{$tempDU = \"$tempPart$tempX\";})/;\r\n#date units\r\n */ \r\n Variables().startCapture();\r\n String sPattern = ConstRegEx.groupBrackets(\r\n Variables().hashtbLexValues.get(\"DU\")\r\n , iPrevGroupNumber);\r\n //String sNewSuffix = ConstRegEx.REST_ANY + sRegExSuffix;//2008.10.22\r\n Pattern patternLex = Pattern.compile(\r\n ConstRegEx.prefixWordSuffix(sPattern, sRegExPrefix, sRegExSuffix));\r\n boolean bResult = Find().printAllMatchResult(patternLex, sParagraph, false);\r\n if (bResult){\r\n try {\r\n Variables().saveCurrentMatch(iPrevGroupNumber[0]);\r\n\r\n Variables().tempVariables.stempPart = \"\";\r\n Variables().tempVariables.stempX = Variables().getMapHashValue(\r\n Variables().getResult_LowerCase(iPrevGroupNumber[0])\r\n );\r\n\r\n TempSaveCurrentMatch tmpMatch = new TempSaveCurrentMatch(Variables());\r\n sParagraph = tmpMatch.saveMatchAndMoveOverAndReset(sParagraph);\r\n\r\n String sNewPrefix = ConstRegEx.newPrefix(iPrevGroupNumber);\r\n \r\n bResult = pAnnotator.capture_WS_AND_PART_op(sParagraph,\r\n sNewPrefix, sRegExSuffix, iPrevGroupNumber, true);\r\n if (bResult) \r\n {\r\n //$tempDU = \"$tempPart$tempX\";\r\n try {\r\n Variables().tempVariables.stempDU = \r\n Variables().tempVariables.stempPart + \r\n Variables().tempVariables.stempX;\r\n\r\n tmpMatch.restoreCurrentMatch();\r\n \r\n } catch(Exception e){\r\n if (!bMayLeave){ Const.writeSpecificError(e, sParagraph);}\r\n } \r\n }\r\n return Variables().prepareReturn(true); \r\n } catch(Exception e){\r\n if (!bMayLeave){ Const.writeSpecificError(e, sParagraph);}\r\n } \r\n\r\n }\r\n return Variables().prepareReturn(bResult);\r\n }", "title": "" }, { "docid": "b43d14050348dbad6876486d6329c912", "score": "0.5481995", "text": "int matchstar(int c, char *regexp, char *text)\n\t{\n\tdo {\n\t/* a * matches zero or more instances */\n\tif (matchhere(regexp, text))\n\treturn 1;\n\t} while (*text != '\\0' && (*text++ == c || c == '.'));\n\treturn 0;\n\t}", "title": "" }, { "docid": "fe941179ddd0f376b4ec7185b6c3ae6f", "score": "0.5476129", "text": "int matchhere(char *regexp, char *text)\n\t{\n\tif (regexp[0] == '\\0')\n\treturn 1;\n\tif (regexp[1] == '*')\n\treturn matchstar(regexp[0], regexp+2, text);\n\n\twww.it-ebooks.info\n\n\tif (regexp[0] == '$' && regexp[1] == '\\0')\n\treturn *text == '\\0';\n\tif (*text!='\\0' && (regexp[0]=='.' || regexp[0]==*text))\n\treturn matchhere(regexp+1, text+1);\n\treturn 0;\n\n\t}", "title": "" }, { "docid": "c6cb043dafa57d7728bdf9eba2812065", "score": "0.5463896", "text": "String getValueRegex(String format);", "title": "" }, { "docid": "a70a90ca4de6431e20236c2c205f1ba6", "score": "0.5463457", "text": "String replace(MatchResult result);", "title": "" }, { "docid": "87f666d3a77ddbdf1d851e6ccc2264f6", "score": "0.5448879", "text": "com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation getRegexExpectation();", "title": "" }, { "docid": "aae070f5dd677a1705defb4f24b301fb", "score": "0.5440589", "text": "RegexFormula allChar();", "title": "" }, { "docid": "04b254f27a7f2244c9afe66e2ac7c5eb", "score": "0.5437964", "text": "public static void main(String[] args) {\n\t\tString regex1 = \"* as\";\n\t\tString regex2 = \",\";\n\t\tString query = \"a.FILEID as fileId, \";\n\t\tPattern pattern = Pattern.compile(\"a.* as\");\n\t\tMatcher matcher = pattern.matcher(query);\n\t\t//boolean b = matcher.matches();\n\t\tSystem.out.println(matcher.replaceAll(\"private String\"));\n\t\t\n\t}", "title": "" }, { "docid": "0f9f3322c034058be1132b6c487f9ad6", "score": "0.5427972", "text": "public Regex() { }", "title": "" }, { "docid": "21241e391ce2d62e8ca3ccc1209880d0", "score": "0.54177237", "text": "@Test\n public void testRegexQueryPcre() throws Exception {\n Reference value = createReference(\"foo\", DataTypes.STRING);\n Literal pattern = Literal.newLiteral(new BytesRef(\"\\\\D\"));\n Query query = convert(whereClause(RegexpMatchOperator.NAME, value, pattern));\n assertThat(query, instanceOf(RegexQuery.class));\n }", "title": "" }, { "docid": "b9d00a5e123a0d5d60d04534fca94f4d", "score": "0.54173064", "text": "final String makeOrRegexp() {\n StringBuilder sb = new StringBuilder(100);\n// final int len = MAGIC_PREFIX.length();\n for (GuardTag t: GuardTag.values()) {\n sb.append(t.name() + ':');\n sb.append('|');\n }\n\n return sb.substring(0, sb.length() - 1);\n }", "title": "" }, { "docid": "2f26fb23153d201ea4c35f48fa52a8ca", "score": "0.54040545", "text": "private void addRegexExpressions() {\n regexExpressions.add(new RandomExpression());\n }", "title": "" }, { "docid": "4cf50ad89d6a5baec852e083a8f773de", "score": "0.53877175", "text": "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "5727642b2495f9d55ecf1c64e72a7279", "score": "0.537862", "text": "public void reformat(){\r\n String neW = new String();\r\n char curr, nxt;\r\n for (int i = 0; i < regex.length(); i++){\r\n curr = regex.charAt(i);\r\n\r\n // adds an 'o' which indicates concatenation\r\n if (regex.length() > (i + 1)) {\r\n nxt = regex.charAt(i + 1);\r\n neW += curr;\r\n if (curr != '(' && nxt != ')' &&\r\n (nxt != 'U' && nxt != '*') &&\r\n curr != 'U') {\r\n neW += 'o';\r\n }\r\n }\r\n }\r\n // add the last character of the original string since it is skipped due to the if statement\r\n regex = neW + (regex.charAt(regex.length() - 1));\r\n }", "title": "" }, { "docid": "b4fe98d5ccc87ad8b6ac79f9c17e85a7", "score": "0.53532803", "text": "String getValueStringPattern();", "title": "" }, { "docid": "d5e68810d94d8972d7ecc28f96cdd9e4", "score": "0.5348279", "text": "private static ParsedRegex visitRegexOptNode(Node n,String inheritance,CompilerLogger logger)\n\tthrows CopperException\n\t{\n\t\tParsedRegex pr = null,buffer;\n\t\tfor(int i = 0;i < n.getChildNodes().getLength();i++)\n\t\t{\n\t\t\tbuffer = visitRegexInteriorNode(n.getChildNodes().item(i),inheritance,logger);\n\t\t\tif(buffer != null && pr != null)\n\t\t\t{\n\t\t\t\tformalError(logger,n,\"has too many\",\"regex\",\"children\");\n\t\t\t}\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tpr = buffer;\n\t\t\t}\n\t\t}\n\t\treturn new Choice(pr,new EmptyString());\n\t}", "title": "" }, { "docid": "362385c54b3d563225958c30eb2c5285", "score": "0.534551", "text": "@Test\n public void testBuild() throws Exception {\n System.out.println(\"build\");\n String regex = \"(a|b)*abb\";\n Regexer r = new Regexer();\n DFABuilder instance = new DFABuilder(r);\n\n \n Automaton dfa = instance.build(regex);\n \n assertEquals(true, dfa.simulate(\"abb\"));\n assertEquals(false, dfa.simulate(\"\"));\n assertEquals(false, dfa.simulate(\"ab\"));\n assertEquals(false, dfa.simulate(\"acb\"));\n \n regex = \"(a|b)*abb\";\n dfa = instance.build(regex);\n assertEquals(true, dfa.simulate(\"abb\"));\n assertEquals(false, dfa.simulate(\"\"));\n assertEquals(false, dfa.simulate(\"ab\"));\n assertEquals(false, dfa.simulate(\"acb\"));\n boolean result;\n \n regex = \"a*\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n regex = \"(a | b )?\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n regex = \"\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"a\");\n assertEquals(result, false);\n \n regex = \"\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n \n regex = \"a|ε\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"a\");\n assertEquals(result, true);\n \n regex = \"a|ε\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n regex = \"a|ε\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"aa\");\n assertEquals(result, false);\n \n regex = \"ab\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"a\");\n assertEquals(result, false);\n \n \n \n regex = \"(a | b )?\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n regex = \"(a | b )?\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"ab\");\n assertEquals(result, false);\n \n regex = \"(a | b )*\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n regex = \"(a | b )*\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abababa\");\n assertEquals(result, true);\n \n regex = \"b *\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abababa\");\n assertEquals(result, false);\n \n regex = \"b *\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n \n regex = \"b*\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"bbb\");\n assertEquals(result, true);\n \n regex = \"b *\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"bbba\");\n assertEquals(result, false);\n \n regex = \"(a | b )+\";\n dfa = instance.build(regex);\n //dfa.writeFile(\"archivo.txt\");\n result = dfa.simulate(\"ababab\");\n assertEquals(result, true);\n \n regex = \"(a | b )+\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, false);\n \n regex = \"(a b )+\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"ab\");\n assertEquals(result, true);\n \n regex = \"ab(a | b )*\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"aba\");\n assertEquals(result, true);\n \n regex = \"ab(a | b )*b\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abab\");\n assertEquals(result, true);\n \n regex = \"ab(a | b )*b\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abbb\");\n assertEquals(result, true);\n \n regex = \"ab(a | b )*b\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abaaaabaabbb\");\n assertEquals(result, true);\n \n regex = \"ab(a | b )*b\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abaaaabaabba\");\n assertEquals(result, false);\n \n regex = \"abcd\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"abcd\");\n assertEquals(result, true);\n \n regex = \"aε\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"a\");\n assertEquals(result, true);\n \n regex = \"ε\";\n dfa = instance.build(regex);\n result = dfa.simulate(\"\");\n assertEquals(result, true);\n }", "title": "" }, { "docid": "83f947a3f196a628702c52d7909c2b5b", "score": "0.5341967", "text": "private static ParsedRegex visitRegexKleeneStarNode(Node n,String inheritance, CompilerLogger logger)\n\tthrows CopperException\n\t{\n\t\tParsedRegex pr = null,buffer;\n\t\tfor(int i = 0;i < n.getChildNodes().getLength();i++)\n\t\t{\n\t\t\tbuffer = visitRegexInteriorNode(n.getChildNodes().item(i),inheritance,logger);\n\t\t\tif(buffer != null && pr != null)\n\t\t\t{\n\t\t\t\tformalError(logger,n,\"has too many\",\"regex\",\"children\");\n\t\t\t}\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tpr = buffer;\n\t\t\t}\n\t\t}\n\t\treturn new KleeneStar(pr);\n\t}", "title": "" }, { "docid": "d2d2c19ac6638c6d8cccba62c0857960", "score": "0.53271145", "text": "boolean hasRegexExpectation();", "title": "" }, { "docid": "403b89820d64f7e56407bb5efdd67699", "score": "0.5325664", "text": "public static void main(String[] args) {\n\t\tString s = \"the quick brown fox jumps over the lazy dog.\";\n\t\tString r = s.replaceAll(\"\\\\s([a-z]{4})\\\\s\", \" <b>$1</b> \");\n\t\tSystem.out.println(r); // the quick brown fox jumps <b>over</b> the <b>lazy</b> dog.\n\n\t\t// use <b>$1<b> to replace keyword having the length of 5\n\t\tString s2 = \"the quick brown fox jumps over the lazy dog.\";\n\t\tString r2 = s2.replaceAll(\"\\\\s([a-z]{5})\\\\s\", \" <b>$1</b> \");\n\t\tSystem.out.println(r2); // the quick brown fox jumps <b>over</b> the <b>lazy</b> dog.\n\t\n\t\t// use <b>$1<b> to replace keyword having the length of 3~5\n\t\tString s3 = \"the quick brown fox jumps over the lazy dog.\";\n\t\tString r3 = s3.replaceAll(\"\\\\s([a-z]{3,5})\\\\s\", \" <b>$1</b> \");\n\t\tSystem.out.println(r3); // the quick brown fox jumps <b>over</b> the <b>lazy</b> dog.\n\t\n\t\t// name the expression as four, and catch later\n\t\tString s4 = \"the quick brown fox jumps over the lazy dog.\";\n\t\tString r4 = s4.replaceAll(\"\\\\s(?<four>[a-z]{4})\\\\s\", \" <b>${four}</b> \");\n\t\tSystem.out.println(r4); // the quick brown fox jumps <b>over</b> the <b>lazy</b> dog.\t\n\n\t\t// swap $1 and $2\n\t\tString input = \"Hello, world! How are you?\";\n\t\tPattern pattern = Pattern.compile(\"(\\\\w+),\\\\s+(\\\\w+)!\");\n\t\tMatcher matcher = pattern.matcher(input);\n\t\tString output = matcher.replaceAll(\"$2, $1!\");\n\t\tSystem.out.println(output); // \"world, Hello! How are you?\"\n\t}", "title": "" }, { "docid": "a290de8940187034c79a187d7f298492", "score": "0.53225046", "text": "Regex(){\r\n this.expression = \"((?<lfull>\\\\-?\\\\d+(\\\\.\\\\d+)?\\\\+\\\\-?\\\\d+(\\\\.\\\\d+)?i)|\"\r\n + \"(?<ldig>\\\\-?\\\\d+(\\\\.\\\\d+)?)|(?<limag>\\\\-?\\\\d+(\\\\.\\\\d+)?i))\\\\s(?<op>\\\\+|\\\\-|\\\\*|\"\r\n + \"\\\\/|\\\\<|\\\\>|\\\\=|\\\\/\\\\=)\\\\s((?<rfull>\\\\-?\\\\d+(\\\\.\\\\d+)?\\\\+\\\\-?\\\\d+(\\\\.\\\\d+)?i)|\"\r\n + \"(?<rdig>\\\\-?\\\\d+(\\\\.\\\\d+)?)|(?<rimag>\\\\-?\\\\d+(\\\\.\\\\d+)?i))$\"; \r\n \r\n //Regex pattern used to validate line from file - it is hardcoded in.\r\n checkRegex = Pattern.compile(this.expression);\r\n \r\n matches = false;\r\n \r\n }", "title": "" }, { "docid": "7c4484e5a8fdc63ab5e7002f1bbb4ca1", "score": "0.5316066", "text": "void validateRegularExpression(String value, String messageExceptionRegExp) throws MockarooExceptionRegExpValue;", "title": "" }, { "docid": "3b77ad7f10dd37af830a9e4cd384e2bc", "score": "0.5294494", "text": "private String subEdit(String retval, String pattern, String value,\n\t\t\tPattern p) {\n\t\tint pos = retval.indexOf(pattern) + pattern.length();\n\t\tif (retval.charAt(pos) == '}') {\n\t\t\treturn retval.replace(pattern + \"}\", valueOf( value ));\n\n\t\t}\n\t\tif (retval.charAt(pos) == ':') {\n\t\t\tint endpos = retval.indexOf('}', pos);\n\t\t\tString idxStr = retval.substring(pos + 1, endpos);\n\t\t\tint patternIdx = Integer.valueOf(idxStr);\n\t\t\ttry {\n\t\t\t\tMatcher m = p.matcher( valueOf( value ));\n\t\t\t\tm.find();\n\t\t\t\tif (m.groupCount() < patternIdx)\n\t\t\t\t{\n\t\t\t\t\tthrow new IllegalArgumentException( String.format(\"Subpattern %s does not exist in %s matching %s\", patternIdx, p, valueOf( value )) );\n\t\t\t\t}\n\t\t\t\treturn retval.replace(\n\t\t\t\t\t\tretval.substring(retval.indexOf(pattern), endpos + 1),\n\t\t\t\t\t\tm.group(patternIdx));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IllegalArgumentException(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(String.format(\n\t\t\t\t\"Bad pattern string: %s\", pattern));\n\t}", "title": "" }, { "docid": "0d88ce0a33f699b9597b0d7819c2ca2b", "score": "0.52812207", "text": "private void genQuantifier() {\n double check = rng.nextDouble();\n if (check < 0.5) {\n this.regex +=\"{\";\n int x = 1 + rng.nextInt(SET_SIZE);\n String y = Integer.toString(x);\n this.regex += y + \"}\";\n }\n else if (check > 0.5) {\n if (check < 0.66)\n this.regex += \"*\";\n else if (check < 0.82)\n this.regex += \"+\";\n else if (check < 0.98)\n this.regex += \"?\";\n }\n }", "title": "" }, { "docid": "085adea83100d6a8de46eca93e89cae9", "score": "0.5271682", "text": "public RegexpValidator(Context c, Pattern p) {\n super(c);\n pattern=p;\n }", "title": "" }, { "docid": "82514eaac68f69a46fd7463a91c1d0fe", "score": "0.52682966", "text": "int getRegexSymbol();", "title": "" }, { "docid": "94b77d591299dc426ca2d2cd36b66747", "score": "0.52676344", "text": "@Override\n\tpublic void visit(Matches matches) {\n\t\t\n\t}", "title": "" }, { "docid": "ec8784cdedd702534296ea08e36cd64e", "score": "0.5264846", "text": "@Test\n public void folderPreviewRenditionRegexTest() {\n // TODO: test folderPreviewRenditionRegex\n }", "title": "" }, { "docid": "c45cff82bb3e78d3da3644162661023d", "score": "0.52425396", "text": "private RegExp<A> compute() {\n // compute the reg exp\n for (int s = 0; s < gnfa.length - 2; s++) {\n removeState(s);\n }\n \n int starti = gnfa.length - 2;\n int accepti = gnfa.length - 1;\n\tassert (starti == index(gnfaStart)) && (accepti == index(gnfaAccept));\n \n // extract the final reg exp which is found on the label from the \n // start state to the accept state\n RegExp<A> regexp = gnfa[starti][accepti];\n \n return regexp;\n }", "title": "" }, { "docid": "1495cfb7e436cab8b3b204d1dc0de6a6", "score": "0.52281296", "text": "@Override\n public void visit(Matches arg0) {\n\n }", "title": "" }, { "docid": "8167621a32c0120115675c1f4d5e2956", "score": "0.52274835", "text": "public boolean capture_NUM_PLURAL_DATE_Case1_1(String sParagraph,\r\n String sRegExPrefix, String sRegExSuffix, int[] iPrevGroupNumber,boolean bMayLeave) {\r\n/*\r\n * $NUM_PLURAL_DATE\t\t= qr/\r\n (($DATE_UNIT|$PLURAL_DATE_UNIT_LEX)($WS$AND_PARTS)?\r\n * (?{$tempNumPluralDate=\"$tempNo$tempPart$tempDU\"})/i;\r\n */ \r\n Variables().startCapture();\r\n //String sNewSuf = ConstRegEx.REST_ANY + sRegExSuffix;//2008.10.22\r\n\r\n TempResultVariables tempRes = new TempResultVariables(Variables());\r\n tempRes.setInitialValues(iPrevGroupNumber);\r\n\r\n if (capture_PLURAL_DATE_UNIT_LEX(sParagraph, \r\n sRegExPrefix, sRegExSuffix, iPrevGroupNumber, bMayLeave)){\r\n tempRes.setBestResult( iPrevGroupNumber[0]); \r\n }\r\n if (!tempRes.bAtLeastOneResult) {\r\n tempRes.resetInitialValues(iPrevGroupNumber);\r\n if (capture_DATE_UNIT(sParagraph, sRegExPrefix, \r\n sRegExSuffix, iPrevGroupNumber, bMayLeave)) {\r\n tempRes.setBestResult(iPrevGroupNumber[0]);\r\n }\r\n }\r\n tempRes.prepareReturn(iPrevGroupNumber);\r\n if (tempRes.bAtLeastOneResult) {\r\n try {\r\n TempSaveCurrentMatch tmpMatch = new TempSaveCurrentMatch(Variables());\r\n sParagraph = tmpMatch.saveMatchAndMoveOverAndReset(sParagraph);\r\n String sNewPref = ConstRegEx.newPrefix(iPrevGroupNumber);\r\n boolean bResult = pAnnotator.capture_WS_AND_PART_op(sParagraph, \r\n sNewPref, sRegExSuffix, iPrevGroupNumber, true);\r\n if (bResult) \r\n {\r\n //* (?{$tempNumPluralDate=\"$tempNo$tempPart$tempDU\"})/i;\r\n try {\r\n Variables().tempVariables.stempNumPluralDate =\r\n Variables().tempVariables.stempNo +\r\n Variables().tempVariables.stempPart +\r\n Variables().tempVariables.stempDU;\r\n tmpMatch.restoreCurrentMatch();\r\n } catch(Exception e){\r\n if (!bMayLeave) {\r\n System.out.println(e.toString());\r\n }\r\n } \r\n return Variables().prepareReturn(true);\r\n }\r\n //return Variables().prepareReturn(bResult);\r\n } catch(Exception e){\r\n if (!bMayLeave){ Const.writeSpecificError(e, sParagraph);}\r\n } \r\n }\r\n return Variables().prepareReturn(tempRes.bAtLeastOneResult);\r\n }", "title": "" }, { "docid": "df27ba05cede4690e10d67619f6d0c34", "score": "0.52228343", "text": "public interface IRegularConvertor {\n\n public String getRealRegex(String regex);\n\n public String getRealValue(String bshid, String bshlx);\n}", "title": "" }, { "docid": "ce8ad6f161b6b04971a8821a5b7d6861", "score": "0.5215179", "text": "public static String atrMatExg(String atr){\n return \"\\\"\" + atr + \"\\\"\\\\s*:\\\\s*(\" + egxDigit +\n \"|\" + egxString +\")\\\\s*,\"\n\n + \"|\" +\n\n \",\\\\s*\\\"\" + atr + \"\\\"\\\\s*:\\\\s*(\" + egxDigit +\n \"|\" + egxString +\")\\\\s*(?=[\\\\]\\\\}])\";\n }", "title": "" }, { "docid": "5dd27bdeabdfa37e23974c014ebe33c2", "score": "0.52086335", "text": "public RegexpMatcher newRegexpMatcher() throws BuildException {\n return newRegexpMatcher(null);\n }", "title": "" }, { "docid": "d0c4df9438addbcfc28df295cc032846", "score": "0.5203365", "text": "public void applyPattern(java.lang.String pattern) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "bfa2f328408a61f106df285d63ebfad4", "score": "0.5203258", "text": "public boolean capture_SPECIAL_DATE_LEX_Case1(String sParagraph, String sRegExPrefix, String sRegExSuffix, \r\n int[] iPrevGroupNumber,boolean bMayLeave){\r\n/*\r\n $SPECIAL_DATE_LEX\t\t= qr/(($THE|$AANONE)$WS)?$HOL/;\t\t\t\t\r\n#Names of special holidays \r\n $SPECIAL_DATE_NAME\t\t= \r\n qr/(($SPECIAL_DATE_GUESS|$SPECIAL_DATE_LEX)(?{$crtTimePoint->special(1);}))($WS$HOLIDAY)?/;\r\n\t\t\t\t#Special dates from the lexicon or guessed \r\n *\r\n */ \r\n Variables().startCapture();\r\n int iResGr = iPrevGroupNumber[0] + 1;\r\n String sPattern_Case1 =\r\n ConstRegEx.groupBrackets(\r\n ConstRegEx.groupBrackets(\r\n ConstRegEx.groupBrackets(\r\n Variables().hashtbLexValues.get(\"THE\").toString() + \"|\" +\r\n Variables().hashtbLexValues.get(\"AANONE\").toString(),\r\n iPrevGroupNumber) + \r\n ConstRegEx.groupBrackets(ConstRegEx.WS, iPrevGroupNumber),\r\n iPrevGroupNumber) + \"?\" +\r\n ConstRegEx.groupBrackets(\r\n Variables().hashtbLexValues.get(\"HOL\").toString()\r\n ,iPrevGroupNumber)\r\n , iPrevGroupNumber);\r\n int[] iTempGrNr = new int[1]; iTempGrNr[0] = 0;\r\n String sNewSuffix = \r\n ConstRegEx.groupBrackets(\r\n ConstRegEx.groupBrackets(\r\n ConstRegEx.groupBrackets(ConstRegEx.WS, iTempGrNr) + \r\n ConstRegEx.groupBrackets(\r\n Variables().hashtbLexValues.get(\"HOLIDAY\").toString(), iTempGrNr)\r\n ,iTempGrNr\r\n ) + \"?\" \r\n , iTempGrNr)+\r\n sRegExSuffix;\r\n\r\n Pattern patternLex = Pattern.compile(\r\n ConstRegEx.prefixWordSuffix(sPattern_Case1, sRegExPrefix, sNewSuffix),\r\n Pattern.CASE_INSENSITIVE\r\n );\r\n boolean bResult = Find().printAllMatchResult(patternLex, sParagraph, true);\r\n if ( bResult ){\r\n try{\r\n Variables().tempVariables.crtTimePoint.set(\"special\", \"1\");\r\n Variables().saveCurrentMatch(iResGr);\r\n Variables().concatenateSuffix(iPrevGroupNumber[0] + 1);\r\n iPrevGroupNumber[0] += iTempGrNr[0];\r\n } catch(Exception e){\r\n if (!bMayLeave){ Const.writeSpecificError(e, sParagraph);}\r\n Variables().tempVariables.sCurrentMatch = \"\";\r\n } \r\n\r\n }\r\n return Variables().prepareReturn(bResult);\r\n }", "title": "" }, { "docid": "5c66d235d2ca06f4e1ff37335e038837", "score": "0.5203232", "text": "boolean testCreation() {\n/* */ try {\n/* 692 */ this.regexp = new RE();\n/* 693 */ this.regexp.setProgram(this.test.compiler.compile(this.pattern));\n/* */ \n/* 695 */ if (this.badPattern) {\n/* */ \n/* 697 */ this.test.fail(this.log, \"Was expected to be an error, but wasn't.\");\n/* 698 */ return false;\n/* */ } \n/* */ \n/* 701 */ return true;\n/* */ \n/* */ }\n/* 704 */ catch (Exception e) {\n/* */ \n/* */ \n/* 707 */ if (this.badPattern) {\n/* */ \n/* 709 */ this.log.append(\" Match: ERR\\n\");\n/* 710 */ success(\"Produces an error (\" + e.toString() + \"), as expected.\");\n/* 711 */ return false;\n/* */ } \n/* */ \n/* */ \n/* 715 */ String message = (e.getMessage() == null) ? e.toString() : e.getMessage();\n/* 716 */ this.test.fail(this.log, \"Produces an unexpected exception \\\"\" + message + \"\\\"\");\n/* 717 */ e.printStackTrace();\n/* */ }\n/* 719 */ catch (Error e) {\n/* */ \n/* */ \n/* 722 */ this.test.fail(this.log, \"Compiler threw fatal error \\\"\" + e.getMessage() + \"\\\"\");\n/* 723 */ e.printStackTrace();\n/* */ } \n/* */ \n/* 726 */ return false;\n/* */ }", "title": "" }, { "docid": "849455e83aa755c48182364c43382bf0", "score": "0.5194735", "text": "@Test\n\tpublic void testRegexMySQL() throws Exception {\n\t\tRAExpression re = parse(\"SELECT * FROM pet WHERE name REGEXP '^b'\");\n\t\tassertEquals(1, re.getDataAtoms().size());\n\t\tassertEquals(1, re.getFilterAtoms().size());\n\t\tassertEquals(2, re.getAttributes().asMap().size());\n\t}", "title": "" }, { "docid": "007291332347f0647d25ff528e01f507", "score": "0.5138889", "text": "SporadicPattern createSporadicPattern();", "title": "" }, { "docid": "3951784afe6055bd2fc3285fc546fd21", "score": "0.51344734", "text": "void writeRegularExpression(String name, BsonRegularExpression regularExpression);", "title": "" }, { "docid": "f313111f8643983888c0d14a247284d0", "score": "0.5127047", "text": "IrregularPattern createIrregularPattern();", "title": "" }, { "docid": "9ecb4dc2942cca2a56e7929372245409", "score": "0.5124188", "text": "@Override\n\tpublic String sqlRegex(String columnname, String pattern, boolean caseinSensitive, boolean multiLine, boolean dotAllMode) {\n\t\tpattern = pattern.substring(1, pattern.length() - 1); // remove the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// enclosing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// quotes\n\t\t//An ARE can begin with embedded options: a sequence (?n) specifies options affecting the rest of the RE. \n\t\t//n is newline-sensitive matching\n\t\tString flags = \"\";\n\t\tif (multiLine)\n\t\t\tflags = \"(?w)\"; //inverse partial newline-sensitive matching\n\t\telse\n\t\tif(dotAllMode)\n\t\t\tflags = \"(?p)\"; //partial newline-sensitive matching\n\t\t\n\t\treturn columnname + \" ~\" + ((caseinSensitive)? \"* \" : \" \") + \"'\"+ ((multiLine && dotAllMode)? \"(?n)\" : flags) + pattern + \"'\";\n\t}", "title": "" }, { "docid": "e50dad3c2ec0f4868a5b006fff42e749", "score": "0.5123811", "text": "public Regex addChar(char c)\n{\n // Handle special chars: '.', '-'\n if(c=='.' || c=='-')\n append(\"\\\\\" + c);\n\n // Handle escape chars: \\, \\t, \\n, \\r, \\f (form-feed), \\a (alert/bell), \\e (escape)\n else if(c=='\\\\' || c=='\\t' || c=='\\n' || c=='\\r' || c=='\\f')\n append(\"\\\\\" + c);\n \n // Handle '[',']' (letter group), '^' (not letter, begin line anchor), '-' (dash), '&' ampersand\n else if(c=='[' || c==']'|| c=='^' || c=='-' || c=='&')\n append(\"\\\\\" + c);\n \n // Handle anchors: '^' (begin line), '$' (end line), \n else if(c=='^' || c=='$')\n append(\"\\\\\" + c);\n \n // Handle Greedy quantifiers: '?' (optional), '*' (zero or more), '+' (one or more), '{', '}' (n times)\n else if(c=='?' || c=='*' || c=='+' || c=='{' || c=='}')\n append(\"\\\\\" + c);\n \n // Handle logical operators: '|' (or), '(', ')' (capturing group), \n else if(c=='|' || c=='(' || c==')' )\n append(\"\\\\\" + c);\n \n // Otherwise, just append char\n else append(c);\n\n // Return this\n return this;\n}", "title": "" }, { "docid": "61ff5ed0b7e07b6ed1c4303a097d5a5c", "score": "0.51231277", "text": "void nextPattern();", "title": "" }, { "docid": "40cb9b3eb52f2696156b61d704bef4c9", "score": "0.50967354", "text": "@Override\n\tpublic void visit(RegExpMySQLOperator regExpMySQLOperator) {\n\t\t\n\t}", "title": "" }, { "docid": "3758af0c65132d284b9425011980fa1d", "score": "0.50937784", "text": "private static ParsedRegex visitRegexChoiceNode(Node n, String inheritance,CompilerLogger logger)\n\tthrows CopperException\n\t{\n\t\tLinkedList<ParsedRegex> subexps = new LinkedList<ParsedRegex>();\n\t\tfor(int i = 0;i < n.getChildNodes().getLength();i++)\n\t\t{\n\t\t\tParsedRegex pr = visitRegexInteriorNode(n.getChildNodes().item(i),inheritance,logger);\n\t\t\tif(pr != null) subexps.add(pr);\n\t\t}\n\t\tParsedRegex[] subexpsA = new ParsedRegex[subexps.size()];\n\t\tint i = 0;\n\t\tfor(ParsedRegex se : subexps) subexpsA[i++] = se; \n\t\treturn new Choice(subexpsA);\n\t}", "title": "" }, { "docid": "ec5d16ec3ac534f42469d705cd7dc048", "score": "0.5085347", "text": "public MyNFA(String regexp) {\n this.regexp = regexp;\n M = regexp.length();\n buildNFA();\n }", "title": "" }, { "docid": "965556bf711a52a3a76d2f1e91f35605", "score": "0.5071948", "text": "public java.lang.String toPattern() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "639723391690b9f90bcf82ca88779144", "score": "0.5067051", "text": "public String getRex() {\n return regex;\n }", "title": "" }, { "docid": "48877c16a000d258eebad6f6ad81f826", "score": "0.5063276", "text": "private CharMatcherExt() {}", "title": "" }, { "docid": "86efae0c7077d3bc12102b6cbf6b7e10", "score": "0.5029021", "text": "java.lang.String getMatch();", "title": "" }, { "docid": "f16c3c9cafd4e08d68cc7fe31cec3555", "score": "0.5010589", "text": "public static Match $() {\r\n return $(builder().newDocument());\r\n }", "title": "" }, { "docid": "9cf1605db2393f3e932bf107dadd6b69", "score": "0.50089145", "text": "protected Match() {\r\n\r\n }", "title": "" }, { "docid": "3bc3dc389174eff2cd2e591ef2b9d629", "score": "0.50075215", "text": "@Override\n\tpublic void providepattern() {\n\t\t\n\t}", "title": "" }, { "docid": "187dae0ce0007930cc772e0500fd5ee6", "score": "0.5000491", "text": "@Test\n public void test4() throws Throwable {\n AntPathMatcher antPathMatcher0 = new AntPathMatcher();\n String string0 = \"]~l|*yXch7\\\\8xhP?\";\n String string1 = antPathMatcher0.extractPathWithinPattern(string0, string0);\n assertEquals(\"/]~l|*yXch7\\\\8xhP?\", string1);\n assertNotNull(string1);\n \n boolean boolean0 = antPathMatcher0.isPattern(string1);\n assertEquals(true, boolean0);\n }", "title": "" }, { "docid": "177bc620e16466ab5951a5ce75738168", "score": "0.49984252", "text": "public interface MyParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int CABECERA = 5;\r\n /** RegularExpression Id. */\r\n int HTML = 6;\r\n /** RegularExpression Id. */\r\n int HTML_FIN = 7;\r\n /** RegularExpression Id. */\r\n int HEAD = 8;\r\n /** RegularExpression Id. */\r\n int HEAD_FIN = 9;\r\n /** RegularExpression Id. */\r\n int META = 10;\r\n /** RegularExpression Id. */\r\n int TITLE = 11;\r\n /** RegularExpression Id. */\r\n int BODY = 12;\r\n /** RegularExpression Id. */\r\n int BODY_FIN = 13;\r\n /** RegularExpression Id. */\r\n int INICIO_TABLA = 14;\r\n /** RegularExpression Id. */\r\n int NOMBRE_EMPRESA = 15;\r\n /** RegularExpression Id. */\r\n int COTIZACION_EMPRESA = 16;\r\n /** RegularExpression Id. */\r\n int FIN_TBODY = 17;\r\n /** RegularExpression Id. */\r\n int A_HREF = 18;\r\n /** RegularExpression Id. */\r\n int A_FIN = 19;\r\n /** RegularExpression Id. */\r\n int TD_FIN = 20;\r\n /** RegularExpression Id. */\r\n int ETIQUETA = 21;\r\n /** RegularExpression Id. */\r\n int ETIQUETA_FIN = 22;\r\n /** RegularExpression Id. */\r\n int BARRA = 23;\r\n /** RegularExpression Id. */\r\n int NUMERO = 24;\r\n /** RegularExpression Id. */\r\n int CARACTERES = 25;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"<!DOCTYPE html>\\\"\",\r\n \"\\\"<html>\\\"\",\r\n \"\\\"</html>\\\"\",\r\n \"\\\"<head>\\\"\",\r\n \"\\\"</head>\\\"\",\r\n \"\\\"<meta\\\"\",\r\n \"\\\"<title>\\\"\",\r\n \"\\\"<body\\\"\",\r\n \"\\\"</body>\\\"\",\r\n \"\\\"<td class=\\\\\\\"bookmark favorites\\\\\\\"><a class=\\\\\\\"icon-star\\\\\\\">\\\"\",\r\n \"\\\"<td class=\\\\\\\"name\\\\\\\">\\\"\",\r\n \"\\\"<td class=\\\\\\\"price flop\\\\\\\">\\\"\",\r\n \"\\\"</tbody>\\\"\",\r\n \"\\\"<a href=\\\\\\\"/cotizacion/\\\"\",\r\n \"\\\"</a>\\\"\",\r\n \"\\\"</td>\\\"\",\r\n \"\\\"<\\\"\",\r\n \"\\\">\\\"\",\r\n \"\\\"/\\\"\",\r\n \"<NUMERO>\",\r\n \"<CARACTERES>\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "ebf210e6257629de09d8e391469e350e", "score": "0.49936563", "text": "VariablesRegex(String regex, String type){\n this.reg = regex;\n this.type = type;\n }", "title": "" }, { "docid": "12670592ac079a95eb743ca1069ed57a", "score": "0.49899697", "text": "public static String twoAlMatExg(){\n return \"\\\"[A-Za-ce-hj-z0-9_]{2}\\\"\\\\s*:\\\\s*(\" + egxDigit +\n \"|\" + egxString +\")\\\\s*,\"\n\n + \"|\" +\n\n \",\\\\s*\\\"[A-Za-ce-hj-z0-9_]{2}\\\"\\\\s*:\\\\s*(\" + egxDigit +\n \"|\" + egxString +\")\\\\s*(?=[\\\\]\\\\}])\";\n }", "title": "" }, { "docid": "fb224c147462cd7c5d34dfb53f790805", "score": "0.4988111", "text": "void visit(RegExp.Nil op) {\n }", "title": "" }, { "docid": "bdc4f14319e879f9da061dd46ab3ee40", "score": "0.49881032", "text": "private STNode parseReEscape() {\n STNode backSlash = consume();\n return parseEscapeChar(backSlash);\n }", "title": "" }, { "docid": "bc07bce6b3272a321d208ad05588b5be", "score": "0.49868762", "text": "private static ParsedRegex visitRegexConcatNode(Node n, String inheritance,CompilerLogger logger)\n\tthrows CopperException\n\t{\n\t\tLinkedList<ParsedRegex> subexps = new LinkedList<ParsedRegex>();\n\t\tfor(int i = 0;i < n.getChildNodes().getLength();i++)\n\t\t{\n\t\t\tParsedRegex pr = visitRegexInteriorNode(n.getChildNodes().item(i),inheritance,logger);\n\t\t\tif(pr != null) subexps.add(pr);\n\t\t}\n\t\tParsedRegex[] subexpsA = new ParsedRegex[subexps.size()];\n\t\tint i = 0;\n\t\tfor(ParsedRegex se : subexps) subexpsA[i++] = se; \n\t\treturn new Concatenation(subexpsA);\n\t}", "title": "" }, { "docid": "70b939c9dd19f73aab6ad1847ab53636", "score": "0.49863598", "text": "private void compilePattern() {\n\n\t\tString patternString = \"(\" + StringUtils.join(this.contractions.keySet(), \"|\") + \")\";\n\t\tthis.pattern = Pattern.compile(patternString);\n\t}", "title": "" }, { "docid": "698f0c3a8f8725abc788362b26279b94", "score": "0.49852517", "text": "public LabledRegexNoQualifierProcessor(RegexPredicate predicate) {\n this.predicate = predicate;\n // populate labelList and affixList\n preprocessRegex();\n }", "title": "" }, { "docid": "dd655ca16d3f29150fa98c05ce43f4a1", "score": "0.49844414", "text": "public String reconstruct() {\n return \"pattern matching \" + getItemType();\n }", "title": "" }, { "docid": "b3da16229f14d8834727ce862bdf1de7", "score": "0.49815828", "text": "public void testMatches() {\n System.out.println(\"matches\");\n \n String str = \"animals such as cats\";\n String term1 = \"animals\";\n String term2 = \"cats\";\n Pattern instance = new Pattern(\"1 such * 2\");\n \n boolean expResult = true;\n boolean result = instance.matches(str, term1, term2);\n assertEquals(expResult, result);\n \n instance = new Pattern(\" * 1 methyl (2(ch3\");\n term1 = \"America\";\n term2 = \"America\";\n str = \" belgium | bulgaria | canada | czech republic | denmark | estonia | france | germany | greece | hungary | iceland | italy | latvia | lithuania | luxembourg | the netherlands | norway | poland | portugal | romania | slovakia | slovenia | spain | turkey | united kingdom | united states of america\";\n assertEquals(false,instance.matches(str,term1,term2));\n \n }", "title": "" }, { "docid": "b6b4bf18221e95ba449079610a791b2a", "score": "0.49808678", "text": "@Override\n\tpublic String getPattern() {\n\t\treturn \"(main Eth speed:.*?\\\\n\";\n\t}", "title": "" }, { "docid": "b99b1ad47b76de52a7eaf9faaf84142a", "score": "0.49788165", "text": "@Test\n\t public void templateCharAsPartOfString2(){\n\t \tmap.store(\"name\", \"Adam\", true);\n\t map.store(\"sur$\", \"Dykes\", true);\n\t map.store(\"type\",\"Brown\", false);\n\t String expectedResult = engine.evaluate(\"Hello ${name} ${sur$}\", map,\"keep-unmatched\");\n\t String result = engine.evaluate(\"Hello ${name} ${sur$}\", map,\"optimization\");\n\t \tassertEquals(expectedResult,result); \n\t }", "title": "" }, { "docid": "1d503e8aaeb47847687205ca45d79f5c", "score": "0.4970603", "text": "public static RBTerm regexp(final String re) {\n\t\ttry {\n\t\t\treturn new RBJavaObjectCompoundTerm(new RE(re) {\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\tpublic String toString() {\n\t\t\t\t\treturn \"/\"+re+\"/\";\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (org.apache.regexp.RESyntaxException e) {\n\t\t\tthrow new Error(\"Regular expression syntax error\");\n\t\t}\n\t}", "title": "" }, { "docid": "fa733343f6bfffeb44bd92d1c107bd4b", "score": "0.49689895", "text": "void eval(Regex exp, Path path, Node start, Node src){\n//\t\tSystem.out.println(exp);\n\t\tRecord stack = new Record().push(exp);\n\t\ttry {\n\t\t\teval(stack, path, start, src, false);\n\t\t}\n\t\tcatch (StackOverflowError e){\n\t\t\tlogger.error(\"** Property Path Error: \\n\" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "bb0cd6b9443f83e76a4acd73ad08ae1f", "score": "0.49647933", "text": "private static ParsedRegex visitRegexMacroNode(Node n,String inheritance,CompilerLogger logger)\n\tthrows CopperException\n\t{\n\t\tint termNodeIndex = -1;\n\t\tfor(int i = 0;i < n.getChildNodes().getLength();i++)\n\t\t{\n\t\t\tif(n.getChildNodes().item(i).getNodeName().equals(\"term\"))\n\t\t\t{\n\t\t\t\tif(termNodeIndex == -1) termNodeIndex = i;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tformalError(logger,n,\"has more than one\",\"term\",\"child\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(!n.getChildNodes().item(i).getNodeName().startsWith(\"#\"))\n\t\t\t{\n\t\t\t\tformalError(logger,n,\"has invalid\",n.getChildNodes().item(i).getNodeName(),\"child\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(n.getChildNodes().item(termNodeIndex).getAttributes().getNamedItem(\"id\") == null)\n\t\t{\n\t\t\tformalError(logger,n.getChildNodes().item(termNodeIndex),\"missing\",\"id\",\"attribute\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn new MacroHole(new Terminal(n.getChildNodes().item(termNodeIndex).getAttributes().getNamedItem(\"id\").getTextContent()));\n\t}", "title": "" }, { "docid": "751b45ce5f6f36eb74d765ec4dd5efa1", "score": "0.49601388", "text": "static String getPatternAsRegex(String pattern) {\n pattern = pattern.substring(0, pattern.indexOf(\"?\"));\n if(!pattern.endsWith(\"$\") && !pattern.endsWith(\"*\")){\n pattern = pattern + \"*\";\n }\n String regex = pattern.replaceAll(\"\\\\*\", \".*\");\n\n return regex;\n }", "title": "" }, { "docid": "fba15bf5f31158899d8ed8b608bf609c", "score": "0.49574977", "text": "public DateMatcher() {\r\n Pattern p;\r\n\r\n String dd = \"([1-9]|0[1-9]|[1-2][0-9]|3[01])\";\r\n String dds = \"((^[1-9]|0[1-9]|[1-2][0-9]|3[01]))\";\r\n String mm = \"(([1-9]|0[1-9]|1[0-2])|(January|February|March|April|May|June|July|August|September|October|November|December)|(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sept|Oct|Nov|Dec))\";\r\n String mms = \"((^[1-9]|0[1-9]|1[0-2])|(January|February|March|April|May|June|July|August|September|October|November|December)|(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sept|Oct|Nov|Dec))\";\r\n String mm1 = \"((January|February|March|April|May|June|July|August|September|October|November|December)|(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sept|Oct|Nov|Dec))\";\r\n String yyyy = \"(\\\\d\\\\d\\\\d\\\\d)\";\r\n String sep = \"(/|\\\\s|-|.)\";\r\n\r\n // dd/mm/yyyy or dd mm yyyy or dd-mm-yyyy or dd January yyyy or dd Jan 2009\r\n p = Pattern.compile(\".*\" + dd + sep + mm + sep + yyyy + \".*\");\r\n patterns.add(p);\r\n\r\n // yyyy/mm/dd or 2009 January 1 or 2009 Jan 1\r\n p = Pattern.compile(\".*\" + yyyy + sep + mm + sep + dd + \".*\");\r\n patterns.add(p);\r\n\r\n // mm dd yyyy\r\n p = Pattern.compile(\".*\" + mms + sep + dd + sep + yyyy + \".*\");\r\n patterns.add(p);\r\n\r\n //January 2, 2008 or January 2 2008\r\n p = Pattern.compile(\".*\" + mm1 + \"(\\\\s)\" + dd + \"(,\\\\s|\\\\s)\" + yyyy + \".*\");\r\n patterns.add(p);\r\n \r\n\r\n\r\n }", "title": "" }, { "docid": "735407896d9b4aebac3004529bf2ec75", "score": "0.49561247", "text": "private Pattern composePattern(String prefix, String address) {\n\t\treturn Pattern.compile(\"\\\\b\" + prefix + \"\\\\s{0,3}\" + address,\r\n\t\t\t\tPattern.UNICODE_CHARACTER_CLASS | Pattern.CASE_INSENSITIVE);\r\n\t}", "title": "" }, { "docid": "399a3037aea0996f0eb31aabbe028823", "score": "0.4947391", "text": "public Pattern getGeneralRegexpPattern() {\n return regexpIfMatch;\n }", "title": "" }, { "docid": "5b90f0824edd3882decbf26f815c04de", "score": "0.49447784", "text": "public interface IPatternMatcher {\n\n void processSentences(List<String> sentences, String url);\n\n}", "title": "" } ]
816efb3ccbf523fb914a66c2547a1c67
Gets the style value for this MapOptions.
[ { "docid": "cea75f6b4d721b5f7ae1209116a858b5", "score": "0.79088765", "text": "public MapStyle getStyle() {\n return style;\n }", "title": "" } ]
[ { "docid": "7d897d8410d28d05e833aae0eb2a0128", "score": "0.76573", "text": "public String getStyle() { return style.getValue(); }", "title": "" }, { "docid": "6679407d32546fab8030328301e8c4f4", "score": "0.7116363", "text": "public String getStyle() {\r\n return style;\r\n }", "title": "" }, { "docid": "130d13863e7619bde3a1c8fd89c38bdd", "score": "0.70799166", "text": "public String getStyle() {\n return style;\n }", "title": "" }, { "docid": "130d13863e7619bde3a1c8fd89c38bdd", "score": "0.70799166", "text": "public String getStyle() {\n return style;\n }", "title": "" }, { "docid": "01755d42fc02a4d1e8cdd38dc59e236f", "score": "0.70692235", "text": "public String getStyle() {\n return this.style;\n }", "title": "" }, { "docid": "fcc81f6404f1a178c158616c5855a880", "score": "0.6931049", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.Style getStyle() {\n if (valueCase_ == 2) {\n return (com.didiglobal.booster.aapt2.Resources.Style) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Style.getDefaultInstance();\n }", "title": "" }, { "docid": "d957be65bdbbb95c0ed9b05adc8d5134", "score": "0.690188", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.Style getStyle() {\n if (styleBuilder_ == null) {\n if (valueCase_ == 2) {\n return (com.didiglobal.booster.aapt2.Resources.Style) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Style.getDefaultInstance();\n } else {\n if (valueCase_ == 2) {\n return styleBuilder_.getMessage();\n }\n return com.didiglobal.booster.aapt2.Resources.Style.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "8a7569117e996d76d4de98fa4ae52972", "score": "0.6873288", "text": "public String getStyle()\n\t{\n\t\treturn style;\n\t}", "title": "" }, { "docid": "07476d73c0b65e30ce811dc8c2a73262", "score": "0.6773846", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyleOrBuilder getStyleOrBuilder() {\n if (valueCase_ == 2) {\n return (com.didiglobal.booster.aapt2.Resources.Style) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Style.getDefaultInstance();\n }", "title": "" }, { "docid": "fe1e07d96015c29463a187f25b7d6c15", "score": "0.67025834", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyleOrBuilder getStyleOrBuilder() {\n if ((valueCase_ == 2) && (styleBuilder_ != null)) {\n return styleBuilder_.getMessageOrBuilder();\n } else {\n if (valueCase_ == 2) {\n return (com.didiglobal.booster.aapt2.Resources.Style) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Style.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "6dd5c62ec826f8a95f822e0cfdb76fa7", "score": "0.66949844", "text": "String getStyle();", "title": "" }, { "docid": "9915237367197ca725a9ab7a76d36568", "score": "0.6472429", "text": "public Map<String, JRStyle> getStylesMap()\n\t{\n\t\treturn stylesMap;\n\t}", "title": "" }, { "docid": "292af33ba50dca27a34978ead656b938", "score": "0.6416419", "text": "public String getStyleColor() {\n return (String) getAttributeInternal(STYLECOLOR);\n }", "title": "" }, { "docid": "b526df20fac6f326a0a464b5ec06eec7", "score": "0.6307431", "text": "public String getStyleNumber() {\n return styleNumber;\n }", "title": "" }, { "docid": "55dde3afcc7eacc49fdba3f0d05605f0", "score": "0.62720686", "text": "public String getStyle()\r\n\t{\r\n\t\treturn getStyle( getSession().getSessionContext() );\r\n\t}", "title": "" }, { "docid": "d10d84e0c462a3697e3f7b53db07fc87", "score": "0.6269734", "text": "public String getDrawingStyle() {\n return style_;\n }", "title": "" }, { "docid": "d823a7841af7eac58936ed3db873c085", "score": "0.6215089", "text": "public int getStyleId() {\n return styleId;\n }", "title": "" }, { "docid": "a758a8230476228a7f635fa6ef4bb912", "score": "0.614011", "text": "public String getStyle(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, STYLE);\r\n\t}", "title": "" }, { "docid": "92199b8520ea02aaf622a7bbdb251d38", "score": "0.61334234", "text": "public int getStyleAttribute();", "title": "" }, { "docid": "d34440d3a1413b6708734e5bd1fbca48", "score": "0.6109308", "text": "public String jsxGet_fontStyle() {\n return getStyleAttribute(\"fontStyle\", true);\n }", "title": "" }, { "docid": "dab1101636244f30282261c2d1b9a78d", "score": "0.61066395", "text": "public String getKnowStyle() {\n return (String)getAttributeInternal(KNOWSTYLE);\n }", "title": "" }, { "docid": "dab1101636244f30282261c2d1b9a78d", "score": "0.61066395", "text": "public String getKnowStyle() {\n return (String)getAttributeInternal(KNOWSTYLE);\n }", "title": "" }, { "docid": "bdc7775b31e4b1c12c900d57a334a8e2", "score": "0.6091344", "text": "public int getProvinceStyle()\t\t{ return styleProvince; }", "title": "" }, { "docid": "826778f9ec1f100c77df49a585c118e5", "score": "0.6088968", "text": "public int getStrokeStyle() {\r\n return g.getStrokeStyle();\r\n }", "title": "" }, { "docid": "e22fdddf40c55a37b7f7cbb6cd10e0d3", "score": "0.60377616", "text": "public int getAnnotationStyle() {\n\treturn annotationStyle;\n }", "title": "" }, { "docid": "bdfc20e5f309d9af4c818b79f355e351", "score": "0.59715635", "text": "public String getStyleNumber() {\n return (String)getAttributeInternal(STYLENUMBER);\n }", "title": "" }, { "docid": "bdfc20e5f309d9af4c818b79f355e351", "score": "0.59715635", "text": "public String getStyleNumber() {\n return (String)getAttributeInternal(STYLENUMBER);\n }", "title": "" }, { "docid": "01e085d9938ace19aee4f84daa69b49d", "score": "0.5957982", "text": "public final String getStyleName() {\n return styleName;\n }", "title": "" }, { "docid": "1f673bd0104dd3c652cde1f1307808a1", "score": "0.5955457", "text": "final public String getStyleClass()\n {\n return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));\n }", "title": "" }, { "docid": "cd44ba5c2549e7e720b1f17e46282d35", "score": "0.5936527", "text": "public final Style getStyle() {\n return sharedStyle;\n }", "title": "" }, { "docid": "ed54fbebd08a99e3a4c53b0e32997d8e", "score": "0.5928836", "text": "public String getCssStyle()\n {\n return cssStyle;\n }", "title": "" }, { "docid": "5f815eae48dbd1f6520cc9f00aedb197", "score": "0.59284866", "text": "public String getStyleName() {\n return styleName;\n }", "title": "" }, { "docid": "e6f28e0b48a6cddc62341d60370fa049", "score": "0.5926353", "text": "Optional<TextInputStyle> getStyle();", "title": "" }, { "docid": "3df21b1dccfab02a9594226fb0cecacd", "score": "0.5925149", "text": "@Override\n public StyleOrigin getStyleOrigin() {\n return map.getStyleOrigin(key);\n }", "title": "" }, { "docid": "840c1034473d543698f7ec6af44e797d", "score": "0.5922823", "text": "public Paint getStyle(){\n return style;\n }", "title": "" }, { "docid": "e4cc11dc53c8e509680460b95c5c2e44", "score": "0.59047836", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.Styleable getStyleable() {\n if (valueCase_ == 3) {\n return (com.didiglobal.booster.aapt2.Resources.Styleable) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Styleable.getDefaultInstance();\n }", "title": "" }, { "docid": "79b83fd865e966a102c0c4663fb9ec9f", "score": "0.58640605", "text": "com.didiglobal.booster.aapt2.Resources.Style getStyle();", "title": "" }, { "docid": "fc4cb06fb0cfc2686fcc6f45fe84b36e", "score": "0.584902", "text": "StyleProvider getElementStyle() {\n if (model == null) {\n Logger.wtf(TAG, \"getElementStyle called when adapter is not bound\");\n }\n return elementStyle;\n }", "title": "" }, { "docid": "ba739d4394a0dc7cc4ae0478e49bf431", "score": "0.5847901", "text": "public String getStyleClass() {\n return styleClasses.get( styleIdx );\n }", "title": "" }, { "docid": "18f8f101e544da32c1aa28b3044dce1f", "score": "0.58298755", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.Styleable getStyleable() {\n if (styleableBuilder_ == null) {\n if (valueCase_ == 3) {\n return (com.didiglobal.booster.aapt2.Resources.Styleable) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Styleable.getDefaultInstance();\n } else {\n if (valueCase_ == 3) {\n return styleableBuilder_.getMessage();\n }\n return com.didiglobal.booster.aapt2.Resources.Styleable.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "307fd1861e5c6663f409be42ff69f8fa", "score": "0.58174264", "text": "public String toString() {\n return BORDERSTYLE[value];\n }", "title": "" }, { "docid": "086fd94dd8e5d0a660eb8b00b660a921", "score": "0.5802023", "text": "public String getStyles() {\n return getStyles(getStylesMap());\n }", "title": "" }, { "docid": "207a3c5e1823050149e4d0c9b003571b", "score": "0.57696384", "text": "public int getStyle() {\n // Infer the style from the value field.\n if (value == VAL_PUSH_BTN || value == null)\n return AS_PUSH_BUTTON;\n if (value == VAL_TOGGLE_BTN_ON || value == VAL_TOGGLE_BTN_OFF)\n return AS_CHECK_BOX;\n if (value == VAL_RADIO_BTN_ON || value == VAL_RADIO_BTN_OFF)\n return AS_RADIO_BUTTON;\n if (value instanceof IMenuCreator)\n return AS_DROP_DOWN_MENU;\n \n // We should never get to this line...\n return AS_PUSH_BUTTON;\n }", "title": "" }, { "docid": "10c97e39b33b165f55aaf6262dceeb37", "score": "0.5767896", "text": "public String getStyleUrl() {\n\t\treturn styleUrl;\n\t}", "title": "" }, { "docid": "e65b3a82fd2f56d0df05f0dc02bd646c", "score": "0.57601357", "text": "private String getStyles() {\n return getStyles(this.fontStyle);\n }", "title": "" }, { "docid": "8bdb26d8fce7c0d9b491924beb636187", "score": "0.5734805", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyleableOrBuilder getStyleableOrBuilder() {\n if (valueCase_ == 3) {\n return (com.didiglobal.booster.aapt2.Resources.Styleable) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Styleable.getDefaultInstance();\n }", "title": "" }, { "docid": "00094a5c0c082471ed804acf199797a5", "score": "0.57258487", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.didiglobal.booster.aapt2.Resources.Style, com.didiglobal.booster.aapt2.Resources.Style.Builder, com.didiglobal.booster.aapt2.Resources.StyleOrBuilder> \n getStyleFieldBuilder() {\n if (styleBuilder_ == null) {\n if (!(valueCase_ == 2)) {\n value_ = com.didiglobal.booster.aapt2.Resources.Style.getDefaultInstance();\n }\n styleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.didiglobal.booster.aapt2.Resources.Style, com.didiglobal.booster.aapt2.Resources.Style.Builder, com.didiglobal.booster.aapt2.Resources.StyleOrBuilder>(\n (com.didiglobal.booster.aapt2.Resources.Style) value_,\n getParentForChildren(),\n isClean());\n value_ = null;\n }\n valueCase_ = 2;\n onChanged();;\n return styleBuilder_;\n }", "title": "" }, { "docid": "cab551f090c9187d4a30e17d8e42b56a", "score": "0.5710005", "text": "String getStyleName();", "title": "" }, { "docid": "cab551f090c9187d4a30e17d8e42b56a", "score": "0.5710005", "text": "String getStyleName();", "title": "" }, { "docid": "99e042df62b69e948a98a148fc841f22", "score": "0.56648487", "text": "com.didiglobal.booster.aapt2.Resources.StyleOrBuilder getStyleOrBuilder();", "title": "" }, { "docid": "ade783314ef4251313ea5ea6e6df76f3", "score": "0.5655349", "text": "String getHtmlStyle();", "title": "" }, { "docid": "5d094e2c12c89a09597e3b3a888ad73e", "score": "0.56543237", "text": "public int getUnitStyle()\t\t\t{ return styleUnit; }", "title": "" }, { "docid": "4b4bf4a4900c8d48d5c5330dd52e020c", "score": "0.56280905", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyleableOrBuilder getStyleableOrBuilder() {\n if ((valueCase_ == 3) && (styleableBuilder_ != null)) {\n return styleableBuilder_.getMessageOrBuilder();\n } else {\n if (valueCase_ == 3) {\n return (com.didiglobal.booster.aapt2.Resources.Styleable) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.Styleable.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "a3fa92ab959bb13f3bbbd118f73417ae", "score": "0.56051683", "text": "@SuppressWarnings(\"rawtypes\")\n\t<S extends Enum> S getStyle();", "title": "" }, { "docid": "9d16b9b7acede08ca46b38bdc3982b84", "score": "0.5602978", "text": "protected int getStyle(Map attributes) throws JellyTagException {\n String text = (String) attributes.remove(\"style\");\n if (text != null) {\n return SwtHelper.parseStyle(SWT.class, text);\n }\n return style;\n }", "title": "" }, { "docid": "1f6ff23de7b990f39a0de4b5e23021a9", "score": "0.55726784", "text": "public String getGroupStyle() {\n return groupStyle;\n }", "title": "" }, { "docid": "74bad1591e636c353d3e758021ba42a0", "score": "0.5569797", "text": "public RelationStyle getStyle() {\n return this.style;\n }", "title": "" }, { "docid": "6cb5db1fc19370db69c42cf1cff206bf", "score": "0.5565888", "text": "public String jsxGet_borderStyle() {\n return getStyleAttribute(\"borderStyle\", true);\n }", "title": "" }, { "docid": "83990afe74cf778f6973cecedc08b66b", "score": "0.5556967", "text": "public DateAnswerStyle getStyle() {\n return style;\n }", "title": "" }, { "docid": "a456c4a36c20eb656bd843fd54be751b", "score": "0.549572", "text": "public Value<ValueOptionPropertyAdapter.NullStyle> getNullStyle() {\n return nullStyle;\n }", "title": "" }, { "docid": "7240e52730ec6fc9aebdae519df87a6a", "score": "0.5426769", "text": "public void setStyle(MapStyle style) {\n this.style = style;\n }", "title": "" }, { "docid": "51cc9832213c1ed9e0429b39b94cc4e4", "score": "0.54188585", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyledString getStyledStr() {\n if (styledStrBuilder_ == null) {\n if (valueCase_ == 4) {\n return (com.didiglobal.booster.aapt2.Resources.StyledString) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.StyledString.getDefaultInstance();\n } else {\n if (valueCase_ == 4) {\n return styledStrBuilder_.getMessage();\n }\n return com.didiglobal.booster.aapt2.Resources.StyledString.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "944a0d2d411a2a594a2fac1ba91b9ebc", "score": "0.5400552", "text": "public String getIconStyle() {\n return iconStyle;\n }", "title": "" }, { "docid": "de9b2d39a53f7d7fd1bda4a2b234d966", "score": "0.5393505", "text": "final public String getInlineStyle()\n {\n return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));\n }", "title": "" }, { "docid": "b3d20bf4a78911bbd27a2d0fb166d3ee", "score": "0.53919923", "text": "static String getFontStyle(DomStyle domStyle) {\n\t\treturn domStyle.getProperty(STYLE_FONT_STYLE);\n\t}", "title": "" }, { "docid": "e30f61addd074da3faaa9ad68d02c67f", "score": "0.53850937", "text": "public com.didiglobal.booster.aapt2.Resources.Style.Builder getStyleBuilder() {\n return getStyleFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "e17294f853e0b34bea9d29570b95fa88", "score": "0.5380399", "text": "static String getColor(DomStyle domStyle) {\n\t\treturn domStyle.getProperty(STYLE_COLOR);\n\t}", "title": "" }, { "docid": "e4a748098bed73eb95ba3daed6ab679e", "score": "0.53696144", "text": "public AttributeSet getAttributes() { return style;}", "title": "" }, { "docid": "35296ffe42994997be01c5612aff512e", "score": "0.5356017", "text": "public ItemStyle getItemStyle() {\n return itemStyle;\n }", "title": "" }, { "docid": "1f21d7a488e83cf1d814a3d3669250fd", "score": "0.5352343", "text": "public static String getStyles(final Map<String, String> stylesMap) {\n final StringBuilder sb = new StringBuilder();\n for (final String key : stylesMap.keySet()) {\n sb.append(stylesMap.get(key));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "252c09af190438fa3d172290c0fe23a6", "score": "0.5341137", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyledString getStyledStr() {\n if (valueCase_ == 4) {\n return (com.didiglobal.booster.aapt2.Resources.StyledString) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.StyledString.getDefaultInstance();\n }", "title": "" }, { "docid": "8820d09ef51741479a24f23dc0108318", "score": "0.5332293", "text": "String getBucketStyle();", "title": "" }, { "docid": "4265d70a20e0867c336c60dc4f7e77b3", "score": "0.53149027", "text": "static String getBorderStyle(DomStyle domStyle) {\n\t\treturn domStyle.getProperty(STYLE_BORDER_STYLE);\n\t}", "title": "" }, { "docid": "1b26b19b06c7c239e0b388b85be723c9", "score": "0.5296262", "text": "public final MapTypeStyleFeatureType getFeatureType() {\n return MapTypeStyleFeatureType.fromValue(getFeatureTypeJs());\n }", "title": "" }, { "docid": "6187ab109bfa520ae45319574bed9fd9", "score": "0.52937996", "text": "Styles getStyles()\n {\n return styles;\n }", "title": "" }, { "docid": "17ec3f7281f4feb7f6627b041e426dfe", "score": "0.52861774", "text": "public int getThemeStyle() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "6d4bed4ab36579c3b693f65bbf5775d0", "score": "0.5273422", "text": "private String getNameStyleText() {\n if (m_nameStyle == null) {\n return null;\n } else {\n return s_nameStyleEnum.getName(m_nameStyle.intValue());\n }\n }", "title": "" }, { "docid": "933b72d08e6ece21b8b0051455a43176", "score": "0.52660906", "text": "public abstract String get(final ComputedCSSStyleDeclaration style);", "title": "" }, { "docid": "b0c793c261c13d2ca11541abf1407b54", "score": "0.52420694", "text": "public String jsxGet_color() {\n return getStyleAttribute(\"color\", true);\n }", "title": "" }, { "docid": "8d07a5488ebac838d5e0bf02bfe461c2", "score": "0.5225267", "text": "public final LineStyle getStyle() {\n if (pens.isEmpty()) {\n return LineStyle.solid;\n }\n return pens.get(pens.size() - 1).getStyle();\n }", "title": "" }, { "docid": "7f6bd563efc495b76930e27bf163aca7", "score": "0.522427", "text": "public List<ComponentStyle> getStyles ()\n {\n return styles;\n }", "title": "" }, { "docid": "b7a60653d708ea73fbab243a6bd663ff", "score": "0.52123946", "text": "public abstract String getStyleName();", "title": "" }, { "docid": "9d62de34b950cf2d2e8f24f2779e27ec", "score": "0.5209349", "text": "public String getNlpStyleClass() {\n return nlpStyleClass;\n }", "title": "" }, { "docid": "539f2ac89d8ad6c520899e84caace4b2", "score": "0.5203062", "text": "public List<JRStyle> getStylesList()\n\t{\n\t\treturn stylesList;\n\t}", "title": "" }, { "docid": "0f6d576982b7a599913aae3e2e2a9a56", "score": "0.51998025", "text": "public String getStyleName() {\r\n\t\tString sName = this.styleName;\r\n\t\tif (sName == null && this.parentCategory != null) {\r\n\t\t\tsName = this.parentCategory.getStyleName();\r\n\t\t}\r\n\t\treturn sName;\r\n \t}", "title": "" }, { "docid": "a65816f0398d508f83aa386024fb8355", "score": "0.5183635", "text": "public String getRowStyle()\n\t{\n\t\treturn rowStyle;\n\t}", "title": "" }, { "docid": "d4a9c4453a4573cbf9cff1fedf282ba5", "score": "0.51742154", "text": "static String getStyle(Element element, String styleName) {\r\n String value = element.getAttribute(styleName);\r\n \r\n if (value != null && value.length() > 0) {\r\n return value;\r\n }\r\n \r\n String style = element.getAttribute(\"style\");\r\n return extractStyle(style, styleName);\r\n }", "title": "" }, { "docid": "41f765c56090ddcf025442346fb6667b", "score": "0.51622736", "text": "public String getDefaultStyleString() {\n return defaultStyleString;\n }", "title": "" }, { "docid": "0fd95359001919c136f5e18921a1edfa", "score": "0.5150539", "text": "public String jsxGet_outlineStyle() {\n return getStyleAttribute(\"outlineStyle\", true);\n }", "title": "" }, { "docid": "ca3d6bf518bd7ab70f1d9c1c50a7f15f", "score": "0.51226604", "text": "@Override\r\n public Color getForeColor() {\r\n return _mapView.getForeground();\r\n }", "title": "" }, { "docid": "6bdb5360498200810285f502fc6975cf", "score": "0.511326", "text": "public String jsxGet_listStyle() {\n return getStyleAttribute(\"listStyle\", true);\n }", "title": "" }, { "docid": "9e0fa70728a6101001f14ce4944fd117", "score": "0.5110393", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyledStringOrBuilder getStyledStrOrBuilder() {\n if (valueCase_ == 4) {\n return (com.didiglobal.booster.aapt2.Resources.StyledString) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.StyledString.getDefaultInstance();\n }", "title": "" }, { "docid": "11ca142cb4081d85f22a79dae73396e7", "score": "0.5093593", "text": "OptionStyle optionStyle();", "title": "" }, { "docid": "98035ce1b22c7819b31d68b2c73d00aa", "score": "0.5079489", "text": "public String jsxGet_cssText() {\n return jsElement_.getDomNodeOrDie().getAttribute(\"style\");\n }", "title": "" }, { "docid": "5d6f0aebbb4f2a65ed94534fffcc67ec", "score": "0.5071529", "text": "public String getColorFlag() {\r\n\t\treturn colorFlag;\r\n\t}", "title": "" }, { "docid": "8ae1e020d9846b9565906c6e921eb955", "score": "0.5071455", "text": "public int getPowerStyle()\t\t\t{ return stylePower; }", "title": "" }, { "docid": "6030cb7af55cd3df9e758d6c9613bcc8", "score": "0.50698256", "text": "@Override\r\n\tpublic String getStyles() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "12f8652278d60fb14530582d481d9206", "score": "0.506521", "text": "SNamedStyle getNamedStyle(String name);", "title": "" }, { "docid": "e77fbb0a7d4c51266ec159bbb00135ea", "score": "0.5059922", "text": "public int getCoastStyle()\t\t\t{ return styleCoast; }", "title": "" }, { "docid": "d3d5259806af4a4eeb221574178becb5", "score": "0.5049961", "text": "@java.lang.Override\n public com.didiglobal.booster.aapt2.Resources.StyledStringOrBuilder getStyledStrOrBuilder() {\n if ((valueCase_ == 4) && (styledStrBuilder_ != null)) {\n return styledStrBuilder_.getMessageOrBuilder();\n } else {\n if (valueCase_ == 4) {\n return (com.didiglobal.booster.aapt2.Resources.StyledString) value_;\n }\n return com.didiglobal.booster.aapt2.Resources.StyledString.getDefaultInstance();\n }\n }", "title": "" } ]
f7c6e772098f7a690afadab990b55793
Returns coordinates of the next empty Square.
[ { "docid": "0493a84077ec5303d6449427f7528a3d", "score": "0.73184997", "text": "public String findNextSquare()\n {\n Square s1 = null; \n for (int r = 0; r < 9; r++)\n {\n for (int c = 0; c < 9; c++)\n {\n Square s2 = square[r][c];\n ArrayList<Integer> list2 = s2.getPValues();\n if (s1 == null && s2.getValue() == 0 )\n {\n s1 = s2;\n }\n } \n }\n if (s1 == null)\n {\n return \"\";\n }\n return s1.getRow() + \" \" + s1.getCol();\n }", "title": "" } ]
[ { "docid": "a0699bdcf89ad041dcaba3459f5a94e5", "score": "0.6979067", "text": "public Square getStartSquare() {\n\t\treturn this.homeSquares.get(0).getNextSquare();\n\t}", "title": "" }, { "docid": "5bb7560605bde1121a1f1a945bcd3072", "score": "0.69046724", "text": "private int findEmptySquare(GameBoard board)\n\t{\n\t\treturn super.makeMove(board);\n\t}", "title": "" }, { "docid": "9d34311e9617fe8f76d4b48c212ab058", "score": "0.6748511", "text": "public FutoshikiSquare findEmpty()\n {\n for(int x=0; x<gridSize; x++)\n {\n for(int y=0; y<gridSize; y++)\n {\n if(grid[x][y].getMainValue()==0)\n {\n return grid[x][y];\n }\n }\n }\n // return null if there is no square left with value 0\n return null;\n }", "title": "" }, { "docid": "7064626e5fb08f21fdb968a2c2305364", "score": "0.67197603", "text": "abstract Square next();", "title": "" }, { "docid": "7064626e5fb08f21fdb968a2c2305364", "score": "0.67197603", "text": "abstract Square next();", "title": "" }, { "docid": "3d8de769800c8a0cbe6e64f08c9a533c", "score": "0.65009606", "text": "public Square getAINextPosition() {\n if (findZeros() == false)\n return null;\n\n int rand;\n do {\n rand = (int) (Math.random() * 9);\n }while (board[rand] != 0);\n\n\n return resolveSquare(rand);\n\n }", "title": "" }, { "docid": "e491a4de45ba5471a5d645b95d123e6d", "score": "0.6487993", "text": "public Square getStart()\n\t{\n\t\tSquare toReturn = maze[numRows - 1][numCols - 1]; \n\t\t// set to corner square in maze\n\t\t\n\t\tfor(int i = 0; i < numRows; i++) // loop through rows\n\t\t{\n\t\t\tfor(int j = 0; j < numCols; j++) // loop through columns\n\t\t\t{\n\t\t\t\tif(maze[i][j].isStart()) // if square marked as start\n\t\t\t\t{\n\t\t\t\t\ttoReturn = maze[i][j]; \n\t\t\t\t\ti = numRows; // will break out of loop, more efficient\n\t\t\t\t\tj = numCols;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn toReturn;\n\t}", "title": "" }, { "docid": "f2a4933f70ddbc46b1c6bf2e0e1bbaec", "score": "0.64673334", "text": "public Square getEmptyHomeSquare() {\n\t\tfor (Square square : this.homeSquares) {\n\t\t\tif (square.getTokens().size() == 0) {\n\t\t\t\treturn square;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No home square empty!\");\n\t\tSystem.exit(1);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d2c24e86cc52bdfc5ae5a248dde204db", "score": "0.6450085", "text": "Square kingPosition() {\n for (int col = 0; col < SIZE; col++) {\n for (int row = 0; row < SIZE; row++) {\n if (listOfPieces[col][row] == KING) {\n return sq(col, row);\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "7ecadc9b5eea218beef46e7237b7fe0e", "score": "0.6181594", "text": "Square() {\r\n this.off = true;\r\n this.was = false;\r\n this.neigh = 0;\r\n this.sqr = new Rectangle(10, 10);\r\n }", "title": "" }, { "docid": "b455456547c1d58c806e69d1bb55e12b", "score": "0.6139841", "text": "private Cell findNextPoint() {\n for (int i = 0; i < data.length; i++) {\n for (int j = 0; j < data.length; j++) {\n if (data[i][j] == 0) {\n return new Cell(i, j);\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "eb18c7bc83f1927b33227738c6fa4574", "score": "0.61390746", "text": "private Pair<Integer, Integer> findNextMove() {\n if (gameBoard.get(1).get(1).equals(Piece.EMPTY)) {\n return Pair.create(1, 1);\n }\n\n for (int rowIndex = 0; rowIndex < gameBoard.size(); rowIndex++) {\n for (int colIndex = 0; colIndex < gameBoard.get(rowIndex).size(); colIndex++) {\n if (gameBoard.get(rowIndex).get(colIndex).equals(Piece.EMPTY)) {\n return Pair.create(rowIndex, colIndex);\n }\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "edb06494a58104d8feb424eb80fb2832", "score": "0.60992956", "text": "public Square[][] getCurrentPosition(){\n\t\treturn square.clone();\n\t}", "title": "" }, { "docid": "8d444ffe421fa5545627837e82f8898b", "score": "0.60524595", "text": "private Point generateCoordinates() {\n while (true) {\n coordinates = new Point(rand.nextInt(3), rand.nextInt(3));\n if (Board.isFree(coordinates)) {\n return coordinates;\n }\n }\n }", "title": "" }, { "docid": "64cd53919f211bf6287b2387a0d8fd49", "score": "0.59764916", "text": "public Square( )\n {\n symbol = EMPTY_SQUARE;\n }", "title": "" }, { "docid": "bc4cb2356141aff5a76b36f05d8f6bd9", "score": "0.5972922", "text": "public Position getAnEmptyCell() {\n \n List<Position> emptyCells = new ArrayList(); \n for(int i = 0 ; i < SIZE; i++){\n for (int j = 0 ; j < SIZE; j++){\n if(map[i][j] == TokenPlayer.EMPTY) {\n emptyCells.add(new Position(i, j));\n }\n }\n }\n \n return emptyCells.get((int)(Math.random() * (emptyCells.size() - 0)) + 0);\n }", "title": "" }, { "docid": "a26c1bb75fcf26f76e0b0b79989f9c59", "score": "0.59642965", "text": "public Square getSquareAt(Direction direction) {Api.hit(\"/src/main/java/nl/tudelft/jpacman/board/Square.java\", \"getSquareAt\", \"lines 47:2 - 47:35\"); return neighbours.get(direction);}", "title": "" }, { "docid": "6a5a0a41202eea13e46f6c7743a31cb8", "score": "0.59332836", "text": "public Square getFinish()\n\t{\n\t\tSquare toReturn = maze[0][0]; // set to corner square by default\n\t\t\n\t\tfor(int i = 0; i < numRows; i ++) // loop through rows\n\t\t{\n\t\t\tfor(int j = 0; j < numCols; j++) // loop through columns\n\t\t\t{\n\t\t\t\tif(maze[i][j].isFinish()) // if square is marked as finish\n\t\t\t\t{\n\t\t\t\t\ttoReturn = maze[i][j]; \n\t\t\t\t\ti = numRows; // will break out of loop, more efficient\n\t\t\t\t\tj = numCols;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn toReturn;\n\t}", "title": "" }, { "docid": "470a2523ae6ba8eec3ea94d7e52a3eb4", "score": "0.59326774", "text": "public abstract LinkedList<Node<Maze>> getNextSquares();", "title": "" }, { "docid": "8c1257385404d91aa5cc03a247da29d5", "score": "0.59064597", "text": "Square step(){\n\t\t\n\t\tArrayList<Square> neighbors = new ArrayList();\n\t\t\n\t\tif (after1stStep == false){\n\t\t\t\n\t\t\tmazeLoaded.setVisit(currSq.getRow(), currSq.getCol());\n\t\t\t//enqueue into queue solveUsingQueue\n\t\t\tadd(currSq);\n\t\t\t\n\t\t\t//set to visited\n\t\t\tcurrSq.setVisited();\n\t\t\t\n\t\t\tif (currSq.isFinish()){\n\t\t\t\t//setGameOver();\n\t\t\t\treturn currSq;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tif (solveUsingQueue != null){\n\t\t\t\t // transfer neighbors of 1st square to another array list\n\t\t\t\t neighbors = mazeLoaded.getNeighbors(solveUsingQueue.dequeue());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (solveUsingStack != null){\n\t\t\t\t\tneighbors = mazeLoaded.getNeighbors(solveUsingStack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// add each of the squares to queue\n\t\t\t for ( int i=0; i<neighbors.size(); i++){\n\t\t\t\t //transfer neighbor squares to queue\n\t\t\t \tadd(neighbors.get(i));\n\t\t\t \t//System.out.println(solveUsingQueue.peek());\n\t\t\t\t\n\t\t\t\t if (neighbors.get(i).getPrevious() == null){\n\t\t\t\t neighbors.get(i).setPrevious(currSq);\n\t\t\t\t //produces o on map(means in worklist)\n\t\t\t\t // System.out.println(solveUsingQueue.peek());\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\t\n\t\t\tafter1stStep = true;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\t\n\t\t\t// if algo can't produce any elements to worklist\n\t\t\t// return null\n\t\t if (isEmpty()){\n\t\t \tSystem.out.println(getPath());\n\t\t\t return (Square)null;\n\t\t }\n\t\t \n\t\t if (solveUsingQueue != null){\n\t\t //dequeue top of worklist to currSq\n\t\t currSq = solveUsingQueue.dequeue();\n\t\t }\n\t\t \n\t\t if (solveUsingStack != null){\n\t\t \tcurrSq = solveUsingStack.pop();\n\t\t }\n\t\t \n\t\t // if Square obj referenced is exit, terminate\n\t\t // the algo and output the path found\n\t\t if (currSq.isFinish()){\n\t\t \tcurrSq.setVisited();\n\t\t return currSq;\n\t\t\t\n\t\t }\n\t\t else {\n\t\t\t\n\t\t\t //checked as visit\n\t\t\t currSq.setVisited();\n\t\t\t \n\t\t\t // check if finished line\n\t\t\t if (currSq.isFinish()){\n\t\t\t\t\tsetGameOver();\n\t\t\t\t}\n\t\t\t else{\n\t\t\t\t\tneighbors = mazeLoaded.getNeighbors(currSq);\n\t\t\t\t\t\n\t\t\t\t for ( int i=0; i<neighbors.size(); i++){\n\t\t\t\t\t \n\t\t\t\t \tif (!neighbors.get(i).isVisited()){\n\t\t\t\t \t add(neighbors.get(i));\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t\t if (neighbors.get(i).getPrevious() == null){\n\t\t\t\t\t neighbors.get(i).setPrevious(currSq);\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\n\t\t }\n\t\t\t\n\t\t} \n\t\t\n\t\treturn currSq;\n\t}", "title": "" }, { "docid": "84771b6e277d10570aa005b394253d5f", "score": "0.5872696", "text": "boolean squareExists() {\n\n\t\tif (x >= 0 && x < 8 && y >= 0 && y < 8) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "62910ccc80534d658dc891a26eb05055", "score": "0.5868565", "text": "public Position getSquarePos(int index)\n {\n Position squarePosition = new Position(squares.get(index).getPosition().getX(), squares.get(index).getPosition().getY());\n\n squarePosition.setX(squarePosition.getX() + position.getX());\n squarePosition.setY(squarePosition.getY() + position.getY());\n\n return squarePosition;\n }", "title": "" }, { "docid": "51859ec081130bab50da23ac66bbfe19", "score": "0.5867248", "text": "@Override\n\tprotected GridLocation findEmptySpot(Grid grid, int currentRow, int currentCol) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "39f7c1e51a2a68aeb928fb37b284ee21", "score": "0.58416617", "text": "private int[] findBlank()\n {\n for (int i = 0; i < gridSize; i++)\n for (int j = 0; j < gridSize; j++)\n {\n if (grid[i][j] == 0)\n return new int[]{i, j};\n }\n return null;\n }", "title": "" }, { "docid": "fe025360c71c04f9930ac1c9476922f0", "score": "0.5818812", "text": "public Position getSquare(int index)\n {\n return squares.get(index).getPosition();\n }", "title": "" }, { "docid": "95592ac9cfee76f5d9dab1095d2f1d6a", "score": "0.5791596", "text": "public byte getPieceIndex(Square sq) {\r return squares[sq.row][sq.column];\r }", "title": "" }, { "docid": "56d0d27cfe8c3f7910a8f49f35031129", "score": "0.57808113", "text": "public ArrayList<Square> getNeighbors(Square sq)\n\t{\n\t\tArrayList<Square> toReturn = new ArrayList<>();\n\t\t\n\t\tint row = sq.getRow(); // coordinates for this square\n\t\tint col = sq.getCol();\n\t\t\n\t\tif((row - 1) >= 0 && maze[row - 1][col].isValid()) // north\n\t\t{\n\t\t\ttoReturn.add(maze[row - 1][col]);\n\t\t}\n\t\tif((col + 1) < numCols && maze[row][col + 1].isValid()) // east\n\t\t{\n\t\t\ttoReturn.add(maze[row][col + 1]);\n\t\t}\n\t\tif((row + 1) < numRows && maze[row + 1][col].isValid()) // south\n\t\t{\n\t\t\ttoReturn.add(maze[row + 1][col]);\n\t\t}\n\t\tif((col - 1) >= 0 && maze[row][col - 1].isValid()) // west\n\t\t{\n\t\t\ttoReturn.add(maze[row][col - 1]);\n\t\t}\n\t\t\n\t\treturn toReturn;\n\t}", "title": "" }, { "docid": "86f2f533cbbd85b5287259a72f3c6ff7", "score": "0.5776188", "text": "private void moveSquare() {\n if (ejeX1 + xa1 < 0) {\n xa1 = 2;\n }//fin if\n if (ejeX1 + xa1 > getWidth() - 30) {\n xa1 = -2;\n }//fin if\n if ((ejeY1 + 40) + ya1 < 0) {\n ya1 = 2;\n }//fin if\n if ((ejeY1 + 40) + ya1 > getHeight() - 30) {\n ya1 = -2;\n }//fin if\n\n //incrementa los valores de los ejes\n ejeX1 = ejeX1 + xa1;\n ejeY1 = ejeY1 + ya1;\n }", "title": "" }, { "docid": "aa45fbe83b95710ffa5794ae3b49cea4", "score": "0.5742353", "text": "Square kingPosition() {\n for (Square sq : SQUARE_LIST) {\n if (get(sq).toName() != null && get(sq).toName().equals(\"King\")) {\n return sq;\n }\n }\n return null;\n }", "title": "" }, { "docid": "676b438d7e371d25e85bd118409be5b5", "score": "0.57349074", "text": "private Position getNextPossiblePosition() {\n\t\tint columnPos;\n\t\tint rowPos;\n\t\tPosition position;\n\t\twhile (positionCounter <= maxPositions) {\t\n\t\t\tcolumnPos = positionCounter % nodesPerRow;\n\t\t\trowPos = (positionCounter - columnPos) / nodesPerRow;\n\t\t\t\n\t\t\tposition = new Position(columnPos * xNodeDistance, rowPos * yNodeDistance);\n\t\t\tpositionCounter++;\n\t\t\t\n\t\t\treturn position;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bce83b00388a26a92ada2c0e693bb655", "score": "0.57051134", "text": "public MagicSquare() {\n\t\tboard = new int[SIZE][SIZE];\n\t\tmagicSquareListeners = new ArrayList<>();\n\t\twon = false;\n\t\tdone = false;\n\n\t}", "title": "" }, { "docid": "265a2cdadec993070e59c8a9addb6e57", "score": "0.5704745", "text": "private Dimension squareCoordinates(Dimension coords){\n\n double squareX = Math.ceil(coords.width/50.0);\n double squareY = Math.ceil(coords.height/50.0);\n int x = (int)squareX;\n int y = (int)squareY;\n System.out.println(x+\",\"+y);\n coords = new Dimension(x,y);\n return coords;\n }", "title": "" }, { "docid": "0fdf56589cd8bbbe5d1320685be0b29e", "score": "0.5670837", "text": "private Point getTopLeft() {\n \treturn new Point(cx - dim, cy - dim);\r\n }", "title": "" }, { "docid": "080eee335a379583e8da303eb0626cae", "score": "0.56689703", "text": "public int[] getFirstCoordinates() {\r\n this.coordinatesYX[0] = map.length / 2;\r\n this.coordinatesYX[1] = map[0].length / 2;\r\n int side = 1;\r\n final char[] MOVE = {'u', 'r', 'd', 'l'};\r\n \r\n // iterates through the map in a spiral-like motion until an organism has been found or the whole map has been traversed\r\n while (side <= map.length + 1) {\r\n for (int i = 0; i < 4; i++) {\r\n for (int j = 0; j < side; j++) {\r\n if ((coordinatesYX[0] >= 0 && coordinatesYX[0] < map.length) \r\n && (coordinatesYX[1] >= 0 && coordinatesYX[1] < map[0].length) \r\n && (map[coordinatesYX[0]][coordinatesYX[1]] != null)) {\r\n map[coordinatesYX[0]][coordinatesYX[1]].setSelected(true);\r\n return coordinatesYX;\r\n } else {\r\n if (MOVE[i] == 'u') {\r\n coordinatesYX[0] -= 1;\r\n } else if (MOVE[i] == 'r') {\r\n coordinatesYX[1] += 1;\r\n } else if (MOVE[i] == 'd') {\r\n coordinatesYX[0] += 1;\r\n } else if (MOVE[i] == 'l') {\r\n coordinatesYX[1] -= 1;\r\n }\r\n }\r\n }\r\n if ((MOVE[i] == 'r') || (MOVE[i] == 'l')) {\r\n side++;\r\n }\r\n }\r\n }\r\n\r\n coordinatesYX = null;\r\n return coordinatesYX;\r\n }", "title": "" }, { "docid": "7c197ac9283852b9de25604421079887", "score": "0.5641955", "text": "public abstract Square[] validMoves();", "title": "" }, { "docid": "7c197ac9283852b9de25604421079887", "score": "0.5641955", "text": "public abstract Square[] validMoves();", "title": "" }, { "docid": "3383d3d746f339bd18eb0b3d38f70683", "score": "0.5630717", "text": "public static Square getSquare(long bitboard) {\r\n\t\treturn bitscanForward(bitboard);\r\n\t}", "title": "" }, { "docid": "2b672bbd1c1e0b1adbddaf66021d2b5c", "score": "0.56069857", "text": "private void GetSquareSize()\n {\n int width = (panelW - margin * 2 - borderThickness)/nCol -borderThickness;\n int height = (panelH - margin * 2 - borderThickness)/nRow -borderThickness;\n squareSize = Math.min(width, height);\n }", "title": "" }, { "docid": "cbc98413a31f4c7bd299962f512a363a", "score": "0.5605341", "text": "private int getLastSquareInLine(int line) \n {\n for (int i=0; i<3; ++i) \n {\n if (_squareFields[winLines[line][i]].getGameState() == _NONE)\n { \n return winLines[line][i];\n }\n }\n \n throw new java.lang.IllegalStateException(\"No empty squares in row \" + line);\n }", "title": "" }, { "docid": "774953479fdfbce40e469ba9f90c4a6f", "score": "0.56043774", "text": "private int[] findFreePos(int x, int y, GridSimulationWorldState state) {\n\t\tint[] pos = new int[2];\n\t\tVector<int[]> v = new Vector<int[]>();\n\n\t\ttry {\n\t\t\tfor (int a = -1; a < 2; a++) {\n\t\t\t\tfor (int b = -1; b < 2; b++) {\n\t\t\t\t\tif ((a + x < state.sizex) && (b + y < state.sizey)\n\t\t\t\t\t\t\t&& (a + x >= 0) && (b + y >= 0)) {\n\t\t\t\t\t\tif (state.board[a + x][b + y].noObject()) {\n\t\t\t\t\t\t\tpos[0] = a + x;\n\t\t\t\t\t\t\tpos[1] = b + y;\n\t\t\t\t\t\t\tv.add(pos);\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} catch (Exception e) {\n\t\t\twhile (true) {\n\t\t\t\tpos[0] = new Random().nextInt(state.sizex);\n\t\t\t\tpos[1] = new Random().nextInt(state.sizey);\n\t\t\t\tif (state.board[pos[0]][pos[1]].noObject())\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tCollections.shuffle(v);\n\t\t\treturn v.get(0);\n\t\t}\n\t\twhile (true) {\n\t\t\tpos[0] = new Random().nextInt(state.sizex);\n\t\t\tpos[1] = new Random().nextInt(state.sizey);\n\t\t\tif (state.board[pos[0]][pos[1]].noObject())\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn pos;\n\t}", "title": "" }, { "docid": "6e7617085ab659bbd55fb4c8dbebec07", "score": "0.5595306", "text": "public Point getCurrEmptyTile() {\n\t\treturn this.currEmptyTile;\n\t}", "title": "" }, { "docid": "57bc047631f87d0324c4b5ee38ccb7ad", "score": "0.5582481", "text": "public void checkTopLeft()\r\n\t{\r\n\t\t//j value will start from 2\r\n\t\tint j=2;\r\n\t\tint columns = 2; // will increment till it is equal to columns -1 \r\n\t\tint count =0;\r\n\t\tString answer = \"\";\t\r\n\t\tint columnControl = boardColumns -1;\r\n\t\t\r\n\t\twhile(j<boardColumns)\r\n\t\t{\t\t\t\t\t\t\r\n\t\t\t\t// k=j \r\n\t\t\t\tfor(int k=columns,i=0;k>=0;k--,i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(input[i][k]!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tanswer += input[i][k].toString();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tif(count==3)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tanswer.trim();\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(answer.equalsIgnoreCase(\"SOS\"))\r\n\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t//get coordinates\r\n\t\t\t\t\t\t\tint temI1 = i-2;\r\n\t\t\t\t\t\t\tint temJ1 = k+2;\r\n\t\t\t\t\t\t\tint temI2 = i-1;\r\n\t\t\t\t\t\t\tint temJ2 = k+1;\r\n\t\t\t\t\t\t\tint temI3 = i;\r\n\t\t\t\t\t\t\tint temJ3 = k;\r\n\t\t\t\t\t\t\tboolean hasStored = checkIfStored(temI1,temJ1,temI2,temJ2,temI3,temJ3);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(hasStored==false)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttotalCorrect++;\r\n\t\t\t\t\t\t\t\tchangePlayerTurn();\t\r\n\t\t\t\t\t\t\t\tboard.addLine(temI1, temJ1, temI3, temJ3 , currentPlayerColour);\r\n\t\t\t\t\t\t\t\tSystem.out.println(answer+\"Top Left\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Total correct \"+totalCorrect);\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//store coordinates\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tstoreCoordinates(temI1,temJ1,temI2,temJ2,temI3,temJ3);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(k>0)//if there are more cells to check then start from previous cell\r\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tk=k+2;\r\n\t\t\t\t\t\t\ti=i-2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//reset\r\n\t\t\t\t\t\tanswer = \"\";\r\n\t\t\t\t\t\tcount = 0;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//reset\r\n\t\t\tanswer=\"\";\r\n\t\t\tcount=0;\r\n\t\t\tif(columns<columnControl)\r\n\t\t\t{\r\n\t\t\t\tcolumns++;\r\n\t\t\t}\r\n\t\t\tj++; //start from another column\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3e36be5258dc509895c1711b479b16a7", "score": "0.55670017", "text": "public Square getSquareAt(Position pos) {\n\t\treturn squares[pos.row()][pos.column()];\n\t}", "title": "" }, { "docid": "58440d2e1cf59573e44a10f5fba64ce3", "score": "0.5553981", "text": "private int getVal(Square square) {\n int val = square.getRow()*8+square.getCol();\n return val;}", "title": "" }, { "docid": "177af7b76a11c27709254fe00cb9179a", "score": "0.55487084", "text": "public boolean checkSquaresOutOfBounds() {\n for (Square s : this.occupiedSquares) {\n int row = s.getRow();\n int column = s.getColumn() - 64;\n if (row > 10 || row < 1 || column > 10 || column < 1) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "c8a68ed9f4aa36f5cbb181572ee3700b", "score": "0.55449474", "text": "private int[] randomEmpty() {\n int y, x;\n do {\n y = rand.nextInt(h);\n x = rand.nextInt(w);\n } while (!(tile[y][x].type.equals(\"empty\") && validSol(y, x)));\n int[] ret = {y, x};\n return ret;\n }", "title": "" }, { "docid": "9cf162ef8f30f9ea9257ce6f8f13b531", "score": "0.5532623", "text": "public static final Square bitscanForward(long bitboard) {\r\n\t\t// Slower on intel\r\n\t\t// return Long.numberOfTrailingZeros(bitboard);\r\n\t\treturn SQUARES[bitScanForwardDeBruijn64(bitboard)];\r\n\t}", "title": "" }, { "docid": "027ba332184d98e75947e44cead96143", "score": "0.5514671", "text": "private void fill() throws SquareWrongValueException {\n\n // fill mine\n fillMine(1);\n\n // fill another square\n for (int r = 0; r < this.height; r++) {\n for (int c = 0; c < this.width; c++) {\n\n // continue if square is mine square\n if (this.grid[r][c] instanceof MineSquare)\n continue;\n\n byte checkAround = countMineAround(r, c);\n\n // if check around have no mine, square is empty square\n // otherwise, square is number square with value is checkAround\n if (checkAround == 0)\n this.grid[r][c] = new EmptySquare();\n else\n this.grid[r][c] = new NumberSquare(checkAround);\n\n }\n }\n\n }", "title": "" }, { "docid": "b7f6c43fd32714e69f65d3a292efdbcd", "score": "0.55143315", "text": "public void validateSquare() {\n validateSquare(nrow(), ncol());\n }", "title": "" }, { "docid": "926e0edee761b0bfee1606304e34671d", "score": "0.5513611", "text": "public static boolean isEmptySquare(ArrayList<Move> moves) {\r\n if (moves.size() != 9) {\r\n return false;\r\n }\r\n // first and last indices must differ by 2\r\n else {\r\n return ((moves.get(0).getX() + 2 == moves.get(8).getX()) &&\r\n (moves.get(0).getY() + 2 == moves.get(8).getY()));\r\n }\r\n }", "title": "" }, { "docid": "04eab7678b1c569a71b18bcb90f53404", "score": "0.5504626", "text": "public Piece getSquare(Position pos){\n return board[pos.getX()][pos.getY()];\n }", "title": "" }, { "docid": "08d407633043437dee79bd793ca00167", "score": "0.5499304", "text": "public Location findStart()\n {\n Location start;\n int row=0, col=0;\n // Loop through the whole room\n for(int i=0; i<numRows; i++)\n {\n for(int j=0; j<numCols; j++)\n {\n if(darkRoom[i][j] == 'S')\n {\n // Save the coordinates of start\n row=i;\n col=j;\n break;\n } \n }\n }\n start = new Location(row,col);\n return start;\n }", "title": "" }, { "docid": "685270e7e6c329ebe55c5f92952f7b1b", "score": "0.5493994", "text": "public Square getSquareFromMousePosition(double maxHeight,double maxWidth,double height,double width){\n int y = (int)Math.floor(25*height/maxHeight);\n int x = (int)(24*width/maxWidth);\n y = y > 24? 24:y;\n return squares[y][x];\n\n\n }", "title": "" }, { "docid": "9db7c619804f87f2a65b18a864a60beb", "score": "0.54927164", "text": "private void calculateSquares() {\r\n\t\t\r\n\t\tsquare_regions = new SquareRegion[sequence_points2.length];\r\n\t\tfor(int i = 0; i < sequence_points2.length; i++) {\r\n\r\n\t\t\tVector<double[]> sub_scene_i_points = new Vector<double[]>();\r\n\r\n\t\t\tdouble [][] skeleton_i = sequence_points2[i];\r\n\t\t\tfor(int k = 0; k < skeleton_i.length; k++) {\r\n\t\t\t\tdouble [] node_i_k = skeleton_i[k];\r\n\t\t\t\t\r\n\t\t\t\tsub_scene_i_points.add(node_i_k);\r\n\t\t\t}\r\n\r\n\t\t\t/**---------------------------------------------------------**/\r\n\t\t\t/**---------------------------------------------------------**/\r\n\t\t\tdouble [][] sub_scene_i_points_arr =\r\n\t\t\t\t\tnew double[sub_scene_i_points.size()][3];\r\n\t\t\tsub_scene_i_points.toArray(sub_scene_i_points_arr);\r\n\t\t\t/**---------------------------------------------------------**/\r\n\t\t\t/**---------------------------------------------------------**/\r\n\t\t\t/**Store the minimum x, y and maximum x, y\r\n\t\t\t * coordinates of the points in this frame**/\r\n\t\t\tdouble min_x = 10.0e99;\r\n\t\t\tdouble min_y = 10.0e99;\r\n\r\n\t\t\tdouble max_x = -10.0e99;\r\n\t\t\tdouble max_y = -10.0e99;\r\n\r\n\t\t\tfor(int j = 0; j < sub_scene_i_points_arr.length; j++) {\r\n\t\t\t\tdouble [] next_point = sub_scene_i_points_arr[j];\r\n\t\t\t\tmin_x = Math.min(next_point[0], min_x);\r\n\t\t\t\tmin_y = Math.min(next_point[1], min_y);\r\n\r\n\t\t\t\tmax_x = Math.max(next_point[0], max_x);\r\n\t\t\t\tmax_y = Math.max(next_point[1], max_y);\r\n\t\t\t}\r\n\r\n\t\t\tdouble[]s1 = new double[]{min_x, max_y};\r\n\t\t\tdouble[]s2 = new double[]{max_x, max_y};\r\n\t\t\tdouble[]s3 = new double[]{max_x, min_y};\r\n\t\t\tdouble[]s4 = new double[]{min_x, min_y};\r\n\t\t\tsquare_regions[i] = new SquareRegion(s1,s2,s3,s4, Math.abs(min_y-max_y));\r\n\t\t\t/**---------------------------------------------------------**/\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "df2f686849646e3c7b6e2a2f7d33e978", "score": "0.54916257", "text": "private Set<Integer> singlebox(Board board){ \n Set<Square> square3sides = board.squaresWithMarkedSides(3);\n Set<Square> square2sides = board.squaresWithMarkedSides(2);\n List<Square> squares = new ArrayList<Square>();\n squares.addAll(square3sides);\n squares.addAll(square2sides);\n Set<Integer> single = new HashSet<Integer>();\n if (squares.size() > 0) {\n for (Square square: squares) {\n int val = getVal(square);\n if(isBox(val,board)) {\n single.add(val);\n }\n single.add(null);\n }\n }\n single.remove(65);\n single.remove(null);\n return single;\n }", "title": "" }, { "docid": "c3b46328e33474b418a289ce9fecf711", "score": "0.54892606", "text": "public boolean isSquareEmpty(int x, int y) {\n if (x < 0 || x >= width || y < 0 || y >= height) {\n return x >= 0 && x < width && y < 0;\n } else {\n return matrix[y][x] == null;\n }\n }", "title": "" }, { "docid": "f11db9fa69e7b6192becbdbe21b589c8", "score": "0.5488615", "text": "public MagicSquare(int s) {\n\t\tsize = s;\n\t\tsquare = new int[size][size];\n\t\n\t\t//initialize the square\n\t\tfor (int i = 0; i < size ; i++)\n\t\t\tfor (int j = 0; j < size ; j++)\n\t\t\t\tsquare[i][j] = 0;\n\t\t\n\t\tint row = (size - 1), column = (size / 2);\n\t\t\n\t\tfor (int i = 0; i < (size * size); i ++) {\n\t\t\tif (square[row][column] == 0) {\n\t\t\t\tsquare[row][column] = i;\n\t\t\t\trow = (row + 1) % size;\n\t\t\t\tcolumn = (column + 1) % size;\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\trow = (row - 2 + size) % size;\n\t\t\t\tcolumn = (column - 1 + size) % size;\n\t\t\t\tsquare[row][column] = i;\n\t\t\t\trow = (row + 1) % size;\n\t\t\t\tcolumn = (column + 1) % size;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a534af248ad87c7df5c60d0dbd2491cf", "score": "0.54664505", "text": "protected void checkAdjacent(int x, int y) {\n\n // method variable\n int temp;\n\n // aborts if selected square is empty\n if (gameState.tiles[x][y].number == Square.EMPTY) {\n return;\n }\n\n // check adjacent squares for empty if adjacencies exist,\n // swaps numbers if empty and invalidates\n // above selected square\n if (x > 0) {\n if (gameState.tiles[x-1][y].number == Square.EMPTY) {\n temp = gameState.tiles[x][y].number;\n gameState.tiles[x][y].number = gameState.tiles[x-1][y].number;\n gameState.tiles[x-1][y].number = temp;\n squaresView.invalidate();\n return;\n }\n }\n\n // right of selected square\n if (y > 0) {\n if (gameState.tiles[x][y-1].number == Square.EMPTY) {\n temp = gameState.tiles[x][y].number;\n gameState.tiles[x][y].number = gameState.tiles[x][y-1].number;\n gameState.tiles[x][y-1].number = temp;\n squaresView.invalidate();\n return;\n }\n }\n\n // below selected square\n if (x < gameState.tiles.length - 1) {\n if (gameState.tiles[x+1][y].number == Square.EMPTY) {\n temp = gameState.tiles[x][y].number;\n gameState.tiles[x][y].number = gameState.tiles[x+1][y].number;\n gameState.tiles[x+1][y].number = temp;\n squaresView.invalidate();\n return;\n }\n }\n\n // left of selected square\n if (y < gameState.tiles[x].length - 1) {\n if (gameState.tiles[x][y+1].number == Square.EMPTY) {\n temp = gameState.tiles[x][y].number;\n gameState.tiles[x][y].number = gameState.tiles[x][y+1].number;\n gameState.tiles[x][y+1].number = temp;\n squaresView.invalidate();\n return;\n }\n }\n }", "title": "" }, { "docid": "c6498179cb2faa049074621f24e06b9d", "score": "0.546586", "text": "Square createSquare();", "title": "" }, { "docid": "5d8c0862184a762c42ba094a9e7c8127", "score": "0.5455594", "text": "public SquareSetIterator() {\r\n cursor = 0;\r\n }", "title": "" }, { "docid": "37b84fe79bda5dd89579a80b06107400", "score": "0.54554886", "text": "@Override\r\n public Point nearEmpty() {\r\n Point temp;\r\n ArrayList<Point> available = new ArrayList<Point>();\r\n final Point location = summative.getLocation(this);\r\n\r\n for (int x = -1; x <= 1; x++) {\r\n for (int y = -1; y <= 1; y++) {\r\n temp = new Point(location.x + x, location.y + y);\r\n if (summative.grassGet(temp) == null && (summative.terrainGet(temp)) == Summative.TERRAIN.LAND) {\r\n available.add(temp);\r\n }\r\n }\r\n }\r\n if (available.size() > 0) {\r\n return available.get((int) (Math.random() * available.size()));\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "0344475697f3dd9d43b97396fb81b04a", "score": "0.5449015", "text": "public static Pos convertSquareToPos(String square){\n\t\t\n\t\tint x = -1;\n\t\tint y = -1;\n\t\tchar rank, file;\n\t\t\n\t\tfile = square.charAt(0);\n\t\t\n\t\tif(file == 'a') x = 0;\n\t\tif(file == 'b') x = 1;\n\t\tif(file == 'c') x = 2;\n\t\tif(file == 'd') x = 3;\n\t\tif(file == 'e') x = 4;\n\t\tif(file == 'f') x = 5;\n\t\tif(file == 'g') x = 6;\n\t\tif(file == 'h') x = 7;\n\t\t\n\t\trank = square.charAt(1);\n\t\t\n\t\tif(rank == '1') y = 0;\n\t\tif(rank == '2') y = 1;\n\t\tif(rank == '3') y = 2;\n\t\tif(rank == '4') y = 3;\n\t\tif(rank == '5') y = 4;\n\t\tif(rank == '6') y = 5;\n\t\tif(rank == '7') y = 6;\n\t\tif(rank == '8') y = 7;\n\t\t\n\t\tif(x == -1 || y == -1){\n\t\t\treturn null;\n\t\t}\n\t\telse{\n\t\t\treturn new Pos(x, y);\n\t\t}\n\t}", "title": "" }, { "docid": "03175f5eb04dc8e893c8d172467f7ed5", "score": "0.54357547", "text": "public Point nextCell()\r\n {\n\t if (pop.getDimX()%2 == 1)\r\n\t\t correctionStep = (counter/pop.getPopSize()==1);\r\n\t \r\n\t int cellPos = 0;\r\n\t if (pos%pop.getDimX() < (pop.getDimX()/2.0 - (correctionStep?1:0)))\r\n\t\t //left half\r\n\t\t cellPos = (pos/pop.getDimX())*pop.getDimX() + (int)Math.ceil(pop.getDimX()/2.0) - pos%pop.getDimX() - (correctionStep?2:1);\r\n\t else\r\n\t\t cellPos = pos/pop.getDimX()*pop.getDimX() + pos%pop.getDimX();\r\n\t \r\n\t \r\n Point cell = pop.toGrid(cellPos);\r\n \r\n pos = (pos+1) % pop.getPopSize();\r\n\t counter = (counter+1) % (2*pop.getPopSize());\r\n return cell;\r\n }", "title": "" }, { "docid": "53c749ab2e1a66c511ee6763d55730e4", "score": "0.54094934", "text": "public void newSquare() {\n if (notFacingSouth()) {\n if (rightIsClear()) {\n turnRight();\n }\n }\n moveToWall();\n turnRight();\n moveToWall();\n turnAround();\n while (beepersPresent()&&frontIsClear()) {\n turnLeft();\n if (frontIsClear()) {\n move();\n }\n turnRight();\n if (frontIsClear()) {\n move();\n }\n }\n }", "title": "" }, { "docid": "66f211f3f65779b7fb554e8d46ecfc8d", "score": "0.54067296", "text": "public Square getSquare(int i) {\n\t\tif (i < 0 || i > 8) {\n\t\t\tthrow new IllegalArgumentException(\"Square position out of range\");\n\t\t}\n\t\treturn this.squaresTab[i];\n\t}", "title": "" }, { "docid": "af7aec61904f979137cec1cbd9054ac3", "score": "0.54046315", "text": "final Piece get(Square s) {\n return get(s.col(), s.row());\n }", "title": "" }, { "docid": "af7aec61904f979137cec1cbd9054ac3", "score": "0.54046315", "text": "final Piece get(Square s) {\n return get(s.col(), s.row());\n }", "title": "" }, { "docid": "9d4d69d712d3d350a8937b9f94e43f9b", "score": "0.5395756", "text": "private Square createSquare ()\n {\n Color border = drawingView.getBtnBorder().getBackground();\n Color fill = drawingView.getBtnFill ().getBackground();\n \n return new Square(x, y, a, border, fill);\n }", "title": "" }, { "docid": "efd6be0a8327fcffd2adbb5452a753ab", "score": "0.5386658", "text": "public Pair<Integer,Integer> getZeroPos(){\n return currentBoard.getZeroPos();\n }", "title": "" }, { "docid": "4627398117df318e77f58a1798d86e9a", "score": "0.53838015", "text": "protected Grids getStartPosition() {\n return positions.get(0);\n }", "title": "" }, { "docid": "a10c713c917edb89d73b6c41049354df", "score": "0.5377573", "text": "public Coords(){\n\t\tthis.row = 0;\n\t\tthis.column = 0;\n\t}", "title": "" }, { "docid": "e69121c733a486eacde663e3ebb2849a", "score": "0.53747183", "text": "private int getBlankIndex(){\r\n\t\tint blankIndex = -1;\r\n\t\tfor (int i = 0; i < PUZZLE_SIZE; i++){\r\n\t\t\tif (curBoard[i] == 0)\r\n\t\t\t\tblankIndex = i;\r\n\t\t}\r\n\t\treturn blankIndex;\r\n\t}", "title": "" }, { "docid": "7c33e957835fd63d93692f35492bda48", "score": "0.5357332", "text": "@Test\n\tvoid makeSquareBoardTest() {\n\t\tassertNotNull(new FlexBoard(11, 11, CoordinateID.SQUARE));\n\t\tassertNotNull(new FlexBoard(34, 500, CoordinateID.SQUARE));\n\t\tassertNotNull(new FlexBoard(8, 8, CoordinateID.SQUARE));\n\t\tassertNotNull(new FlexBoard(34, 0, CoordinateID.SQUARE));\n\t\tassertNotNull(new FlexBoard(1, 1, CoordinateID.SQUARE));\n\t\tassertNotNull(new FlexBoard(0, 0, CoordinateID.SQUARE));\n\t}", "title": "" }, { "docid": "73f57bb7872e6f9ee40e4be25db1ad5e", "score": "0.5345373", "text": "private Pair whereBlank() {\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tif (matrix[i][j].getIsBlank())\n\t\t\t\t\treturn new Pair(i,j);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a3a3d8898217e73a59690eaf8421cf9c", "score": "0.5339695", "text": "public Square (int x, int y)\n\t{\n\t\tif (x < 0 || y < 0)\n\t\t\tthrow new IllegalArgumentException();\n\t\t\n\t\tthis.x = x;\n\t\t\n\t\tthis.y = y;\n\t\tSystem.out.println(\"Square\"+this.x+this.y);\n//\t\tTODO We reversed colors\n\t\tthis.color = (this.x + this.y)%2 == 0? Color.white: Color.black;\n\t\tthis.piece = null;\n\t\t\n\t\t//Invariant asserts.\n\t\tthis.checkInvariant();\n\t}", "title": "" }, { "docid": "524d61f29178085c2b20845c854d081f", "score": "0.5339631", "text": "public ChessSquare squareAtCoords(int x, int y) {\n\t\tfor (ChessSquare[] row : grid) {\n\t\t\tfor (ChessSquare cs : row) {\n\t\t\t\tif (cs.contains(x, y)) {\n\t\t\t\t\treturn cs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "67e87765e679b488c24550f976a2524f", "score": "0.53347975", "text": "public Square[] movesFrom(Square square) {\r\n Square[] squares = new Square[0];\r\n char file = square.getFile();\r\n char rank = square.getRank();\r\n int len = 0;\r\n int index = 0;\r\n if (file != 'h') {\r\n len++;\r\n if (rank != '1') {\r\n len++;\r\n }\r\n if (rank != '8') {\r\n len++;\r\n }\r\n }\r\n if (file != 'a') {\r\n len++;\r\n if (rank != '1') {\r\n len++;\r\n }\r\n if (rank != '8') {\r\n len++;\r\n }\r\n }\r\n if (rank != '1') {\r\n len++;\r\n }\r\n if (rank != '8') {\r\n len++;\r\n }\r\n\r\n squares = new Square[len];\r\n if (file != 'h') {\r\n squares[index]\r\n = new Square((char) (Character.getNumericValue(file)\r\n + 1 + 87), rank);\r\n index++;\r\n if (rank != '1') {\r\n squares[index]\r\n = new Square((char) (Character.getNumericValue(file)\r\n + 1 + 87)\r\n , (char) (Character.getNumericValue(rank) - 1 + 48));\r\n index++;\r\n }\r\n if (rank != '8') {\r\n squares[index]\r\n = new Square((char) (Character.getNumericValue(file)\r\n + 1 + 87)\r\n , (char) (Character.getNumericValue(rank) + 1 + 48));\r\n index++;\r\n }\r\n }\r\n if (file != 'a') {\r\n squares[index]\r\n = new Square((char) (Character.getNumericValue(file)\r\n - 1 + 87), rank);\r\n index++;\r\n if (rank != 1) {\r\n squares[index]\r\n = new Square((char) (Character.getNumericValue(file)\r\n - 1 + 87), (char) (Character.getNumericValue(rank)\r\n - 1 + 48));\r\n index++;\r\n }\r\n if (rank != '8') {\r\n squares[index]\r\n = new Square((char) (Character.getNumericValue(file)\r\n - 1 + 87)\r\n , (char) (Character.getNumericValue(rank) + 1 + 48));\r\n index++;\r\n }\r\n }\r\n if (rank != '1') {\r\n squares[index] = new Square(file\r\n , (char) (Character.getNumericValue(rank) - 1 + 48));\r\n index++;\r\n }\r\n if (rank != '8') {\r\n squares[index] = new Square(file\r\n , (char) (Character.getNumericValue(rank) + 1 + 48));\r\n index++;\r\n }\r\n return squares;\r\n }", "title": "" }, { "docid": "5f870eff0e3a834dd5d211548a2b2fb7", "score": "0.5316254", "text": "public List<Coordinate> getPossibleMoveCoordinate() {\n int currentXCoord = this.xCoordinate;\n int currentYCoord = this.yCoordinate;\n List<Coordinate> coords = new ArrayList<>();\n\n for (int i = -1; i <= 1; i++) {\n for (int j = -1; j <= 1; j++) {\n // look all available positions without (0, 0) offset\n if (!(i == 0 && j == 0)) {\n addToCoordinatesIfValid(coords, currentXCoord + i, currentYCoord + j);\n }\n }\n }\n return coords;\n }", "title": "" }, { "docid": "345d8bfa9aba4fe5ddd1f07b316d9e2f", "score": "0.53123266", "text": "private int getRelativeX(int square, int orientation) {\n switch (orientation % 4) {\n case 0 :\n return shapeX[square];\n case 1 :\n return -shapeY[square];\n case 2 :\n return -shapeX[square];\n case 3 :\n return shapeY[square];\n default:\n return 0; // Should never occur\n }\n }", "title": "" }, { "docid": "85ea45b63d2ea0d45e0c16e7a22841a2", "score": "0.5305956", "text": "public Position next() {\r\n Position nextPosition = new Position();\r\n switch (count++) {\r\n case 0:\r\n nextPosition = new Position(row - 2, column + 1); // move up 2 rows 1 column to the right\r\n break;\r\n case 1:\r\n nextPosition = new Position(row - 1, column + 2); // move up 1 row and 2 columns to the right\r\n break;\r\n case 2:\r\n nextPosition = new Position(row + 1, column + 2); // move down 1 row and 2 columns to the right\r\n break;\r\n case 3:\r\n nextPosition = new Position(row + 2, column + 1); // move down 2 rows and 1 column to the right\r\n break;\r\n case 4:\r\n nextPosition = new Position(row + 2, column - 1); // move down 2 rows and 1 column to the left\r\n break;\r\n case 5:\r\n nextPosition = new Position(row + 1, column - 2); // move down 1 row and 2 columns to the left\r\n break;\r\n case 6:\r\n nextPosition = new Position(row - 1, column - 2); // move up 1 row and 2 columns to the left\r\n break;\r\n case 7:\r\n nextPosition = new Position(row - 2, column - 1); // move up 2 rows and 1 column to the left\r\n break;\r\n }\r\n\r\n return nextPosition;\r\n }", "title": "" }, { "docid": "75b68e232ccf22e8ff2022131015b254", "score": "0.53015244", "text": "public int getSquare(int x, int y) {\n\t\tif (((1L << xyMerge(x, y)) & white) != 0) return WHITE;\n\t\tif (((1L << xyMerge(x, y)) & black) != 0) return BLACK;\n\t\treturn EMPTY;\n\t}", "title": "" }, { "docid": "9a914506b85518b12a530513bfed627a", "score": "0.528544", "text": "private void generatePieceCoordinates() {\n\t\tfor (int x = 0; x < pieceXPositions.length; x++) {\n\t\t\tpieceXPositions[x] = startingPosX + piecePaddingActual - pieceOverlapActual + (columnWidth * x);\n\t\t}\n\t\tfor (int y = 0; y < pieceYPositions.length; y++) {\n\t\t\tpieceYPositions[y] = startingPosY - piecePaddingActual + pieceOverlapActual - (columnWidth * y) - pieceSizeActual;\n\t\t}\n\t}", "title": "" }, { "docid": "9a8557b3931001157a68309ac91289b6", "score": "0.5279034", "text": "public OriginPiece(Piece[][] board, int[] location){\r\n int x = location[0];\r\n int y = location[1];\r\n\r\n // check top\r\n if( x > 0 && board[x - 1][y] == Piece.EMPTY){\r\n int[] topp = {x - 1, y};\r\n totalSpots++;\r\n this.top = topp;\r\n }\r\n\r\n // check bottom\r\n if( x < board.length && board[x + 1][y] == Piece.EMPTY){\r\n int[] bot = {x + 1, y};\r\n totalSpots++;\r\n this.bottom = bot;\r\n }\r\n\r\n // check left\r\n if( y > 0 && board[x][y - 1] == Piece.EMPTY){\r\n int[] lft = {x, y - 1};\r\n totalSpots++;\r\n this.left = lft;\r\n }\r\n\r\n // check right\r\n if( y < board[0].length && board[x][y + 1] == Piece.EMPTY){\r\n int[] rig = {x, y + 1};\r\n totalSpots++;\r\n this.right = rig;\r\n }\r\n }", "title": "" }, { "docid": "877038c1a7b15bf21976f273c3606787", "score": "0.5273906", "text": "@Test\n public void testGetSquareAtWhenInside() {\n Position pos = new Position(5,5);\n Board instance = board;\n Square expResult = new Square();\n Square result = instance.getSquareAt(pos);\n assertTrue(expResult.equals(result));\n }", "title": "" }, { "docid": "3c73bed2cff4417d72a835b41014a659", "score": "0.5272118", "text": "public Grid() {\n //left, right and bottom have 4 extra squares that are used to check if the block tries to exits the grid\n this.squares = new Square[WIDTH + 2 * BORDER_WIDTH][HEIGHT + TOP_AREA + BORDER_WIDTH];\n SquareFactory squareFactory = new SquareFactory();\n for(int i = 0; i< squares[0].length; i++) {\n for(int j = 0; j< squares.length; j++) {\n if((i < squares[0].length - BORDER_WIDTH) && (j >= BORDER_WIDTH) && (j < squares.length - BORDER_WIDTH)) {\n squares[j][i] = squareFactory.createEmptySquare();\n }\n else {\n squares[j][i] = squareFactory.createBorderSquare();\n }\n }\n }\n }", "title": "" }, { "docid": "1a19da29cc178d7a567a67e6a8a26ff5", "score": "0.5271208", "text": "public Square() {\n //绘制顶点坐标\n // initialize vertex byte buffer for shape coordinates\n //初始化\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 4 bytes per float)\n squareCoords.length * 4);\n //OpenGL在底层的实现是C语言,与Java默认的数据存储字节顺序可能不同,即大端小端问题\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareCoords);\n vertexBuffer.position(0);\n\n //绘制顺序\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 2 bytes per short)\n drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n }", "title": "" }, { "docid": "8a91f8f8321a36665ae3e079bc60e083", "score": "0.526869", "text": "public int[] nextFreeCell() {\n int[] slot = new int[2];\n for (int i = 0; i < length; i++) {\n for (int j = 0; j < length; j++) {\n if (numbers[i][j] == 0) {\n slot[0] = i;\n slot[1] = j;\n return slot;\n }\n }\n }\n slot[0] = -1;\n slot[1] = -1;\n return slot;\n }", "title": "" }, { "docid": "88ce2a0269b8af1834397fa79d6f31a0", "score": "0.52668685", "text": "public boolean findSquares(){\n // Squares are where each corner is the same symbol\n // Squares are 2x2 or larger\n grid = getGrid();\n boolean noChange = true; // if no changes made then valid\n // check if each position is top left of a square\n //therefore do not need to check all positions\n for (int i = 0; i< (grid.length-2); i++) { // height\n for (int j = 0; j < (grid[i].length-2); j++) { // width\n for (int k = 2; k<grid.length-j && k<grid.length-i;k++){ // possible square sizes (max entire grid)\n if (grid[i][j] == grid[i][j+k]){\n // same symbol k right now check k below\n if (grid[i][j] == grid[i+k][j]) {\n // same k below now check k right and below (4th corner)\n if(grid[i][j] == grid[i+k][j+k]){\n // it be a square, change symbol\n if(grid[i][j] == \"X\"){\n grid[i][j] = \"O\";\n } else {\n grid[i][j] = \"X\";\n }\n noChange = false;\n } // end check right and below\n } // end check below\n } // end check right\n } // end sizes\n } // end width\n } //end height\n //System.out.println(toString());\n return noChange;\n }", "title": "" }, { "docid": "807c3559096fddbd2d80d98845ac94a7", "score": "0.5245415", "text": "protected Square() {\n\t\tthis.occupants = new ArrayList<>();\n\t\tthis.neighbours = new EnumMap<>(Direction.class);\n\t\tassert invariant();\n\t}", "title": "" }, { "docid": "1ffc47dea84601c73069ec7ddd41f604", "score": "0.5244795", "text": "public int[] findSquareMouseIsOn(int mousex,int mousey,int size,int locationx, int locationy,int gridx, int gridy){\n //the location of the mouse in the grid is specified by these variables\n //if they remain at -1 then the mouse is not within the grid\n int xLoc=-1;\n int yLoc=-1;\n //test to see if the mouse is within the bounds of the grid\n if (mousex>locationx&&mousex<locationx+gridx*size) {\n //loop through all possible x locations in the grid and increase xLoc's value\n //every time the mouse is still farther along the grid\n for (int x = 0; x!= gridx; x++) {\n //if the mouses location is still farther along the grid, increase xLoc by 1\n if (mousex > locationx + size * x) {\n xLoc++;\n } else {\n //otherwise we have found the location of the mouse in the grid and we end this loop\n break;\n }\n }\n }\n //test to see if the mouse is within the bounds of the grid\n if (mousey>locationy&&mousey<locationy+gridy*size) {\n //loop through all possible x locations in the grid and increase xLoc's value\n //every time the mouse is still farther along the grid\n for (int y = 0; y!= gridy; y++) {\n //if the mouses location is still farther along the grid, increase xLoc by 1\n if (mousey > locationy + size * y) {\n yLoc++;\n } else {\n //otherwise we have found the location of the mouse in the grid and we end this loop\n break;\n }\n }\n }\n //set the loc array to the locations found\n int[] loc=new int[2];\n loc[0]=xLoc;\n loc[1]=yLoc;\n return loc;\n }", "title": "" }, { "docid": "8905d5418caf2ed5747488e65914b5da", "score": "0.52313524", "text": "private Square getNeighborSquare(int row, int col, Direction direction) {\n\n // get the neighbour index\n int[] neighbourIndex = getNeighborIndex(row, col, direction);\n int r = neighbourIndex[0];\n int c = neighbourIndex[1];\n\n // check is row and column out of bound\n // if out of bound, return null\n // otherwise return grid[row][column]\n try {\n // check square's index\n checkChooseSquareIndex(r, c);\n\n // when square's index valid, return square\n return this.grid[r][c];\n } catch (BoardOutOfBoundException e) {\n // when square's index invalid, return null\n return null;\n }\n\n }", "title": "" }, { "docid": "6509aad23173fa8924df3e870380862f", "score": "0.5229305", "text": "public Position NextPosition() {\r\n Position ret = null;\r\n if(dir.equals(\"north\"))\r\n ret = new Position(player.x, player.y - 1);\r\n else if(dir.equals(\"east\"))\r\n ret = new Position(player.x + 1, player.y);\r\n else if(dir.equals(\"south\"))\r\n ret = new Position(player.x, player.y + 1);\r\n else if(dir.equals(\"west\"))\r\n ret = new Position(player.x - 1, player.y);\r\n\r\n return ret;\r\n }", "title": "" }, { "docid": "2adacb354aaa81f9344f5c7f8aa03517", "score": "0.52283645", "text": "public Square getSquare() {\n return square;\n }", "title": "" }, { "docid": "7b72a4c8ba86fa5bffccc6ab2679452b", "score": "0.5228185", "text": "Square(){\n width = 1;\n }", "title": "" }, { "docid": "cd4fd7cb930064451181238e883ab6b1", "score": "0.52261937", "text": "private Pair<Integer, Integer> findHorizontalSpace(final Piece pieceToCheck) {\n // First Row\n if (gameBoard.get(0).get(0).equals(pieceToCheck) && gameBoard.get(0).get(1).equals(pieceToCheck) && gameBoard.get(0).get(2).equals(Piece.EMPTY)) {\n return Pair.create(0, 2);\n }\n\n // First Row\n if (gameBoard.get(0).get(0).equals(pieceToCheck) && gameBoard.get(0).get(2).equals(pieceToCheck) && gameBoard.get(0).get(1).equals(Piece.EMPTY)) {\n return Pair.create(0, 1);\n }\n\n // First Row\n if (gameBoard.get(0).get(1).equals(pieceToCheck) && gameBoard.get(0).get(2).equals(pieceToCheck) && gameBoard.get(0).get(0).equals(Piece.EMPTY)) {\n return Pair.create(0, 0);\n }\n\n // Second Row\n if (gameBoard.get(1).get(0).equals(pieceToCheck) && gameBoard.get(1).get(1).equals(pieceToCheck) && gameBoard.get(1).get(2).equals(Piece.EMPTY)) {\n return Pair.create(1, 2);\n }\n\n // Second Row\n if (gameBoard.get(1).get(0).equals(pieceToCheck) && gameBoard.get(1).get(2).equals(pieceToCheck) && gameBoard.get(1).get(1).equals(Piece.EMPTY)) {\n return Pair.create(1, 1);\n }\n\n // Second Row\n if (gameBoard.get(1).get(1).equals(pieceToCheck) && gameBoard.get(1).get(2).equals(pieceToCheck) && gameBoard.get(1).get(0).equals(Piece.EMPTY)) {\n return Pair.create(1, 0);\n }\n\n // Third Row\n if (gameBoard.get(2).get(0).equals(pieceToCheck) && gameBoard.get(2).get(1).equals(pieceToCheck) && gameBoard.get(2).get(2).equals(Piece.EMPTY)) {\n return Pair.create(2, 2);\n }\n\n // Third Row\n if (gameBoard.get(2).get(0).equals(pieceToCheck) && gameBoard.get(2).get(2).equals(pieceToCheck) && gameBoard.get(2).get(1).equals(Piece.EMPTY)) {\n return Pair.create(2, 1);\n }\n\n // Third Row\n if (gameBoard.get(2).get(1).equals(pieceToCheck) && gameBoard.get(2).get(2).equals(pieceToCheck) && gameBoard.get(2).get(0).equals(Piece.EMPTY)) {\n return Pair.create(2, 0);\n }\n\n return null;\n }", "title": "" }, { "docid": "783de1c5c72b2330a9ddcbd82df23e96", "score": "0.5224676", "text": "public Square()\n {\n\n }", "title": "" }, { "docid": "78f8e6d6b07b4a2fbff368c7471dc005", "score": "0.5217134", "text": "public Color getSquareColor(int x, int y) {\n if (x < 0 || x >= width || y < 0 || y >= height) {\n return null;\n } else {\n return matrix[y][x];\n }\n }", "title": "" }, { "docid": "7bc29bd58149e4c37bf6f915e43f807b", "score": "0.5208706", "text": "@Test\n void playerGoesToAnEmptySquare(){\n setUpCustomMap(\"/nearEmptySquare.txt\");\n // Given the game has started\n assertTrue(game.isInProgress());\n // and my Pacman is next to an empty square\n Square emptySpace = player.getSquare().getSquareAt(Direction.EAST);\n assertTrue(emptySpace.getOccupants().isEmpty());\n // when I press an arrow key towards that square\n game.move(player, Direction.EAST);\n // then my Pacman can move to that square\n assertEquals(emptySpace, player.getSquare());\n // and my points remain the same\n assertEquals(0, player.getScore());\n }", "title": "" }, { "docid": "afeab6662725856b3e257a7563b0c7ce", "score": "0.52084017", "text": "public int[] getNewLocation (){\n try {\n int[] coordinates;\n do {\n coordinates = new int[]{random.nextInt(boardSize), random.nextInt(boardSize)};\n } while (locations.contains(coordinates));\n return coordinates;\n }catch (Exception e){\n return new int[]{0,0};\n }\n }", "title": "" }, { "docid": "f3970c1600053661dbcffeac445cb871", "score": "0.5202016", "text": "public Square()\n {\n // Initialize instance variables\n this.direction = direction;\n this.score = score;\n }", "title": "" } ]
591a68966c09e49d48cbfd81b13c9481
Returns additional metadata for a previously executed successful, request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface. Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
[ { "docid": "57725af5efc1ffb6b3b589cbd567e693", "score": "0.66214734", "text": "public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {\n return client.getResponseMetadataForRequest(request);\n }", "title": "" } ]
[ { "docid": "f7b9caa7fadb33390ec56c08f6f26c2c", "score": "0.6786516", "text": "ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);", "title": "" }, { "docid": "f7b9caa7fadb33390ec56c08f6f26c2c", "score": "0.6786516", "text": "ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);", "title": "" }, { "docid": "f7b9caa7fadb33390ec56c08f6f26c2c", "score": "0.6786516", "text": "ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);", "title": "" }, { "docid": "5cf952a6180e13c9f6f1b58d5a1a656e", "score": "0.59244996", "text": "public Map<String, String> getMetadata() {\n return internalHeaders.getXMsMeta();\n }", "title": "" }, { "docid": "b59490cf402d8543868afbaf0f6f7ff0", "score": "0.5900005", "text": "public com.strongdm.api.plumbing.Spec.GetRequestMetadata getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.GetRequestMetadata.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "b59490cf402d8543868afbaf0f6f7ff0", "score": "0.5900005", "text": "public com.strongdm.api.plumbing.Spec.GetRequestMetadata getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.GetRequestMetadata.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "0da9af8fce9807bd3bb9d2ddf8c2311c", "score": "0.5871215", "text": "Map<String, Object> getMetadata();", "title": "" }, { "docid": "c6acf5c7dd3a6b83d9af9943f487ddbd", "score": "0.57935447", "text": "GetMetadataRequest() {}", "title": "" }, { "docid": "1cc41a0e83a99ff9484aa88c6f3af3ff", "score": "0.57681483", "text": "@JsonIgnore\n public Map<String, Object> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "1224679899c0e9168643c2b9dff20eb2", "score": "0.570706", "text": "java.lang.String getRespInfo();", "title": "" }, { "docid": "1224679899c0e9168643c2b9dff20eb2", "score": "0.570706", "text": "java.lang.String getRespInfo();", "title": "" }, { "docid": "b86cd79d007aa26df9b8c1c40b338627", "score": "0.5604473", "text": "public Metadata getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "b86cd79d007aa26df9b8c1c40b338627", "score": "0.5604473", "text": "public Metadata getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "dc7defc396af8bfe6a864a12275a8711", "score": "0.5548753", "text": "public Map<String, String> metadata() {\n return this.metadata;\n }", "title": "" }, { "docid": "c0127d31639f44513aa15763525ba94b", "score": "0.5527188", "text": "public Metadata metadata() {\n return _metadata;\n }", "title": "" }, { "docid": "c98a3109d262c37159f820c73610f444", "score": "0.54423726", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.GetRequestMetadata getMeta() {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.GetRequestMetadata.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "c98a3109d262c37159f820c73610f444", "score": "0.54423726", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.GetRequestMetadata getMeta() {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.GetRequestMetadata.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "e79c87e88075b772652ec0d7f7c8da79", "score": "0.54273325", "text": "@Override\n\tpublic Map<String, Object> getAdditionalInformation() {\n\t\treturn accessToken.getAdditionalInformation();\n\t}", "title": "" }, { "docid": "504490db13b0d4a2d8d24b35a0d9c7d0", "score": "0.5389991", "text": "public com.strongdm.api.plumbing.Spec.GetRequestMetadataOrBuilder getMetaOrBuilder() {\n if (metaBuilder_ != null) {\n return metaBuilder_.getMessageOrBuilder();\n } else {\n return meta_ == null ?\n com.strongdm.api.plumbing.Spec.GetRequestMetadata.getDefaultInstance() : meta_;\n }\n }", "title": "" }, { "docid": "504490db13b0d4a2d8d24b35a0d9c7d0", "score": "0.5389991", "text": "public com.strongdm.api.plumbing.Spec.GetRequestMetadataOrBuilder getMetaOrBuilder() {\n if (metaBuilder_ != null) {\n return metaBuilder_.getMessageOrBuilder();\n } else {\n return meta_ == null ?\n com.strongdm.api.plumbing.Spec.GetRequestMetadata.getDefaultInstance() : meta_;\n }\n }", "title": "" }, { "docid": "9a4525bd5fd22b147106f7f989ce20e9", "score": "0.5383968", "text": "public Map<String, String> metadata() {\n return this.innerProperties() == null ? null : this.innerProperties().metadata();\n }", "title": "" }, { "docid": "7cf18bba7ea78cd725cf876d513fefbb", "score": "0.5345654", "text": "JSONObject getMetadata();", "title": "" }, { "docid": "550b2c1463b22d16eefc6099954845fa", "score": "0.5317697", "text": "public java.lang.String getRespInfo() {\n java.lang.Object ref = respInfo_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n respInfo_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "550b2c1463b22d16eefc6099954845fa", "score": "0.5317697", "text": "public java.lang.String getRespInfo() {\n java.lang.Object ref = respInfo_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n respInfo_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "87f17680ebe125ff9a5ade17c0a1005e", "score": "0.53143054", "text": "public QueryResultSetMetadata getResultSetMetaData(LensQuery query) {\n if (query.getStatus().getStatus() != QueryStatus.Status.SUCCESSFUL) {\n throw new IllegalArgumentException(\"Result set metadata \" + \"can be only queries for successful queries\");\n }\n Client client = connection.buildClient();\n\n try {\n WebTarget target = getQueryWebTarget(client);\n\n return target.path(query.getQueryHandle().toString()).path(\"resultsetmetadata\")\n .queryParam(\"sessionid\", connection.getSessionHandle()).request().get(QueryResultSetMetadata.class);\n } catch (Exception e) {\n log.error(\"Failed to get resultset metadata, cause:\", e);\n throw new IllegalStateException(\"Failed to get resultset metadata, cause:\" + e.getMessage());\n }\n }", "title": "" }, { "docid": "42eab691fc69533d1126a45942524446", "score": "0.5313556", "text": "com.strongdm.api.plumbing.Spec.GetRequestMetadata getMeta();", "title": "" }, { "docid": "42eab691fc69533d1126a45942524446", "score": "0.5313556", "text": "com.strongdm.api.plumbing.Spec.GetRequestMetadata getMeta();", "title": "" }, { "docid": "8748ca77e02dfaf402adde101501a8e8", "score": "0.53108424", "text": "java.lang.String getErrorDetails();", "title": "" }, { "docid": "217573a83584ed8e066e5aea7fd51a0e", "score": "0.5305757", "text": "public java.lang.String getRespInfo() {\n java.lang.Object ref = respInfo_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n respInfo_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "217573a83584ed8e066e5aea7fd51a0e", "score": "0.5305757", "text": "public java.lang.String getRespInfo() {\n java.lang.Object ref = respInfo_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n respInfo_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7dcf5b0866732722974c083877283cfa", "score": "0.52673644", "text": "com.google.protobuf.ByteString\n getRespInfoBytes();", "title": "" }, { "docid": "7dcf5b0866732722974c083877283cfa", "score": "0.52673644", "text": "com.google.protobuf.ByteString\n getRespInfoBytes();", "title": "" }, { "docid": "57f0e8bec44f9c4849e1fa7191c8eb2c", "score": "0.52346927", "text": "com.google.protobuf.ByteString getClientmetadata();", "title": "" }, { "docid": "bf4ad6f0af17ddc3fcbe9a2c24a22569", "score": "0.52262884", "text": "@GET\n\t@Path(\"info\")\n\t@Produces({\"text/plain\"})\n\tpublic String getInfo() {\n\t\tif (!RestCacheConfigurator.isBroken() && RestCacheConfigurator.isActive()) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(infoMsg);\n\t\t\tsb.append(\"\\n\\n\");\n\t\t\tsb.append(\"Caching path:\\n\");\n\t\t\tsb.append(RestCacheConfigurator.getCache().getCachingPath());\n\t\t\tsb.append(\"\\nQuery params excluded(discarded during processing from actual url path):\\n\");\n\t\t\tsb.append(RestCacheConfigurator.getCache().getQueryParamsExclude().toString());\n\t\t\tsb.append(\"\\nUrls containing these queries are not cached:\\n\");\n\t\t\tsb.append(RestCacheConfigurator.getCache().getQueryParamsDeny().toString());\n\t\t\tboolean isRest = RestCacheConfigurator.getCache().isUrlFromRest();\n\t\t\tsb.append(\"\\nRest is used:\\n\");\n\t\t\tsb.append(isRest);\n\t\t\tif (isRest) {\n\t\t\t\tsb.append(\"\\nRest param:\\n\");\n\t\t\t\tsb.append(RestCacheConfigurator.getCache().getRestParam());\n\t\t\t\tsb.append(\"\\nRest path:\\n\");\n\t\t\t\tsb.append(RestCacheConfigurator.getCache().getRestPath());\n\t\t\t}\n\t\t\tsb.append(\"\\nClass for caching:\\n\");\n\t\t\tsb.append(RestCacheConfigurator.getCache().getClass().getName());\n\t\t\tsb.append(\"\\nCached Keys:\\n\");\n\t\t\tsb.append(RestCacheConfigurator.getCache().getCachedKeys().toString());\n\n\t\t\treturn sb.toString();\n\t\t} else {\n\t\t\treturn notActiveMsg;\n\t\t}\n\t}", "title": "" }, { "docid": "2c499a1ec4719e8ebc33b19d53224907", "score": "0.52213013", "text": "public HashMap<String, String> getAdditionalInformation() {\n\t\treturn additionalInformation;\n\t}", "title": "" }, { "docid": "3557cda6303d359c9a132e8df89a2e30", "score": "0.521669", "text": "MetaDataInfo getMetaDataInfo();", "title": "" }, { "docid": "6bd92547bad95a463b0b7fb2eca25b9b", "score": "0.5211614", "text": "public Object getRequestResponseRecord() {\n return requestResponseRecord;\n }", "title": "" }, { "docid": "6bd92547bad95a463b0b7fb2eca25b9b", "score": "0.5211614", "text": "public Object getRequestResponseRecord() {\n return requestResponseRecord;\n }", "title": "" }, { "docid": "6bd92547bad95a463b0b7fb2eca25b9b", "score": "0.5211614", "text": "public Object getRequestResponseRecord() {\n return requestResponseRecord;\n }", "title": "" }, { "docid": "a717a683d832f4dbfa5052a90f9e66a9", "score": "0.52008283", "text": "public Optional<ErrorDetails> getErrorDetails() {\n return errorDetails;\n }", "title": "" }, { "docid": "dce095c3c3830317d10baf2eeabcf433", "score": "0.5200156", "text": "public AsyncOperationErrorInfo errorInfo() {\n return this.errorInfo;\n }", "title": "" }, { "docid": "c4a2afe3ce313b1ef8f86ffce5f4ad70", "score": "0.5180742", "text": "public LoggingFilterProperties getRequestResponse() {\n return requestResponse;\n }", "title": "" }, { "docid": "39acd584ca2a4b49a67f55eef1e8f49b", "score": "0.5176942", "text": "@Override\n public ExperimentMetaData getExperimentMetaData() {\n ExperimentMetaData metaData = super.getExperimentMetaData();\n\n if (metaData == null) {\n try {\n String accession = getMzIdentMLId();\n String title = getMzIdentMLName();\n String version = getVersion();\n String shortLabel = getShortLabel();\n ExperimentProtocol protocol = getExperimentProtocol();\n List<SourceFile> sources = getSourceFiles();\n List<Software> software = getSoftwares();\n List<Person> persons = getPersonContacts();\n List<Organization> organizations = getOrganizationContacts();\n Provider provider = getProvider();\n Date creationDate = unmarshaller.getCreationDate();\n List<Reference> references = getReferences();\n List<uk.ac.ebi.pride.utilities.data.core.SpectraData> spectraData = getSpectraDataFiles();\n List<Sample> samples = getSamples();\n ParamGroup additional =\n getAdditional(); // Get Additional Information Related with the Project\n metaData =\n new ExperimentMetaData(\n additional,\n accession,\n title,\n version,\n shortLabel,\n samples,\n software,\n persons,\n sources,\n provider,\n organizations,\n references,\n creationDate,\n null,\n protocol,\n spectraData);\n // store it in the cache\n getCache().store(CacheEntry.EXPERIMENT_METADATA, metaData);\n } catch (Exception ex) {\n throw new DataAccessException(\"Failed to retrieve meta data\", ex);\n }\n }\n return metaData;\n }", "title": "" }, { "docid": "d4f892f684d7cabff179fbb3fe07431d", "score": "0.5141436", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.GetRequestMetadataOrBuilder getMetaOrBuilder() {\n return getMeta();\n }", "title": "" }, { "docid": "d4f892f684d7cabff179fbb3fe07431d", "score": "0.5141436", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.GetRequestMetadataOrBuilder getMetaOrBuilder() {\n return getMeta();\n }", "title": "" }, { "docid": "f2d419c2efff3b77f13311624b55271e", "score": "0.51386636", "text": "Map getMetadata();", "title": "" }, { "docid": "25c11cdb7fbb6317b1178a6e9687c4d9", "score": "0.5132416", "text": "private Trace getTraceMetadata(final HttpServletRequest request) {\n if (!(request instanceof TraceAccessor)) {\n return null;\n }\n\n return ((TraceAccessor) request)._$PINPOINT$_getTrace();\n }", "title": "" }, { "docid": "e25fdee027def9b14c97d04b26b855ca", "score": "0.5125398", "text": "com.google.protobuf.ByteString getErrorDetailsBytes();", "title": "" }, { "docid": "21f68d9b245b8e957a97afb9e535b545", "score": "0.51044476", "text": "ConnectorInformationResponse getInfo();", "title": "" }, { "docid": "7e8343706be212fb4019a3ca99f0b953", "score": "0.50928116", "text": "public String getMetaData()\n {\n return metaData;\n }", "title": "" }, { "docid": "fd936a9a19a2ad1c53dd81cb9f52001a", "score": "0.50884694", "text": "public QueryResultSetMetadata getResultSetMetaData() {\n return this.getResultSetMetaData(this.getQuery());\n }", "title": "" }, { "docid": "6fba351e7e031c0e49997c3f6b421cf1", "score": "0.507862", "text": "public java.util.List<java.lang.String> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "59a59e9f3a5f9ba2d7d5bbc3789632a4", "score": "0.5075992", "text": "public MetaData getMetadata() {\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tif (metadata==null){\r\n\t\t\t\tupdateMetaData(connection) ;\r\n\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\treturn metadata;\r\n\t}", "title": "" }, { "docid": "21b19939348ddec47ec97920860734ad", "score": "0.5054321", "text": "public java.util.List<java.lang.String> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "d3b4dab124a6f9ad2bcbd6bd63e55b32", "score": "0.50490016", "text": "public com.google.protobuf.ByteString\n getRespInfoBytes() {\n java.lang.Object ref = respInfo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n respInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "d3b4dab124a6f9ad2bcbd6bd63e55b32", "score": "0.50490016", "text": "public com.google.protobuf.ByteString\n getRespInfoBytes() {\n java.lang.Object ref = respInfo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n respInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "f0d5afd7c4972e2be28614a13ca84dcb", "score": "0.5042437", "text": "public String getNotificationMetadata() {\n return notificationMetadata;\n }", "title": "" }, { "docid": "28170fc97f51e00e78318493b1f83c3d", "score": "0.5024669", "text": "public String userMetadata() {\n return this.innerProperties() == null ? null : this.innerProperties().userMetadata();\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "c9ff8b92f97ac7d987629cc56590a4ed", "score": "0.50105745", "text": "public ResultsInfo getInfo() {\r\n return localInfo;\r\n }", "title": "" }, { "docid": "d566e8b25565429a9404628821bf7772", "score": "0.50076884", "text": "public ResourceMetadata getResourceMetadata() {\n return this.resourceMetadata;\n }", "title": "" }, { "docid": "5d678277c8dd38be3db5b70cdf7fe272", "score": "0.49961615", "text": "Response<SecurityAssessmentMetadata> getWithResponse(String assessmentMetadataName, Context context);", "title": "" }, { "docid": "751a7aa4feca40bbf536cf5f8f48bf27", "score": "0.499116", "text": "private String getAdditionalInfo() {\n return additionalInfo;\n }", "title": "" }, { "docid": "e8ba2b5cbe6b048620d8692830685e48", "score": "0.49792588", "text": "java.util.Map<String, String>\n getExtraInfoMap();", "title": "" }, { "docid": "e8ba2b5cbe6b048620d8692830685e48", "score": "0.49792588", "text": "java.util.Map<String, String>\n getExtraInfoMap();", "title": "" }, { "docid": "5d335b2cf1ee948a4e18cca35ac5351c", "score": "0.49757418", "text": "com.strongdm.api.plumbing.Spec.GetRequestMetadataOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "5d335b2cf1ee948a4e18cca35ac5351c", "score": "0.49757418", "text": "com.strongdm.api.plumbing.Spec.GetRequestMetadataOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "b9f3a33fb17a3ccdbbd68216db950489", "score": "0.49719703", "text": "com.google.protobuf.Any getMetadata();", "title": "" }, { "docid": "b9f3a33fb17a3ccdbbd68216db950489", "score": "0.49719703", "text": "com.google.protobuf.Any getMetadata();", "title": "" }, { "docid": "70a22ab29bef7a01cc3bdd2a34954987", "score": "0.496823", "text": "public long getResponseTime() {\n return responseTime;\n }", "title": "" }, { "docid": "022d35acf11d485b30575454e8fdef91", "score": "0.4968087", "text": "@Override\n public EntityMetadata getMetadata(final EntityRequest req) throws ApiException {\n return null;\n }", "title": "" }, { "docid": "24cff0e4b437a78a52cc4cf11dbb49cf", "score": "0.49653518", "text": "public ResourceAdapterMetaData getMetaData() throws ResourceException {\r\n\t\tfinal String SIGNATURE = \"getMetaData()\";\r\n\t\tTRACE.entering(SIGNATURE);\r\n\t\tCCIResourceAdapterMetaData meta = new CCIResourceAdapterMetaData();\r\n\t\tTRACE.exiting(SIGNATURE);\r\n return meta; \r\n }", "title": "" }, { "docid": "db28428178dd9c6c745cbd8f96551387", "score": "0.4959581", "text": "Map<String, Object> getUserMetadata(String idField, HttpServletRequest httpRequest);", "title": "" }, { "docid": "fc2b0df1a0a267ee7c61a0e45d9889c9", "score": "0.49571756", "text": "@Override\n public IErrorInformation getErrorInformation() {\n return this.errorInformation;\n }", "title": "" }, { "docid": "c07e363d96d3f7b5995e52a520868a7e", "score": "0.49479568", "text": "public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getMetadataMap() {\n return internalGetMetadata().getMap();\n }", "title": "" }, { "docid": "9e16a8f704e35f240f645cc14728ef41", "score": "0.49405396", "text": "public Optional<Serializable> getMetadata() {\n return Optional.ofNullable(metadata);\n }", "title": "" }, { "docid": "b798521814a47fc19e87885413bd89f0", "score": "0.49387193", "text": "public int getResponseTime() {\n return responseTime;\n }", "title": "" }, { "docid": "bf26b563ebd0a529d5d9379e6b508b17", "score": "0.49358365", "text": "public com.google.protobuf.ByteString\n getRespInfoBytes() {\n java.lang.Object ref = respInfo_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n respInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "bf26b563ebd0a529d5d9379e6b508b17", "score": "0.49358365", "text": "public com.google.protobuf.ByteString\n getRespInfoBytes() {\n java.lang.Object ref = respInfo_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n respInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "edc57807092e471e986e0071975647da", "score": "0.49293554", "text": "Map<String, String> getAdditionalHostInfo() {\n final Map<String, String> info = new HashMap<>();\n this.tokenizeCommands();\n\n for (Map.Entry<String, String[]> entry : mTokenizedHostInfoCmds.entrySet()) {\n final String key = entry.getKey();\n final String[] cmd = entry.getValue();\n final String cmdString = mHostInfoCmds.get(key);\n\n final CommandResult result = getRunUtil().runTimedCmdSilently(mHostInfoCmdTimeout, cmd);\n\n CLog.d(\"Command %s result: %s\", cmdString, result.getStatus().toString());\n\n if (result.getStatus() == CommandStatus.SUCCESS) {\n info.put(key, result.getStdout());\n } else {\n info.put(key, result.getStderr());\n }\n }\n\n return info;\n }", "title": "" }, { "docid": "629d03180d92bd261d38c07c3c066ffa", "score": "0.49254054", "text": "io.github.gravetii.grpc.FileMetadata getMetadata();", "title": "" }, { "docid": "b3e5f05c1fb85e0fe42ab62ec073cc6b", "score": "0.49124038", "text": "public HashMap getMetaDataKeyValuePairs() {\n return this.metaData;\n }", "title": "" }, { "docid": "da6f83ee4c16581e9a84a085dafa5f4a", "score": "0.49116427", "text": "public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getMetadataMap() {\n return internalGetMetadata().getMap();\n }", "title": "" }, { "docid": "d925d3359f07ebe01bf7ad12754849d5", "score": "0.49089965", "text": "private List<GenericDetail> getInfoForRequest(int requestID)\n {\n List<GenericDetail> res = retreivedInfo.get(requestID);\n\n if (res == null)\n {\n // this indicates that the info data\n // doesn't exists, so this is the first packet\n // from the sequence (basic info)\n\n res = new LinkedList<GenericDetail>();\n retreivedInfo.put(requestID, res);\n }\n\n return res;\n }", "title": "" }, { "docid": "a8240226c948192ed7e419d1a8c23231", "score": "0.48964176", "text": "public Values getResponseHead() {\n\n return responseHead;\n\n }", "title": "" }, { "docid": "d74d18c9a7e964414cc0964661b4bae3", "score": "0.48334637", "text": "public void showResponseInfo(HPCResponse hpcResponse) {\r\n\r\n\t\tSystem.out.println(new Date());\r\n\t\tSystem.out.println(\"INFO: Client out-bound response\");\r\n\t\tSystem.out.println(\"1 < \" + response.getStatusLine().getStatusCode());\r\n\t\tfor (Header header : response.getAllHeaders()) {\r\n\t\t\tSystem.out.println(\"1 < \" + header);\r\n\t\t}\r\n\t\tSystem.out.println(\"1 < \");\r\n\t\tSystem.out.println(hpcResponse.getResponseBody().replace(\"><\", \">\\n<\"));\r\n\t\tSystem.out.println();\r\n\t}", "title": "" } ]
a5c79d2b25b34114ebfefab8d4d3b7f0
Constructor that stores the list string.
[ { "docid": "4aab6e313044edccc1cfe1838fcf9191", "score": "0.0", "text": "public ListCommand() { }", "title": "" } ]
[ { "docid": "33a2b1ffbb04a6f7172143baaa104f50", "score": "0.7245695", "text": "public List( )\r\n\t{\r\n\t\tthis( \"\" );\r\n\t}", "title": "" }, { "docid": "5f78f534a2d6777a8d72c37f4f92d073", "score": "0.70051354", "text": "public SerializableList(List<String> list){\n this.list = list;\n }", "title": "" }, { "docid": "bcffa4dea903f8f73ff15404f00b141f", "score": "0.69401276", "text": "public LengthOrderedStringsList () {\n super();\n }", "title": "" }, { "docid": "521b686491abafe9efe92a00b715b905", "score": "0.6808256", "text": "public List() {\n this(\"list\");\n }", "title": "" }, { "docid": "0fe67c7fefdf4c3539d18d8729500b30", "score": "0.6646843", "text": "public WordList(ArrayList<String> myList) {\n this.myList = myList;\n }", "title": "" }, { "docid": "d589ab1dd9df5ee72f1b2aa9af586d86", "score": "0.6630467", "text": "public WordList(ArrayList<String> myList)\n {\n this.myList = myList;\n }", "title": "" }, { "docid": "5160a47fb27672e4df4fef6f821307e2", "score": "0.6584495", "text": "public String getListString()\n {\n parse_text();\n return list_string;\n }", "title": "" }, { "docid": "e3e3d3896a77da5db6289222672c36f4", "score": "0.6405977", "text": "void create(List<String> list);", "title": "" }, { "docid": "2ad246ef9051afa863ad894efc863e49", "score": "0.63652825", "text": "List()\n\t{\n\t\tname = \"List\";\n\t\tfront = back = cursor = null;\n\t\tlength = 0;\n\t}", "title": "" }, { "docid": "610500b36cd7689d314d57b9662191ee", "score": "0.63552606", "text": "public void setListContents(ArrayList<String> arrList)\n {\n VideoID = arrList;\n }", "title": "" }, { "docid": "26a10c9aac18168382c53b891ca1ba9a", "score": "0.6349879", "text": "public List(String title, int listType) {\n this(title, listType, new String[0], null);\n }", "title": "" }, { "docid": "a890e1ec7dc336576b576794ee1d54ff", "score": "0.63251674", "text": "public boolean setListString( String list )\n { \n if ( list == null || list.length() == 0 )\n {\n list_string = \"\";\n show_text();\n return false;\n }\n else\n {\n int[] int_list = IntList.ToArray( list ); \n list_string = IntList.ToString( int_list ); \n show_text();\n if ( int_list.length > 0 )\n return true;\n return false;\n } \n }", "title": "" }, { "docid": "c66fa5583d9fad85ca4fa4735ace978a", "score": "0.6299584", "text": "public List(final String listName) {\n name = listName;\n firstNode = lastNode = null;\n }", "title": "" }, { "docid": "d959372452f4d81178f5170bbf47d2f0", "score": "0.6246887", "text": "public List() {\n super(Epc.NAMESPACE, \"list\");\n }", "title": "" }, { "docid": "90ca178e63e9eabe3b0bda210fa76a09", "score": "0.6214315", "text": "public BindEditor putValueStrinList(LinkedList<String> value) {\n if (value!=null) {\n String temp=serializeValueStrinList(value);\n editor.putString(\"value_strin_list\",temp);\n } else {\n editor.remove(\"value_strin_list\");\n }\n\n return this;\n }", "title": "" }, { "docid": "3cafc4042fd21e90b56fdbf054996964", "score": "0.6183188", "text": "public SLList(){\n\t\tfirst = null;\n\t\tsize = 0;\n\t}", "title": "" }, { "docid": "0a623338b898bcaa807e9d3186241e83", "score": "0.61680293", "text": "public String toString(){\n return strList.toString();\n }", "title": "" }, { "docid": "4fac3cb9b805e3675a27dd60359f4676", "score": "0.6105212", "text": "public SerializableList(){}", "title": "" }, { "docid": "c7d8d64020cc54a9a584ed4e424bc15f", "score": "0.60525805", "text": "public List() {\n\n }", "title": "" }, { "docid": "b45262160dd90e93cc7ee66c78e114d0", "score": "0.6005092", "text": "public MainModel(String listName) {\n this.listName = new SimpleStringProperty(listName);\n }", "title": "" }, { "docid": "918f20a87035f188a316f7b2bdbfea38", "score": "0.59969914", "text": "public abstract List mo38321a(List list, String str);", "title": "" }, { "docid": "b8ef1562634113f41c0fac202bf72358", "score": "0.59935075", "text": "public void loadFromString(String listSt) {\n\t\tList<Object> listToLoad = (List<Object>) JSONValue.parse(listSt);\n\t\tloadFromList(listToLoad);\n\t}", "title": "" }, { "docid": "a23ae965ef3ce816e336e24124b2b7a7", "score": "0.5990046", "text": "C23021a(List list) {\n super(2);\n this.f80169a = list;\n }", "title": "" }, { "docid": "3110d1deb5e332bcaff5658740e0fe92", "score": "0.59838355", "text": "List(String name)\n\t{\n\t\tthis.name = name;\n\t\tfront = back = cursor = null;\n\t\tlength = 0;\n\t}", "title": "" }, { "docid": "cd3cf94b0d16d43d60c4c3baf1051dfd", "score": "0.59770757", "text": "public SolaCodeList(List<E> list) {\n this(list, false);\n }", "title": "" }, { "docid": "3d5bbe5f73853ffa0008d2579cfdd312", "score": "0.5961918", "text": "public AbstractConverterList(final List<S> list) {\n\t\tthis(list, false); //construct the class without remembering converted objects\n\t}", "title": "" }, { "docid": "98e1568c1a9ead0c39ea1fd9488812ff", "score": "0.59368795", "text": "public StringArrayListHandler() {\r\n\t\tthis(StringArrayHandler.ROW_PROCESSOR);\r\n\t}", "title": "" }, { "docid": "4af16f1e8e0babe5183c69a71f091b91", "score": "0.59317046", "text": "private static ArrayList createStringList()\n\t{\n\t\tArrayList stringTab = new ArrayList();\n\t\tstringTab.add(SimParamList.radiomodel);\n\t\tstringTab.add(SimParamList.macmodel);\n\t\tstringTab.add(SimParamList.packetlossin);\n\t\tstringTab.add(SimParamList.packetlossout);\n\t\tstringTab.add(SimParamList.spatial);\n\t\tstringTab.add(SimParamList.fading);\n\t\tstringTab.add(SimParamList.pathloss);\n\t\tstringTab.add(SimParamList.positiontype);\n\t\t\n\t\treturn stringTab;\n\t}", "title": "" }, { "docid": "58a480670d59cdf9de658a2f23ae7ec4", "score": "0.59203756", "text": "public Document(String ID, String name, List list) {\n\t\tsuper();\n\t\tthis.documentID = ID;\n\t\tthis.documentName = name;\n\t\tthis.shingleList = list;\n\t}", "title": "" }, { "docid": "24af7300ed5b97bdc9821595cb12dc85", "score": "0.59131193", "text": "public DSubElementList( )\n {\n elementName = null;\n }", "title": "" }, { "docid": "3c2718f939b4c595354e8739c0ed221e", "score": "0.58988166", "text": "public DLList() {\n sentinal = new StuffNode(null, null);\n size = 0;\n }", "title": "" }, { "docid": "36ce8151915195a2083f36620a7fed2b", "score": "0.5891212", "text": "public AddListMethod(){}", "title": "" }, { "docid": "3a22f4270818c0a2b70396794ffb7fc0", "score": "0.5889778", "text": "private static void createList(List<String> userlist) {\n}", "title": "" }, { "docid": "8785d4aeb4a9dddbb1b816e76eef709b", "score": "0.58738697", "text": "public ParseList(LexicalPhrase lexicalPhrase)\n {\n this.lexicalPhrase = lexicalPhrase;\n list = new LinkedList<E>();\n }", "title": "" }, { "docid": "82fd2ab8099671fd44cfa32694fcecde", "score": "0.58509594", "text": "public SpherocylinderList(String listIn,\r\n ArrayList<Spherocylinder> spheroListIn) {\r\n list = listIn;\r\n spheroList = spheroListIn;\r\n }", "title": "" }, { "docid": "f8301e3887da0af384c9827a3da08822", "score": "0.58496267", "text": "public LinkedList<String> getValueStrinList() {\n String temp=prefs.getString(\"value_strin_list\", null);\n return StringUtils.hasText(temp) ? parseValueStrinList(temp): defaultBean.getValueStrinList();\n }", "title": "" }, { "docid": "4ec06e18ae95c7871c007c9dbe1b37cf", "score": "0.58419514", "text": "public Value( List value )\r\n {\r\n listValue = value;\r\n type = Type.List;\r\n }", "title": "" }, { "docid": "6bf799b510f5040f1ffcc7bd4dfaa2fc", "score": "0.58167416", "text": "protected String createStringListName(List<String> stringList) {\n StringBuilder stringListBuilder = new StringBuilder();\n stringListBuilder.append(SPLITTER);\n stringListBuilder.append(\"{\");\n stringListBuilder.append(stringList.get(0));\n if(stringList.size() > 1) {\n stringListBuilder.append(\",\");\n }\n for(int i = 1; i < stringList.size() - 1; i++) {\n stringListBuilder.append(stringList.get(i));\n stringListBuilder.append(\",\");\n }\n if(stringList.size() > 1) {\n stringListBuilder.append(stringList.get(stringList.size() - 1));\n }\n stringListBuilder.append(\"}\");\n return stringListBuilder.toString();\n }", "title": "" }, { "docid": "a3c39e226e1bda5a10f682d1bf5b5d4f", "score": "0.58054584", "text": "public List()\r\n {\r\n first = null;\r\n last = null;\r\n size = 0;\r\n }", "title": "" }, { "docid": "bfbb39cdd7b6986d329c4a06ffe597ab", "score": "0.57917166", "text": "EList() {\n }", "title": "" }, { "docid": "42a5af64413af8fa6a463ff11ae6bb42", "score": "0.5770277", "text": "public MyIterator(ArrayList<String> l) {\r\n\t\tthis.l = l;\r\n\t\tthis.i = 0;\r\n\t}", "title": "" }, { "docid": "728922a65f14c1551ca7ec6b6582ecdc", "score": "0.5769006", "text": "public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "50cb65e6bba3a98c43edbe62967433ab", "score": "0.5768448", "text": "private void init_list() {\n }", "title": "" }, { "docid": "991ed3e3737c52bc9e83f7fae78bfdb6", "score": "0.57592344", "text": "@Override\n public String toString() {\n return list.toString();\n }", "title": "" }, { "docid": "3fec4a2374da87ba127b2cb3d3b7a824", "score": "0.5754171", "text": "public RecapWordListType(List<WordBean> value) {\r\n\t\tsuper(value);\r\n\t}", "title": "" }, { "docid": "6e60c86edac1f76ca37f64ed36a9f689", "score": "0.57515955", "text": "private Lists() {\n // empty\n }", "title": "" }, { "docid": "557ceabcc9c6a29923395f817ced2345", "score": "0.5725499", "text": "public SimpleList() {\n\t\tthis.count = 0;\n\t\tthis.list = new int[10];\n\t}", "title": "" }, { "docid": "c4e0957b9ed8ebad271aa8bf9fe05d17", "score": "0.57227033", "text": "public KeyedLists()\r\n\t{\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "6f52feb45dabd0d3c84992dfd2d1e930", "score": "0.57225126", "text": "public AttributesBlock(@Nullable String str, @NotNull List<Attribute> list) {\n super(str, null);\n Intrinsics.checkNotNullParameter(list, Navigation.ATTRIBUTES);\n this.attributes = list;\n }", "title": "" }, { "docid": "adc1f076559a76c8823018f49a5eef62", "score": "0.5718216", "text": "public OrderedList(T[] str)\r\n\t{\r\n\t\tfor(int i = 0; i<str.length;i++)\r\n\t\t{\r\n\t\t\tinsert(str[i]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "04c01dfd773447be0c85d3ea16469900", "score": "0.57158566", "text": "public void setProperList(String[] _list) {\r\n properList = _list;\r\n }", "title": "" }, { "docid": "b4af9a8491b60552ae635f8906c8e59a", "score": "0.5715694", "text": "public NoteList()\n \t{\n \t\tthis.notes = new LinkedList<Note>();\n \t}", "title": "" }, { "docid": "abf3504ed842bc47b72ac976c111a217", "score": "0.5713806", "text": "public SimpleList() {\n list = new int[10];\n count = 0;\n }", "title": "" }, { "docid": "d355577807146d111669daea7869221f", "score": "0.5704926", "text": "@Override\n protected List<String> create(final String[] elements) {\n final List<String> list = new ArrayList<>();\n Collections.addAll(list, elements);\n return new AbstractSequentialList<String>() {\n @Override\n public int size() {\n return list.size();\n }\n\n @Override\n public ListIterator<String> listIterator(int index) {\n return list.listIterator(index);\n }\n };\n }", "title": "" }, { "docid": "558d7d1c0e98fd796e8727aeefe5a917", "score": "0.5696775", "text": "public StackImpl(List list) {\n\t this.internalList = list;\n }", "title": "" }, { "docid": "0f8e1d479c13ce13388d09697c748d65", "score": "0.569523", "text": "protected LinkedList<String> parseValueStrinList(String input) {\n if (input==null) {\n return null;\n }\n KriptonJsonContext context=KriptonBinder.jsonBind();\n try (JacksonWrapperParser wrapper=context.createParser(input)) {\n JsonParser jacksonParser=wrapper.jacksonParser;\n // START_OBJECT\n jacksonParser.nextToken();\n // value of \"element\"\n jacksonParser.nextValue();\n LinkedList<String> result=null;\n if (jacksonParser.currentToken()==JsonToken.START_ARRAY) {\n LinkedList<String> collection=new LinkedList<>();\n String item=null;\n while (jacksonParser.nextToken() != JsonToken.END_ARRAY) {\n if (jacksonParser.currentToken()==JsonToken.VALUE_NULL) {\n item=null;\n } else {\n item=jacksonParser.getText();\n }\n collection.add(item);\n }\n result=collection;\n }\n return result;\n } catch(Exception e) {\n e.printStackTrace();\n throw(new KriptonRuntimeException(e.getMessage()));\n }\n }", "title": "" }, { "docid": "f05c1ad9ee9b005012b313cc6c454da3", "score": "0.5690621", "text": "public ArrayList() { this(CAP); }", "title": "" }, { "docid": "01752c972698eeac6aa8fe70e178c9eb", "score": "0.56724113", "text": "public EntList(String name)\n\t{\n\t\twhichList = name;\n\t\tentTable = new Hashtable<Integer,Entity>();\n\t\taddEntIndex = 0;\n\t\t\n\t\tentList = new ArrayList<Entity>();\n\t\tnameIndex = new Hashtable<String, ArrayList<Integer> >();\n\t\tsectionIndex = new Hashtable<Integer, ArrayList<Integer> >();\n\t\t\n\t}", "title": "" }, { "docid": "57820002534d271b37f60a2380ba6da9", "score": "0.56687975", "text": "public String getList() {\n String retVal = new String();\n for (String str : stringList)\n retVal = String.format(\"%s %s\", retVal, str);\n\n return retVal;\n }", "title": "" }, { "docid": "9093ade7e58f65ca68c7970e1b927efe", "score": "0.56559724", "text": "public List(Object... items) throws IllegalArgumentException {\n if (items.length > Byte.MAX_VALUE) {\n throw new IllegalArgumentException(\n \"A List must have fewer than \"\n + Byte.MAX_VALUE + \" items in it.\");\n }\n for (int i = 0; i < items.length; i++) {\n final Object item = items[i];\n if (item == null) {\n // Would be nice to be able to write null strings...\n items[i] = \"\";\n } else if (!(item instanceof List ||\n item instanceof String ||\n item instanceof Integer ||\n item instanceof Long)) {\n throw new IllegalArgumentException(\n \"Attempt to create a List with illegal item type.\");\n }\n }\n this.mItems = items;\n }", "title": "" }, { "docid": "0ef16a76ef0b048d426e08322a1496da", "score": "0.5654935", "text": "public static List<String> m54895a(List<String> list, String str) {\n return PlugCbUtil.m54769a(list, str);\n }", "title": "" }, { "docid": "06b74b422d94c0fc95898d62a3ab4a36", "score": "0.5652392", "text": "public static MainListFragment newInstance(ArrayList<String> uniqueIDList) {\n Bundle args = new Bundle();\n args.putStringArrayList(\"LIST\", uniqueIDList);\n MainListFragment fragment = new MainListFragment();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "406df54d5d58b3cd1fc5b8a267511e82", "score": "0.56464076", "text": "public OrderedList()\r\n\t{\r\n\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "079add80fd1507f5c15cac61fce78de1", "score": "0.5642317", "text": "public AList()\r\n {\r\n this( DEF_INIT_SIZE, DEF_EXTEND_SIZE );\r\n }", "title": "" }, { "docid": "adbb010476831106093720192ae0153c", "score": "0.5637641", "text": "public void setValueList(ArrayList<String> valueList) {\n this.valueList = valueList;\n }", "title": "" }, { "docid": "cb7b2b66db54e2a8453a55258be423e4", "score": "0.5637212", "text": "public ArrayOrderedList()\r\n\t{\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "adb33116416c0d4c58d029eb9cd20ebc", "score": "0.56361383", "text": "public IndexDecoder(List<String> barcodeStringList){\n this.barcodeStringList = barcodeStringList; \n }", "title": "" }, { "docid": "ab3d8d9b9ef9dd59ce094c0e4ccacbdf", "score": "0.5630375", "text": "public List(){ //Generates a node\n first =null;\n }", "title": "" }, { "docid": "f5ab2749f6d641060b550de73d81534c", "score": "0.56279963", "text": "public InList(String tcProperty, T[] taList)\n {\n // TODO: Parse for primitives\n super(tcProperty, (List<P>)new List<T>(taList));\n }", "title": "" }, { "docid": "82ac1d8bca09417c1196c18fc76f20d2", "score": "0.5627327", "text": "public Set() {\r\n\t\tStringArray = new ArrayList<String>();\r\n\t}", "title": "" }, { "docid": "a951eda42d5f499e8884acc2273ce7a6", "score": "0.5620838", "text": "public InList(String tcProperty, java.util.List<T> toList)\n {\n // TODO: Parse for primitives\n super(tcProperty, (List<P>)toList);\n }", "title": "" }, { "docid": "6f5cfadf0ef8ed8a76d66f0be9fa16c8", "score": "0.561016", "text": "public SList() {\r\n sentinel = new IntNode();\r\n size = 0;\r\n }", "title": "" }, { "docid": "46c0b5c0e52a2a2c32e2abc0a7394161", "score": "0.5603651", "text": "protected AbstractList() {\n\t}", "title": "" }, { "docid": "5e3f3ae809841e18e99c20f00d1e35b9", "score": "0.5601185", "text": "void setList() {\n }", "title": "" }, { "docid": "da18cbbe71dd148be83415e3570584ea", "score": "0.5596418", "text": "public CSVRecord(){\n\t\tvalues = new ArrayList<String>();\n\t}", "title": "" }, { "docid": "25d71aaad8763d5d309e08ee8c6aabd7", "score": "0.55777043", "text": "public void setList(java.util.ArrayList list) {\n\n this.list = list;\n\n }", "title": "" }, { "docid": "763df393992238c23562d5fc9bc04b14", "score": "0.5576203", "text": "public Value(List value) {\n if (value != null && !value.isEmpty()) {\n data = value;\n Object element = value.get(0);\n if (element instanceof Long || element instanceof Integer\n || element instanceof Short || element instanceof Byte) {\n type = ListLongDataType;\n } else if (element instanceof Float || element instanceof Double) {\n type = ListFloatDataType;\n } else if (element instanceof String) {\n type = ListStringDataType;\n } else {\n throw new IllegalArgumentException(String.format(\n \"Not a supported LIST type: long, float or string: %s\", value));\n }\n } else {\n throw new IllegalArgumentException(\n String.format(\"Null or empty LIST: %s\", value));\n }\n }", "title": "" }, { "docid": "92ffd014247d6b29cbf7a7dc46265245", "score": "0.5574789", "text": "public List <String> getList(){\n return strList;\n }", "title": "" }, { "docid": "bdc6eb7be51cee2a21d348dcb721986c", "score": "0.5570225", "text": "private List<String> createStringList(String[] str) {\n List<String> list = new ArrayList<>();\n list.addAll(Arrays.asList(str));\n return list;\n }", "title": "" }, { "docid": "e560441fccc9556cbb7c03f16c143fd2", "score": "0.55672807", "text": "public Listt() {\r\n\t\tlist = new HashMap<Integer, List<Integer>>();\r\n\t}", "title": "" }, { "docid": "a779ff832c7eef6a0f0b6941551cb6f1", "score": "0.55667007", "text": "public RenderList(){}", "title": "" }, { "docid": "0ee763846626a3b6e2e66c8dab6435ba", "score": "0.55573297", "text": "public static ArrayList<String> createStringTypedArrayList() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8b74326ffda0310d37fe1444f2097cd3", "score": "0.5551991", "text": "public MyOrderedList(){\r\n head = null;\r\n numItems = 0;\r\n }", "title": "" }, { "docid": "dda6cd559b436792bc8270b30f78cf70", "score": "0.5548335", "text": "public TextIntListUI( String label, String list )\n {\n this.label = label;\n setListString( list );\n\n setFont( FontUtil.LABEL_FONT );\n show_text();\n }", "title": "" }, { "docid": "e78951c6e5f7a61d3cc88d3d93102403", "score": "0.55471617", "text": "public static ArrayList<String> initialize_list(ArrayList<String> arrL) {\n\n for (int counter = 0; counter < list_length; counter++) { \n arrL.add(counter, \"O\");\n } \n return arrL;\n\t}", "title": "" }, { "docid": "a484fc23fb920c19ccbca0b8eedf766c", "score": "0.5540729", "text": "public MySList()\n {\n // initialise instance variables\n this.pHead = null;\n }", "title": "" }, { "docid": "e129599374e08f6074040dee84b3984d", "score": "0.5539042", "text": "public TestClass(List<String> s) {}", "title": "" }, { "docid": "43c97f40f04956affaefb6e1cb9b89fc", "score": "0.5537711", "text": "public DataList(){\n this.dataList = new ArrayList<>();\n }", "title": "" }, { "docid": "c0749b4b14b7c2427f28a2b429c53e2a", "score": "0.5536014", "text": "private static String listToString(List<String> list) {\n String string = \"\";\n\n if (list == null)\n return string;\n\n for (String i : list)\n string += (((string.isEmpty()) ? (STRING_EMPTY)\n : (DELIMITER_ADDRESS)) + '\\\"' + i + '\\\"');\n\n return string;\n }", "title": "" }, { "docid": "d03c8556c1dc1b9e84d3ee4b323516fe", "score": "0.55344605", "text": "public interface ListString extends List<String>{ }", "title": "" }, { "docid": "2f62cd04f31b8c5415b2be8873903b84", "score": "0.55340266", "text": "public ListItem(String cardID, String row, String column, String vendor, int status, ArrayList<String> tagList) {\n this.cardID = cardID;\n this.row = row;\n this.column = column;\n this.vendor = vendor;\n this.status = status;\n this.tagList = tagList;\n }", "title": "" }, { "docid": "03c2608f7abf105e8e12eff17cde6f4e", "score": "0.5525", "text": "public static void main(String[] args) throws JsonProcessingException {\n String initList[] = { \"One\", \"Two\", \"Four\", \"One\",};\n\n// create one list\n List list = new ArrayList(Arrays.asList(initList));\n\n System.out.println(\"List value before: \"+list);\n\n// create singleton list\n list = Collections.singletonList(\"OnlyOneElement\");\n list.add(\"five\"); //throws UnsupportedOperationException\n System.out.println(\"List value after: \"+list);\n\n }", "title": "" }, { "docid": "5a9b595ff192148e6df797e65dd69004", "score": "0.55188906", "text": "public Builder setList(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.set(index, value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "201318a3874972c3ea90aad4c0e6ca15", "score": "0.5518635", "text": "public ChatAdapter() {\n this.messageList = new ArrayList<String>();\n }", "title": "" }, { "docid": "eb9ed7a6487598a4bc10b24d8542bf3f", "score": "0.55123985", "text": "private void constructFromSingleton() {\n List<String> singletonList = Collections.singletonList(\"one\");\n List<String> multiSizedList = new ArrayList<>(singletonList);\n multiSizedList.add(\"two\");\n System.out.println(multiSizedList);\n singletonList.add(\"two\");\n }", "title": "" }, { "docid": "57e42c9613624a3e5f0a8c74ddf9a8e9", "score": "0.55109733", "text": "public void listInitializer(){\n mostPopularList.add(\"attractive\");\n mostPopularList.add(\"famous\");\n mostPopularList.add(\"prominent\");\n mostPopularList.add(\"suitable\");\n mostPopularList.add(\"trendy\");\n mostPopularList.add(\"prevailing\");\n mostPopularList.add(\"crowdpleasing\");\n mostPopularList.add(\"indemand\");\n mostPopularList.add(\"liked\");\n mostPopularList.add(\"mostselling\");\n mostPopularList.add(\"mostpopular\");\n mostPopularList.add(\"mostpraised\");\n\n fictionList.add(\"drama\");\n fictionList.add(\"storytelling\");\n fictionList.add(\"imagination\");\n fictionList.add(\"tale\");\n fictionList.add(\"storytelling\");\n fictionList.add(\"narrative\");\n fictionList.add(\"novel\");\n fictionList.add(\"imagination\");\n fictionList.add(\"myth\");\n fictionList.add(\"fiction\");\n\n businessList.add(\"fiction\");\n businessList.add(\"entrepreneur\");\n businessList.add(\"trade\");\n businessList.add(\"stockmarket\");\n businessList.add(\"banking\");\n businessList.add(\"wealth\");\n businessList.add(\"investment\");\n businessList.add(\"estate\");\n businessList.add(\"stocks\");\n businessList.add(\"money\");\n businessList.add(\"sales\");\n businessList.add(\"business\");\n\n scienceList.add(\"Astronomy\");\n scienceList.add(\"Physics\");\n scienceList.add(\"Chemistry\");\n scienceList.add(\"Science\");\n scienceList.add(\"rockets\");\n scienceList.add(\"math\");\n scienceList.add(\"atoms\");\n scienceList.add(\"universe\");\n scienceList.add(\"science\");\n\n poetryList.add(\"sonnetpoems\");\n poetryList.add(\"johnkeatspoems\");\n poetryList.add(\"haikupoems\");\n poetryList.add(\"limerickpoems\");\n poetryList.add(\"williamshakespearepoems\");\n poetryList.add(\"concretepoetry\");\n poetryList.add(\"poems\");\n poetryList.add(\"famouspoems\");\n poetryList.add(\"bestpoems\");\n }", "title": "" }, { "docid": "07bd927ee7db4cf5adfca07880e6b634", "score": "0.5505738", "text": "private static List<String> stringToList(String str, List<String> strList) {\n\t\tif (str != null) {\n\t\t\tstr = str.replace(\"{\", \"\").replace(\"}\",\"\");\n\t\t\tfor (String s : str.split(\",\")) {\n\t\t\t\tstrList.add(s);\n\t\t\t}\n\t\t}\n\t\treturn strList;\n\t}", "title": "" }, { "docid": "02ae86b9c6593ea58df1322d5de9ff48", "score": "0.5505655", "text": "public StringArrayListHandler(StringRowProcessor convert) {\r\n\t\tsuper();\r\n\t\tthis.convert = convert;\r\n\t}", "title": "" }, { "docid": "22d449fdc8dcab0349784511d23eef3a", "score": "0.5502978", "text": "public void setHashList(ArrayList<String> hashList) {\n this.hashList = hashList;\n }", "title": "" }, { "docid": "ba84887dbc5fe8c8333f6abc5c44d050", "score": "0.5502491", "text": "@Override\n\tpublic void setData(ArrayList<String> someList) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "66d4ca94db34f805ad9b876afd5a16e8", "score": "0.5498098", "text": "void initList(){\n }", "title": "" } ]
ba92572b901e8835968c664c00b5ae83
Construct a new Minesweeper model
[ { "docid": "168f9dbd4ec5a40c0631c6acd933111c", "score": "0.5262031", "text": "public DemineurModel(int width, int height, int mines) {\n this.WIDTH = width;\n this.HEIGHT = height;\n this.MINES = mines;\n discovered = new boolean[HEIGHT][WIDTH];\n marked = new boolean[HEIGHT][WIDTH];\n countDiscoveredCells = 0;\n countMarkedCells = 0;\n flagMode = false;\n lost = false;\n won = false;\n elapsedTime = 0;\n pause = false;\n burstModeJoker = false;\n burstJokerUsed = false;\n safeModeJoker = false;\n safeJokerUsed = false;\n }", "title": "" } ]
[ { "docid": "36280de349604b4f2b47e91b9d90e0e5", "score": "0.8306125", "text": "public MinesweeperModel() {\n \tinitMinefield();\n \tsetMines();\n \tsetMinefieldMetadata();\n }", "title": "" }, { "docid": "355aa123c816f7c3af61a65a24afcb16", "score": "0.7595525", "text": "public MinesweeperGame() {\n this(DEFAULT_BOARD_HEIGHT, DEFAULT_BOARD_WIDTH, DEFAULT_BOMB_COUNT);\n }", "title": "" }, { "docid": "e5c29a17f2439fbe42dc55316820a0a3", "score": "0.71700037", "text": "public Minesweeper(int row)\n\t{\n\tsuper (row,2);\n\t}", "title": "" }, { "docid": "bf92ea2d71cac144967e4cd4245999bf", "score": "0.64091605", "text": "MinesweeperController(MinesweeperBoard minesweeperBoard) {\n super(minesweeperBoard);\n this.dimensions = gameState.getDimensions();\n }", "title": "" }, { "docid": "2eec3456237c70a08da89775c45764fb", "score": "0.6283005", "text": "private Game() {\r\n\t\tgame = new JFrame(\"Minesweeper\");\r\n\t\tcustomEntry = new JPanel();\r\n\t\tnumMinesLabel = new JLabel();\r\n\r\n\t\t// By default, the game is 16x16 with 40 mines (intermediate from the original\r\n\t\t// Minesweeper)\r\n\t\tmines = new MineMap(16, 16, 40, game, numMinesLabel);\r\n\r\n\t\t// Calls the generate method to create a Minesweeper game and set up the rest of\r\n\t\t// the UI\r\n\t\tgenerate();\r\n\t}", "title": "" }, { "docid": "cd821b15880c486bfb7a3b29ada095bd", "score": "0.61697185", "text": "public MineSweeperBoard(int width, int height, int mines) {\n board = new MineSweeperCell[width][height];\n for (int i = 0; i < width; i++) {\n for (int j = 0; j < height; j++) {\n board[i][j] = MineSweeperCell.COVERED_CELL;\n }\n }\n\n while (m < mines) {\n Random random = new Random();\n int y = random.nextInt(height);\n int x = random.nextInt(width);\n\n if (board[x][y] != MineSweeperCell.MINE) {\n board[x][y] = MineSweeperCell.MINE;\n m++;\n }\n }\n }", "title": "" }, { "docid": "33297982a9e73e73cdeada0ecb317006", "score": "0.60869694", "text": "public BoardModel() {\n\t\tcreate(10,10);\n\t\tturn = 0;\n\t\tMapGenerator map_generator = new MapGenerator(this);\n\t\tmap_generator.generateRandomMap();\n\t}", "title": "" }, { "docid": "dc3bdede91515d26cb5c51c390944aba", "score": "0.60000426", "text": "private void makeMaze()\n {\n for (int i = 0; i < 10; i++)\n {\n carol.createHorizontalWall(i, 0);\n if (i != 5)\n carol.createHorizontalWall(i, 10);\n if (i < 7)\n carol.createHorizontalWall(i, 5);\n }\n for (int i = 0; i < 10; i++)\n {\n carol.createVerticalWall(0, i);\n carol.createVerticalWall(10, i);\n if (i > 2 && i < 9)\n carol.createVerticalWall(7, i);\n }\n carol.createHorizontalWindow(5, 10);\n }", "title": "" }, { "docid": "c3846e5b49b5db0215bea57665b50b4f", "score": "0.5953795", "text": "private void createMaze() {\n mazeMap = new MazeMap(createMap());\n mazeMesh = new MazeFactory(mazeMap, MAZE_WALL_SIZE).getMazes();\n }", "title": "" }, { "docid": "6d357baca3050136a2694f500246b732", "score": "0.5858782", "text": "public MazeBuilder(int row, int column, MazeType mazeType, boolean wrappingFlag, int seed) {\n if (row < 0 || column < 0) {\n throw new IllegalArgumentException();\n }\n\n this.random = new Random(seed);\n int countRooms = row * column;\n this.minWallsRemovalRequired = countRooms - 1; //MST requires n-1 edges for n nodes\n this.wrappingFlag = wrappingFlag;\n this.maxEdges = row * (column - 1) + column * (row - 1); //might change if wrapping is applied\n\n if (mazeType == MazeType.PERFECT) {\n this.maze = new PerfectMaze(row, column, wrappingFlag);\n } else if (mazeType == MazeType.IMPERFECT) {\n this.maze = new ImperfectMaze(row, column, wrappingFlag);\n }\n }", "title": "" }, { "docid": "c7ee85f4c3ee27718bb841fac47d6e66", "score": "0.5855427", "text": "private void setupScenario() {\n this.rows = 10;\n this.columns = 10;\n this.mines = 10;\n game = new Minesweeper(rows, columns, mines);\n game.startGame();\n gameBoard = game.gameBoard.clone();\n allMines = new ArrayList<>();\n\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n if (gameBoard[i][j].isMine()) {\n allMines.add(new Pair<>(i, j));\n }\n }\n }\n }", "title": "" }, { "docid": "09f4e73f5cfc2e9d4b64de9687e102b6", "score": "0.5845752", "text": "public WhackAMoleModel() {\n \ttotalRows = 4;\n \ttotalCols = 4;\n \tscore = 0;\n \tRandom rnd = new Random();\n \trowMole = rnd.nextInt(4);\n \tcolMole = rnd.nextInt(4);\n }", "title": "" }, { "docid": "1015d5ba4ea8b5935d375b4f1d9d4262", "score": "0.5840323", "text": "private void createWalls() {\n\n for (int x = 0; x < this.size; x++) {\n Wall x1 = new Wall(x, 0);\n this.addGameObject(x1);\n\n Wall x2 = new Wall(x, this.size - 1);\n this.addGameObject(x2);\n }\n\n for (int y = 1; y < size - 1; y++) {\n Wall y1 = new Wall(0, y);\n this.addGameObject(y1);\n Wall y2 = new Wall(this.size - 1, y);\n this.addGameObject(y2);\n }\n }", "title": "" }, { "docid": "4abbad902110c1f3163fb4623473648d", "score": "0.583789", "text": "public MazePanel() {\n\t\n\tsuper(new GridLayout(6,6));\n\tbuttons = new JButton[6][6];\n\tfor (int r = 0; r < 6; r++) {\n\t\tfor (int c = 0; c < 6; c++) {\n\t\t\tbuttons[r][c] = new JButton();\n\t\t\tbuttons[r][c].addActionListener(new ValidListener());\n\t\t\tadd(buttons[r][c]);\n\t\t}\n\t}\n\n\tbLabels = new JLabel[6][6];\n\tfor (int a = 0; a < 6; a++) {\n\t\tfor (int b = 0; b < 6; b++) {\n\t\t\tbLabels[a][b] = new JLabel();\n\t\t\tbuttons[a][b].add(bLabels[a][b]);\n\t\t}\n\t}\n\t\n\tmazeFact = new MazeFactory();\n\tmaze = mazeFact.generateRookMaze(6,6);\n\n\tfor (int i = 0; i < 6; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tString buttonWeight = String.valueOf(maze.getWeight(i,j));\n\t\t}\n\t}\n\n\tupdateColors();\n\n\t}", "title": "" }, { "docid": "f963d140cec458eb6cd3754aa7dcb640", "score": "0.58120465", "text": "public Map<String, MazeObject> generate() {\n for(int out = 0; out <= height; out++) {\n grid.put(\"0;\"+out, new MazeWall(0,out));\n grid.put(out+\";0\", new MazeWall(out,0));\n grid.put(width+\";\"+out, new MazeWall(width,out));\n grid.put(out+\";\"+height, new MazeWall(out,height));\n }\n for(int y = 1; y < height; y++) {\n for(int x = 1; x < width; x++) {\n if(((x)%2 == 0) || ((y)%2 == 0)) {\n grid.put(x+\";\"+y, new MazeWall(x, y));\n } else {\n grid.put(x+\";\"+y, new MazeCell(x, y));\n }\n }\n }\n // Link 'em\n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n if(x > 1) {\n grid.get(x+\";\"+y).setWest(grid.get((x-1)+\";\"+(y)));\n }\n if(x < width) {\n grid.get(x+\";\"+y).setEast(grid.get((x+1)+\";\"+(y)));\n }\n if(y > 1) {\n grid.get(x+\";\"+y).setNorth(grid.get((x)+\";\"+(y-1)));\n }\n if(y < height) {\n grid.get(x+\";\"+y).setSouth(grid.get((x)+\";\"+(y+1)));\n }\n }\n }\n // Start Building\n startX = r.nextInt((width-1))+1;\n while((startX)%2 == 0) {\n startX = r.nextInt((width-1))+1;\n }\n startY = r.nextInt((height-1))+1;\n while((startY)%2 == 0) {\n startY = r.nextInt((height-1))+1;\n }\n mazeStack.push(new MazeCell(startX, startY));\n buildMaze();\n return grid;\n }", "title": "" }, { "docid": "406bb9f9f32a2405167fa2732f886bf9", "score": "0.57569784", "text": "public GameClass() {\r\n\t\t// initializes the bombs\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLS; j++) {\r\n\t\t\t\ttilesArray[i][j]=new Tile(i,j);\r\n\t\t\t\ttilesArray[i][j].setBomb(false);\r\n\t\t\t\t//tilesArray[i][j].setNearby(0);\r\n\t\t\t\ttilesArray[i][j].setRevealed(false);\r\n\t\t\t\ttilesArray[i][j].setFlagged(false);\r\n\t\t\t\tif (rand.nextInt(100) <Menu.difficulty && j > 1) {\r\n\t\t\t\t\t//randomly generates mines - adjust difficulty\r\n\t\t\t\t\t//Table array means it has a bomb at i and j\r\n\t\t\t\t\ttilesArray[i][j].setBomb(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLS; j++) {\r\n\t\t\t\tfor (int m = 0; m < ROWS; m++) {\r\n\t\t\t\t\tfor (int n = 0; n < COLS; n++) {\r\n\t\t\t\t\t\tif (Math.abs(i-m) <= 1 && Math.abs(j-n) <= 1 && (i != m || j != n) && tilesArray[m][n].hasBomb()) {\r\n\t\t\t\t\t\t\ttilesArray[i][j].addNearby(1);\r\n\t\t\t\t\t\t\t//Saves the number that is to be drawn on each square- how many mines it has around it\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//System.out.println(tilesArray[i][j].getNearby());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t// initializes the Board, Click and Move classes\r\n\t\tBoard board = new Board();\r\n\t\tMove move = new Move();\r\n\t\tClick click = new Click();\r\n\t\t\r\n\t\tthis.setSize(806,630);\r\n\t\tthis.setTitle(\"Minesweeper\");\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tthis.setContentPane(board);\r\n\t\t\r\n\t\tboard.addMouseMotionListener(move);\r\n\t\tboard.addMouseListener(click);\r\n\t}", "title": "" }, { "docid": "dd4d1685c8afde04e2499d368c5c1360", "score": "0.56390566", "text": "private void AddWalls(){\n for(int x = 1; x < GameWidth; x++)\n {\n walls.add(new Coordinate(x,21)); // Creates a new wall object\n walls.add(new Coordinate(x,GameHeight -20)); // Creates a new wall object\n }\n //Left and Right Walls\n for(int y = 21; y < (GameHeight-20); y++)\n {\n walls.add(new Coordinate(1,y)); // Creates a new wall object\n walls.add(new Coordinate(GameWidth - 1, y));\n\n }\n\n }", "title": "" }, { "docid": "6e5bfe8984755861f595995a19d1dd72", "score": "0.5637692", "text": "public void createNewGame(int width, int height, int nrOfMines)\r\n {\r\n\tthis.minefield = new Minefield(width, height, nrOfMines);\r\n\tthis.setMinesRemaining(nrOfMines);\r\n\tthis.setStatus(Status.START);\r\n\tthis.timer.setGameTime(0); /**reset timer*/\r\n }", "title": "" }, { "docid": "d92146b00fe21e0630d80205647c7933", "score": "0.5622608", "text": "public Board () {\n\n\t\t//1. Set the layout (grid) and background \n\t\tsetLayout(new GridLayout(ROW_SIZE, COL_SIZE));\n\t\tsetBackground(Color.BLACK);\n\n\t\t//2. Create the player and the zombies \n\t\tplayer = new Player();\n\n\t\tzombie[0] = new boardZombie(0);\n\t\tzombie[1] = new boardZombie(1);\n\t\tzombie[2] = new boardZombie(2);\n\t\tzombie[3] = new boardZombie(3);\n\n\t\t//3. Load the maze file \n\t\tloadBoard();\n\t\tlevelCounter = 1;\n\n\t}", "title": "" }, { "docid": "fcfea3d8347a211d94d0a68e7d789927", "score": "0.5616621", "text": "public PuzzleModel(int ROWS, int COLS){\n \t_contents = new Tile[ROWS][COLS];\n \tfor (int r=0; r<ROWS; r++) {\n for (int c=0; c<COLS; c++) {\n _contents[r][c] = new Tile(r, c, \"\" + (r*COLS+c+1));\n }\n }\n //--- Set last tile face to null to mark empty space\n _emptyTile = _contents[ROWS-1][COLS-1];\n _emptyTile.setFace(null);\n }", "title": "" }, { "docid": "7baa8d60915c3625ae231a8d8491ddf2", "score": "0.5585054", "text": "public Board() {\n\t\t//TODO : fix starting layouts\n\t\t\n\t\tfor (int i = 0; i < EngineConstants.BOARD_SIZE; i++) { //lays out two rows of pawns\n\t\t\tm_piecePositions[i][1] = new Pawn(true);\n\t\t\tm_piecePositions[i][6] = new Pawn(false);\n\t\t}\n\t\t\n\t\tm_piecePositions[1][0] = new Knight(true); //white knights\n\t\tm_piecePositions[6][0] = new Knight(true);\n\t\t\n\t\tm_piecePositions[1][7] = new Knight(false); //black knights\n\t\tm_piecePositions[6][7] = new Knight(false);\n\t\t\n\t\tm_piecePositions[0][0] = new Rook(true); //white rooks\n\t\tm_piecePositions[7][0] = new Rook(true);\n\t\t\n\t\tm_piecePositions[0][7] = new Rook(false); //black rooks\n\t\tm_piecePositions[7][7] = new Rook(false);\n\t\t\n\t\tm_piecePositions[2][0] = new Bishop(true); //white bishops\n\t\tm_piecePositions[5][0] = new Bishop(true);\n\t\t\n\t\tm_piecePositions[2][7] = new Bishop(false); //black bishops\n\t\tm_piecePositions[5][7] = new Bishop(false);\n\t\t\n\t\tm_blackKing = new King(false);\n\t\tm_whiteKing = new King(true);\n\t\t\n\t\tm_piecePositions[4][7] = m_blackKing; //black king\n\t\tm_piecePositions[4][0] = m_whiteKing; //white king\n\t\t\n\t\tm_piecePositions[3][7] = new Queen(false); //black queen\n\t\tm_piecePositions[3][0] = new Queen(true); //white queen\n\t\t\n\t\tupdatePositions();\n\t}", "title": "" }, { "docid": "3a31cd3e54aa3fdc7e72d4b2841efdb8", "score": "0.5573179", "text": "public Mills(){\n\t\t//Creates default mill object for all lines of the board and gives it the properties unformed and mode 0\n\t\tformed=false; \n\t\tmode=0; \n\t}", "title": "" }, { "docid": "8cbeb0d6f53a1ba008d0ab8470f5a59d", "score": "0.5571021", "text": "public MineSweeperBoardBase()\r\n {\r\n //\r\n }", "title": "" }, { "docid": "0de9860f74235e2ed1941d7097402563", "score": "0.556848", "text": "public static Board create() {\r\n//\t\tBuilder b = new Builder();\r\n//\r\n//\t\tb.setPiece(new Rook(0, Team.BLACK));\r\n//\t\tb.setPiece(new Knight(1, Team.BLACK));\r\n//\t\tb.setPiece(new Bishop(2, Team.BLACK));\r\n//\t\tb.setPiece(new Queen(3, Team.BLACK));\r\n//\t\tb.setPiece(new King(4, Team.BLACK));\r\n//\t\tb.setPiece(new Bishop(5, Team.BLACK));\r\n//\t\tb.setPiece(new Knight(6, Team.BLACK));\r\n//\t\tb.setPiece(new Rook(7, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(8, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(9, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(10, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(11, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(12, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(13, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(14, Team.BLACK));\r\n//\t\tb.setPiece(new Pawn(15, Team.BLACK));\r\n//\r\n//\t\tb.setPiece(new Pawn(48, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(49, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(50, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(51, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(52, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(53, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(54, Team.WHITE));\r\n//\t\tb.setPiece(new Pawn(55, Team.WHITE));\r\n//\t\tb.setPiece(new Rook(56, Team.WHITE));\r\n//\t\tb.setPiece(new Knight(57, Team.WHITE));\r\n//\t\tb.setPiece(new Bishop(58, Team.WHITE));\r\n//\t\tb.setPiece(new Queen(59, Team.WHITE));\r\n//\t\tb.setPiece(new King(60, Team.WHITE));\r\n//\t\tb.setPiece(new Bishop(61, Team.WHITE));\r\n//\t\tb.setPiece(new Knight(62, Team.WHITE));\r\n//\t\tb.setPiece(new Rook(63, Team.WHITE));\r\n//\r\n//\t\tb.setMoveMaker(Team.WHITE);\r\n//\t\tb.setEnPassantPawn(null);\r\n//\t\tb.setCastlingConfiguration(CastlingConfiguration.ALL_TRUE);\r\n//\t\tb.setHalfmoveClock(0);\r\n//\t\tb.setHalfmoveCounter(1);\r\n//\t\tb.setExecutedMoves(new ArrayList<Move>());\r\n//\r\n//\t\treturn b.build();\r\n\r\n\t\treturn FENUtilities.loadBoardFromFEN(FENUtilities.standardFEN);\r\n\t}", "title": "" }, { "docid": "87db166d8747e86f5f36680b1ec8dec7", "score": "0.55515444", "text": "public MinesweeperGame(final int pBoardHeight, final int pBoardWidth,\n final int pNumBombs) {\n //Checking for valid board height\n if (MIN_BOARD_HEIGHT <= pBoardHeight\n && pBoardHeight <= MAX_BOARD_HEIGHT) {\n this.boardHeight = pBoardHeight;\n } else {\n this.boardHeight = DEFAULT_BOARD_HEIGHT;\n }\n\n //Checking for valid board width\n if (MIN_BOARD_WIDTH <= pBoardWidth && pBoardWidth <= MAX_BOARD_WIDTH) {\n this.boardWidth = pBoardWidth;\n } else {\n this.boardWidth = DEFAULT_BOARD_WIDTH;\n }\n\n if (MIN_BOMB_COUNT <= pNumBombs && pNumBombs <= calcMaxBombs()) {\n this.numBombs = pNumBombs;\n } else {\n this.numBombs = calcNumBombs();\n }\n\n initializeBoard(boardHeight, boardWidth);\n placeBombs(numBombs);\n numFlagged = 0;\n\n status = GameStatus.RUNNING;\n }", "title": "" }, { "docid": "9b6d26a3302cfcb9d5c6b8c9aea52642", "score": "0.55274045", "text": "private TransformedGrid createGridWithWallsNW() {\n /* result looks like this:\n * +--+\n * |\n * +??+\n */\n\n TransformedGrid grid = new TransformedGrid(new LinkedGrid());\n\n Sector s = new LinkedSector();\n s.setWall(Bearing.N);\n s.setNoWall(Bearing.E);\n s.clearWall(Bearing.S);\n s.setWall(Bearing.W);\n\n grid.add(s, new Point(0, 0));\n\n return grid;\n }", "title": "" }, { "docid": "971fb205dc0a615cf34f67e673a5d58b", "score": "0.55259424", "text": "public Checkerboard() {\n\t\tthis.whitePawns = new ArrayList<Pawn>();\n\t\tthis.blackPawns = new ArrayList<Pawn>();\n\t\tthis.initialize();\n\t}", "title": "" }, { "docid": "aa43441a8933b73488cdfd19182a58dc", "score": "0.55107003", "text": "public SnakeModel() {\n Dimension size = getGameboardSize();\n\n // Blank out the whole game board\n for (int i = 0; i < size.width; i++) {\n for (int j = 0; j < size.height; j++) {\n setGameboardState(i, j, BLANK_TILE);\n }\n }\n\n // Insert the collector in the middle of the game board.\n this.collectorPos = new Position(size.width / 2, size.height / 2);\n setGameboardState(this.collectorPos, COLLECTOR_TILE);\n\n // Insert food into the game board.\n addFood();\n }", "title": "" }, { "docid": "ebd59d9165fa4d638a8e62bfb839766c", "score": "0.54929215", "text": "public PuzzleModel() {\n _contents = new Tile[ROWS][COLS];\n reset(); // Initialize and shuffle tiles.\n }", "title": "" }, { "docid": "6f03f2dc96438d42d3b9385e1ca58248", "score": "0.548776", "text": "private void createAndPlaceMines(int numMines)\n {\n Mine mine;\n for (int mineCount = 0; mineCount < numMines; mineCount++)\n {\n Position pos = getRandomEmptySquare();\n //place a mine on this square\n mine = new Mine(pos);\n gameGrid[pos.getRow()][pos.getColumn()].addOccupant(mine);\n }\n }", "title": "" }, { "docid": "9824bb9285194ab89b2481ffc184502b", "score": "0.54615074", "text": "private void setMines() {\n Random random = new Random();\n int mineCount = 0;\n \n while (mineCount < NUM_OF_MINES) {\n \tint row = random.nextInt(DIMENSION);\n int col = random.nextInt(DIMENSION);\n if (minefield[row][col] != Minefield.MINE) {\t//make sure we don't put a mine where one already exists\n \tminefield[row][col] = Minefield.MINE;\n \tmineCount++;\n }\n }\n\t}", "title": "" }, { "docid": "fe217689784fd5468edd40b5a7a592c5", "score": "0.5428562", "text": "public MineField(int numRows, int numCols, int numMines) {\n this.mineFields = new boolean[numberRows][numberCols];\n\t this.numberRows = numRows;\n this.numberCols = numCols;\n this.numberMines = numMines;\n }", "title": "" }, { "docid": "e6e943131f82bad2935701690b63fe90", "score": "0.54232603", "text": "public board createBoard(){\n\t\tboard b = new board();\r\n\t\tb.setTurn(this.turns);\r\n\t\r\n\t\tfor(int i =0; i < width; i++)\r\n\t\t\tfor(int j = 0; j < height; j++)\r\n\t\t\t\tb.squares[i][j] = null;\r\n\r\n\t\tfor(int i = 0; i < width; i++){\r\n\t\t\tfor(int j = 0; j < height; j++){\r\n\t\t\t\tint y = j;\r\n\t\t\t\tint x = i;\r\n\t\t\t\tString name = this.squares[i][j];\t\t// Get the name of a piece\r\n\t\t\t\tanyPiece a;\t\t\t\t\t\t\t// anyPiece object\r\n\t\t\t\tplayer p;\t\t\t\t\t\t\t// Player\r\n\t\t\t\tif(name != null){\r\n\t\t\t\t\tif(name.substring(0,1).equals(\"B\"))\t\t// Get player's color\r\n\t\t\t\t\t\tp = player.BLACK;\r\n\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tp = player.WHITE;\r\n\r\n\t\t\t\t\tif(name.substring(1,2).equals(\"P\")) {\t\t// Check the name and create new anyPiece object based off of that\r\n\t\t\t\t\t\ta = new pawn(p, b, name);\r\n\t\t\t\t\t\ta.setCoordinate(x, y);\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(name.substring(1,2).equals(\"B\")) {\r\n\t\t\t\t\t\ta = new bishop(p, b, name);\r\n\t\t\t\t\t\ta.setCoordinate(x, y);\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(name.substring(1,2).equals(\"K\")) {\r\n\t\t\t\t\t\ta = new king(p, b, name);\r\n\t\t\t\t\t\ta.setCoordinate(x, y);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(name.substring(1,2).equals(\"k\")) {\r\n\t\t\t\t\t\ta = new knight(p, b, name);\r\n\t\t\t\t\t\ta.setCoordinate(x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(name.substring(1,2).equals(\"Q\")) {\r\n\t\t\t\t\t\ta = new queen(p, b, name);\r\n\t\t\t\t\t\ta.setCoordinate(x, y);\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(name.substring(1,2).equals(\"R\")){\r\n\t\t\t\t\t\ta = new rook(p, b, name);\r\n\t\t\t\t\t\ta.setCoordinate(x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn b;\t\t\t\t// Return new board\r\n\t}", "title": "" }, { "docid": "fc77b6e8b45fccb799665c4ba61ff27d", "score": "0.5412713", "text": "ArrayList<ArrayList<Cell>> createBoard() {\n ArrayList<ArrayList<Cell>> temp = new ArrayList<ArrayList<Cell>>(this.boardSize);\n for (int y = 0; y < this.boardSize; y++) {\n ArrayList<Cell> tempRow = new ArrayList<Cell>(this.boardSize);\n for (int x = 0; x < this.boardSize; x++) {\n tempRow.add(x, new Cell(x, y, random));\n }\n temp.add(y, tempRow);\n }\n return temp;\n }", "title": "" }, { "docid": "9dfaa0d6e42d1337292a99ad08f91e62", "score": "0.53950363", "text": "public FinalNic() { //called once at the beginning\r\n super( \"Minesweeper\" );\r\n\r\n btnPanel.setLayout(new GridLayout(btn.length,btn[0].length));\r\n\t southPanel.setLayout(new GridLayout(1,3));\r\n\r\n c = getContentPane();\r\n c.setLayout( new BorderLayout() );\r\n\r\n // create and add buttons\r\n for (int i = 0; i < btn.length; i++ ) {\r\n\t for (int j = 0; j < btn[0].length; j++ ) {\r\n btn[i][j] = new JButton(\"w\");\r\n// to remote the spacing between the image and button's borders\r\nbtn[i][j].setMargin(new Insets(0, 0, 0, 0));\r\n\t //can change c label on grid buttons\r\n btn[i][j].addActionListener( this );\r\n btnPanel.add( btn[i][j] );\r\n\t\t} \r\n }\r\n\t fillRed.addActionListener( this );\r\n\t southPanel.add(fillRed);\r\n\t count.addActionListener( this );\r\n\t southPanel.add(count);\r\n\t clear.addActionListener( this );\r\n\t southPanel.add(clear);\r\n\t \r\n\t c.add( southPanel, BorderLayout.SOUTH );\r\n\t c.add( btnPanel, BorderLayout.CENTER );\r\n setSize( 600, 600 ); //size of the window, can be changed\r\n setVisible(true);\r\n\t printMap();\r\n\t updateScreen();\r\n }", "title": "" }, { "docid": "be3afb195331b448addf87a9128312e7", "score": "0.5380029", "text": "public MockBoard(int row, int col, int nShips) {\n\t\tsuper(row, col, nShips);\n\t\t\n\t}", "title": "" }, { "docid": "3a5b28765e004ec1757d55b57f4e4f04", "score": "0.5369451", "text": "public void createBoard()\n {\n for(int i=0;i<this.liveCells.size();i++)\n board[liveCells.get(i).getRow()][liveCells.get(i).getColumn()]=true;//this livecells is an ArrayList and we get the index and access the cell\n \n\n }", "title": "" }, { "docid": "a414651a85c79f91776a6aa8e86c7852", "score": "0.5367813", "text": "public DefaultFarmGrid() {\n farmGrid = new FarmSpace[width][height];\n\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n farmGrid[i][j] = new FarmSpace();\n }\n }\n\n // Starting configuration is to have 2 wooden houses in the bottom left corner.\n farmGrid[0][0].setOccupant(Occupant.room);\n farmGrid[0][1].setOccupant(Occupant.room);\n\n // horizontalFences = new boolean[height + 1][width];\n // verticalFences = new boolean[height][width + 1];\n }", "title": "" }, { "docid": "73d31dfde0db9b1abd5c78a1f6a3cc51", "score": "0.5352552", "text": "public GameMap(int level)\n {\n generateMap();\n\n\n this.num_rows = Y_SIZE + OFFSET;\n this.num_cols = X_SIZE + OFFSET;\n grid = new Tile[num_rows][num_cols];\n Random rand = new Random();\n int minRow = OFFSET / 2;\n int minCol = OFFSET / 2;\n\n int r = minRow;\n boolean spawnMasterZombie = true; // this boolean makes so the master zombie\n // will only be spawned once\n\n //intialize all the tiles to empty in order to make a nice border around\n // the\n //map\n for (int row = 0; row < num_rows; row++)\n {\n for (int col = 0; col < num_cols; col++)\n {\n Tile empty_tile = new Tile(row, col, TileType.WALL);\n grid[row][col] = empty_tile;\n }\n }\n\n // Make sure we have walls around the edges of the map in the walls list\n // so that the shadows will work properly\n for(int col = minCol - 1; col < num_cols - minCol; col++) {\n Tile tile = new Tile(minRow - 1, col, TileType.WALL);\n grid[minRow - 1][col] = tile;\n walls.add(tile);\n Tile tile2 = new Tile(num_rows - minRow, col, TileType.WALL);\n grid[num_rows - minRow][col] = tile2;\n walls.add(tile2);\n }\n for(int row = minRow; row < num_rows - minRow - 1; row++) {\n Tile tile = new Tile(row, minCol - 1, TileType.WALL);\n grid[row][minCol - 1] = tile;\n walls.add(tile);\n Tile tile2 = new Tile(row, num_cols - minCol, TileType.WALL);\n grid[num_rows - minRow][num_cols - minCol] = tile2;\n walls.add(tile2);\n }\n\n for (Block[] row : blockGrid)\n {\n //we have to set c = to a diffrent col that way it gareentees us that the\n // screen will be big enough to allow easuy repainting with no errors\n int c = minCol;\n for (Block block : row)\n {\n Tile new_tile =\n new Tile(block.y + minRow, block.x + minCol, block.type);\n grid[r][c] = new_tile;\n //if it is a start location, itsets the player start to this location\n if (new_tile.tile_type == TileType.START)\n {\n start_location = new Location(new_tile.col * GUI.tile_size,\n new_tile.row * GUI.tile_size);\n }\n // if exit location, sets it to exit\n if (new_tile.tile_type == TileType.EXIT)\n {\n end_location =\n new Location(new_tile.col * GUI.tile_size + GUI.tile_size / 2,\n new_tile.row * GUI.tile_size + GUI.tile_size / 2);\n }\n //makes the wall array list that way the zombies and players have a\n //reference into what they run into\n if (new_tile.tile_type == TileType.WALL ||\n new_tile.tile_type == TileType.INSIDEWALL)\n {\n walls.add(new_tile);\n }\n\n\n //if it is just a normal room tile it will run through steps to see if\n // if it should spawn a zombie or firetrap.\n if (new_tile.tile_type == TileType.BRICK)\n {\n if (rand.nextDouble() < GUI.zspawn + (.01 * (level - 1)))\n {\n Zombie zombie;\n Location location =\n new Location(new_tile.col * GUI.tile_size,\n new_tile.row * GUI.tile_size);\n if (spawnMasterZombie)\n {\n zombie =\n new MasterZombie(GUI.zspeed * 1.5, GUI.zsmell * 2, GUI.drate,\n location);\n spawnMasterZombie = false;\n }\n else\n {\n if (rand.nextBoolean())\n {\n\n zombie = new RandomWalkZombie(GUI.zspeed, GUI.zsmell, GUI.drate,\n location);\n }\n else\n {\n\n\n zombie = new LineWalkZombie(GUI.zspeed, GUI.zsmell, GUI.drate,\n location);\n }\n\n }\n zombies.add(zombie);\n\n }\n\n if (rand.nextDouble() < GUI.fspawn)\n {\n FireTrap fireTrap;\n Location location =\n new Location(c * GUI.tile_size, r * GUI.tile_size);\n\n fireTrap = new FireTrap(50, 50, location);\n traps.add(fireTrap);\n\n }\n }\n c++;\n }\n r++;\n }\n\n // if no zombies were spawned on the map, this will garentee that a master\n //zombie will spawn.\n if (spawnMasterZombie)\n {\n for (int row = 0; row < num_rows; row++)\n {\n for (int col = 0; col < num_cols; col++)\n {\n if (grid[row][col].tile_type == TileType.BRICK && spawnMasterZombie)\n {\n Zombie zombie;\n Location location =\n new Location(grid[row][col].col * GUI.tile_size,\n grid[row][col].row * GUI.tile_size);\n zombie =\n new MasterZombie(GUI.zspeed * 1.5, GUI.zsmell * 2, GUI.drate,\n location);\n zombies.add(zombie);\n spawnMasterZombie = false;\n }\n\n }\n }\n }\n\n this.map_image = convertMapToImage(GUI.tile_size);\n }", "title": "" }, { "docid": "947b4f2fe4fa725f27c5e9fd454d42a4", "score": "0.5328417", "text": "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n \n Paddle paddle1 = new Paddle(\"w\", \"s\");\n addObject(paddle1, 20, 300);\n \n Paddle paddle2 = new Paddle(\"up\", \"down\");\n addObject(paddle2, 780, 300);\n \n Ball ball = new Ball();\n addObject(ball, 400, 295);\n \n counter = new Counter();\n addObject(counter, 300, 35);\n \n counter2 = new Counter();\n addObject(counter2, 645, 35);\n }", "title": "" }, { "docid": "5e6d04074e25cb6cc97ea9818737d4c3", "score": "0.5324783", "text": "ArrayList<ArrayList<GamePiece>> makePieces() {\n this.powerCol = 0;\n this.powerRow = 0;\n ArrayList<ArrayList<GamePiece>> board = new ArrayList<ArrayList<GamePiece>>();\n for (int column = 0; column < this.width; column++) {\n ArrayList<GamePiece> rowNodes = new ArrayList<GamePiece>();\n for (int row = 0; row < this.height; row++) {\n GamePiece tile = new GamePiece(column, row);\n if (column == this.powerCol && row == this.powerRow) {\n tile.changePowerSource();\n }\n rowNodes.add(tile);\n }\n board.add(rowNodes);\n }\n return board;\n }", "title": "" }, { "docid": "ad283814f0f70148a9e4d542db98a189", "score": "0.5314372", "text": "public Grid() {\r\n\t\tthis(new CARowMaker(30));\r\n\t}", "title": "" }, { "docid": "7cac4c68866bbc92989cd5c57d432ec2", "score": "0.53054726", "text": "private void buildEmptyMaze() {\n for (int row = 0; row < rows; row++) {\n for (int column = 0; column < columns; column++) {\n MazeCell cell = new MazeCell(row, column);\n maze[row][column] = cell;\n } // end for each column\n\n } // end for each row\n\n }", "title": "" }, { "docid": "ba18d48729e647d2f002901a14dffec7", "score": "0.53022265", "text": "private void prepare()\n {\n WhiteVerticalWall whiteVerticalWall = new WhiteVerticalWall();\n addObject(whiteVerticalWall,688,670);\n WhiteVerticalWall whiteVerticalWall2 = new WhiteVerticalWall();\n addObject(whiteVerticalWall2,606,670);\n\n WhiteWall whiteWall = new WhiteWall();\n addObject(whiteWall,733,646);\n\n WhiteVerticalWall whiteVerticalWall3 = new WhiteVerticalWall();\n addObject(whiteVerticalWall3,588,618);\n\n WhiteWall whiteWall2 = new WhiteWall();\n addObject(whiteWall2,547,652);\n\n WhiteVerticalWall whiteVerticalWall4 = new WhiteVerticalWall();\n addObject(whiteVerticalWall4,510,628);\n WhiteVerticalWall whiteVerticalWall5 = new WhiteVerticalWall();\n addObject(whiteVerticalWall5,731,611);\n\n WhiteWall whiteWall3 = new WhiteWall();\n addObject(whiteWall3,770,576);\n WhiteWall whiteWall4 = new WhiteWall();\n addObject(whiteWall4,792,646);\n WhiteWall whiteWall5 = new WhiteWall();\n addObject(whiteWall5,770,546);\n WhiteWall whiteWall6 = new WhiteWall();\n addObject(whiteWall6,770,515);\n WhiteWall whiteWall7 = new WhiteWall();\n addObject(whiteWall7,770,484);\n WhiteWall whiteWall8 = new WhiteWall();\n addObject(whiteWall8,830,532);\n WhiteWall whiteWall9 = new WhiteWall();\n addObject(whiteWall9,892,532);\n WhiteWall whiteWall10 = new WhiteWall();\n addObject(whiteWall10,953,532);\n WhiteWall whiteWall11 = new WhiteWall();\n addObject(whiteWall11,1015,532);\n\n GhostVerticalWall ghostVerticalWall = new GhostVerticalWall();\n addObject(ghostVerticalWall,840,661);\n GhostVerticalWall ghostVerticalWall2 = new GhostVerticalWall();\n addObject(ghostVerticalWall2,840,604);\n\n BlueRupee blueRupee = new BlueRupee();\n addObject(blueRupee,771,612);\n\n GreenRupee greenRupee = new GreenRupee();\n addObject(greenRupee,732,681);\n\n GhostVerticalWall ghostVerticalWall3 = new GhostVerticalWall();\n addObject(ghostVerticalWall3,956,576);\n GhostVerticalWall ghostVerticalWall4 = new GhostVerticalWall();\n addObject(ghostVerticalWall4,956,631);\n WhiteVerticalWall whiteVerticalWall6 = new WhiteVerticalWall();\n addObject(whiteVerticalWall6,770,439);\n WhiteVerticalWall whiteVerticalWall7 = new WhiteVerticalWall();\n addObject(whiteVerticalWall7,770,379);\n\n WhiteWall whiteWall12 = new WhiteWall();\n addObject(whiteWall12,816,453);\n WhiteWall whiteWall13 = new WhiteWall();\n addObject(whiteWall13,878,453);\n\n GreenRupee greenRupee2 = new GreenRupee();\n addObject(greenRupee2,819,495);\n GreenRupee greenRupee3 = new GreenRupee();\n addObject(greenRupee3,759,682);\n\n WhiteVerticalWall whiteVerticalWall8 = new WhiteVerticalWall();\n addObject(whiteVerticalWall8,924,468);\n WhiteVerticalWall whiteVerticalWall9 = new WhiteVerticalWall();\n addObject(whiteVerticalWall9,1030,487);\n\n WhiteWall whiteWall14 = new WhiteWall();\n addObject(whiteWall14,1015,440);\n\n GreenRupee greenRupee4 = new GreenRupee();\n addObject(greenRupee4,990,487);\n\n WhiteVerticalWall whiteVerticalWall10 = new WhiteVerticalWall();\n addObject(whiteVerticalWall10,924,407);\n\n WhiteWall whiteWall15 = new WhiteWall();\n addObject(whiteWall15,909,367);\n WhiteWall whiteWall16 = new WhiteWall();\n addObject(whiteWall16,851,367);\n WhiteWall whiteWall17 = new WhiteWall();\n addObject(whiteWall17,828,367);\n\n GreenRupee greenRupee5 = new GreenRupee();\n addObject(greenRupee5,888,411);\n\n WhiteVerticalWall whiteVerticalWall11 = new WhiteVerticalWall();\n addObject(whiteVerticalWall11,588,637);\n\n GreenRupee greenRupee6 = new GreenRupee();\n addObject(greenRupee6,577,684);\n\n WhiteVerticalWall whiteVerticalWall12 = new WhiteVerticalWall();\n addObject(whiteVerticalWall12,870,320);\n WhiteVerticalWall whiteVerticalWall13 = new WhiteVerticalWall();\n addObject(whiteVerticalWall13,870,260);\n WhiteVerticalWall whiteVerticalWall14 = new WhiteVerticalWall();\n addObject(whiteVerticalWall14,870,200);\n GhostVerticalWall ghostVerticalWall8 = new GhostVerticalWall();\n addObject(ghostVerticalWall8,870,140);\n GhostVerticalWall ghostVerticalWall9 = new GhostVerticalWall();\n addObject(ghostVerticalWall9,870,80);\n\n GhostWall ghostWall = new GhostWall();\n addObject(ghostWall,1212,172);\n GhostWall ghostWall2 = new GhostWall();\n addObject(ghostWall2,1164,172);\n GhostWall ghostWall3 = new GhostWall();\n addObject(ghostWall3,1121,172);\n GhostWall ghostWall4 = new GhostWall();\n addObject(ghostWall4,1068,172);\n GhostWall ghostWall5 = new GhostWall();\n addObject(ghostWall5,1013,172);\n GhostWall ghostWall6 = new GhostWall();\n addObject(ghostWall6,960,172);\n\n WhiteVerticalWall whiteVerticalWall15 = new WhiteVerticalWall();\n addObject(whiteVerticalWall15,1227,126);\n WhiteVerticalWall whiteVerticalWall16 = new WhiteVerticalWall();\n addObject(whiteVerticalWall16,1227,72);\n WhiteVerticalWall whiteVerticalWall17 = new WhiteVerticalWall();\n addObject(whiteVerticalWall17,1144,32);\n WhiteVerticalWall whiteVerticalWall18 = new WhiteVerticalWall();\n addObject(whiteVerticalWall18,1144,90);\n\n WhiteWall whiteWall18 = new WhiteWall();\n addObject(whiteWall18,1099,105);\n\n WhiteVerticalWall whiteVerticalWall19 = new WhiteVerticalWall();\n addObject(whiteVerticalWall19,1052,90);\n\n WhiteWall whiteWall19 = new WhiteWall();\n addObject(whiteWall19,1037,44);\n\n GreenRupee greenRupee7 = new GreenRupee();\n addObject(greenRupee7,1097,67);\n\n BlueRupee blueRupee2 = new BlueRupee();\n addObject(blueRupee2,1269,136);\n BlueRupee blueRupee3 = new BlueRupee();\n addObject(blueRupee3,1264,674);\n\n StrafingBomb strafingBomb = new StrafingBomb();\n addObject(strafingBomb,1260,520);\n\n GhostWall ghostWall7 = new GhostWall();\n addObject(ghostWall7,971,367);\n GhostWall ghostWall8 = new GhostWall();\n addObject(ghostWall8,917,245);\n GhostWall ghostWall9 = new GhostWall();\n addObject(ghostWall9,980,245);\n GhostWall ghostWall10 = new GhostWall();\n addObject(ghostWall10,1041,245);\n GhostWall ghostWall11 = new GhostWall();\n addObject(ghostWall11,1076,471);\n GhostWall ghostWall12 = new GhostWall();\n addObject(ghostWall12,1140,471);\n GhostWall ghostWall13 = new GhostWall();\n addObject(ghostWall13,1110,471);\n GhostWall ghostWall14 = new GhostWall();\n addObject(ghostWall14,1172,471);\n GhostWall ghostWall15 = new GhostWall();\n addObject(ghostWall15,1229,471);\n GhostWall ghostWall16 = new GhostWall();\n addObject(ghostWall16,1244,471);\n\n StrafingBomb strafingBomb2 = new StrafingBomb();\n addObject(strafingBomb2,946,306);\n StrafingBomb strafingBomb3 = new StrafingBomb();\n addObject(strafingBomb3,1113,233);\n StrafingBomb strafingBomb4 = new StrafingBomb();\n addObject(strafingBomb4,948,88);\n\n WhiteVerticalWall whiteVerticalWall20 = new WhiteVerticalWall();\n addObject(whiteVerticalWall20,510,568);\n WhiteVerticalWall whiteVerticalWall21 = new WhiteVerticalWall();\n addObject(whiteVerticalWall21,510,508);\n WhiteVerticalWall whiteVerticalWall22 = new WhiteVerticalWall();\n addObject(whiteVerticalWall22,510,447);\n WhiteVerticalWall whiteVerticalWall23 = new WhiteVerticalWall();\n addObject(whiteVerticalWall23,510,386);\n WhiteVerticalWall whiteVerticalWall24 = new WhiteVerticalWall();\n addObject(whiteVerticalWall24,510,325);\n\n WhiteWall whiteWall20 = new WhiteWall();\n addObject(whiteWall20,464,583);\n\n WhiteVerticalWall whiteVerticalWall25 = new WhiteVerticalWall();\n addObject(whiteVerticalWall25,419,568);\n WhiteVerticalWall whiteVerticalWall26 = new WhiteVerticalWall();\n addObject(whiteVerticalWall26,419,507);\n WhiteVerticalWall whiteVerticalWall27 = new WhiteVerticalWall();\n addObject(whiteVerticalWall27,419,448);\n WhiteVerticalWall whiteVerticalWall28 = new WhiteVerticalWall();\n addObject(whiteVerticalWall28,419,390);\n WhiteVerticalWall whiteVerticalWall29 = new WhiteVerticalWall();\n addObject(whiteVerticalWall29,419,329);\n\n GhostWall ghostWall17 = new GhostWall();\n addObject(ghostWall17,374,583);\n\n WhiteVerticalWall whiteVerticalWall30 = new WhiteVerticalWall();\n addObject(whiteVerticalWall30,328,568);\n WhiteVerticalWall whiteVerticalWall31 = new WhiteVerticalWall();\n addObject(whiteVerticalWall31,236,568);\n WhiteVerticalWall whiteVerticalWall32 = new WhiteVerticalWall();\n addObject(whiteVerticalWall32,328,509);\n\n GhostWall ghostWall18 = new GhostWall();\n addObject(ghostWall18,192,583);\n\n WhiteVerticalWall whiteVerticalWall33 = new WhiteVerticalWall();\n addObject(whiteVerticalWall33,147,568);\n\n GhostWall ghostWall19 = new GhostWall();\n addObject(ghostWall19,103,583);\n\n WhiteVerticalWall whiteVerticalWall34 = new WhiteVerticalWall();\n addObject(whiteVerticalWall34,57,568);\n\n GhostWall ghostWall20 = new GhostWall();\n addObject(ghostWall20,11,583);\n\n Door door = new Door();\n addObject(door,374,583);\n Door door2 = new Door();\n addObject(door2,192,583);\n Door door3 = new Door();\n addObject(door3,103,583);\n Door door4 = new Door();\n addObject(door4,11,583);\n Door door5 = new Door();\n addObject(door5,282,583);\n\n WhiteVerticalWall whiteVerticalWall35 = new WhiteVerticalWall();\n addObject(whiteVerticalWall35,236,509);\n WhiteVerticalWall whiteVerticalWall36 = new WhiteVerticalWall();\n addObject(whiteVerticalWall36,147,509);\n WhiteVerticalWall whiteVerticalWall37 = new WhiteVerticalWall();\n addObject(whiteVerticalWall37,57,509);\n WhiteVerticalWall whiteVerticalWall38 = new WhiteVerticalWall();\n addObject(whiteVerticalWall38,328,402);\n WhiteVerticalWall whiteVerticalWall39 = new WhiteVerticalWall();\n addObject(whiteVerticalWall39,236,402);\n WhiteVerticalWall whiteVerticalWall40 = new WhiteVerticalWall();\n addObject(whiteVerticalWall40,147,402);\n WhiteVerticalWall whiteVerticalWall41 = new WhiteVerticalWall();\n addObject(whiteVerticalWall41,57,402);\n WhiteVerticalWall whiteVerticalWall42 = new WhiteVerticalWall();\n addObject(whiteVerticalWall42,328,303);\n WhiteVerticalWall whiteVerticalWall43 = new WhiteVerticalWall();\n addObject(whiteVerticalWall43,236,303);\n WhiteVerticalWall whiteVerticalWall44 = new WhiteVerticalWall();\n addObject(whiteVerticalWall44,147,303);\n WhiteVerticalWall whiteVerticalWall45 = new WhiteVerticalWall();\n addObject(whiteVerticalWall45,57,303);\n\n GhostWall ghostWall21 = new GhostWall();\n addObject(ghostWall21,374,417);\n GhostWall ghostWall22 = new GhostWall();\n addObject(ghostWall22,282,417);\n GhostWall ghostWall23 = new GhostWall();\n addObject(ghostWall23,192,417);\n GhostWall ghostWall24 = new GhostWall();\n addObject(ghostWall24,11,417);\n\n Door door6 = new Door();\n addObject(door6,374,417);\n Door door7 = new Door();\n addObject(door7,282,417);\n Door door8 = new Door();\n addObject(door8,192,417);\n Door door9 = new Door();\n addObject(door9,103,417);\n Door door10 = new Door();\n addObject(door10,11,417);\n\n GhostWall ghostWall25 = new GhostWall();\n addObject(ghostWall25,102,524);\n GhostWall ghostWall26 = new GhostWall();\n addObject(ghostWall26,374,524);\n GhostWall ghostWall27 = new GhostWall();\n addObject(ghostWall27,10,524);\n\n GhostWall ghostWall28 = new GhostWall();\n addObject(ghostWall28,375,318);\n GhostWall ghostWall29 = new GhostWall();\n addObject(ghostWall29,192,318);\n GhostWall ghostWall30 = new GhostWall();\n addObject(ghostWall30,103,318);\n GhostWall ghostWall31 = new GhostWall();\n addObject(ghostWall31,12,318);\n\n Door door11 = new Door();\n addObject(door11,374,318);\n Door door12 = new Door();\n addObject(door12,282,318);\n Door door13 = new Door();\n addObject(door13,192,318);\n Door door14 = new Door();\n addObject(door14,103,318);\n Door door15 = new Door();\n addObject(door15,12,318);\n WhiteVerticalWall whiteVerticalWall46 = new WhiteVerticalWall();\n addObject(whiteVerticalWall46,419,268);\n WhiteVerticalWall whiteVerticalWall47 = new WhiteVerticalWall();\n addObject(whiteVerticalWall47,419,209);\n\n WhiteWall whiteWall21 = new WhiteWall();\n addObject(whiteWall21,404,163);\n WhiteWall whiteWall22 = new WhiteWall();\n addObject(whiteWall22,344,163);\n WhiteWall whiteWall23 = new WhiteWall();\n addObject(whiteWall23,286,163);\n WhiteWall whiteWall24 = new WhiteWall();\n addObject(whiteWall24,224,163);\n WhiteWall whiteWall25 = new WhiteWall();\n addObject(whiteWall25,165,163);\n WhiteWall whiteWall26 = new WhiteWall();\n addObject(whiteWall26,104,163);\n GhostWall ghostWall32 = new GhostWall();\n addObject(ghostWall32,1270,245);\n\n WhiteVerticalWall whiteVerticalWall48 = new WhiteVerticalWall();\n addObject(whiteVerticalWall48,89,116);\n\n WhiteWall whiteWall27 = new WhiteWall();\n addObject(whiteWall27,104,71);\n WhiteWall whiteWall28 = new WhiteWall();\n addObject(whiteWall28,134,71);\n\n WhiteVerticalWall whiteVerticalWall49 = new WhiteVerticalWall();\n addObject(whiteVerticalWall49,235,28);\n WhiteVerticalWall whiteVerticalWall50 = new WhiteVerticalWall();\n addObject(whiteVerticalWall50,235,90);\n\n StrafingBomb strafingBomb5 = new StrafingBomb();\n addObject(strafingBomb5,367,453);\n StrafingBomb strafingBomb6 = new StrafingBomb();\n addObject(strafingBomb6,327,227);\n\n WhiteWall whiteWall29 = new WhiteWall();\n addObject(whiteWall29,556,493);\n\n WhiteVerticalWall whiteVerticalWall51 = new WhiteVerticalWall();\n addObject(whiteVerticalWall51,588,532);\n\n GreenRupee greenRupee8 = new GreenRupee();\n addObject(greenRupee8,552,532);\n GreenRupee greenRupee9 = new GreenRupee();\n addObject(greenRupee9,551,614);\n\n GhostWall ghostWall37 = new GhostWall();\n addObject(ghostWall37,636,518);\n\n StrafingBomb strafingBomb7 = new StrafingBomb();\n addObject(strafingBomb7,571,430);\n\n GhostWall ghostWall33 = new GhostWall();\n addObject(ghostWall33,557,388);\n GhostWall ghostWall34 = new GhostWall();\n addObject(ghostWall34,619,388);\n GhostWall ghostWall35 = new GhostWall();\n addObject(ghostWall35,724,388);\n GhostWall ghostWall36 = new GhostWall();\n addObject(ghostWall36,673,334);\n\n WhiteVerticalWall whiteVerticalWall52 = new WhiteVerticalWall();\n addObject(whiteVerticalWall52,770,319);\n WhiteVerticalWall whiteVerticalWall53 = new WhiteVerticalWall();\n addObject(whiteVerticalWall53,510,263);\n WhiteVerticalWall whiteVerticalWall54 = new WhiteVerticalWall();\n addObject(whiteVerticalWall54,510,203);\n WhiteVerticalWall whiteVerticalWall55 = new WhiteVerticalWall();\n addObject(whiteVerticalWall55,770,259);\n WhiteVerticalWall whiteVerticalWall56 = new WhiteVerticalWall();\n addObject(whiteVerticalWall56,770,200);\n\n GhostVerticalWall ghostVerticalWall7 = new GhostVerticalWall();\n addObject(ghostVerticalWall7,293,118);\n\n GhostWall ghostWall38 = new GhostWall();\n addObject(ghostWall38,283,44);\n GhostWall ghostWall39 = new GhostWall();\n addObject(ghostWall39,344,44);\n WhiteWall whiteWall30 = new WhiteWall();\n addObject(whiteWall30,556,300);\n WhiteWall whiteWall31 = new WhiteWall();\n addObject(whiteWall31,617,300);\n WhiteWall whiteWall32 = new WhiteWall();\n addObject(whiteWall32,724,274);\n WhiteWall whiteWall33 = new WhiteWall();\n addObject(whiteWall33,661,242);\n\n WhiteVerticalWall whiteVerticalWall57 = new WhiteVerticalWall();\n addObject(whiteVerticalWall57,589,254);\n WhiteVerticalWall whiteVerticalWall58 = new WhiteVerticalWall();\n addObject(whiteVerticalWall58,709,227);\n\n GreenRupee greenRupee10 = new GreenRupee();\n addObject(greenRupee10,739,237);\n GreenRupee greenRupee11 = new GreenRupee();\n addObject(greenRupee11,736,447);\n GreenRupee greenRupee12 = new GreenRupee();\n addObject(greenRupee12,551,343);\n GreenRupee greenRupee13 = new GreenRupee();\n addObject(greenRupee13,552,259);\n\n BlueRupee blueRupee4 = new BlueRupee();\n addObject(blueRupee4,463,541);\n BlueRupee blueRupee5 = new BlueRupee();\n addObject(blueRupee5,462,491);\n\n GhostWall ghostWall40 = new GhostWall();\n addObject(ghostWall40,495,433);\n GhostWall ghostWall41 = new GhostWall();\n addObject(ghostWall41,436,386);\n GhostWall ghostWall42 = new GhostWall();\n addObject(ghostWall42,495,338);\n GhostWall ghostWall43 = new GhostWall();\n addObject(ghostWall43,436,286);\n GhostWall ghostWall44 = new GhostWall();\n addObject(ghostWall44,495,234);\n GhostWall ghostWall45 = new GhostWall();\n addObject(ghostWall45,435,179);\n\n WhiteVerticalWall whiteVerticalWall59 = new WhiteVerticalWall();\n addObject(whiteVerticalWall59,419,117);\n WhiteVerticalWall whiteVerticalWall60 = new WhiteVerticalWall();\n addObject(whiteVerticalWall60,419,57);\n\n WhiteWall whiteWall34 = new WhiteWall();\n addObject(whiteWall34,525,158);\n\n BlueRupee blueRupee6 = new BlueRupee();\n addObject(blueRupee6,190,524);\n BlueRupee blueRupee7 = new BlueRupee();\n addObject(blueRupee7,375,357);\n\n GreenRupee greenRupee14 = new GreenRupee();\n addObject(greenRupee14,374,257);\n GreenRupee greenRupee15 = new GreenRupee();\n addObject(greenRupee15,17,371);\n GreenRupee greenRupee16 = new GreenRupee();\n addObject(greenRupee16,281,524);\n\n BlueRupee blueRupee8 = new BlueRupee();\n addObject(blueRupee8,498,684);\n BlueRupee blueRupee9 = new BlueRupee();\n addObject(blueRupee9,474,683);\n BlueRupee blueRupee10 = new BlueRupee();\n addObject(blueRupee10,452,682);\n\n DungeonStairsFloor6 dungeonStairsFloor6 = new DungeonStairsFloor6();\n addObject(dungeonStairsFloor6,62,667);\n\n WhiteWall whiteWall35 = new WhiteWall();\n addObject(whiteWall35,1001,646);\n WhiteWall whiteWall36 = new WhiteWall();\n addObject(whiteWall36,1063,646);\n\n WhiteVerticalWall whiteVerticalWall61 = new WhiteVerticalWall();\n addObject(whiteVerticalWall61,1078,600);\n\n WhiteWall whiteWall37 = new WhiteWall();\n addObject(whiteWall37,1124,613);\n WhiteWall whiteWall38 = new WhiteWall();\n addObject(whiteWall38,1184,585);\n WhiteWall whiteWall39 = new WhiteWall();\n addObject(whiteWall39,1093,555);\n\n GreenRupee greenRupee17 = new GreenRupee();\n addObject(greenRupee17,1139,580);\n GreenRupee greenRupee18 = new GreenRupee();\n addObject(greenRupee18,991,608);\n GreenRupee greenRupee19 = new GreenRupee();\n addObject(greenRupee19,1031,607);\n GreenRupee greenRupee20 = new GreenRupee();\n addObject(greenRupee20,897,572);\n\n StrafingBomb strafingBomb8 = new StrafingBomb();\n addObject(strafingBomb8,1145,361);\n StrafingBomb strafingBomb9 = new StrafingBomb();\n addObject(strafingBomb9,1220,314);\n StrafingBomb strafingBomb10 = new StrafingBomb();\n addObject(strafingBomb10,1203,415);\n StrafingBomb strafingBomb11 = new StrafingBomb();\n addObject(strafingBomb11,1072,337);\n StrafingBomb strafingBomb12 = new StrafingBomb();\n addObject(strafingBomb12,1091,406);\n StrafingBomb strafingBomb13 = new StrafingBomb();\n addObject(strafingBomb13,1252,369);\n StrafingBomb strafingBomb14 = new StrafingBomb();\n addObject(strafingBomb14,1151,279);\n \n WhiteWall whiteWall40 = new WhiteWall();\n addObject(whiteWall40,586,72);\n WhiteWall whiteWall41 = new WhiteWall();\n addObject(whiteWall41,717,72);\n WhiteWall whiteWall42 = new WhiteWall();\n addObject(whiteWall42,779,72);\n WhiteWall whiteWall43 = new WhiteWall();\n addObject(whiteWall43,828,72);\n WhiteWall whiteWall44 = new WhiteWall();\n addObject(whiteWall44,537,72);\n WhiteWall whiteWall45 = new WhiteWall();\n addObject(whiteWall45,492,72);\n WhiteWall whiteWall46 = new WhiteWall();\n addObject(whiteWall46,456,72);\n \n StrafingBomb strafingBomb15 = new StrafingBomb();\n addObject(strafingBomb15,474,618);\n }", "title": "" }, { "docid": "b9988e150131a2ebc18c4c44351913bb", "score": "0.5296025", "text": "public Maze(int n){\n\t\tsuper(n*n); //construct a graph of size n*n\n\t\tcells = new Cell[n][n]; \n\t\tthis.n = n;\n\t\tthis.generateRooms();\n\t}", "title": "" }, { "docid": "4b8226df28a18e84faa87edf10bf2e18", "score": "0.52918375", "text": "public void onCreate() { model = new Board(); }", "title": "" }, { "docid": "8dd179ec7a1fb823b577c0bf29e6ca5a", "score": "0.5288458", "text": "private void generateRooms(){\n\t\tint name = 1;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tCell a = new Cell(name, i, j); \n\t\t\t\tcells[i][j] = a; \t\n\t\t\t\tthis.add(a);\t\t\n\t\t\t\tname++;\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ab2f8fa02afb13a26b6f54f301cfc6d9", "score": "0.5282864", "text": "public static Board createCheckerBoardStandardStarting() {\n final int size = 8;\n final int numberCheckersPerSide = 12;\n final int numberBlankInMiddle = 8;\n StringBuilder pieces = new StringBuilder();\n\n for (int i = 0; i < numberCheckersPerSide; i++) {\n String piece = \"b\";\n pieces.append(piece);\n }\n for (int i = 0; i < numberBlankInMiddle; i++) {\n String piece = \"-\";\n pieces.append(piece);\n }\n for (int i = 0; i < numberCheckersPerSide; i++) {\n String piece = \"r\";\n pieces.append(piece);\n }\n\n return createCheckerBoard(size, pieces.toString());\n }", "title": "" }, { "docid": "cc60a2cbd11e25f6a34bad5156c6ae95", "score": "0.52826035", "text": "@Override\n public void setWall() {\n wall[0] = new Wall(3, 0);\n wall[1] = new Wall(5, 0);\n wall[2] = new Wall(0, 1);\n wall[3] = new Wall(0, 4);\n wall[4] = new Wall(0, 7);\n wall[5] = new Wall(1, 1);\n wall[6] = new Wall(3, 1);\n wall[7] = new Wall(5, 1);\n wall[8] = new Wall(7, 1);\n wall[9] = new Wall(8, 1);\n wall[10] = new Wall(1, 3);\n wall[11] = new Wall(7, 3);\n wall[12] = new Wall(1, 4);\n wall[13] = new Wall(7, 4);\n wall[14] = new Wall(8, 4);\n wall[15] = new Wall(1, 5);\n wall[16] = new Wall(7, 5);\n wall[17] = new Wall(1, 7);\n wall[18] = new Wall(2, 7);\n wall[19] = new Wall(4, 7);\n wall[20] = new Wall(5, 7);\n wall[21] = new Wall(7, 7);\n wall[22] = new Wall(8, 7);\n wall[23] = new Wall(1, 8);\n wall[24] = new Wall(4, 8);\n wall[25] = new Wall(7, 8);\n }", "title": "" }, { "docid": "1322b150a8af284228bce5bf1847764c", "score": "0.52783227", "text": "public void generate(){\n\t\tRandomPosition random = new RandomPosition((int)this.dimension.getWidth(), (int)this.dimension.getHeight());\n\t\t//Adding mines\n\t\tfor(int i = 0; i < this.mineCount; i++){\n\t\t\tPoint point = random.nextPosition();\n\t\t\t//Mine cell at the generated position\n\t\t\tthis.cells[(int)point.getY()][(int)point.getX()].mine();\n\t\t}\n\t}", "title": "" }, { "docid": "087ada3937fd70314df39a0994aeb041", "score": "0.52745634", "text": "private void createBoard() {\n\t\tJPanel playPanel = new JPanel();\n\t\tplayPanel.setLayout(new BoxLayout(playPanel, BoxLayout.PAGE_AXIS));\n\t\t\n\t\tJLabel infoText = new JLabel(\" \", SwingConstants.CENTER);\n\t\tinfoText.setAlignmentX(CENTER_ALIGNMENT);\n\t\tinfoText.setFont(infoText.getFont().deriveFont(16.0f));\n\t\tplayPanel.add(infoText);\n\t\t\n\t\tBoard board = new Board();\n\t\tboard.setMinimumSize(new Dimension(Board.SQUARE_SIZE*15, Board.SQUARE_SIZE*15));\n\t\tplayPanel.add(board);\n\t\t\n\t\tthis.board = board;\n\t\tthis.playPanel = playPanel;\n\t}", "title": "" }, { "docid": "810906c561653a69408faf34b0d7c67e", "score": "0.5257557", "text": "public latar()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 800, 1); \n \n addObject(new score(),100,40);\n addObject(new snake(),20,100);\n addObject(new food(),20,200);\n addObject(new food(),100,750);\n addObject(new food(),750,200);\n \n prepare();\n }", "title": "" }, { "docid": "c89fbdf072be6bca347813e55c6d3ced", "score": "0.52559775", "text": "private void setWalls () {\n // wall 1 : Y-Direction\n for (int y = 10; y <= 17; y++) {\n createElement (\"WALL\", new Position(7, y));\n }\n // wall 2 : X-Direction\n for (int x = 13; x <= 24; x++) {\n createElement (\"WALL\", new Position(x, 11));\n }\n }", "title": "" }, { "docid": "d7a6563c603a0ce30f8671b528a33ba1", "score": "0.5254266", "text": "public Modes()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n }", "title": "" }, { "docid": "6d00bd5e32a0d02bcace30275a07af86", "score": "0.5244296", "text": "private void generate() {\n\t\tJTextField width = new JTextField(2);\r\n\t\tJTextField height = new JTextField(2);\r\n\t\tJTextField numMines = new JTextField(2);\r\n\t\tcustomEntry.add(new JLabel(\"Width: \"));\r\n\t\tcustomEntry.add(width);\r\n\t\tcustomEntry.add(new JLabel(\"Height: \"));\r\n\t\tcustomEntry.add(height);\r\n\t\tcustomEntry.add(new JLabel(\"Number of Mines: \"));\r\n\t\tcustomEntry.add(numMines);\r\n\r\n\t\t// For adding the display which tells the user how many mines are left\r\n\t\tJPanel counterPanel = new JPanel();\r\n\t\tnumMinesLabel.setText(\"Number of Mines Remaining: \" + String.valueOf(mines.getNumMines()));\r\n\r\n\t\tcounterPanel.add(numMinesLabel);\r\n\r\n\t\t// For the main panel which displays the mines\r\n\t\tJPanel minesPanel = new JPanel();\r\n\t\tminesPanel.add(mines);\r\n\r\n\t\t// Add everything so far to game\r\n\t\tgame.add(minesPanel, BorderLayout.CENTER);\r\n\t\tgame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tgame.add(counterPanel, BorderLayout.NORTH);\r\n\r\n\t\t// Checkbox to control the flagging mode\r\n\t\tJCheckBox flagger = new JCheckBox(\"Flag\");\r\n\t\tflagger.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tmines.setFlaggedMode(flagger.isSelected());\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t// Reset button to create a new game\r\n\t\tJButton reset = new JButton(\"Reset\");\r\n\t\treset.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tmines.reset();\r\n\t\t\t\tnumMinesLabel.setText(\"Number of Mines Remaining: \" + \r\n\t\t\t\t\t\tString.valueOf(mines.getNumMines()));\r\n\t\t\t\tgame.update(game.getGraphics());\r\n\t\t\t\tgame.setVisible(true);\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t// Toolbar to contain all the elements that contrl the game\r\n\t\tJPanel toolBar = new JPanel();\r\n\t\ttoolBar.add(flagger);\r\n\t\ttoolBar.add(reset);\r\n\r\n\t\t// Instruction button\r\n\t\tJButton instructions = new JButton(\"Instructions\");\r\n\t\tinstructions.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(game, \"Welcome to Minesweeper!\\n\" \r\n\t\t\t\t\t\t\t\t+ \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\"\r\n\t\t\t\t\t\t\t\t+ \"Your job is to locate and flag all the mines. \\n\"\r\n\t\t\t\t\t\t\t\t+ \"You will see a board of squares in front of you. Some contain\\n\"\r\n\t\t\t\t\t\t\t\t+ \"mines under them, others don't. If you click a square with a \\n\"\r\n\t\t\t\t\t\t\t\t+ \"mine under it, you lose. Your mission, should you choose to\\n\"\r\n\t\t\t\t\t\t\t\t+ \"accept it, is to clear all squares that do not contain\\n\"\r\n\t\t\t\t\t\t\t\t+ \"mines, flagging (optional) the ones that do. You do this by\\n\"\r\n\t\t\t\t\t\t\t\t+ \"clicking the squares to see whether or not there is a mine\\n\"\r\n\t\t\t\t\t\t\t\t+ \"under it. If a square doesn't contain a mine under it, it will\\n\"\r\n\t\t\t\t\t\t\t\t+ \"reveal how many mines are in adjacent squares. Use the\\n\"\r\n\t\t\t\t\t\t\t\t+ \"flag option to keep track of which squares have mines under\\n\"\r\n\t\t\t\t\t\t\t\t+ \"them. Keep clicking until no mines are left. \\n\"\r\n\t\t\t\t\t\t\t\t+ \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\"\r\n\t\t\t\t\t\t\t\t+ \"To flag a mine, check the flag box. To return to\\n\"\r\n\t\t\t\t\t\t\t\t+ \"clear mode, uncheck the box. If you clear all the\\n\"\r\n\t\t\t\t\t\t\t\t+ \"squares without mines, the mines will be flagged\\n\"\r\n\t\t\t\t\t\t\t\t+ \"If you want to pause and come back later, press \\n\"\r\n\t\t\t\t\t\t\t\t+ \"\\\"Save Game\\\" and you can close the application.\\n\"\r\n\t\t\t\t\t\t\t\t+ \"To return to the previous saved game, press \\\"Load Game\\\"\\n\"\r\n\t\t\t\t\t\t\t\t+ \"If you want to make a Custom Game with a custom number\\n\"\r\n\t\t\t\t\t\t\t\t+ \"of tiles and mines, use the \\\"Custom Game\\\" button. This\\n\"\r\n\t\t\t\t\t\t\t\t+ \"does have some restrictions for size and mines.\\n\"\r\n\t\t\t\t\t\t\t\t+ \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\"\r\n\t\t\t\t\t\t\t\t+ \"Good luck and have fun!\");\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\ttoolBar.add(instructions);\r\n\r\n\t\t// JPanel to house all the IO elements\r\n\t\tJPanel saveBar = new JPanel();\r\n\r\n\t\t// Save Game button\r\n\t\tJButton saveGame = new JButton(\"Save Game\");\r\n\t\tsaveGame.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tmines.saveGame();\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t// Load Game button\r\n\t\tJButton loadGame = new JButton(\"Load Game\");\r\n\t\tloadGame.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// Mines takes care of getting the game, this just has to repaint\r\n\t\t\t\tmines.loadGame();\r\n\t\t\t\tgame.update(game.getGraphics());\r\n\t\t\t\tnumMinesLabel.setText(\"Number of Mines Remaining: \" + \r\n\t\t\t\t\t\tString.valueOf(mines.getNumMines()));\r\n\t\t\t\tgame.pack();\r\n\t\t\t\tgame.setVisible(true);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t// Creates a custom game with values from the user\r\n\t\tJButton newGame = new JButton(\"Custom Game\");\r\n\t\tnewGame.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\r\n\t\t\t\tint result = JOptionPane.showConfirmDialog(null, customEntry, \r\n\t\t\t\t\t\t\"Please Enter Custom Values\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t\t\t//If the user entered something, create a new map\r\n\t\t\t\tif (result == JOptionPane.OK_OPTION) {\r\n\t\t\t\t\tminesPanel.remove(mines);\r\n\t\t\t\t\tmines = new MineMap(Integer.valueOf(width.getText()), \r\n\t\t\t\t\t\t\tInteger.valueOf(height.getText()), Integer.valueOf(numMines.getText()), \r\n\t\t\t\t\t\t\tgame, numMinesLabel);\r\n\t\t\t\t\t\r\n\t\t\t\t\tminesPanel.add(mines, BorderLayout.CENTER);\r\n\t\t\t\t\tnumMinesLabel.setText(\"Number of Mines Remaining: \" + \r\n\t\t\t\t\t\t\tString.valueOf(mines.getNumMines()));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Repaint\r\n\t\t\t\t\tgame.pack();\r\n\t\t\t\t\tgame.update(game.getGraphics());\r\n\t\t\t\t\tgame.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//Add everything to the JPanel\r\n\t\tsaveBar.add(saveGame);\r\n\t\tsaveBar.add(loadGame);\r\n\t\tsaveBar.add(newGame);\r\n\t\t\r\n\t\t//Create a panel to house the toolBar and controlBar\r\n\t\tJPanel controlPanel = new JPanel();\r\n\t\tcontrolPanel.setLayout(new BorderLayout());\r\n\t\tcontrolPanel.add(toolBar, BorderLayout.NORTH);\r\n\t\tcontrolPanel.add(saveBar, BorderLayout.SOUTH);\r\n\r\n\t\tgame.add(controlPanel, BorderLayout.SOUTH);\r\n\t\tgame.pack();\r\n\r\n\t\tgame.setVisible(true);\r\n\r\n\t}", "title": "" }, { "docid": "c1983b72fda33ef1d447390ade7c176f", "score": "0.52411187", "text": "private void initMaze() {\n\t\tfor (int i = 1; i < 27; i ++)\n\t\t{\n\t\tgridObjects.put(new Position('a',i), new Wall());\n\t\tgridObjects.put(new Position('z',i), new Wall());\n\t\t}\n\n\t\tfor(char i = 'a'; i <= 'z'; i ++)\n\t\t{\n\t\t\tgridObjects.put(new Position(i, 1), new Wall());\n\t\t\tgridObjects.put(new Position(i, 26), new Wall());\n\t\t}\n\t}", "title": "" }, { "docid": "12b630aeae3667e244f246f9d70527da", "score": "0.52339023", "text": "public static ModelInstance makeBox(Vector2d startPos, float length, float width, ModelBuilder mb){\n Vector2d vstartPos = new Vector2d(startPos.getX()-BALL_RADIUS,startPos.getY()-BALL_RADIUS);\n Vector2d v1 = new Vector2d(startPos.getX() + length+BALL_RADIUS, startPos.getY()-BALL_RADIUS);\n Vector2d v2 = new Vector2d(startPos.getX()-BALL_RADIUS, startPos.getY()+width+BALL_RADIUS);\n Vector2d v3 = new Vector2d(startPos.getX()+length+BALL_RADIUS, startPos.getY()+width+BALL_RADIUS);\n\n Obstacle tmp = new Obstacle();\n tmp.addVertex(vstartPos);\n tmp.addVertex(v1);\n tmp.addVertex(v3);\n tmp.addVertex(v2);\n\n Side s1 = new VerticalSide(vstartPos, v2);\n Side s2 = new VerticalSide(v1,v3);\n Side s3 = new HorizontalSide(vstartPos, v1);\n Side s4 = new HorizontalSide(v2,v3);\n\n tmp.addSide(s1);\n tmp.addSide(s2);\n tmp.addSide(s3);\n tmp.addSide(s4);\n\n PuttingCourse.getInstance().obstacles.add(tmp);\n\n ModelInstance mi = new ModelInstance(mb.createBox(length,OBSTACLE_HEIGHT, width, new Material(ColorAttribute.createDiffuse(Color.GRAY)), VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal) );\n mi.transform.setToTranslation((float)startPos.getX()+length/2,0, (float)startPos.getY()+width/2);\n tmp.mi=mi;\n return mi;\n\n }", "title": "" }, { "docid": "7b8de2c090f4c3d3ea620c35d1ae207f", "score": "0.523244", "text": "public Floor makeFloor(){\n int rows = Game.getCurrentLevel() * 2;\n int cols = Game.getCurrentLevel() * 3;\n\n // Create room map for floor\n ArrayList<ArrayList<Room>> roomMap = new ArrayList<>();\n for(int x = 0; x < cols; x++){\n ArrayList<Room> roomRow = new ArrayList<>();\n for(int y = 0; y < rows; y++){\n roomRow.add(this.roomFactory.createRandomRoom());\n }\n roomMap.add(roomRow);\n }\n\n // select the end room\n Random rand = new Random();\n int exitY = rand.nextInt(rows - rows/2) + rows/2;\n int exitX = rand.nextInt(cols - cols/2) + cols/2;\n\n roomMap.get(exitX).get(exitY).setFloorEnd();\n\n Floor floor = new Floor(roomMap, this);\n\n return floor;\n }", "title": "" }, { "docid": "0e6f6303bbf0c2244f3370b38eb8d3c7", "score": "0.5220419", "text": "private void initMinefield() {\n\t\tminefield = new Minefield[DIMENSION][DIMENSION];\n\t\tfor (int row=0; row<DIMENSION; row++)\n\t\t\tfor (int col=0; col<DIMENSION; col++)\n\t\t\t\tminefield[row][col] = Minefield.EMPTY;\n\t}", "title": "" }, { "docid": "751628434733ea40124710a1b1d210c8", "score": "0.52056694", "text": "public Mundo4()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "title": "" }, { "docid": "8d402b1b45f184da5dfd22c57efb69f9", "score": "0.52005535", "text": "public Board() {\n /* Generate all tiles */\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if ((i+j) % 2 == 0 )\n tiles[i][j] = new Tile(i, j, Color.BLUE);\n else \n tiles[i][j] = new Tile(i, j, Color.YELLOW);\n }\n }\n \n /* Add tiles to board */\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n getChildren().addAll(tiles[i][j]);\n }\n } \n \n }", "title": "" }, { "docid": "a91b4fa2abec576bf9d6be3171a8a51f", "score": "0.51738185", "text": "protected void createAndAddNewBoardCompound() {\r\n\t\tif (board != null) {\r\n\t\t\tremove(board);\r\n\t\t}\r\n\r\n\t\tboard = createBoard(HORIZONTAL_BLOCK_COUNT, VERTICAL_BLOCK_COUNT);\r\n\t\tboard.setLocation(BOARD_OFFSET, BOARD_OFFSET);\r\n\t\tboard.add(player);\r\n\t\tadd(board);\r\n\t}", "title": "" }, { "docid": "49450b31418c2f31b7b08e4410882fd9", "score": "0.517119", "text": "public Model() {\n this.map = \"\";\n hero = new Hero(1,1);\n gateC = new GateC(0,0);\n gateO = new GateO(0,0);\n shoot = new Shoot(0,0);\n monster1 = new Monster1(0,0);\n monster2 = new Monster2(0,0);\n monster3 = new Monster3(0,0);\n monster4 = new Monster4(0,0);\n }", "title": "" }, { "docid": "84adfcdc6c9ca7dbb24e56bff1a8d7ce", "score": "0.5170788", "text": "private void newBoard(){\n tile = new Checker[64];\r\n \r\n //resets piece count\r\n Checker tmp = new Checker(false, -1);\r\n tmp.resetPieces();\r\n \r\n for(int i = 0; i < tile.length;){\r\n i = colBuildA(i);\r\n i = colBuildB(i);\r\n }\r\n canJump = false;\r\n }", "title": "" }, { "docid": "c5cd1fd94ecd9abe90e3472dce7b17e8", "score": "0.5162284", "text": "public Board(double dim,double wallWidth) {\n \n this.height = dim;\n this.width = dim;\n \n pucks = new ArrayList<>();\n walls = new ArrayList<>();\n \n walls.add(new Wall(wallWidth,wallWidth,dim-wallWidth,wallWidth,\"TOP\"));\n walls.add(new Wall(wallWidth,wallWidth,wallWidth,dim-wallWidth,\"LEFT\"));\n walls.add(new Wall(wallWidth,dim-wallWidth,dim-wallWidth,dim-wallWidth,\"BOTTOM\"));\n walls.add(new Wall(dim-wallWidth,wallWidth,dim-wallWidth,dim-wallWidth,\"RIGHT\"));\n \n }", "title": "" }, { "docid": "dbefb5264675cf640ac778e2581d9d2f", "score": "0.5162021", "text": "public Board()\r\n {\r\n // Create the board object\r\n board = new ArrayList<>();\r\n \r\n // Add the first NumberTile to the board\r\n board.add(new NumberTile());\r\n }", "title": "" }, { "docid": "d1a4d9b25a616d1b4b66383906c81b01", "score": "0.51600534", "text": "private void generateMatrix() {\n for (int i = 0; i < 9; i++)\n for (int j = 0; j < 9; j++) {\n mainView.maze[i][j].addActionListener(null);\n game.pnMaze.add(mainView.maze[i][j]);\n }\n }", "title": "" }, { "docid": "0b23af7dbd6a4da392afdcdbfbcacb2b", "score": "0.5150017", "text": "protected Wall createWall(double x, double y, Direction alignmentDir, Room room) {\n\t\tLocation to = Location.moveInDirection(new Location(x, y), alignmentDir, 1);\r\n\t\tWall instance = new Wall(to, Axis.toXY(alignmentDir), room);\r\n\t\tinstance.setExactLocation(new Location(x, y));\r\n\t\tworld[(int) x][(int) y].addInitialObject(instance);\r\n\t\tif (alignmentDir.equals(Direction.EAST))// horizontal wall\r\n\t\t{\r\n\t\t\thorizontalWallObjects.add(instance);\r\n\t\t} else // vertical wall\r\n\t\t{\r\n\t\t\tverticalWallObjects.add(instance);\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "title": "" }, { "docid": "71eb137ef21afbd81539c272c316aca7", "score": "0.51439536", "text": "void makeMaze(int type) {\n // Generate grid of cells.\n this.cells = new ArrayList<Cell>();\n ArrayList<ArrayList<Cell>> matrix = new ArrayList<ArrayList<Cell>>();\n\n for (int r = 0; r < this.rows; r++) {\n ArrayList<Cell> row = new ArrayList<Cell>();\n for (int c = 0; c < this.cols; c++) {\n Cell cell = new Cell(r, c);\n this.cells.add(cell);\n if (r == this.rows - 1 && c == this.cols - 1) {\n cell.makeEnd();\n }\n row.add(cell);\n }\n matrix.add(row);\n }\n\n // Generate edges of random weights.\n ArrayList<Edge> edges;\n\n if (type == 0) {\n edges = this.generateEdges(matrix, 0);\n }\n else if (type > 0) {\n edges = this.generateEdges(matrix, this.weightScale);\n }\n else {\n edges = this.generateEdges(matrix, -this.weightScale);\n }\n\n // Run Kruskal's algorithm on all edges, store it for construction animation.\n this.edges = this.kruskal(this.cells, edges);\n }", "title": "" }, { "docid": "e411fc347a95a218e30fb925117c49a5", "score": "0.5143845", "text": "Maze(int rows, int cols, int notUsed) {\n this.rows = rows;\n this.cols = cols;\n this.weightScale = 50;\n this.cells = new ArrayList<Cell>();\n for (int r = 0; r < this.rows; r++) {\n for (int c = 0; c < this.cols; c++) {\n this.cells.add(new Cell(r, c));\n }\n }\n }", "title": "" }, { "docid": "7d50db959c635081298d7a50c78e9bd2", "score": "0.5143372", "text": "public GameBoard(int r, int c, int explosives)//constructor -- builds new game board\n\t{\n\t\trows = r;\n\t\tcolumns = c;\n\t\tbombCount = explosives; \n\t\tnumFlags = explosives; //have to have the same number of flags as you do bombs\n\t\toldBombCount = bombCount; //holds the place of the bomb number in case the player wants to save game\n\t\tclock = new Clock(); //lets the board have a timer\n\t\t\n\t\t\n\t\tbombIcon = new ImageIcon(\"explosion1.jpg\"); //icon for the bombs\n\t\t\n\t\tmine = new Mines(); //place bombs on the board\n\t\tmine.bombPanel(rows, columns);\n\t\tmine.addBomb(rows, columns, explosives);\n\t\tclearedCells = new boolean[rows][columns]; //finds and keeps up with the clicked and disabled locations\n\t\tcellValue = new int[rows][columns]; //how many bombs are in range \n\t\tflagPosition = new boolean[rows][columns]; //keep up with flag location\n\t\tsetCellValues(rows, columns); //labels the board with how many bombs are in range\n\t\t\n\t\t// Create GUI field of buttons.\n\t\tboard = this;\n\t\tboard.setLayout(new BorderLayout());\n\t\t\n\t\t//set the dimension of the board\n\t\tint panelX = 45 * columns;\n\t\tint panelY = 35 * rows;\n\t\tboard.setPreferredSize(new Dimension(panelX, panelY));\n\t\t\n\t\tflagLabel = new JLabel(\" \");\n\t\tflagLabel.setText(\"Flag count: \" + String.valueOf(numFlags)); //prints out the number of flags available\n\t\tunderneath = new JLabel(\"\");\n\t\tflagIcon = new ImageIcon(\"flag1.jpg\");\n\t\tunderneath.setIcon(flagIcon); //shows the flag icon\n\t\t\n\t\t// Create Save & New Game Buttons\n\t\tsaveButton = new JButton(\"Save\");\n\t\tsaveButton.addActionListener(this);\n\t\tnewButton = new JButton(\"New Game\");\n\t\tnewButton.addActionListener(this);\n\t\t\n\t\ttoolBar = new JPanel(); //holds the buttons\n\t\ttoolBar.setLayout(new GridLayout(1,5));\n\t\ttoolBar.add(clock);\n\t\ttoolBar.add(underneath);\n\t\ttoolBar.add(flagLabel);\t//flag count\n\t\ttoolBar.add(saveButton);\n\t\ttoolBar.add(newButton);\n\t\t\n\t\t\n\t\tboard.add(toolBar, BorderLayout.NORTH);\n\t\t\n\t\tboard.repaint(); //draw the new board with correct sizing\n\t\tboard.validate();\n\t\t\n\t\tmineField = new JToggleButton[rows][columns]; //the buttons you click in the game\n\t\t\n\t\tshowButtons(rows, columns);\n\t}", "title": "" }, { "docid": "f3bc7ed0fab52becf5fbaf70d7ebc977", "score": "0.5139614", "text": "public Maze(int puzzleSize)\n {\n Maze.puzzleSize = puzzleSize;\n this.board = new MazeBoardCell[puzzleSize][puzzleSize];\n for (int x = 0; x < puzzleSize; x++)\n {\n for (int y = 0; y < puzzleSize; y++)\n {\n setCell(x, y, MazeBoardCell.PATH);\n }\n }\n }", "title": "" }, { "docid": "44dd0ee8d0adc986e7011575381d6022", "score": "0.5136205", "text": "public Board() {\r\n\t\t\r\n\t\tprivate_white = new int[8][8];\r\n\t\t\r\n\t\tgameBoard = new Square[8][8];\r\n\t\twhitePlayersPieces = new HashMap<PieceType, Integer>();\r\n\t\t\r\n\t\tprivate_black = new int[8][8];\r\n\t\t\r\n\t\tblackPlayersPieces = new HashMap<PieceType, Integer>();\r\n\t\t//initializes new board sets color integer for making game board \r\n\t\tfor (int row = 0; row < 8; row++) {\r\n\t\t\tfor (int col = 0; col < 8; col++) {\r\n\t\t\t\tint color;\r\n\t\t\t\tif (row % 2 == 0) {\r\n\t\t\t\t\tif (col % 2 == 0) {\r\n\t\t\t\t\t\tcolor = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcolor = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (col % 2 == 0) {\r\n\t\t\t\t\t\tcolor = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcolor = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tgameBoard[row][col] = new Square(rowschar[col], row, col, color);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a2d1674acdf127f0c68b46b18142e469", "score": "0.5123632", "text": "public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n addObject (new Robot(), 35, 50);\n addObject (new Wall(), 750, 200);\n addObject (new Wall(), 650, 200);\n addObject (new Wall(), 0, 200);\n addObject (new Wall(), 100, 200);\n addObject (new Wall(), 200, 200);\n addObject (new Wall(), 300, 200);\n addObject (new Wall(), 350, 200);\n addObject (new Block(), 500, 200);\n addObject (new Pizza(), 500, 300);\n addObject (new Pizza(), 500, 350);\n addObject (new Pizza(), 500, 400);\n addObject (new Pizza(), 500, 450);\n addObject (new Pizza(), 500, 500);\n addObject (new Home(), 500, 550);\n }", "title": "" }, { "docid": "c3bf1e1e9d5e3130b9074bd08c894ca9", "score": "0.5118827", "text": "public void setUpBoard()\n\t{\n\t\tfor (int i = 0; i < mSize; i++) // Rows 1 - 8\n\t\t{\n\t\t\tfor (int j = 0; j < mSize; j++) // Columns a - h\n\t\t\t{\n\t\t\t\tmSpaces[j][i].removePiece();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//placing starting pieces in appropriate places\n\t\t\n\t\t\t// BLACK\n\t\tmSpaces[0][0].setPiece(new Rook(this, mSpaces[0][0], DisplayColor.Black));\n\t\tmSpaces[1][0].setPiece(new Knight(this, mSpaces[1][0], DisplayColor.Black));\n\t\tmSpaces[2][0].setPiece(new Bishop(this, mSpaces[2][0], DisplayColor.Black));\n\t\tmSpaces[3][0].setPiece(new Queen(this, mSpaces[3][0], DisplayColor.Black));\n\t\tKing blackKing = new King(this, mSpaces[4][0], DisplayColor.Black);\n\t\tmSpaces[4][0].setPiece(blackKing);\n\t\tmSpaces[5][0].setPiece(new Bishop(this, mSpaces[5][0], DisplayColor.Black));\n\t\tmSpaces[6][0].setPiece(new Knight(this, mSpaces[6][0], DisplayColor.Black));\n\t\tmSpaces[7][0].setPiece(new Rook(this, mSpaces[7][0], DisplayColor.Black));\n\t\t\n\t\tfor (int i = 0; i < mSize; i++)\n\t\t{\n\t\t\tmSpaces[i][1].setPiece(new Pawn(this, mSpaces[i][1], DisplayColor.Black));\n\t\t}\n\t\t\n\t\t\t// WHITE\n\t\t// BLACK\n\t\tmSpaces[0][7].setPiece(new Rook(this, mSpaces[0][7], DisplayColor.White));\n\t\tmSpaces[1][7].setPiece(new Knight(this, mSpaces[1][7], DisplayColor.White));\n\t\tmSpaces[2][7].setPiece(new Bishop(this, mSpaces[2][7], DisplayColor.White));\n\t\tmSpaces[3][7].setPiece(new Queen(this, mSpaces[3][7], DisplayColor.White));\n\t\tKing whiteKing = new King(this, mSpaces[4][7], DisplayColor.White);\n\t\tmSpaces[4][7].setPiece(whiteKing);\n\t\tmSpaces[5][7].setPiece(new Bishop(this, mSpaces[5][7], DisplayColor.White));\n\t\tmSpaces[6][7].setPiece(new Knight(this, mSpaces[6][7], DisplayColor.White));\n\t\tmSpaces[7][7].setPiece(new Rook(this, mSpaces[7][7], DisplayColor.White));\n\t\t\n\t\tfor (int i = 0; i < mSize; i++)\n\t\t{\n\t\t\tmSpaces[i][6].setPiece(new Pawn(this, mSpaces[i][6], DisplayColor.White));\n\t\t}\n\t\t\n\t\t//adding all pieces to array\n\t\tfor (int i = 0; i < mSize; i++) // Rows 1 - 8\n\t\t{\n\t\t\tfor (int j = 0; j < mSize; j++) // Columns a - h\n\t\t\t{\n\t\t\t\tif (mSpaces[j][i].getPiece() != null)\n\t\t\t\t{\n\t\t\t\t\tmPieces.add(mSpaces[j][i].getPiece());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//adding kings to member array\n\t\tmKings = new King[2];\n\t\tmKings[0] = blackKing;\n\t\tmKings[1] = whiteKing;\n\t\t\n\t\t//printing board to the console\n\t\t//printBoardToConsoleWithLines();\n\t\t\n\t}", "title": "" }, { "docid": "1ba20faab759617423b34588d46f1740", "score": "0.51022404", "text": "public Maze()\n {\n this.randOccupants = new ArrayList<RandomOccupant>();\n }", "title": "" }, { "docid": "2dc994957c4b37a495ee48f4ca423b9d", "score": "0.50886667", "text": "public void newBoard(){\n //initializes as empty\n for(int i = 0; i<BOARDCOLUMNS; i++){\n for(int j = 0; j<BOARDROWS; j++){\n mesh[i][j] = new Rectangle(i*BLOCKSIZE,j*BLOCKSIZE,BLOCKSIZE,BLOCKSIZE);\n mesh[i][j].setFill(EMPTYCOLOR);\n getChildren().add(mesh[i][j]);\n }\n }\n //initializes score at 0\n score = 0;\n //displays the next piece\n nextPiece();\n\n }", "title": "" }, { "docid": "3af4bbfc139b09a7c0f98667fa30f6b4", "score": "0.50880665", "text": "public void buildMaze() {\r\n Stack<Cell> cellStack = new Stack<Cell>(); // create a CellStack (LIFO) to hold a list of cell locations.\r\n int totalCells = cellArray.length; // set TotalCells= number of cells in grid.\r\n Cell currentCell = adjMatrix[0][0]; // choose the starting cell and call it currentCell.\r\n int visitedCells = 1; // set VisitedCells = 1 since it visited the starting cell.\r\n \r\n while (visitedCells< totalCells) {\r\n ArrayList<Cell> adjCellList = adjacentCells(currentCell); // find all neighbors of CurrentCell with all walls intact.\r\n Cell cellPointer = currentCell; // Points to the current cell.\r\n \r\n if (adjCellList.size()> 0 ) {\r\n cellStack.push(currentCell); // push CurrentCell location on the CellStack.\r\n int randomIndex = (int)(myRandom()*adjCellList.size()); // if one or more found choose one at random.\r\n currentCell = adjCellList.get(randomIndex); // make the new cell CurrentCell.\r\n knockDownWall(currentCell, cellPointer); // knock down the wall between it and CurrentCell.\r\n visitedCells++; // add 1 to VisitedCells.\r\n \r\n cellPointer.adjList.add(currentCell);\r\n currentCell.adjList.add(cellPointer);\r\n }\r\n else {\r\n currentCell = cellStack.pop(); // pop the most recent cell entry off the CellStack.\r\n }\r\n }\r\n adjMatrix[0][0].aboveWall = false; // marks the entrance of the maze.\r\n adjMatrix[sizeOfadjMatrix][sizeOfadjMatrix].bottomWall = false; // marks the exit of the maze.\r\n }", "title": "" }, { "docid": "e6f27dc9519f12fc893b2acb792cb283", "score": "0.50873053", "text": "public Bomberman crearBomberman(){\r\n \tBomberman b=new Bomberman(miMatriz[1][1]);\r\n \tmiMatriz[1][1].setBomberman(b);\r\n \tmiNivel.agregarEntidadGrafico(b);\r\n \treturn b;\r\n }", "title": "" }, { "docid": "45cc445b32584e91625896ff6ca6376a", "score": "0.5084544", "text": "public MineField(JLabel bombsLabel, JLabel timeLabel, JButton faceButton) {\n\n this.bombsLabel = bombsLabel;\n this.timeLabel = timeLabel;\n this.faceButton = faceButton;\n\n // check if there is a saved game or not\n if (getPrefs().getSavedGame() == null) {\n rows = getPrefs().getNumberOfRows();\n columns = getPrefs().getNumberOfColumns();\n }\n else {\n rows = getPrefs().getSavedGame().length;\n columns = getPrefs().getSavedGame()[0].length;\n firstClick = false;\n }\n\n bombs = getPrefs().getNumberOfBombs();\n currentDifficulty = getPrefs().getDifficulty();\n revealed = 0;\n timer = new Timer();\n time = 0;\n cellPanels = new MineCellPanel[rows][columns];\n cells = new MineCell[rows][columns];\n\n Player.setIsAlive(true);\n\n //create the initial empty cells\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n cellPanels[i][j] = new MineCellPanel(this, i, j, faceButton);\n cells[i][j] = new MineCell();\n }\n }\n\n //if there is a saved game, we load it and continue playing it\n if(getPrefs().getSavedGame() != null)\n loadGame();\n }", "title": "" }, { "docid": "b6202887f64de93255f78c7fcda082e1", "score": "0.5078951", "text": "public Board() {\n BOARD = new Piece[8][8];\n whitePieces = new ArrayList<>(16);\n blackPieces = new ArrayList<>(16);\n enPassantVictim = null;\n inCheck = false;\n isWhiteTurn = true;\n successfulEnPassant = false;\n promotionInProgress = false;\n moveCount = 0;\n stateCount = new HashMap<>(100);\n initialPopulate();\n }", "title": "" }, { "docid": "b68de7929e106d1793921b618736ee3f", "score": "0.50780344", "text": "public Grid(int side) {\n\n\t\t// instantiate record with all boolean values of false\n\t\t// instantiate board with all values of 0\n\t\trecord = new boolean[BOARD_DIMENSIONS][BOARD_DIMENSIONS];\n\t\tboard = new int[BOARD_DIMENSIONS][BOARD_DIMENSIONS];\n\n\t\tif (side == BLACK) {\n\t\t\tmyPiece = 1;\n\t\t\toppPiece = 2;\n\t\t\tmachine = BLACK;\n\t\t\topponent = WHITE;\n\t\t}\n\t\tif (side == WHITE) {\n\t\t\tmyPiece = 2;\n\t\t\toppPiece = 1;\n\t\t\tmachine = WHITE;\n\t\t\topponent = BLACK;\n\t\t}\n\t\tmachinePieces = 0;\n\t\ttotalPieces = 0;\n\t}", "title": "" }, { "docid": "462349e746936617347784f05f511c70", "score": "0.5061954", "text": "public NewGameBoard()\n\t{\n\t\tthis.board = new String[SIZE][SIZE];\n\t}", "title": "" }, { "docid": "db09feee842466173810848a55f3fe40", "score": "0.50604093", "text": "public MazeBuilder removeInsideWalls() {\n if (!maze.equalsPerfect()) {\n throw new IllegalStateException();\n }\n this.maze.removeInsideWalls(random);\n return this;\n }", "title": "" }, { "docid": "c28aab896a8bc21d159d30a11574adaf", "score": "0.5058549", "text": "public List<ChessPiece> createBroad() {\n listChess = new ArrayList<>();\n matrixChess = new ChessPiece[COLUMN_QUANTITY][ROW_QUANTITY];\n // add pieces\n int position = 0;\n for (int y = 0; y < COLUMN_QUANTITY; y++) {\n for (int x = 0; x < ROW_QUANTITY; x++) {\n // initialize UI position (0 -> 64) for piece\n ChessPiece chessPiece = new ChessPiece(null, x, y, position);\n listChess.add(chessPiece);\n matrixChess[y][x] = chessPiece;\n position++;\n }\n }\n\n // Start index by arraylist in 3rd and 4th rows\n int thirdRowIndex = 3 * ROW_QUANTITY;\n int fourthRowIndex = 4 * COLUMN_QUANTITY;\n ChessPiece firstWhite = listChess.get(thirdRowIndex + 3);\n firstWhite.setColor(WHITE.getValue());\n ChessPiece firstBlack = listChess.get(thirdRowIndex + 4);\n firstBlack.setColor(BLACK.getValue());\n ChessPiece secondBlack = listChess.get(fourthRowIndex + 3);\n secondBlack.setColor(BLACK.getValue());\n ChessPiece secondWhite = listChess.get(fourthRowIndex + 4);\n secondWhite.setColor(WHITE.getValue());\n\n return listChess;\n }", "title": "" }, { "docid": "13deff36cf5514607efa71745fd55b59", "score": "0.5054348", "text": "public MineField(int hSize, int vSize) {\n\t\tthis.hGridSize = hSize;\n\t\tthis.vGridSize = vSize;\n\t\t\n\t\tmineArray = new MineCell[hSize][vSize];\n\t}", "title": "" }, { "docid": "76e99a000d0f0f30fb84f53acda5ada9", "score": "0.50527817", "text": "public CheckerBoard()\r\n {\r\n art = new Canvas(\"Checker Board\", WIDTH, HEIGHT, BG);\r\n art.setVisible(true);\r\n checkerPattern(25);\r\n }", "title": "" }, { "docid": "3a7e9ff9299a6fb82afa455b4a9b14b9", "score": "0.5051574", "text": "private void createTowers() {\r\n\t\t// create black towers and set them to the initial position\r\n\t\t\r\n\t\tRectangle bOrange = new Rectangle();\r\n\t\tbOrange.setFill(Color.ORANGE);\r\n\t\tbOrange.setStroke(Color.BLACK);\r\n\t\tbOrange.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbOrange.setId(\"BORANGE\");\r\n\t\tbOrange.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbOrange.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbOrange.getTransforms().add(new Rotate(45,bOrange.getWidth()/2,(bOrange.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bOrange, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bOrange, 7, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bOrange, 0, 0);\r\n\t\t}\r\n\t\t\r\n\t\tRectangle bBlue = new Rectangle();\r\n\t\tbBlue.setFill(Color.BLUE);\r\n\t\tbBlue.setStroke(Color.BLACK);\r\n\t\tbBlue.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbBlue.setId(\"BBLUE\");\r\n\t\tbBlue.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbBlue.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbBlue.getTransforms().add(new Rotate(45,bBlue.getWidth()/2,(bBlue.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bBlue, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bBlue, 6, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bBlue, 1, 0);\r\n\t\t}\r\n\r\n\t\tRectangle bPurple = new Rectangle();\r\n\t\tbPurple.setFill(Color.PURPLE);\r\n\t\tbPurple.setStroke(Color.BLACK);\r\n\t\tbPurple.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbPurple.setId(\"BPURPLE\");\r\n\t\tbPurple.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbPurple.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbPurple.getTransforms().add(new Rotate(45,bPurple.getWidth()/2,(bPurple.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bPurple, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bPurple, 5, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bPurple, 2, 0);\r\n\t\t}\r\n\r\n\t\tRectangle bPink = new Rectangle();\r\n\t\tbPink.setFill(Color.PINK);\r\n\t\tbPink.setStroke(Color.BLACK);\r\n\t\tbPink.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbPink.setId(\"BPINK\");\r\n\t\tbPink.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbPink.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbPink.getTransforms().add(new Rotate(45,bPink.getWidth()/2,(bPink.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bPink, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bPink, 4, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bPink, 3, 0);\r\n\t\t}\r\n\r\n\t\tRectangle bYellow = new Rectangle();\r\n\t\tbYellow.setFill(Color.YELLOW);\r\n\t\tbYellow.setStroke(Color.BLACK);\r\n\t\tbYellow.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbYellow.setId(\"BYELLOW\");\r\n\t\tbYellow.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbYellow.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbYellow.getTransforms().add(new Rotate(45,bYellow.getWidth()/2,(bYellow.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bYellow, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bYellow, 3, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bYellow, 4, 0);\r\n\t\t}\r\n\r\n\t\tRectangle bRed = new Rectangle();\r\n\t\tbRed.setFill(Color.RED);\r\n\t\tbRed.setStroke(Color.BLACK);\r\n\t\tbRed.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbRed.setId(\"BRED\");\r\n\t\tbRed.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbRed.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbRed.getTransforms().add(new Rotate(45,bRed.getWidth()/2,(bRed.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bRed, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bRed, 2, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bRed, 5, 0);\r\n\t\t}\r\n\r\n\t\tRectangle bGreen = new Rectangle();\r\n\t\tbGreen.setFill(Color.GREEN);\r\n\t\tbGreen.setStroke(Color.BLACK);\r\n\t\tbGreen.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbGreen.setId(\"BGREEN\");\r\n\t\tbGreen.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbGreen.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbGreen.getTransforms().add(new Rotate(45,bGreen.getWidth()/2,(bGreen.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bGreen, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bGreen, 1, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bGreen, 6, 0);\r\n\t\t}\r\n\r\n\t\tRectangle bBrown = new Rectangle();\r\n\t\tbBrown.setFill(Color.BROWN);\r\n\t\tbBrown.setStroke(Color.BLACK);\r\n\t\tbBrown.setStrokeWidth(STROKE_WIDTH);\r\n\t\tbBrown.setId(\"BBROWN\");\r\n\t\tbBrown.setWidth(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbBrown.setHeight(FIELD_SIZE * SCALEDOWNDIAMONDS);\r\n\t\tbBrown.getTransforms().add(new Rotate(45,bBrown.getWidth()/2,(bBrown.getHeight()/2)));\r\n\t\tGridPane.setHalignment(bBrown, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(bBrown, 0, 7);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(bBrown, 7, 0);\r\n\t\t}\r\n\r\n\t\t// create white towers and set them to the initial position\r\n\t\tCircle wOrange = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twOrange.setFill(Color.ORANGE);\r\n\t\twOrange.setStroke(Color.BLACK);\r\n\t\twOrange.setStrokeWidth(STROKE_WIDTH);\r\n\t\twOrange.setId(\"WORANGE\");\r\n\t\tGridPane.setHalignment(wOrange, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wOrange, 0, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wOrange, 7, 7);\r\n\t\t}\r\n\r\n\t\tCircle wBlue = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twBlue.setFill(Color.BLUE);\r\n\t\twBlue.setStroke(Color.BLACK);\r\n\t\twBlue.setStrokeWidth(STROKE_WIDTH);\r\n\t\twBlue.setId(\"WBLUE\");\r\n\t\tGridPane.setHalignment(wBlue, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wBlue, 1, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wBlue, 6, 7);\r\n\t\t}\r\n\r\n\t\tCircle wPurple = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twPurple.setFill(Color.PURPLE);\r\n\t\twPurple.setStroke(Color.BLACK);\r\n\t\twPurple.setStrokeWidth(STROKE_WIDTH);\r\n\t\twPurple.setId(\"WPURPLE\");\r\n\t\tGridPane.setHalignment(wPurple, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wPurple, 2, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wPurple, 5, 7);\r\n\t\t}\r\n\r\n\t\tCircle wPink = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twPink.setFill(Color.PINK);\r\n\t\twPink.setStroke(Color.BLACK);\r\n\t\twPink.setStrokeWidth(STROKE_WIDTH);\r\n\t\twPink.setId(\"WPINK\");\r\n\t\tGridPane.setHalignment(wPink, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wPink, 3, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wPink, 4, 7);\r\n\t\t}\r\n\r\n\t\tCircle wYellow = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twYellow.setFill(Color.YELLOW);\r\n\t\twYellow.setStroke(Color.BLACK);\r\n\t\twYellow.setStrokeWidth(STROKE_WIDTH);\r\n\t\twYellow.setId(\"WYELLOW\");\r\n\t\tGridPane.setHalignment(wYellow, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wYellow, 4, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wYellow, 3, 7);\r\n\t\t}\r\n\r\n\t\tCircle wRed = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twRed.setFill(Color.RED);\r\n\t\twRed.setStroke(Color.BLACK);\r\n\t\twRed.setStrokeWidth(STROKE_WIDTH);\r\n\t\twRed.setId(\"WRED\");\r\n\t\tGridPane.setHalignment(wRed, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wRed, 5, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wRed, 2, 7);\r\n\t\t}\r\n\r\n\t\tCircle wGreen = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twGreen.setFill(Color.GREEN);\r\n\t\twGreen.setStroke(Color.BLACK);\r\n\t\twGreen.setStrokeWidth(STROKE_WIDTH);\r\n\t\twGreen.setId(\"WGREEN\");\r\n\t\tGridPane.setHalignment(wGreen, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wGreen, 6, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wGreen, 1, 7);\r\n\t\t}\r\n\r\n\t\tCircle wBrown = new Circle(FIELD_SIZE * SCALEDOWNCIRCLES);\r\n\t\twBrown.setFill(Color.BROWN);\r\n\t\twBrown.setStroke(Color.BLACK);\r\n\t\twBrown.setStrokeWidth(STROKE_WIDTH);\r\n\t\twBrown.setId(\"WBROWN\");\r\n\t\tGridPane.setHalignment(wBrown, HPos.CENTER);\r\n\t\tif(model.black) {\r\n\t\t\tgameBoard.add(wBrown, 7, 0);\r\n\t\t}else {\r\n\t\t\tgameBoard.add(wBrown, 0, 7);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "50a0868752d8cd9b7eee015aa95aac1e", "score": "0.5050552", "text": "private void createWalls(){\n\t\tfor(int i = -1 + -(colosseumWidth/Barrier.barrierWidth)/2; i < (colosseumWidth/Barrier.barrierWidth)/2 + 1;i++){\n\t\t\tworldObjects.add(new Barrier(barrierTex,i*Barrier.barrierWidth,-colosseumHeight/2 + Barrier.barrierHeight/2,0,gameTimer,3));\n\t\t\tworldObjects.add(new Barrier(barrierTex,i*Barrier.barrierWidth,colosseumHeight/2 - Barrier.barrierHeight/2,0,gameTimer,1));\n\t\t}\n\t\t// left and right wall\n\t\tfor(int i = -1 + -(colosseumHeight/Barrier.barrierHeight)/2; i < (colosseumHeight/Barrier.barrierHeight)/2 + 2;i++){\n\t\t\tworldObjects.add(new Barrier(barrierTex,-colosseumWidth/2 + Barrier.barrierWidth/2,i*Barrier.barrierWidth,0,gameTimer,0));\n\t\t\tworldObjects.add(new Barrier(barrierTex,colosseumWidth/2 - 3*Barrier.barrierWidth/2,i*Barrier.barrierWidth,0,gameTimer,2));\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5e785d4b692435281f43f299abb311f1", "score": "0.5050112", "text": "protected void create2() {\n int a = 0;\n for (int i = 0; i < length; i++) {\n state.add(new ArrayList<>());\n for (int q = 0; q < length; q++) {\n state.get(i).add(new Grid());\n if (q > a) {\n state.get(i).get(q).isValid = false;\n }\n }\n a++;\n }\n }", "title": "" }, { "docid": "404b1bc47f20bc583c8036c6b10b5ffe", "score": "0.50424427", "text": "@Test\n public void firstPutFlag3x3Board9Bombs() {\n CellType[][] boardTest9BombsFlag = {\n {CellType.BOMB, CellType.BOMB, CellType.BOMB},\n {CellType.BOMB, CellType.BOMB, CellType.BOMB},\n {CellType.BOMB, CellType.BOMB, CellType.BOMB}\n };\n\n Minesweeper game9BombsFlag = new Minesweeper(boardTest9BombsFlag);\n\n CellType[][] boardFinal9BombsFlag = {\n {CellType.BOMB, CellType.BOMB, CellType.BOMB},\n {CellType.BOMB, CellType.FLAG_BOMB, CellType.BOMB},\n {CellType.BOMB, CellType.BOMB, CellType.BOMB}\n };\n\n assertArrayEquals(boardFinal9BombsFlag, game9BombsFlag.putFlag(1, 1),\n \"The board is not the same\");\n\n\n }", "title": "" }, { "docid": "cab48c45d6a8ead989a5fed217639dc8", "score": "0.50413626", "text": "public KnightsBoard() {\n\n\t\tboard = new PieceInterface[8][8];\n\n\t\tboard[rand7][rand3] = new Knight(Player.BLACK);\n\n\t\tif (board[rand1][rand5] != null) {\n\t\t\tboard[rand1 + 1][rand5] = new Knight(Player.BLACK);\n\t\t} else {\n\t\t\tboard[rand1][rand5] = new Knight(Player.BLACK);\n\t\t}\n\n\t\tif (board[rand6][rand1] != null) {\n\t\t\tboard[rand6 + 1][rand1] = new Knight(Player.BLACK);\n\t\t} else {\n\t\t\tboard[rand6][rand1] = new Knight(Player.BLACK);\n\t\t}\n\n\t\tif (board[rand4][rand6] != null) {\n\t\t\tboard[rand4 + 1][rand6] = new Knight(Player.BLACK);\n\t\t} else {\n\t\t\tboard[rand4][rand6] = new Knight(Player.BLACK);\n\t\t}\n\n\t\t// White\n\t\tif (board[rand5][rand8] != null) {\n\t\t\tboard[rand5 + 1][rand8] = new Knight(Player.WHITE);\n\t\t} else {\n\t\t\tboard[rand5][rand8] = new Knight(Player.WHITE);\n\t\t}\n\n\t\tif (board[rand3][rand2] != null) {\n\t\t\tboard[rand3 + 1][rand2] = new Knight(Player.WHITE);\n\t\t} else {\n\t\t\tboard[rand3][rand2] = new Knight(Player.WHITE);\n\t\t}\n\n\t\tif (board[rand2][rand7] != null) {\n\t\t\tboard[rand2 + 1][rand7] = new Knight(Player.WHITE);\n\t\t} else {\n\t\t\tboard[rand2][rand7] = new Knight(Player.WHITE);\n\t\t}\n\n\t\tif (board[rand8][rand4] != null && rand8 != 7) {\n\t\t\tboard[rand8 + 1][rand4] = new Knight(Player.WHITE);\n\t\t} else {\n\t\t\tboard[rand8][rand4] = new Knight(Player.WHITE);\n\t\t}\n\n\t}", "title": "" }, { "docid": "835bbf30b57c35c763c55fc47f3f1c4f", "score": "0.50404066", "text": "private void createBricks()\r\n\t{\r\n\t\tint counter = 0;\r\n\t\tint x_space = 0;\r\n\t\tint y_space = 0;\r\n\t\tfor(int x = 0; x < 4; x++)\r\n\t\t{\r\n\t\t\tfor(int y = 0; y < 5; y++)\r\n\t\t\t{\r\n\t\t\t\tbricks[counter] = new Brick((x * Settings.BRICK_WIDTH) + Settings.BRICK_HORI_PADDING + x_space, (y * Settings.BRICK_HEIGHT) + Settings.BRICK_VERT_PADDING + y_space);\r\n\t\t\t\tcounter++;\r\n\t\t\t\ty_space++;\r\n\t\t\t}\r\n\t\t\tx_space++;\r\n\t\t\ty_space = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e8b29fe4aa1302edc7a8dac323b5e23a", "score": "0.5039243", "text": "public Maze(int numRows, int numCols) {\n maze = new ArrayList<List<Integer>>(numRows);\n final List<Integer> wall = new ArrayList<>(numCols);\n for(int i=0; i < numCols; ++i) {\n wall.add(WALL);\n }\n for (int i=0; i < numRows; ++i) {\n final List<Integer> row = new ArrayList<>(wall);\n maze.add(row);\n }\n }", "title": "" }, { "docid": "ef9db2175e89088d472df3fe48e54b0a", "score": "0.5037398", "text": "@Override\n\tpublic void makeWall() {\n\t\thouse.setWall(\"公寓->墙壁\");\n\t}", "title": "" }, { "docid": "67a34178397ad6cde6940f2ba4cdb2db", "score": "0.5036832", "text": "private void createAndPlaceMineNeighbours() \n {\n for (int row = 0; row < numRows; row++) \n {\n for (int column = 0; column < numColumns; column++) \n {\n updateIfMineNeighbour(row, column);\n }\n }\n }", "title": "" }, { "docid": "2cdccfc0230a3dcb394bf618d3864ce9", "score": "0.50356203", "text": "public AndroidShipBoard()\r\n {\r\n shipCells = new Cell[10][10];\r\n setCellsToWater();\r\n placeShips();\r\n }", "title": "" }, { "docid": "2f7f30938334b92c8824859ae50942d1", "score": "0.5034662", "text": "private void buildMembrane(){\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Method Code\">\r\n float zmem = 0.1f;\r\n innerAppearance = new Appearance();\r\n innerAppearance.setMaterial(makeMaterial(innerColor, innerShininess));\r\n innerAppearance.setCapability(Appearance.ALLOW_MATERIAL_WRITE);\r\n \r\n outerAppearance = new Appearance();\r\n outerAppearance.setMaterial(makeMaterial(outerColor, outerShininess));\r\n outerAppearance.setCapability(Appearance.ALLOW_MATERIAL_WRITE);\r\n \r\n Box box = new Box(x, y, zmem, outerAppearance);\r\n box.getShape(Box.FRONT).setAppearance(innerAppearance);\r\n box.setCapability(Box.ENABLE_APPEARANCE_MODIFY);\r\n \r\n // Make box transformgroup\r\n Transform3D boxt3d = new Transform3D();\r\n boxt3d.setTranslation(new Vector3f(0f,0f,-zmem));\r\n TransformGroup boxTG = new TransformGroup(boxt3d);\r\n \r\n boxTG.addChild(box);\r\n this.addChild(boxTG);\r\n // </editor-fold>\r\n }", "title": "" }, { "docid": "6bd8ebdd82c4ba4f6840c3d791488db6", "score": "0.5034384", "text": "public BlockGrid() {\n\n }", "title": "" }, { "docid": "31ab0b76dad1d2e25cbe8168d6a89fee", "score": "0.502809", "text": "public static Maze generateNewMaze(int rows, int cols, MazeWindow window){\n Maze maze = new RandomMaze(rows,cols,window);\n return maze;\n }", "title": "" } ]
58265368f8a6d47761bb189832182022
Standard list metadata. More info: +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
[ { "docid": "c951dd224d44ca87a76bff58ae5df8b3", "score": "0.0", "text": "public boolean hasMetadata() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" } ]
[ { "docid": "a445f29f295c225502bc002550955a9b", "score": "0.84906906", "text": "io.kubernetes.client.proto.Meta.ListMeta getMetadata();", "title": "" }, { "docid": "a445f29f295c225502bc002550955a9b", "score": "0.84906906", "text": "io.kubernetes.client.proto.Meta.ListMeta getMetadata();", "title": "" }, { "docid": "a445f29f295c225502bc002550955a9b", "score": "0.84906906", "text": "io.kubernetes.client.proto.Meta.ListMeta getMetadata();", "title": "" }, { "docid": "a445f29f295c225502bc002550955a9b", "score": "0.84906906", "text": "io.kubernetes.client.proto.Meta.ListMeta getMetadata();", "title": "" }, { "docid": "a445f29f295c225502bc002550955a9b", "score": "0.84906906", "text": "io.kubernetes.client.proto.Meta.ListMeta getMetadata();", "title": "" }, { "docid": "a445f29f295c225502bc002550955a9b", "score": "0.84906906", "text": "io.kubernetes.client.proto.Meta.ListMeta getMetadata();", "title": "" }, { "docid": "71cf7373b7780c60810876af19b6324c", "score": "0.8325512", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "71cf7373b7780c60810876af19b6324c", "score": "0.8325512", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "71cf7373b7780c60810876af19b6324c", "score": "0.8324651", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "71cf7373b7780c60810876af19b6324c", "score": "0.8324651", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "71cf7373b7780c60810876af19b6324c", "score": "0.8324375", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "71cf7373b7780c60810876af19b6324c", "score": "0.8324375", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "ad7a522900a49c9b5730e03e3283a75d", "score": "0.83045715", "text": "io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "ad7a522900a49c9b5730e03e3283a75d", "score": "0.83045715", "text": "io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "ad7a522900a49c9b5730e03e3283a75d", "score": "0.83045715", "text": "io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "ad7a522900a49c9b5730e03e3283a75d", "score": "0.83045715", "text": "io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "ad7a522900a49c9b5730e03e3283a75d", "score": "0.83045715", "text": "io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "ad7a522900a49c9b5730e03e3283a75d", "score": "0.83045715", "text": "io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "d0436bbad82435ca1d3a57eb72a97041", "score": "0.8197893", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "d0436bbad82435ca1d3a57eb72a97041", "score": "0.8197893", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "d0436bbad82435ca1d3a57eb72a97041", "score": "0.8196291", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "d0436bbad82435ca1d3a57eb72a97041", "score": "0.8196095", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "d0436bbad82435ca1d3a57eb72a97041", "score": "0.8196095", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "d0436bbad82435ca1d3a57eb72a97041", "score": "0.8196095", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }", "title": "" }, { "docid": "568b943e190c2e135eedfb8ad351fd48", "score": "0.79591405", "text": "@Deprecated\n public V1ListMeta getMetadata();", "title": "" }, { "docid": "c810cf052ea61f78dce3d844c8f093c9", "score": "0.7936781", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c810cf052ea61f78dce3d844c8f093c9", "score": "0.7936781", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c810cf052ea61f78dce3d844c8f093c9", "score": "0.7936448", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c810cf052ea61f78dce3d844c8f093c9", "score": "0.7936448", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c810cf052ea61f78dce3d844c8f093c9", "score": "0.7936446", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c810cf052ea61f78dce3d844c8f093c9", "score": "0.7936446", "text": "public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "19183995f323f73248c6a87d603a0068", "score": "0.79067034", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n if (metadataBuilder_ != null) {\n return metadataBuilder_.getMessageOrBuilder();\n } else {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }\n }", "title": "" }, { "docid": "19183995f323f73248c6a87d603a0068", "score": "0.790665", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n if (metadataBuilder_ != null) {\n return metadataBuilder_.getMessageOrBuilder();\n } else {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }\n }", "title": "" }, { "docid": "19183995f323f73248c6a87d603a0068", "score": "0.790665", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n if (metadataBuilder_ != null) {\n return metadataBuilder_.getMessageOrBuilder();\n } else {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }\n }", "title": "" }, { "docid": "19183995f323f73248c6a87d603a0068", "score": "0.7906588", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n if (metadataBuilder_ != null) {\n return metadataBuilder_.getMessageOrBuilder();\n } else {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }\n }", "title": "" }, { "docid": "19183995f323f73248c6a87d603a0068", "score": "0.7906325", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n if (metadataBuilder_ != null) {\n return metadataBuilder_.getMessageOrBuilder();\n } else {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }\n }", "title": "" }, { "docid": "19183995f323f73248c6a87d603a0068", "score": "0.7906325", "text": "public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {\n if (metadataBuilder_ != null) {\n return metadataBuilder_.getMessageOrBuilder();\n } else {\n return metadata_ == null\n ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()\n : metadata_;\n }\n }", "title": "" }, { "docid": "833ddb97165aee29982605db76ece5af", "score": "0.76260793", "text": "public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "833ddb97165aee29982605db76ece5af", "score": "0.76260793", "text": "public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "833ddb97165aee29982605db76ece5af", "score": "0.76257354", "text": "public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "833ddb97165aee29982605db76ece5af", "score": "0.76252735", "text": "public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "833ddb97165aee29982605db76ece5af", "score": "0.76252735", "text": "public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "833ddb97165aee29982605db76ece5af", "score": "0.76252735", "text": "public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "5eef35dfa8b10becc52b633809500e24", "score": "0.7467758", "text": "com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta();", "title": "" }, { "docid": "5eef35dfa8b10becc52b633809500e24", "score": "0.7467758", "text": "com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta();", "title": "" }, { "docid": "a45aa40a607b74775e9e3c923088a214", "score": "0.74321085", "text": "com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "a45aa40a607b74775e9e3c923088a214", "score": "0.74321085", "text": "com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "71b11be91bbf840272b1862a532aad36", "score": "0.73265624", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta() {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "71b11be91bbf840272b1862a532aad36", "score": "0.73265624", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta() {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "c64878406f6d92d8af7dbb8088b8ffaa", "score": "0.7230576", "text": "com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta();", "title": "" }, { "docid": "c64878406f6d92d8af7dbb8088b8ffaa", "score": "0.7230576", "text": "com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta();", "title": "" }, { "docid": "84090add0263dca39a1e7dc5cf9e1296", "score": "0.720842", "text": "public com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "84090add0263dca39a1e7dc5cf9e1296", "score": "0.720842", "text": "public com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "6cfc33f4c8b48a83c0070df9b76e2259", "score": "0.7194641", "text": "List<Object> getMetaData();", "title": "" }, { "docid": "953efbafa7958164e5d6e8b4318c0544", "score": "0.71844", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder() {\n return getMeta();\n }", "title": "" }, { "docid": "953efbafa7958164e5d6e8b4318c0544", "score": "0.71844", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder() {\n return getMeta();\n }", "title": "" }, { "docid": "bb792fd2d1512ff8ba319d82d877b7e9", "score": "0.71452343", "text": "com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "bb792fd2d1512ff8ba319d82d877b7e9", "score": "0.71452343", "text": "com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "1d57f3c2af9f621924204e34e970e63d", "score": "0.7137149", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta() {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "1d57f3c2af9f621924204e34e970e63d", "score": "0.7137149", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta() {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "ff10bc6951fe125125f992ec45083370", "score": "0.7082956", "text": "public com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder() {\n if (metaBuilder_ != null) {\n return metaBuilder_.getMessageOrBuilder();\n } else {\n return meta_ == null ?\n com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_;\n }\n }", "title": "" }, { "docid": "ff10bc6951fe125125f992ec45083370", "score": "0.7082956", "text": "public com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder() {\n if (metaBuilder_ != null) {\n return metaBuilder_.getMessageOrBuilder();\n } else {\n return meta_ == null ?\n com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_;\n }\n }", "title": "" }, { "docid": "5d41309a2d2c70c7e615e4291194d469", "score": "0.70517373", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() {\n return getMeta();\n }", "title": "" }, { "docid": "5d41309a2d2c70c7e615e4291194d469", "score": "0.70517373", "text": "@java.lang.Override\n public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() {\n return getMeta();\n }", "title": "" }, { "docid": "209efb9d1ab9da0dd5a45fef11e20b2c", "score": "0.7008976", "text": "public List<Metadata> getMetadata() {\n return this._metadataList;\n }", "title": "" }, { "docid": "e9ce911ae38c0557db16d69be6c9b0be", "score": "0.6990637", "text": "public com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "e9ce911ae38c0557db16d69be6c9b0be", "score": "0.6990637", "text": "public com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "07ad08766b4cf751c4b32c2a358ef4db", "score": "0.69761914", "text": "ListTableMetadataResult listTableMetadata(ListTableMetadataRequest listTableMetadataRequest);", "title": "" }, { "docid": "78f27dbefecab685efb32eea7676ae2d", "score": "0.6967866", "text": "public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() {\n if (metaBuilder_ != null) {\n return metaBuilder_.getMessageOrBuilder();\n } else {\n return meta_ == null ?\n com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_;\n }\n }", "title": "" }, { "docid": "78f27dbefecab685efb32eea7676ae2d", "score": "0.6967866", "text": "public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() {\n if (metaBuilder_ != null) {\n return metaBuilder_.getMessageOrBuilder();\n } else {\n return meta_ == null ?\n com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_;\n }\n }", "title": "" }, { "docid": "a0ed9ff0da2db54b8d6975bad3b0a2fc", "score": "0.69404495", "text": "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "title": "" }, { "docid": "a0ed9ff0da2db54b8d6975bad3b0a2fc", "score": "0.69404495", "text": "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "title": "" }, { "docid": "a0ed9ff0da2db54b8d6975bad3b0a2fc", "score": "0.69404495", "text": "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "title": "" }, { "docid": "a0ed9ff0da2db54b8d6975bad3b0a2fc", "score": "0.69404495", "text": "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "title": "" }, { "docid": "e39bdc2f7920cb5046d0a929ad6d1208", "score": "0.6861891", "text": "public ThinVolumeEx metadata(List<VolumeMetadataItem> metadata) {\n this.metadata = metadata;\n return this;\n }", "title": "" }, { "docid": "bda8b52f3ae27deba1791b7e37b1e46d", "score": "0.6772624", "text": "public com.google.protobuf.ProtocolStringList\n getMetadataList() {\n return metadata_;\n }", "title": "" }, { "docid": "a43667df48f29651bb64a543e72972fa", "score": "0.6621532", "text": "public Builder setMeta(com.strongdm.api.plumbing.Spec.ListRequestMetadata value) {\n if (metaBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n meta_ = value;\n onChanged();\n } else {\n metaBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "a43667df48f29651bb64a543e72972fa", "score": "0.6621532", "text": "public Builder setMeta(com.strongdm.api.plumbing.Spec.ListRequestMetadata value) {\n if (metaBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n meta_ = value;\n onChanged();\n } else {\n metaBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.66172826", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.66172826", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.66172826", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.66172826", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "47b6f47f98f15043c5fba586262c34f5", "score": "0.6511001", "text": "public com.google.protobuf.ProtocolStringList\n getMetadataList() {\n return metadata_.getUnmodifiableView();\n }", "title": "" }, { "docid": "5c614def4d6c6df2e60e696e4bb69fe9", "score": "0.650999", "text": "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "5c614def4d6c6df2e60e696e4bb69fe9", "score": "0.650999", "text": "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "5c614def4d6c6df2e60e696e4bb69fe9", "score": "0.650999", "text": "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "5c614def4d6c6df2e60e696e4bb69fe9", "score": "0.650999", "text": "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "b86bc51283ba2021234d757548ca09b2", "score": "0.6497883", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "b86bc51283ba2021234d757548ca09b2", "score": "0.6497883", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "b86bc51283ba2021234d757548ca09b2", "score": "0.6497883", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "b86bc51283ba2021234d757548ca09b2", "score": "0.6497883", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "title": "" }, { "docid": "cb3cff55f383caadf00783ed98dfc1d2", "score": "0.6468988", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "cb3cff55f383caadf00783ed98dfc1d2", "score": "0.6468988", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "cb3cff55f383caadf00783ed98dfc1d2", "score": "0.6468988", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "cb3cff55f383caadf00783ed98dfc1d2", "score": "0.6468988", "text": "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "71a9872f8f57a184825e34d1b872317d", "score": "0.6450726", "text": "public abstract List<? extends Meta> getMetaList(String path);", "title": "" }, { "docid": "e04fdfddc1f38a991fb2798e4820d38c", "score": "0.64201796", "text": "ListNotebookMetadataResult listNotebookMetadata(ListNotebookMetadataRequest listNotebookMetadataRequest);", "title": "" }, { "docid": "97f0e52a07e5e65c84eb85c184cefe80", "score": "0.64170235", "text": "public List<MetadataItem> metadata() {\n return this.metadata;\n }", "title": "" }, { "docid": "473566733899e2af777d33a01af430f2", "score": "0.63709384", "text": "public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (((bitField0_ & 0x00000001) == 0x00000001)\n && metadata_ != null\n && metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {\n metadata_ =\n io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_)\n .mergeFrom(value)\n .buildPartial();\n } else {\n metadata_ = value;\n }\n onChanged();\n } else {\n metadataBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "473566733899e2af777d33a01af430f2", "score": "0.63709384", "text": "public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (((bitField0_ & 0x00000001) == 0x00000001)\n && metadata_ != null\n && metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {\n metadata_ =\n io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_)\n .mergeFrom(value)\n .buildPartial();\n } else {\n metadata_ = value;\n }\n onChanged();\n } else {\n metadataBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "473566733899e2af777d33a01af430f2", "score": "0.63677436", "text": "public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {\n if (metadataBuilder_ == null) {\n if (((bitField0_ & 0x00000001) == 0x00000001)\n && metadata_ != null\n && metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {\n metadata_ =\n io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_)\n .mergeFrom(value)\n .buildPartial();\n } else {\n metadata_ = value;\n }\n onChanged();\n } else {\n metadataBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" } ]
f109a496e5f2a778806c684d55df25bc
repeated .DRG0102U01GrdMasterItemInfo grd_master_item_info = 1;
[ { "docid": "d9d0e4985f42ddafb0685bf794c0d95a", "score": "0.56481117", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder> \n getGrdMasterItemInfoOrBuilderList() {\n if (grdMasterItemInfoBuilder_ != null) {\n return grdMasterItemInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(grdMasterItemInfo_);\n }\n }", "title": "" } ]
[ { "docid": "477ca82e168f95d45af9975daf2b4d02", "score": "0.64189917", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo getGrdMasterItemInfo(int index);", "title": "" }, { "docid": "477ca82e168f95d45af9975daf2b4d02", "score": "0.6417979", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo getGrdMasterItemInfo(int index);", "title": "" }, { "docid": "13c7b8d4f5ad3391c522c00f97d9ab75", "score": "0.6013722", "text": "int getGrdMasterItemInfoCount();", "title": "" }, { "docid": "13c7b8d4f5ad3391c522c00f97d9ab75", "score": "0.6012357", "text": "int getGrdMasterItemInfoCount();", "title": "" }, { "docid": "cb223038aeda6f9fc6f532ea52dd996f", "score": "0.58414114", "text": "nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo getGrdMasterItem(int index);", "title": "" }, { "docid": "70c8bcd968c91ff0cab8f057c60e04dc", "score": "0.5801709", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo getGrdMasterItemInfo(int index) {\n if (grdMasterItemInfoBuilder_ == null) {\n return grdMasterItemInfo_.get(index);\n } else {\n return grdMasterItemInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "70c8bcd968c91ff0cab8f057c60e04dc", "score": "0.58008206", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo getGrdMasterItemInfo(int index) {\n if (grdMasterItemInfoBuilder_ == null) {\n return grdMasterItemInfo_.get(index);\n } else {\n return grdMasterItemInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "c41284d177548726a51e5912154ac22a", "score": "0.5746713", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder getGrdMasterItemInfoOrBuilder(\n int index) {\n return grdMasterItemInfo_.get(index);\n }", "title": "" }, { "docid": "c41284d177548726a51e5912154ac22a", "score": "0.5744936", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder getGrdMasterItemInfoOrBuilder(\n int index) {\n return grdMasterItemInfo_.get(index);\n }", "title": "" }, { "docid": "dc1979a2bbb9ee97314659e94f2435f3", "score": "0.574426", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder getGrdMasterItemInfoOrBuilder(\n int index) {\n if (grdMasterItemInfoBuilder_ == null) {\n return grdMasterItemInfo_.get(index); } else {\n return grdMasterItemInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "dc1979a2bbb9ee97314659e94f2435f3", "score": "0.5742617", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder getGrdMasterItemInfoOrBuilder(\n int index) {\n if (grdMasterItemInfoBuilder_ == null) {\n return grdMasterItemInfo_.get(index); } else {\n return grdMasterItemInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "b1cd9a4f408aa90c1d6563fe84f0bfa9", "score": "0.57285196", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo getGrdMasterItemInfo(int index) {\n return grdMasterItemInfo_.get(index);\n }", "title": "" }, { "docid": "b1cd9a4f408aa90c1d6563fe84f0bfa9", "score": "0.5727707", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo getGrdMasterItemInfo(int index) {\n return grdMasterItemInfo_.get(index);\n }", "title": "" }, { "docid": "dd54e1a68d511c7534d28f0725158d57", "score": "0.5722075", "text": "nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo getGrdMaster(int index);", "title": "" }, { "docid": "a9a4a8e42d54dbeb7abc84f6c0d03984", "score": "0.56917167", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.Builder addGrdMasterItemInfoBuilder() {\n return getGrdMasterItemInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "a9a4a8e42d54dbeb7abc84f6c0d03984", "score": "0.5691408", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.Builder addGrdMasterItemInfoBuilder() {\n return getGrdMasterItemInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "c5832dd388abadec042eb948654c9b11", "score": "0.56563675", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder> \n getGrdMasterItemInfoOrBuilderList();", "title": "" }, { "docid": "c5832dd388abadec042eb948654c9b11", "score": "0.56539476", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder> \n getGrdMasterItemInfoOrBuilderList();", "title": "" }, { "docid": "da89532cca64e9fbd5c334fd86734b9f", "score": "0.5640742", "text": "public int getGrdMasterItemInfoCount() {\n return grdMasterItemInfo_.size();\n }", "title": "" }, { "docid": "da89532cca64e9fbd5c334fd86734b9f", "score": "0.5639251", "text": "public int getGrdMasterItemInfoCount() {\n return grdMasterItemInfo_.size();\n }", "title": "" }, { "docid": "c53c38120794da92822c1f7d11d4dbc1", "score": "0.55635816", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo getGrdDetailItemInfo(int index);", "title": "" }, { "docid": "c53c38120794da92822c1f7d11d4dbc1", "score": "0.55635816", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo getGrdDetailItemInfo(int index);", "title": "" }, { "docid": "ecd989d0541c5c6b637ad6702d38216c", "score": "0.55537194", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder> \n getGrdMasterItemInfoOrBuilderList() {\n return grdMasterItemInfo_;\n }", "title": "" }, { "docid": "ecd989d0541c5c6b637ad6702d38216c", "score": "0.55524373", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder> \n getGrdMasterItemInfoOrBuilderList() {\n return grdMasterItemInfo_;\n }", "title": "" }, { "docid": "e2aeebdf163501deec192191a6e5f0f7", "score": "0.55211437", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder getGrdMasterItemOrBuilder(\n int index) {\n return grdMasterItem_.get(index);\n }", "title": "" }, { "docid": "5229b6b5d2e6819626bf455f1f2ffa76", "score": "0.5506233", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder getGrdMasterOrBuilder(\n int index) {\n return grdMaster_.get(index);\n }", "title": "" }, { "docid": "0fcc877cab5a2b35140956b45751a664", "score": "0.5494981", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder getGrdMasterItemInfoOrBuilder(\n int index);", "title": "" }, { "docid": "0fcc877cab5a2b35140956b45751a664", "score": "0.5493675", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfoOrBuilder getGrdMasterItemInfoOrBuilder(\n int index);", "title": "" }, { "docid": "5ce63817d71eabc9d0da015ac74e4157", "score": "0.54601264", "text": "java.util.List<? extends nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder> \n getGrdMasterItemOrBuilderList();", "title": "" }, { "docid": "54dcbb103657f28a680a12c2dd423b9f", "score": "0.54552054", "text": "java.util.List<nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo> \n getGrdMasterItemList();", "title": "" }, { "docid": "b3d79f611efe4581cfe6d9407483da23", "score": "0.54258734", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder getGrdMasterItemOrBuilder(\n int index) {\n if (grdMasterItemBuilder_ == null) {\n return grdMasterItem_.get(index); } else {\n return grdMasterItemBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "55b2e53cd9e4d9de4af6446ea84d8954", "score": "0.5416363", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo getGrdDetailItem(int index);", "title": "" }, { "docid": "76d580496fa0687bdafca8f914e637e8", "score": "0.53987896", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo> \n getGrdMasterItemInfoList();", "title": "" }, { "docid": "76d580496fa0687bdafca8f914e637e8", "score": "0.5396788", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo> \n getGrdMasterItemInfoList();", "title": "" }, { "docid": "ff6dd81ae1420cc91a436931bf0b7f74", "score": "0.5368529", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo getGrdMasterItem(int index) {\n return grdMasterItem_.get(index);\n }", "title": "" }, { "docid": "b47a7e581047134f2c0051793665e049", "score": "0.53514504", "text": "int getGrdMasterItemCount();", "title": "" }, { "docid": "07cf114013b992caed4fe841670e2235", "score": "0.5329498", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder getGrdMasterOrBuilder(\n int index) {\n if (grdMasterBuilder_ == null) {\n return grdMaster_.get(index); } else {\n return grdMasterBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "251d6ec7acd51bb2c3d00fb73ce510c8", "score": "0.5313076", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo> getGrdMasterItemInfoList() {\n return grdMasterItemInfo_;\n }", "title": "" }, { "docid": "251d6ec7acd51bb2c3d00fb73ce510c8", "score": "0.53123605", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo> getGrdMasterItemInfoList() {\n return grdMasterItemInfo_;\n }", "title": "" }, { "docid": "5fdb9bb4a2223d27e60cb9255d05699a", "score": "0.52827257", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfoOrBuilder getGrdDetailItemOrBuilder(\n int index) {\n return grdDetailItem_.get(index);\n }", "title": "" }, { "docid": "e7a55fa3f0cc6b7c73bce65482ad63a7", "score": "0.52803093", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo getGrdMaster(int index) {\n return grdMaster_.get(index);\n }", "title": "" }, { "docid": "41f33d756048af0bc0b8ac17b6ee1d52", "score": "0.5279741", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo.Builder addGrdMasterItemBuilder() {\n return getGrdMasterItemFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "e2384d8c7ac5482398c83a07b21c9d77", "score": "0.52661586", "text": "com.google.protobuf.ByteString getField12981();", "title": "" }, { "docid": "39e1640e890ac28f98c1131e06dff608", "score": "0.5265469", "text": "public Builder clearGrdMasterItemInfo() {\n if (grdMasterItemInfoBuilder_ == null) {\n grdMasterItemInfo_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n grdMasterItemInfoBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "d90f2ea869f551ae4e04d1661930af78", "score": "0.5258614", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo getGrdMasterItem(int index) {\n if (grdMasterItemBuilder_ == null) {\n return grdMasterItem_.get(index);\n } else {\n return grdMasterItemBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "94cff19310088d7a1bd62fe786c71bcf", "score": "0.5256344", "text": "com.google.protobuf.ByteString getField2374();", "title": "" }, { "docid": "cdc0603423b73a87dbce71f25d9ac36e", "score": "0.5253912", "text": "public Builder clearGrdMasterItemInfo() {\n if (grdMasterItemInfoBuilder_ == null) {\n grdMasterItemInfo_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n grdMasterItemInfoBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "34349ee980abe65b412b5591c53a8818", "score": "0.5236166", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfoOrBuilder getGrdDetailItemInfoOrBuilder(\n int index) {\n if (grdDetailItemInfoBuilder_ == null) {\n return grdDetailItemInfo_.get(index); } else {\n return grdDetailItemInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "34349ee980abe65b412b5591c53a8818", "score": "0.5236166", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfoOrBuilder getGrdDetailItemInfoOrBuilder(\n int index) {\n if (grdDetailItemInfoBuilder_ == null) {\n return grdDetailItemInfo_.get(index); } else {\n return grdDetailItemInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "f289647a89ad0d0dc17a2031477a38b9", "score": "0.523481", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfoOrBuilder getGrdDetailItemOrBuilder(\n int index) {\n if (grdDetailItemBuilder_ == null) {\n return grdDetailItem_.get(index); } else {\n return grdDetailItemBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "cc2dbee8bd3553281be3fe946d17e417", "score": "0.5228159", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfoOrBuilder getGrdDetailItemInfoOrBuilder(\n int index) {\n return grdDetailItemInfo_.get(index);\n }", "title": "" }, { "docid": "cc2dbee8bd3553281be3fe946d17e417", "score": "0.5228159", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfoOrBuilder getGrdDetailItemInfoOrBuilder(\n int index) {\n return grdDetailItemInfo_.get(index);\n }", "title": "" }, { "docid": "965bac9abbeb4c5e082e6de04845aac0", "score": "0.52249044", "text": "public void S252( )\n {\n nRC_Grid1 = (short)(localUtil.ctol( httpContext.cgiGet( \"nRC_Grid1\"), \".\", \",\")) ;\n nGXsfl_187_fel_idx = (short)(0) ;\n while ( nGXsfl_187_fel_idx < nRC_Grid1 )\n {\n nGXsfl_187_fel_idx = (short)(((subGrid1_Islastpage==1)&&(nGXsfl_187_fel_idx+1>subgrid1_recordsperpage( )) ? 1 : nGXsfl_187_fel_idx+1)) ;\n sGXsfl_187_fel_idx = GXutil.padl( GXutil.ltrim( GXutil.str( nGXsfl_187_fel_idx, 4, 0)), (short)(4), \"0\") ;\n chkavD_grd_sel.setInternalname( \"vD_GRD_SEL_\"+sGXsfl_187_fel_idx );\n edtavD_grd_memo_no_Internalname = \"vD_GRD_MEMO_NO_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_datetime_Internalname = \"vD_GRD_DATETIME_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_subject_id_Internalname = \"vD_GRD_SUBJECT_ID_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_crf_id_Internalname = \"vD_GRD_CRF_ID_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_crf_snm_Internalname = \"vD_GRD_CRF_SNM_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_crf_item_nm_Internalname = \"vD_GRD_CRF_ITEM_NM_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_memo_Internalname = \"vD_GRD_MEMO_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_user_nm_Internalname = \"vD_GRD_USER_NM_\"+sGXsfl_187_fel_idx ;\n AV16D_GRD_SEL = GXutil.strtobool( httpContext.cgiGet( chkavD_grd_sel.getInternalname())) ;\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_memo_no_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_memo_no_Internalname), \".\", \",\") > 999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD_MEMO_NO\");\n GX_FocusControl = edtavD_grd_memo_no_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV15D_GRD_MEMO_NO = (short)(0) ;\n }\n else\n {\n AV15D_GRD_MEMO_NO = (short)(localUtil.ctol( httpContext.cgiGet( edtavD_grd_memo_no_Internalname), \".\", \",\")) ;\n }\n if ( localUtil.vcdtime( httpContext.cgiGet( edtavD_grd_datetime_Internalname), (byte)(6), (byte)(0)) == 0 )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_baddatetime\", new Object[] {\"作成日時\"}), 1, \"vD_GRD_DATETIME\");\n GX_FocusControl = edtavD_grd_datetime_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV13D_GRD_DATETIME = GXutil.resetTime( GXutil.nullDate() );\n }\n else\n {\n AV13D_GRD_DATETIME = localUtil.ctot( httpContext.cgiGet( edtavD_grd_datetime_Internalname)) ;\n }\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_subject_id_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_subject_id_Internalname), \".\", \",\") > 999999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD_SUBJECT_ID\");\n GX_FocusControl = edtavD_grd_subject_id_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV17D_GRD_SUBJECT_ID = 0 ;\n }\n else\n {\n AV17D_GRD_SUBJECT_ID = (int)(localUtil.ctol( httpContext.cgiGet( edtavD_grd_subject_id_Internalname), \".\", \",\")) ;\n }\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_crf_id_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_crf_id_Internalname), \".\", \",\") > 9999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD_CRF_ID\");\n GX_FocusControl = edtavD_grd_crf_id_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV11D_GRD_CRF_ID = (short)(0) ;\n }\n else\n {\n AV11D_GRD_CRF_ID = (short)(localUtil.ctol( httpContext.cgiGet( edtavD_grd_crf_id_Internalname), \".\", \",\")) ;\n }\n AV12D_GRD_CRF_SNM = httpContext.cgiGet( edtavD_grd_crf_snm_Internalname) ;\n AV72D_GRD_CRF_ITEM_NM = httpContext.cgiGet( edtavD_grd_crf_item_nm_Internalname) ;\n AV14D_GRD_MEMO = httpContext.cgiGet( edtavD_grd_memo_Internalname) ;\n AV18D_GRD_USER_NM = httpContext.cgiGet( edtavD_grd_user_nm_Internalname) ;\n AV100GXV13 = 1 ;\n while ( AV100GXV13 <= AV47SD_RNRK_MEMO_C.size() )\n {\n AV48SD_RNRK_MEMO_I = (SdtB719_SD01_MEMO_B719_SD01_MEMOItem)((SdtB719_SD01_MEMO_B719_SD01_MEMOItem)AV47SD_RNRK_MEMO_C.elementAt(-1+AV100GXV13));\n if ( ( AV48SD_RNRK_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Subject_id() == AV17D_GRD_SUBJECT_ID ) && ( AV48SD_RNRK_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Memo_no() == AV15D_GRD_MEMO_NO ) && ( AV48SD_RNRK_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Crf_id() == AV11D_GRD_CRF_ID ) )\n {\n AV48SD_RNRK_MEMO_I.setgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Sel_flg( AV16D_GRD_SEL );\n httpContext.ajax_rsp_assign_sdt_attri(\"\", false, \"AV48SD_RNRK_MEMO_I\", AV48SD_RNRK_MEMO_I);\n if (true) break;\n }\n AV100GXV13 = (int)(AV100GXV13+1) ;\n }\n /* End For Each Line */\n }\n if ( nGXsfl_187_fel_idx == 0 )\n {\n nGXsfl_187_idx = (short)(1) ;\n sGXsfl_187_idx = GXutil.padl( GXutil.ltrim( GXutil.str( nGXsfl_187_idx, 4, 0)), (short)(4), \"0\") ;\n chkavD_grd_sel.setInternalname( \"vD_GRD_SEL_\"+sGXsfl_187_idx );\n edtavD_grd_memo_no_Internalname = \"vD_GRD_MEMO_NO_\"+sGXsfl_187_idx ;\n edtavD_grd_datetime_Internalname = \"vD_GRD_DATETIME_\"+sGXsfl_187_idx ;\n edtavD_grd_subject_id_Internalname = \"vD_GRD_SUBJECT_ID_\"+sGXsfl_187_idx ;\n edtavD_grd_crf_id_Internalname = \"vD_GRD_CRF_ID_\"+sGXsfl_187_idx ;\n edtavD_grd_crf_snm_Internalname = \"vD_GRD_CRF_SNM_\"+sGXsfl_187_idx ;\n edtavD_grd_crf_item_nm_Internalname = \"vD_GRD_CRF_ITEM_NM_\"+sGXsfl_187_idx ;\n edtavD_grd_memo_Internalname = \"vD_GRD_MEMO_\"+sGXsfl_187_idx ;\n edtavD_grd_user_nm_Internalname = \"vD_GRD_USER_NM_\"+sGXsfl_187_idx ;\n }\n nGXsfl_187_fel_idx = (short)(1) ;\n }", "title": "" }, { "docid": "654d4775a3b163d3cf495939be4b417c", "score": "0.5218366", "text": "public int getGrdMasterItemCount() {\n return grdMasterItem_.size();\n }", "title": "" }, { "docid": "d3f5b3013c7074a0930cc3633695aac1", "score": "0.5209604", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "16607d1869458ca5f3d67a8a1904d321", "score": "0.52077574", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo> \n getGrdDetailItemList();", "title": "" }, { "docid": "30fdecd26f863c578f26b3b2af4438e3", "score": "0.51942277", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "76bed706142957114711637325917b4b", "score": "0.51936007", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo.Builder addGrdDetailItemInfoBuilder() {\n return getGrdDetailItemInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "76bed706142957114711637325917b4b", "score": "0.51936007", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo.Builder addGrdDetailItemInfoBuilder() {\n return getGrdDetailItemInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "af3eabfa0a6d1e00dbc96490e0a04526", "score": "0.5176924", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.Builder getGrdMasterItemInfoBuilder(\n int index) {\n return getGrdMasterItemInfoFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "af3eabfa0a6d1e00dbc96490e0a04526", "score": "0.51760113", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.Builder getGrdMasterItemInfoBuilder(\n int index) {\n return getGrdMasterItemInfoFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "0ea7b06ee9d2620c11775d984185e439", "score": "0.51737857", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "bb3b02ef3a171d50b7487c182a42246d", "score": "0.51641494", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> \n getLay9001ItemList();", "title": "" }, { "docid": "bb3b02ef3a171d50b7487c182a42246d", "score": "0.5163631", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> \n getLay9001ItemList();", "title": "" }, { "docid": "ed9b99cc2c7e70c908facc7359a898c2", "score": "0.516297", "text": "public java.util.List<? extends nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder> \n getGrdMasterItemOrBuilderList() {\n if (grdMasterItemBuilder_ != null) {\n return grdMasterItemBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(grdMasterItem_);\n }\n }", "title": "" }, { "docid": "1eb2eb8d7027de0df42bc14b31a64ecd", "score": "0.5161831", "text": "public java.util.List<? extends nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder> \n getGrdMasterItemOrBuilderList() {\n return grdMasterItem_;\n }", "title": "" }, { "docid": "d5837c6a19e8e26a147042283add1f28", "score": "0.5160965", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo getGrdMaster(int index) {\n if (grdMasterBuilder_ == null) {\n return grdMaster_.get(index);\n } else {\n return grdMasterBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "abccdae04b7ffc928c8a2ff99946866a", "score": "0.5157802", "text": "java.util.List<? extends nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder> \n getGrdMasterOrBuilderList();", "title": "" }, { "docid": "7bea779308447155f6cadaed509f2237", "score": "0.5156297", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo.Builder addGrdDetailItemBuilder() {\n return getGrdDetailItemFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "c7b9483a5ef068eea221dde3f0accd30", "score": "0.51495713", "text": "public nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo.Builder addGrdMasterBuilder() {\n return getGrdMasterFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "06c73b0bd6f0e3384a8a23afc1c0b805", "score": "0.5147563", "text": "com.google.protobuf.ByteString getField2387();", "title": "" }, { "docid": "7e8fe8217e4d50fe40aed82142c08657", "score": "0.513269", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo> getGrdMasterItemInfoList() {\n if (grdMasterItemInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(grdMasterItemInfo_);\n } else {\n return grdMasterItemInfoBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "7e8fe8217e4d50fe40aed82142c08657", "score": "0.51319116", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo> getGrdMasterItemInfoList() {\n if (grdMasterItemInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(grdMasterItemInfo_);\n } else {\n return grdMasterItemInfoBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "52afde8ced3eb9bf39e191339879b483", "score": "0.51317614", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info.getDefaultInstance());\n }", "title": "" }, { "docid": "2bcdbc08b8701689e7c6e76e54f8fa99", "score": "0.51298475", "text": "com.google.protobuf.ByteString getField37370();", "title": "" }, { "docid": "2eccbfbcd532a621dcbeae591b1e3f59", "score": "0.51298195", "text": "public int getGrdMasterItemInfoCount() {\n if (grdMasterItemInfoBuilder_ == null) {\n return grdMasterItemInfo_.size();\n } else {\n return grdMasterItemInfoBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "5a256b8f6cbc62322c035dfa03f0f672", "score": "0.51290333", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info getLay9001Item(int index);", "title": "" }, { "docid": "5a256b8f6cbc62322c035dfa03f0f672", "score": "0.5128247", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info getLay9001Item(int index);", "title": "" }, { "docid": "2eccbfbcd532a621dcbeae591b1e3f59", "score": "0.5127466", "text": "public int getGrdMasterItemInfoCount() {\n if (grdMasterItemInfoBuilder_ == null) {\n return grdMasterItemInfo_.size();\n } else {\n return grdMasterItemInfoBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "743e57775f0d5cc4503af56ea594058e", "score": "0.5111663", "text": "public java.util.List<nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo> getGrdMasterItemList() {\n return grdMasterItem_;\n }", "title": "" }, { "docid": "dae1464ca176eb84092e92227199a708", "score": "0.5109814", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo getGrdDetailItemInfo(int index) {\n if (grdDetailItemInfoBuilder_ == null) {\n return grdDetailItemInfo_.get(index);\n } else {\n return grdDetailItemInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "dae1464ca176eb84092e92227199a708", "score": "0.5109814", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo getGrdDetailItemInfo(int index) {\n if (grdDetailItemInfoBuilder_ == null) {\n return grdDetailItemInfo_.get(index);\n } else {\n return grdDetailItemInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "d8ac09993b7b6368ac1e585640e4408a", "score": "0.5108012", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.Builder addGrdMasterItemInfoBuilder(\n int index) {\n return getGrdMasterItemInfoFieldBuilder().addBuilder(\n index, nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "d8ac09993b7b6368ac1e585640e4408a", "score": "0.5108012", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.Builder addGrdMasterItemInfoBuilder(\n int index) {\n return getGrdMasterItemInfoFieldBuilder().addBuilder(\n index, nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdMasterItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "35994ccab5705a451c7384370dc41d5b", "score": "0.510065", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo getGrdDetailItem(int index) {\n return grdDetailItem_.get(index);\n }", "title": "" }, { "docid": "a35a753793ce457bd79421dad1c263e0", "score": "0.5099185", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo getListInfo(int index);", "title": "" }, { "docid": "b25c26b5b12451fa4b607e2af6d11691", "score": "0.5096168", "text": "java.util.List<nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfo> \n getGrdMasterList();", "title": "" }, { "docid": "8393d806554eb64462f9784436dcc614", "score": "0.50772154", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "38d116aa87943b194147a877c41b0412", "score": "0.5074831", "text": "nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder getGrdMasterItemOrBuilder(\n int index);", "title": "" }, { "docid": "65c0e39565627cc42969591c903ad203", "score": "0.5063564", "text": "int getGrdDetailItemInfoCount();", "title": "" }, { "docid": "65c0e39565627cc42969591c903ad203", "score": "0.5063564", "text": "int getGrdDetailItemInfoCount();", "title": "" }, { "docid": "4e6cacf2082d91ff19d6eca9fe552ae3", "score": "0.506342", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo getItems(int index);", "title": "" }, { "docid": "d4f38856fdbe202ee965e314daa3d5df", "score": "0.50595355", "text": "nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder getGrdMasterOrBuilder(\n int index);", "title": "" }, { "docid": "c8a53cc1ea2cbd05e6e420a26d2ef5ea", "score": "0.50579846", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo getGrdDetailItem(int index) {\n if (grdDetailItemBuilder_ == null) {\n return grdDetailItem_.get(index);\n } else {\n return grdDetailItemBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "4ec01668f8a81bcb0441f4cbfe9dac62", "score": "0.50554836", "text": "private DRG0102U01GrdMasterResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "9e51b7dba0153b2d61ad983f1c8892c4", "score": "0.50487614", "text": "public java.util.List<? extends nta.med.service.ihis.proto.CommonModelProto.ComboListItemInfoOrBuilder> \n getGrdMasterOrBuilderList() {\n return grdMaster_;\n }", "title": "" }, { "docid": "a28599a21b3dafae7d13c783bb58c616", "score": "0.50411916", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo getItems(int index);", "title": "" }, { "docid": "e298c8234e4fbcd498b6b430adfacd50", "score": "0.5039422", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo getGrdDetailItemInfo(int index) {\n return grdDetailItemInfo_.get(index);\n }", "title": "" }, { "docid": "e298c8234e4fbcd498b6b430adfacd50", "score": "0.5039422", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfo getGrdDetailItemInfo(int index) {\n return grdDetailItemInfo_.get(index);\n }", "title": "" } ]
9d44d4abe643f0507091679fc908ef32
Log an info exception and a message with optional format args.
[ { "docid": "c8866ba53e6f813e636ae30cd94838b0", "score": "0.5402546", "text": "void i(Throwable t, String message, Object... args);", "title": "" } ]
[ { "docid": "fd1d59451aad520e18147bcbd80c171e", "score": "0.70147896", "text": "void info(String msg, Throwable cause, Object... params);", "title": "" }, { "docid": "3ec861e5c8877c06aa5b596376c04b5b", "score": "0.6696005", "text": "public void info(String format, @Nullable Object arg1, @Nullable Object arg2) {\n // slf4j already avoids the array creation for 1 or 2 arg invocations\n logger.info(format, arg1, arg2);\n }", "title": "" }, { "docid": "8605493412e63e808bd7ec39818ec2bf", "score": "0.6471539", "text": "public void info(String format, @Nullable Object arg1, @Nullable Object arg2,\n @Nullable Object arg3) {\n if (logger.isInfoEnabled()) {\n logger.info(format, arg1, arg2, arg3);\n }\n }", "title": "" }, { "docid": "270c418c8c85482a99f89be5761ab79c", "score": "0.646344", "text": "static void info(String msg, Object... args) {\n\t\tlog(1, msg, args);\n\t}", "title": "" }, { "docid": "3a5986439fe15e2b26bf4b741b03f1f0", "score": "0.6358202", "text": "public static void info(String message, Object arg1, Object arg2, Object arg3) {\n info(String.format(message, arg1, arg2, arg3));\n }", "title": "" }, { "docid": "9a4c7b0fcb48518771f10c3a2e874785", "score": "0.6264313", "text": "@Override\n public void info(String format, Object arg1, Object arg2) {\n formatAndLog(McLogLevel.INFO, format, arg1, arg2);\n }", "title": "" }, { "docid": "e7e709baffdb07e22a3211c7f5a4a00b", "score": "0.6206479", "text": "void info(String msg, Object... params);", "title": "" }, { "docid": "608f4c10989a35ec54329308c88f90fb", "score": "0.61900777", "text": "public void info(String format, @Nullable Object arg1, @Nullable Object arg2,\n @Nullable Object arg3, @Nullable Object arg4) {\n if (logger.isInfoEnabled()) {\n logger.info(format, arg1, arg2, arg3, arg4);\n }\n }", "title": "" }, { "docid": "f7c729a8499c98cc101a02272d28597d", "score": "0.61760795", "text": "@Override\n public void info(String format, Object arg) {\n formatAndLog(McLogLevel.INFO, format, arg);\n }", "title": "" }, { "docid": "ea0031e9e6c0ca496112a0851110871a", "score": "0.61415744", "text": "@Override\n public void info(String format, Object... argArray) {\n formatAndLog(McLogLevel.INFO, format, argArray);\n }", "title": "" }, { "docid": "fc9d5692df7d0480a6ba6ed725e72cb2", "score": "0.60765123", "text": "public void info(Marker marker, String msg, Throwable t) {\n \n }", "title": "" }, { "docid": "4a9ee77c956e1d4ec0488d5acca38cb1", "score": "0.60457546", "text": "public static void info(String methodName, String format, Object arg) {\r\n if (isInfoEnabled()) {\r\n logger.info(addToFormat(methodName, format), arg);\r\n }\r\n }", "title": "" }, { "docid": "a7e49349f8a68a502583ceb1ab3dd71b", "score": "0.5954894", "text": "public static void info(String methodName, String format, Object... argArray) {\r\n if (isInfoEnabled()) {\r\n logger.info(addToFormat(methodName, format), argArray);\r\n }\r\n }", "title": "" }, { "docid": "ccb3aab27547b580e501c447464c2d31", "score": "0.5953953", "text": "private void logE(String info) {\n Log.e(TAG, info);\n }", "title": "" }, { "docid": "1b8644dc5e18e7c54145ac083fae2e59", "score": "0.5938843", "text": "public static void info(String methodName, String format, Object arg1, Object arg2) {\r\n if (isInfoEnabled()) {\r\n logger.info(addToFormat(methodName, format), arg1, arg2);\r\n }\r\n }", "title": "" }, { "docid": "9066207acb4e12839be3a644f3c5df85", "score": "0.5931667", "text": "@Override\r\n\tpublic void logFatal(String message, Object... params)\r\n\t{\r\n\t\tString formatted = String.format(message, params);\r\n\t\tString border = StringUtils.repeat(\"=\", formatted.length());\r\n\t\twriteColoured(\"\\n\\n&4&l%1$s\\n%2$s\\n%1$s&r\", Level.SEVERE, border, formatted);\r\n\t\tSystem.exit(1);\r\n\t}", "title": "" }, { "docid": "c06a459865e86facc6915284d7486d95", "score": "0.5912918", "text": "public LogMessageBuilder info() {\n\t\tvar logger = getLogger();\n\t\tif(logger.isInfoEnabled()) {\n\t\t\tlogger.info(toLineBrokenStringInCaseOfExc(), exc);\n\t\t}\n\t\t\n\t\treturn this;\n\t}", "title": "" }, { "docid": "117b117737d1b8f42673203c2be0c938", "score": "0.5898981", "text": "public static void info(String msg, Throwable thr){\n Log.i(Tag,msg,thr);\n }", "title": "" }, { "docid": "fa065334f6bbe69552c22e93de67163e", "score": "0.5893697", "text": "public static void info(String message, Throwable th) {\n\t\tSystem.out.println(Log.name.get() + \": \" + message);\n\t\tif(th != null) th.printStackTrace(System.out);\n\t}", "title": "" }, { "docid": "95f223ca63be3ac40a8c6d7cf01d4739", "score": "0.5797322", "text": "public void info(Marker marker, String format, Object... arguments) {\n \n }", "title": "" }, { "docid": "d5feac5dea4b7202fba62cdb898bfc8c", "score": "0.5795561", "text": "public abstract void logInfo(String message);", "title": "" }, { "docid": "c7808e4d7919a2e41e7f6bb1fbb66b58", "score": "0.57669973", "text": "@Override\r\n\tpublic void info(String s, Throwable throwable) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c3acd067e89534268a332cd4f1482983", "score": "0.5738315", "text": "public void info(Marker marker, String format, Object arg1, Object arg2) {\n \n }", "title": "" }, { "docid": "636157e2d41b27cd97a581cd0fe22570", "score": "0.57375515", "text": "public static void info(String message) {\n\n try {\n // Initialize reference variable for pattern layout class\n PatternLayout infoLayout = new PatternLayout();\n\n // Set format for info logs to be displayed\n conversionPattern = \"\\u001b[m%d{yyyy-MM-dd HH:mm:ss}%-1c%-5p \" + getStackTrace() + \"%1c%m\\u001b[m%n\";\n\n // Apply format to appender\n infoLayout.setConversionPattern(conversionPattern);\n consoleAppender.setLayout(infoLayout);\n\n // Prepares the appender for use\n consoleAppender.activateOptions();\n\n // Add newAppender to the list of appenders\n logger.addAppender(consoleAppender);\n\n // Append message to log\n logger.info(message);\n\n } catch (Exception e) {\n error(e.getMessage());\n }\n }", "title": "" }, { "docid": "b217f89f563a608a83d7e0bdefd768cc", "score": "0.57362574", "text": "public String info(String message, Object... args) {\n return log(Level.INFO, message, args);\n }", "title": "" }, { "docid": "b2a6271b42d344c0616d2da52e285981", "score": "0.5698412", "text": "void info( Throwable error );", "title": "" }, { "docid": "4225742483021beee25bd553f93d8c56", "score": "0.5676286", "text": "public final synchronized void info(Throwable error, Object... message) {\n\t\tStringBuilder b = new StringBuilder();\n\t\tfor (Object o : message) {\n\t\t\tif (o != null) {\n\t\t\t\tb.append(o.toString());\n\t\t\t}\n\t\t}\n\t\tgetLog().info(b.toString(), error);\n\t}", "title": "" }, { "docid": "851b872bdb45c3461d1fc0e20ce3d922", "score": "0.56678635", "text": "public void report_error(String message, Object info) {\n System.out.print(\"report_eror\" + message);\n }", "title": "" }, { "docid": "97fade7e947da89178d3bc26d5f2a2b7", "score": "0.56667536", "text": "public void info(Marker marker, String format, Object arg) {\n \n }", "title": "" }, { "docid": "17bad937dfb982d272512fba6305543e", "score": "0.5662472", "text": "public void info(Object msg, Throwable t){\r\n\t\tlog(logger.getName(), Level.INFO, msg, t);\r\n\t}", "title": "" }, { "docid": "880493d35f07b0d703ddef99a322e82a", "score": "0.5620459", "text": "public void logInfo(String message) { LOGGER.info(message); }", "title": "" }, { "docid": "743b1d5bd510a38b3c9decd8c0d85d48", "score": "0.5605504", "text": "public void info(String codeMessage, Object... args) {\n LOGGER.info(getMessage(codeMessage, args));\n }", "title": "" }, { "docid": "fa35c73c7699f226b3a40353c9f0e7ad", "score": "0.55977935", "text": "@Inline(\"$1.log(java.util.logging.Level.INFO, $2, $3)\")\r\n public static void info(final Logger log, final String msg,\r\n final Throwable error) {\r\n log.log(Level.INFO, msg, error);\r\n }", "title": "" }, { "docid": "472d8c6319bd7e14762d6609a0e9f19a", "score": "0.55921257", "text": "@Override\n public void error(String format, Object arg) {\n formatAndLog(McLogLevel.ERROR, format, arg);\n }", "title": "" }, { "docid": "773081d219f88ffdea636df8f1733336", "score": "0.55752367", "text": "public void error(Marker marker, String format, Object... arguments) {\n \n }", "title": "" }, { "docid": "cf3770c19ede1e26ebf67986c8022a3e", "score": "0.555294", "text": "@Override\n public void error(String format, Object arg1, Object arg2) {\n formatAndLog(McLogLevel.ERROR, format, arg1, arg2);\n }", "title": "" }, { "docid": "4cf9217d74e8756260b9c6260e37ad1d", "score": "0.55508804", "text": "@Inline(\"$1.log(java.util.logging.Level.INFO, String.valueOf($2), $3)\")\r\n public static void info(final Logger log, final Object msg,\r\n final Throwable error) {\r\n log.log(Level.INFO, String.valueOf(msg), error);\r\n }", "title": "" }, { "docid": "4103ea0f968b083f4cdf7dec56321334", "score": "0.5546374", "text": "protected void logInfo(String message, Object... params) {\r\n\t\tlog(null, LoggingLevel.INFO, message, params);\r\n\t}", "title": "" }, { "docid": "2ca4ef233fc61b3e5888f88aa138ebde", "score": "0.5533693", "text": "private void infoEvent(String message, Object... params) {\n logger.info(message, params);\n }", "title": "" }, { "docid": "2ded9d78cc98ddd88ab237dd851c93d7", "score": "0.5527848", "text": "public static void info(MessageTemplate message, String... args) {\n info(fillArgs(message, args));\n }", "title": "" }, { "docid": "3e5bd21fe398ad34becaf44959ab4acf", "score": "0.5521514", "text": "public abstract void showLogException(Exception e);", "title": "" }, { "docid": "922880c590cab74f7e39d667365fb3c3", "score": "0.5510585", "text": "public void info(Object... arguments) {\n final Object maybeThrowable = arguments[arguments.length - 1];\n if (maybeThrowable instanceof Throwable) {\n delegate.info(concatStringValuesOf(arguments, arguments.length - 1), (Throwable) maybeThrowable);\n } else {\n delegate.info(concatStringValuesOf(arguments));\n }\n }", "title": "" }, { "docid": "83c905fa4bcf70fb3b0d814e47c2f55d", "score": "0.5503669", "text": "void info(final String log4jFormat, final Object... arguments) {\n final String filledStr = applyArguments(log4jFormat, arguments);\n toDebugOutlet(new String[]{String.format(\"INFO: %s\", filledStr)});\n }", "title": "" }, { "docid": "01e8621560c430d9d7669709b733cbe5", "score": "0.5501108", "text": "@Override\n public void error(String format, Object... argArray) {\n formatAndLog(McLogLevel.ERROR, format, argArray);\n }", "title": "" }, { "docid": "24785131696c2560b3fc867a030b2806", "score": "0.54928434", "text": "@Override\n public void info(String msg, Throwable t) {\n log(McLogLevel.INFO, msg, t);\n }", "title": "" }, { "docid": "84998bd5ff2d9fb94f004d226f8f4c69", "score": "0.5487778", "text": "void info(Throwable cause);", "title": "" }, { "docid": "ca6c2027e5ba0c0436fd34c395c2f8b8", "score": "0.5485925", "text": "public void info(String message);", "title": "" }, { "docid": "87f5b033cf70665140995ca526dd156b", "score": "0.5482787", "text": "private void printExceptionMessage(String... exception) {\n print(\"!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!\");\n print(\"EXCEPTION IN METHOD '\" + exception[0] + \"'\");\n print(\"EXCEPTION IS '\" + exception[1] + \"'\");\n print(\"!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!\");\n }", "title": "" }, { "docid": "d9eabb77b3e7875b040f4974407f76db", "score": "0.5463451", "text": "public void e(final @NonNull String tag, final @NonNull String format, final @Nullable Object... args) {\n addLog(LogLevel.ERROR, tag, format, args);\n }", "title": "" }, { "docid": "ec94240af8c5a63f4ecb7ea25c604850", "score": "0.54596925", "text": "public void log(String info){\r\n\t\t\r\n\t\tlog(info, sep);\r\n\t}", "title": "" }, { "docid": "8384bf34b53971cfbe9d8f0aa538578e", "score": "0.5450467", "text": "public void error(Marker marker, String format, Object arg1, Object arg2) {\n \n }", "title": "" }, { "docid": "3344f9b87620a3f3ed130f613b50564c", "score": "0.54432905", "text": "@Override\n\tpublic void log(Exception arg0, String arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "650d7cbfb8950169586f2e6d6bcf5ba9", "score": "0.544325", "text": "public FinancerException(String message, String messageKey, Object... args) {\n super(String.format(message, args));\n this.messageKey = messageKey;\n this.args = args;\n }", "title": "" }, { "docid": "bc0b4846200b800bf3ebd78196c90ade", "score": "0.543278", "text": "public void log(Exception exception, String msg) {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "99217610618c37dd9ad62f9ad393a7af", "score": "0.54317296", "text": "@Override\n\tpublic void info(String arg0) {\n\t\tmyLog.info(arg0);\n\t}", "title": "" }, { "docid": "64885e8226bf86721db6c944acce960f", "score": "0.54299873", "text": "public void log(String logInfo);", "title": "" }, { "docid": "41e21004c6f399f5668a50ae9a70aaf1", "score": "0.5425875", "text": "public Builder message(final String format, final Object... args) {\n // we can't replace the message of a user exception\n if (uex == null && !fixedMessage && format != null) {\n this.message = (args == null || args.length == 0) ? format : String.format(format, args);\n }\n return this;\n }", "title": "" }, { "docid": "9b6898784ff967543eb84725defac6aa", "score": "0.5400171", "text": "public void error(Marker marker, String format, Object arg) {\n \n }", "title": "" }, { "docid": "a79c0407b56ab3dfdbf85bd0715ba137", "score": "0.5388443", "text": "public final synchronized void info(Object... message) {\n\t\tStringBuilder b = new StringBuilder();\n\t\tfor (Object o : message) {\n\t\t\tif (o != null) {\n\t\t\t\tb.append(o.toString());\n\t\t\t}\n\t\t}\n\t\tgetLog().info(b.toString());\n\t}", "title": "" }, { "docid": "56f6b1fa2c7273c458e6d73b39a8f70b", "score": "0.5385965", "text": "public static void error(String methodName, String format, Object arg) {\r\n if (isErrorEnabled()) {\r\n logger.error(addToFormat(methodName, format), arg);\r\n }\r\n }", "title": "" }, { "docid": "9ec32e6e23ac61af9a9e548362a8867b", "score": "0.5379134", "text": "public static void info(String message) {\n try {\n DELEGATE.get().report(Level.INFO, message);\n } catch (IOException e) {\n throw new FailedException(e);\n }\n }", "title": "" }, { "docid": "521f1e1d361cb636790582dd0b05e0de", "score": "0.5376973", "text": "@Override\r\n\tpublic void customLog(String tag, String logPosition, String message, Throwable t) {\n\t\tlogger.info(message);\r\n\t\tif (t != null) {\r\n\t\t\tlogger.error(t.getMessage());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8375d55e93a5f826460c99fbcb925341", "score": "0.53713477", "text": "public static void info(String message)\r\n\t{ \r\n\t\tlog.info(header + ChatColor.WHITE + message);\r\n\t}", "title": "" }, { "docid": "b0df77bef902687ec23d1a493e47c8c7", "score": "0.5368268", "text": "public static void i(Throwable t, String message, Object... args) {\n LOG_INSTANCE.i(t, message, args);\n }", "title": "" }, { "docid": "390787eaf9e0ed8a8f1312e3302f937e", "score": "0.5364273", "text": "@Inline(\"$1.log(java.util.logging.Level.INFO, String.valueOf($2), $2)\")\r\n public static void info(final Logger log, final Throwable error) {\r\n log.log(Level.INFO, String.valueOf(error), error);\r\n }", "title": "" }, { "docid": "031b96abc210ca57d66445a5f2ee53d6", "score": "0.5355668", "text": "private void info(String msg)\n\t{\n\t\tlg.log(Logger.E_INFORMATION, msg);\n\t}", "title": "" }, { "docid": "1205447aa0f266d5c4dedf3721a39d27", "score": "0.53327864", "text": "@Override\n\tpublic void info(Object originator, Object message, Throwable throwable) {\n\t}", "title": "" }, { "docid": "4dade14b1e3a59701acd039848b6de0f", "score": "0.5311402", "text": "public void warn(Marker marker, String format, Object... arguments) {\n \n }", "title": "" }, { "docid": "ed4bcf477a217422031d937854bf95c6", "score": "0.53094125", "text": "void info( CharSequence content, Throwable error );", "title": "" }, { "docid": "81cf6938c894fdfc16bc0b18ef5d172b", "score": "0.53026545", "text": "public static void outMsg(String msg, Object... args){\n\t\tif(progOut.isInfoEnabled()){\n\n\t\t\tif(null != args && args.length > 0){\n\t\t\t\tmsg = String.format(msg, args);\n\t\t\t}\n\t\t\tprogOut.info(msg);\n\t\t}\n\t}", "title": "" }, { "docid": "b0150b948d7e03ef6d5df6d0bcfac945", "score": "0.53025174", "text": "default String toFormattedExceptionMessage(final String[] messageArgs) {\n\t\treturn AppSupportFunctions.FN_FORMAT_STRING.apply(exceptionMessage(), messageArgs);\n\t}", "title": "" }, { "docid": "d8416bd1f960dfcb285fb9abbab17a65", "score": "0.5300386", "text": "public void i(final @NonNull String tag, final @NonNull String format, final @Nullable Object... args) {\n addLog(LogLevel.INFO, tag, format, args);\n }", "title": "" }, { "docid": "81d9d7fbb78bd889ec07e068a09deea4", "score": "0.5298033", "text": "@SuppressWarnings(\"PMD.UnusedPrivateMethod\")\n private static void log(final int level,\n @NonNull final String messageFormat,\n @Nullable final Object... args) {\n if (shouldLog(level)) {\n Log.println(level, TAG, String.format(messageFormat, args));\n }\n }", "title": "" }, { "docid": "72026d993291a201cab83f70e60678db", "score": "0.5284708", "text": "public String error(String message, Object... args) {\n return log(Level.SEVERE, message, args);\n }", "title": "" }, { "docid": "d6531ce2d7a0e583ae00df4764191795", "score": "0.52842987", "text": "public static void main(String[] args) throws Exception {\n logger.info(\"Info Log.\");\n logger.warn(\"Warn Log\");\n logger.error(\"Error Log.\");\n System.exit(0);\n }", "title": "" }, { "docid": "5d1e2302f6112f70d79a43fdab1eb4fd", "score": "0.52634317", "text": "public static void e(String message, Object... args) {\n LOG_INSTANCE.e(message, args);\n }", "title": "" }, { "docid": "a1bf765dc33092069e90fa13fa5c8fbf", "score": "0.52628905", "text": "void printError(final String message, final Throwable t, final String...clArgs) {\n System.out.println(\"Error found parsing the arguments \" + Arrays.asList(clArgs));\n if (message != null) System.out.println(message);\n if (t != null) System.out.println(ExceptionUtils.getStackTrace(t));\n printUsage();\n }", "title": "" }, { "docid": "4afb5c75a1b79ad0163b2ad0c5b8cafd", "score": "0.5249378", "text": "@Inline(\"$1.log(java.util.logging.Level.INFO, String.valueOf($2))\")\r\n public static void info(final Logger log, final Object msg) {\r\n log.log(Level.INFO, String.valueOf(msg));\r\n }", "title": "" }, { "docid": "18975ddbd1c2345682c26cfcebc0631d", "score": "0.5238521", "text": "public void log(String text, Exception e) {\r\n System.out.println(DateTime() + \": \" + text);\r\n System.err.println(DateTime() + \": \" + text);\r\n System.out.println(e);\r\n for (StackTraceElement ste : e.getStackTrace()) {\r\n System.out.println(ste);\r\n System.err.println(ste);\r\n }\r\n }", "title": "" }, { "docid": "44134afb028e44af3045ded4840c8e8f", "score": "0.52280384", "text": "public static void error(String methodName, String format, Object arg1, Object arg2) {\r\n if (isErrorEnabled()) {\r\n logger.error(addToFormat(methodName, format), arg1, arg2);\r\n }\r\n }", "title": "" }, { "docid": "434346c0657a20b4ddeda14e7ab5c700", "score": "0.5226039", "text": "protected void logException(CharSequence msg, Exception e) {\n System.err.println(msg + \":\" + e.getMessage());\n e.printStackTrace();\n }", "title": "" }, { "docid": "2dde52570142296e29d44b5a3555d229", "score": "0.5219849", "text": "public void i(String msg, Throwable thr) {\n log(LEVEL.INFO, null, msg, thr);\n }", "title": "" }, { "docid": "e2c5b23d2e66d5598c3e793fa7a10307", "score": "0.52126944", "text": "public static void error(String methodName, String format, Object... argArray) {\r\n if (isErrorEnabled()) {\r\n logger.error(addToFormat(methodName, format), argArray);\r\n }\r\n }", "title": "" }, { "docid": "075748266dacec8d758fed6f17430ee2", "score": "0.5205157", "text": "public static void i(String message, Object... args) {\n LOG_INSTANCE.i(message, args);\n }", "title": "" }, { "docid": "2d2f4b00e2e129b496ff49c9a40f2b04", "score": "0.52021646", "text": "public static void saveToLog(String format, Object...args) {\n\t\tList<Object> arrayOfArgs = new ArrayList<Object>();\n\t\t\n\t\tfor (Object arg : args) {\n\t\t\tarrayOfArgs.add(arg);\n\t\t}\n\t\t/*String msg = String.format(format, arrayOfArgs.toArray());\n\t\t\n\t\tif (loggingEnabled == NO || log == null) { \t// logging disabled or error during init\n\t\t\tconsoleMsg(msg, loggingLevel);\n\t\t\t//Log.d(\"\", msg);\t// log to console\n\t\t} else {\n\t\t\tlog.info(msg);\t// log to file and console\n\t\t}*/\n\t\tif(!arrayOfArgs.isEmpty()){\n\t\t\tString level = \"I\";\n\t\t\tString tag = \"aAML\";\n\t\t\tif(arrayOfArgs.size() >= 1){\n\t\t\t\tlevel = (String) arrayOfArgs.get(0);\n\t\t\t}\n\t\t\tif(arrayOfArgs.size() >=2){\n\t\t\t\ttag = (String) arrayOfArgs.get(1);\n\t\t\t}\n\n\t\t\tswitch (level){\n\t\t\t\tcase \"E\":\n\t\t\t\t\tlogError(tag, 0, System.currentTimeMillis(), format, args);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"W\":\n\t\t\t\t\tlogWarning(tag, 0, System.currentTimeMillis(), format, args);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"I\":\n\t\t\t\t\tlogInfo(tag, 0, System.currentTimeMillis(), format, args);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\t\tlogDebug(tag, 0, System.currentTimeMillis(), format, args);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"V\":\n\t\t\t\t\tlogVerbose(tag, 0, System.currentTimeMillis(), format, args);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlogInfo(tag, 0, System.currentTimeMillis(), format, args);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "61f34f37e0b76a10954db14a0a6a361a", "score": "0.52003175", "text": "public static void i(Context context, String tag, String message, Throwable e) {\n log(context, SalesforceLogger.Level.INFO, tag, message, e);\n }", "title": "" }, { "docid": "a6e9dfc13ce448e9e4c07968f08af3d9", "score": "0.5197529", "text": "public void info(String message) { danubiaLogger.info(message); }", "title": "" }, { "docid": "395cb91d1ad101265a493a63f3f84d01", "score": "0.51935047", "text": "public static void info(String tag,String msg){\r\n\t\tif(PRINT_LEVEL>=2){\r\n\t\t\tLog.i(tag, \"++++++>> \"+msg+\" <<++++++\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ae7ef474f4780ca0705bb15d3d59b9da", "score": "0.5190395", "text": "@Impure\n public static void log(@Nonnull Level level, @Nonnull CharSequence message, @NonCaptured @Unmodified @Nonnull @NullableElements Object... arguments) {\n Logger.log(level, message, null, arguments);\n System.out.println(Strings.format(message, arguments));\n }", "title": "" }, { "docid": "58aa60c2dc71f657f44c59f2c00dd42d", "score": "0.51886624", "text": "public void debug(String format, @Nullable Object arg1, @Nullable Object arg2) {\n // slf4j already avoids the array creation for 1 or 2 arg invocations\n logger.debug(format, arg1, arg2);\n }", "title": "" }, { "docid": "f8f5d5b5775e3955613d872ae64c1883", "score": "0.51735", "text": "private void logf(String s, Object... args) {\n //System.out.println(String.format(s, args));\n }", "title": "" }, { "docid": "04c7871070649e5d578313d07fd7e28c", "score": "0.5153269", "text": "void info(final String title, final Icon icon, final String message);", "title": "" }, { "docid": "91c2405228102dea12981063f7a55323", "score": "0.5151677", "text": "public synchronized void info(String infoMsg)\r\n {\r\n if (log.isInfoEnabled())\r\n {\r\n log.info(PREFIX + infoMsg);\r\n }\r\n }", "title": "" }, { "docid": "77227e6545596cf1cfe05ed708d2cc19", "score": "0.51249856", "text": "public void log() {\n\t\t//exceptionInfo.log();\n\t}", "title": "" }, { "docid": "21b2b61f59d8cfed95ce02dd2e0830f9", "score": "0.5122933", "text": "private void logI(String info) {\n Log.i(TAG, info);\n }", "title": "" }, { "docid": "1d1b1cbafd3535efb7b23904c16a8293", "score": "0.5121324", "text": "public void warn(Marker marker, String format, Object arg) {\n \n }", "title": "" }, { "docid": "5454282cb81d33176b24f04a78879edb", "score": "0.5116769", "text": "public static void error(String message, Object arg1, Object arg2, Object arg3) {\n error(String.format(message, arg1, arg2, arg3));\n }", "title": "" }, { "docid": "7634d67d749469217e55e7d11cb9d6c7", "score": "0.508741", "text": "static void debug(String msg, Object... args) {\n\t\tlog(2, msg, args);\n\t}", "title": "" }, { "docid": "ea66a8fd7403fb0043fb08ab277c6ee1", "score": "0.50826263", "text": "static public void i(String tag, String msg, Throwable tr) {\n\t\tif (LEVEL <= android.util.Log.INFO)\n\t\t\tandroid.util.Log.i(tag, msg, tr);\n\t}", "title": "" }, { "docid": "231d61ac817ce7af2646b7c58f3e86c1", "score": "0.50745076", "text": "public void i(String tag, String msg, Throwable thr) {\n log(LEVEL.INFO, tag, msg, thr);\n }", "title": "" } ]
3e0d649646418b46ae4762b2548e2585
Evaluation of static typing feature within a "where" clause. Wrong operand for expression (uses fn:min). .
[ { "docid": "a40c2faa11457b9163022db7af09eda6", "score": "0.49994475", "text": "@org.junit.Test\n public void statictyping5() {\n final XQuery query = new XQuery(\n \"for $var in (\\\"a\\\",\\\"b\\\",\\\"c\\\") where fn:min(($var,1)) return $var\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n error(\"FORG0006\")\n );\n }", "title": "" } ]
[ { "docid": "9eda31c25f7ae7d3f15c0c8af0088a08", "score": "0.6024587", "text": "T min();", "title": "" }, { "docid": "419006f2d0d6644c7817466a3d38b5fe", "score": "0.58360076", "text": "@Test void testMinAggWithDouble() {\n try (Hook.Closeable ignored = Hook.ENABLE_BINDABLE.addThread(Hook.propertyJ(true))) {\n CalciteAssert.hr()\n .query(\n \"select min(div) as _min from (\"\n + \"select \\\"empid\\\", \\\"deptno\\\", CAST(\\\"empid\\\" AS DOUBLE)/\\\"deptno\\\" as div from \\\"hr\\\".\\\"emps\\\")\")\n .explainContains(\"BindableAggregate(group=[{}], _MIN=[MIN($0)])\\n\"\n + \" BindableProject(DIV=[/(CAST($0):DOUBLE NOT NULL, $1)])\\n\"\n + \" BindableTableScan(table=[[hr, emps]])\")\n .returns(\"_MIN=10.0\\n\");\n }\n }", "title": "" }, { "docid": "0ea51ed498a37551492a6d033fba3f36", "score": "0.5672056", "text": "public V min();", "title": "" }, { "docid": "738cf73171c77f94c9c73c52cb10e7c1", "score": "0.5551688", "text": "N MIN_VALUE();", "title": "" }, { "docid": "272a0c93cfb49e08e055760642187ab9", "score": "0.54009736", "text": "OptionalLong min();", "title": "" }, { "docid": "40884db863607abe2c87834cfbbde59f", "score": "0.5356645", "text": "public Object $min(String field){\r\n\t\treturn BaseHandler.function(clazz, false, FunctionOperation.MIN, field, this);\r\n\t}", "title": "" }, { "docid": "6ce5ceb43a990eac619015f362209d38", "score": "0.5316104", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic T min() {\n\t\tif (!Comparable.class.isAssignableFrom(PrimitiveWrapper.wrap(bean.getType()))) {\n\t\t\tthrow new JFilterException(\"Reduce function on type: \" + bean.getType() + \" is not supported.\");\n\t\t}\n\n\t\treturn (T) Reducer.min((Iterable<Comparable>) iterable);\n\t}", "title": "" }, { "docid": "7d93576c87198401595de38cc5045bcc", "score": "0.52649635", "text": "public FloatColumn getObservedCriterionFMin() {\n return (FloatColumn) (isText ? textFields.computeIfAbsent(\"observed_criterion_F_min\", FloatColumn::new) :\n getBinaryColumn(\"observed_criterion_F_min\"));\n }", "title": "" }, { "docid": "133449b0665ff066eda29531f3a58ac8", "score": "0.5262195", "text": "@Override\n \tprotected <U extends IValue> Result<U> lessThanOrEqualReal(RealResult that, IEvaluatorContext ctx) {\n \t\treturn that.lessThanOrEqual(widenToReal(), ctx);\n \t}", "title": "" }, { "docid": "995800384144f32a164c645a94d22f42", "score": "0.52515787", "text": "double getMin();", "title": "" }, { "docid": "995800384144f32a164c645a94d22f42", "score": "0.52515787", "text": "double getMin();", "title": "" }, { "docid": "f3073c5abe20293cb9ca5f91004ee8d9", "score": "0.52437544", "text": "public double getMin();", "title": "" }, { "docid": "f70e6884b2c90ece3c453609b17cf666", "score": "0.52223074", "text": "@Override\n \tprotected <U extends IValue> Result<U> lessThanReal(RealResult that, IEvaluatorContext ctx) {\n \t\treturn that.lessThan(widenToReal(), ctx);\n \t}", "title": "" }, { "docid": "adea83ec37f0f412670875cfe622d412", "score": "0.5212699", "text": "public double minimum();", "title": "" }, { "docid": "ff6fa9eff9ed73a020924753d7023a95", "score": "0.51811194", "text": "@Override\n\tpublic NumberExpression minX() {\n\n\t\treturn new NumberExpression(new LineFunctionWithNumberResult(this) {\n\n\t\t\t@Override\n\t\t\tpublic String doExpressionTransform(DBDatabase db) {\n\t\t\t\treturn db.getDefinition().doLine2DGetMinXTransform(getFirst().toSQLString(db));\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "183f08f92371f98571e7023ad8e151a8", "score": "0.5169452", "text": "String getMinConstraint();", "title": "" }, { "docid": "f0873f2c806bf484270a724e8f1b705b", "score": "0.5162373", "text": "Min createMin();", "title": "" }, { "docid": "23cb51bb724ee45aa9da7c31d9c4d885", "score": "0.51433575", "text": "public static MinorType getLeastRestrictiveType(List<MinorType> types) {\n assert types.size() >= 2;\n MinorType result = types.get(0);\n if (result == MinorType.UNION) {\n return result;\n }\n\n ImmutableMap<MinorType, Integer> precedenceMap = ResolverTypePrecedence.PRECEDENCE_MAP;\n\n int resultPrec = precedenceMap.get(result);\n\n for (int i = 1; i < types.size(); i++) {\n MinorType next = types.get(i);\n if (next == MinorType.UNION) {\n return next;\n }\n if (next == result) {\n // both args are of the same type; continue\n continue;\n }\n\n // Force float -> decimal to convert both to double.\n if ((result == MinorType.FLOAT4 && next == MinorType.DECIMAL) ||\n (result == MinorType.DECIMAL && next == MinorType.FLOAT4)) {\n result = MinorType.FLOAT8;\n continue;\n }\n\n int nextPrec = precedenceMap.get(next);\n\n if (isCastable(next, result) && resultPrec >= nextPrec) {\n // result is the least restrictive between the two args; nothing to do continue\n continue;\n } else if(isCastable(result, next) && nextPrec >= resultPrec) {\n result = next;\n resultPrec = nextPrec;\n } else {\n return null;\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "9d9ad0cc51cbacf595840d10ee212e7a", "score": "0.5131613", "text": "@Test\n public void testCastInWhere() {\n Person person = query.from(Person.class);\n\n query.whereString(query.hqlFunction().cast(person.getAge(), String.class)).startsWith(\"10\");\n\n validate(\" from Person hobj1 where cast(hobj1.age as string) like '10%'\");\n }", "title": "" }, { "docid": "58771f1c7cfec47b566f53fcc3064565", "score": "0.51302177", "text": "public FPExpr mkFPMin(Expr<FPSort> t1, Expr<FPSort> t2)\n {\n return new FPExpr(this, Native.mkFpaMin(nCtx(), t1.getNativeObject(), t2.getNativeObject()));\n }", "title": "" }, { "docid": "6b664a55bf7b0711c45e9ab9e0c4a032", "score": "0.5127722", "text": "private AvlNode<AnyType> findMin( AvlNode<AnyType> t )\n {\n if( t == null )\n return t;\n\n while( t.left != null )\n t = t.left;\n return t;\n }", "title": "" }, { "docid": "f082eba234e9f60161bd42c19e934c3e", "score": "0.51144636", "text": "ExprBuilder<T> lessThan(Double rhs);", "title": "" }, { "docid": "1781cc2c9c3cc920c9f582b08c5bd663", "score": "0.5102447", "text": "private T min(final double d, final T f) {\n return (f.getReal() > d) ? zero.add(d) : f;\n }", "title": "" }, { "docid": "24fc536da2ffbd887e68f612d224fb9e", "score": "0.5078989", "text": "public static DoubleFunction min(final double b) {\n return new DoubleFunction() {\n\n @Override\n public double apply(double a) {\n return Math.min(a, b);\n }\n };\n }", "title": "" }, { "docid": "463255dcbf53c683bd35d6b6bb40a5ee", "score": "0.50647944", "text": "boolean hasMin();", "title": "" }, { "docid": "faeb9e8b82f98e61458d19bc67b395c2", "score": "0.50644433", "text": "public T caseMinConstraint(MinConstraint object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4c8d7899c67f4cffd69888c5329e56fd", "score": "0.5023408", "text": "protected abstract Bound<T> MinBound(Bound<T> bound1, Bound<T> bound2);", "title": "" }, { "docid": "b7160d6197b4a718b6c78fcdc503f8df", "score": "0.50230575", "text": "private float _min(float value, float min)\n {\n if (value < min)\n {\n return value;\n }\n else\n {\n return min;\n }\n }", "title": "" }, { "docid": "e21ca5079831093a545bca79bd9f0d73", "score": "0.50185627", "text": "public static void main(String[] args) {\n MyMath mm = new MyMath();\n long x = 300;\n long y = 400;\n long min = mm.min(x,y);\n System.out.println(min);\n\n double xd = 300.5;\n double yd = 400.6;\n double mind = mm.min(xd,yd);\n System.out.println(mind);\n }", "title": "" }, { "docid": "3de0a885931fa0a541100ddedefa38af", "score": "0.50012624", "text": "public void testMin() throws Exception {\n assertEquals(new Double(1d), this.defaultContext.getValue(\"min(/data/number)\"));\n assertEquals(kNaN, this.defaultContext.getValue(\"min(/data/text)\"));\n assertEquals(kNaN, this.defaultContext.getValue(\"min(/non-existing)\"));\n }", "title": "" }, { "docid": "f8b0721070c0997658f5f2cc11143b11", "score": "0.49972427", "text": "public AnyType findMin( )\n {\n if( isEmpty( ) )\n throw new UnderflowException( );\n return findMin( root ).element;\n }", "title": "" }, { "docid": "7ea9363ed27f4be6d5777e3e61f81c5d", "score": "0.49783725", "text": "public AnyType findMin( )\n {\n\t\tif( isEmpty( ) )\n\t\t\tthrow new UnderflowException( );\n return findMin( root ).element;\n }", "title": "" }, { "docid": "9f8c1948ed6c838778e69462274d14a3", "score": "0.49763638", "text": "public double getMinRaw();", "title": "" }, { "docid": "e96a161ec678dd3d86499540a4ff1733", "score": "0.49475804", "text": "public Comparable<?> getMinimum() {\n return min;\n }", "title": "" }, { "docid": "3267570ed2ba79e60955d59bf44a697a", "score": "0.49462116", "text": "private static short minimum(int a, int b, int c)\n {\n return (short)Math.min(a, Math.min(b, c));\n }", "title": "" }, { "docid": "1c750900264e46369c9981b562b465aa", "score": "0.49432564", "text": "public final Number getMin(){\r\n switch(getDataType()){\r\n case FLOAT:\r\n return this.min.floatValue();\r\n case INTEGER:\r\n return this.min.intValue();\r\n default:\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "cb7f80602042dfec27ef7892a6bbe56e", "score": "0.49406692", "text": "public double minFX() {\n\tdouble minVal = Double.POSITIVE_INFINITY;\n\tfor ( int i = 1; i <= a.length(); i++ ) {\n\t minVal = ( minVal<a.get(i) ? minVal : a.get(i) );\n\t} // for\n\treturn minVal;\n }", "title": "" }, { "docid": "cc79e7f08f4f313882e6cb6d25612dd3", "score": "0.49341646", "text": "double minBound();", "title": "" }, { "docid": "4ca8abfe8361adc04b5464daa978f8a4", "score": "0.49334356", "text": "Integer getMin();", "title": "" }, { "docid": "27d34f91d00e6895acc9bfb96c937e69", "score": "0.49313086", "text": "private BinaryNode<AnyType> findMin( BinaryNode<AnyType> t )\n {\n if( t == null )\n return null;\n else if( t.left == null )\n return t;\n return findMin( t.left );\n }", "title": "" }, { "docid": "88cadb9c248182d865f8620d1db71c5d", "score": "0.49017167", "text": "public double getMin() {\n\t\tif (!this.parameter.isNumeric())\n\t\t\treturn this.dataSheet.getMinValueOf(this.parameter);\n\t\telse\n\t\t\treturn min;\n\t}", "title": "" }, { "docid": "ca4b97adafd40d693f1cef3c774a69db", "score": "0.49014506", "text": "public static final <T extends java.lang.Comparable<? super T>> T min(java.lang.Iterable<? extends T> r3) {\r\n /*\r\n java.lang.String r0 = \"$this$min\"\r\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\r\n java.util.Iterator r3 = r3.iterator()\r\n boolean r0 = r3.hasNext()\r\n if (r0 != 0) goto L_0x0011\r\n r3 = 0\r\n return r3\r\n L_0x0011:\r\n java.lang.Object r0 = r3.next()\r\n java.lang.Comparable r0 = (java.lang.Comparable) r0\r\n L_0x0017:\r\n boolean r1 = r3.hasNext()\r\n if (r1 == 0) goto L_0x002b\r\n java.lang.Object r1 = r3.next()\r\n java.lang.Comparable r1 = (java.lang.Comparable) r1\r\n int r2 = r0.compareTo(r1)\r\n if (r2 <= 0) goto L_0x0017\r\n r0 = r1\r\n goto L_0x0017\r\n L_0x002b:\r\n return r0\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.collections._Collections.min(java.lang.Iterable):java.lang.Comparable\");\r\n }", "title": "" }, { "docid": "9983588cfab4ee2c4f204d92fe9a11f9", "score": "0.48894882", "text": "private static Person minimizerGeneric(List<Person> madMen) {\n final Person youngestCastMember = minGeneric(madMen,new AgeComparator());\n\n// final Person youngestCastMember2 = (Person) minGeneric(madMen, new Comparator<Integer>() {\n// @Override\n// public int compare(Integer o1, Integer o2) {\n// return Integer.compare(o1, o2);\n// }\n// });\n\n List<Integer> numbers = new ArrayList<>();\n\n numbers.add(1);\n numbers.add(2);\n numbers.add(3);\n\n System.out.println(minGeneric(numbers,Integer::compare));\n return youngestCastMember;\n }", "title": "" }, { "docid": "c41bef175a08a60ac36cc76efcde9ea7", "score": "0.48740193", "text": "T limit2 (float limit2);", "title": "" }, { "docid": "fbafae22cbaa1e44ffc57563d85d5b53", "score": "0.48507398", "text": "private float min(float[] x) {\r\n int i;\r\n int maskLength = 0;\r\n float min = x[0];\r\n\r\n if (DIM == 2) {\r\n maskLength = 5;\r\n } else if (DIM == 3) {\r\n maskLength = 14;\r\n }\r\n\r\n for (i = 1; i < maskLength; i++) {\r\n min = Math.min(x[i], min);\r\n }\r\n\r\n return min;\r\n }", "title": "" }, { "docid": "89526c6c98783ec7ba40424fbf4439c6", "score": "0.48500434", "text": "Builder min(Bson min);", "title": "" }, { "docid": "53e5348dc71e27e88e23e07d995bff6c", "score": "0.48333877", "text": "public LessThan(String columnName, PredicateLeaf.Type literalType, Serializable literal) {\n super(columnName, literalType, literal);\n }", "title": "" }, { "docid": "640f3d648ec8bfe90eceee7557a250da", "score": "0.4828107", "text": "Double getRtMin();", "title": "" }, { "docid": "202184e4ad28b01a5f0ac00b6d24f1f0", "score": "0.481491", "text": "public double simplebounds(double param){\r\n\tif (param < minX){return minX;}\r\n\telse if (param > maxX){\treturn maxX;}\r\n\telse{return param;}\r\n }", "title": "" }, { "docid": "58f77edecd00869773cd06c3471cf65b", "score": "0.4800239", "text": "Expression getFirstOperand();", "title": "" }, { "docid": "9770332cb4ae9e2bb02735e2b2db4640", "score": "0.47856504", "text": "float getMinValue();", "title": "" }, { "docid": "7e4e792c7ee548be0cc4be75fc43e831", "score": "0.4785602", "text": "private static final <R extends Comparable<? super R>> UShort m637minByxTcfx_M(short[] sArr, Function1<? super UShort, ? extends R> function1) {\n if (UShortArray.m278isEmptyimpl(sArr)) {\n return null;\n }\n short s = UShortArray.m275getimpl(sArr, 0);\n Comparable comparable = (Comparable) function1.invoke(UShort.m220boximpl(s));\n int lastIndex = ArraysKt.getLastIndex(sArr);\n int i = 1;\n if (1 <= lastIndex) {\n while (true) {\n short s2 = UShortArray.m275getimpl(sArr, i);\n Comparable comparable2 = (Comparable) function1.invoke(UShort.m220boximpl(s2));\n if (comparable.compareTo(comparable2) > 0) {\n s = s2;\n comparable = comparable2;\n }\n if (i == lastIndex) {\n break;\n }\n i++;\n }\n }\n return UShort.m220boximpl(s);\n }", "title": "" }, { "docid": "a4de1f07e379fa513018970640e785c9", "score": "0.47846", "text": "public static double findMinParameter(Shape [] shapeArray, String dynamicType)\n {\n\n double minParameter = 0.0;\n //setting to arbitrary min parameter\n for (Shape currentShape:\n shapeArray) {\n if(currentShape == null) continue;\n if(currentShape.getClass().getSimpleName().equals(dynamicType))\n {\n minParameter = currentShape.getPerimeter();\n break;\n }\n }\n\n for(int i = 0; i < shapeArray.length; i++)\n {\n if (shapeArray[i] == null) continue;\n if (shapeArray[i].getClass().getSimpleName().equals(dynamicType) && shapeArray[i].getPerimeter() < minParameter)\n {\n minParameter = shapeArray[i].getPerimeter();\n }\n }\n return minParameter;\n }", "title": "" }, { "docid": "eb53c39fabfa3c2ee9773e71aa8ea8de", "score": "0.4779812", "text": "private static void minQuerySumUpdate() {\n long[] v = {2, 1, 3, 4, -1};\n GenericSegmentTree2 st =\n new GenericSegmentTree2(v, SegmentCombinationFn.MIN, RangeUpdateFn.ADDITION);\n\n int l = 1;\n int r = 3;\n long q = st.rangeQuery1(l, r);\n if (q != 1) System.out.println(\"Error\");\n System.out.printf(\"The min between indeces [%d, %d] is: %d\\n\", l, r, q);\n\n st.printDebugInfo();\n }", "title": "" }, { "docid": "d3b0a894dc4522b2e150085b53287d91", "score": "0.47626188", "text": "@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tdouble minimumValue();", "title": "" }, { "docid": "81f72c266a237a0c2af7c2190335004f", "score": "0.47587767", "text": "private static void minMaxExamples() {\n Stream<String> s = Stream.of(\"a\", \"b\", \"c\");\n Optional<String> min = s.min((s1, s2) -> s1.length() - s2.length());\n min.ifPresent(System.out::println); // a\n\n Optional<?> minEmpty = Stream.empty().min((s1, s2) -> -1); // -1, 0, 1 all return false since stream is empty\n System.out.println(minEmpty.isPresent()); // false\n }", "title": "" }, { "docid": "d58fddc8d4b819c87bd3f887e160fc9b", "score": "0.47530043", "text": "protected double calcMinX() { return calcMinX(x); }", "title": "" }, { "docid": "77c7e3288cfe06642430d39dae94a9db", "score": "0.47473818", "text": "private static int getMin(int v1, int v2, int v3) {\n return Math.min(Math.min(v1, v2), v3);\n }", "title": "" }, { "docid": "cc7417259002bded91f64dd08220ab36", "score": "0.47287014", "text": "long getMin();", "title": "" }, { "docid": "fa332d2dadd86a55a183426b6b800b92", "score": "0.4728308", "text": "@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(26)\n\tvoid minimumValue(double pVal);", "title": "" }, { "docid": "ad43dded3602e3cfcbde0af3f5924bfb", "score": "0.47129256", "text": "static float minimum3(float a, float b, float c) {\r\n\r\n return Math.min(Math.min(a,b), c);\r\n }", "title": "" }, { "docid": "6f871a871ca0ebc9f4e08567e4675b15", "score": "0.47082648", "text": "private double min3(double a, double b, double c) {\n\t\treturn (a < b) ? ((a < c) ? a : c) : ((b < c) ? b : c);\n\t}", "title": "" }, { "docid": "1ee889c98aa702c130d2ed447fafc004", "score": "0.47055578", "text": "public Object valMin(String label){\n int i = numColonne(label);\n if (i!=-1){\n switch (types[i]){\n case \"String\":\n //System.err.println(\"La valeur Min ne peut pas être fait sur un String\");\n break;\n case \"Integer\":\n int iMin =(Integer) tab[1][i];\n for (int k = 1; k< tab.length; k++){\n if ((Integer) tab[k][i]<iMin) {\n iMin = (int) tab[k][i];\n }\n }\n return iMin;\n case \"Float\":\n float fMin =(Float) tab[1][i];\n for (int k = 1; k< tab.length; k++){\n if ((Float) tab[k][i]<fMin){\n fMin =(Float) tab[k][i];\n }\n\n }\n return fMin;\n }\n }\n return null;\n }", "title": "" }, { "docid": "964b1acec93bce6244285b16e20c116c", "score": "0.46791643", "text": "private BinaryNode<AnyType> findMin( BinaryNode<AnyType> node ) {\n\n\t\tif ( node.getLeft() == null ) {\n\n\t\t\treturn node;\n\n\t\t} else {\n\n\t\t\treturn findMin( node.getLeft() );\n\t\t}\n\n\t}", "title": "" }, { "docid": "ddb1981ff8783a00ff71af3963e9da5f", "score": "0.467859", "text": "public Int firstOf(Function<E, Boolean> condition);", "title": "" }, { "docid": "4885f7875faf4eaa26a2ba9ab66d507a", "score": "0.46754724", "text": "public static final <T> T minWith(java.lang.Iterable<? extends T> r3, java.util.Comparator<? super T> r4) {\r\n /*\r\n java.lang.String r0 = \"$this$minWith\"\r\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\r\n java.lang.String r0 = \"comparator\"\r\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r0)\r\n java.util.Iterator r3 = r3.iterator()\r\n boolean r0 = r3.hasNext()\r\n if (r0 != 0) goto L_0x0016\r\n r3 = 0\r\n return r3\r\n L_0x0016:\r\n java.lang.Object r0 = r3.next()\r\n L_0x001a:\r\n boolean r1 = r3.hasNext()\r\n if (r1 == 0) goto L_0x002c\r\n java.lang.Object r1 = r3.next()\r\n int r2 = r4.compare(r0, r1)\r\n if (r2 <= 0) goto L_0x001a\r\n r0 = r1\r\n goto L_0x001a\r\n L_0x002c:\r\n return r0\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.collections._Collections.minWith(java.lang.Iterable, java.util.Comparator):java.lang.Object\");\r\n }", "title": "" }, { "docid": "26668b2bfa11c2e8268e1d36fff04d4f", "score": "0.46741015", "text": "int getMin();", "title": "" }, { "docid": "0a98cc54b0e1d621465f9e9f1d8f8c99", "score": "0.4672857", "text": "public float getMinValue();", "title": "" }, { "docid": "951bbf64cf4f32479f7224207893c778", "score": "0.4672346", "text": "public double min() {\n\t\tdouble min = v[0];\n\t\tfor (int i = 1; i < v.length; i++)\n\t\t\tmin = Math.min(min, v[i]);\n\t\treturn min;\n\t}", "title": "" }, { "docid": "a287af1debdaa929ce0858f3d470bc0d", "score": "0.4650926", "text": "@Test\n public void testMinimum(){\n assertTrue(\"Computed minimum should be 10\", df.minimum(0) == 10.0);\n assertTrue(\"Computed minimum should be 11\", df.minimum(1) == 11.0);\n assertTrue(\"Computed minimum should be 12\", df.minimum(2) == 12.0);\n assertTrue(\"Computed minimum should be 13\", df.minimum(3) == 13.0);\n assertEquals(\"Computed minimum should be 10.1\", 10.1, df.minimum(6), 0.005);\n assertEquals(\"Computed minimum should be 11.1\", 11.1, df.minimum(7), 0.005);\n }", "title": "" }, { "docid": "ef3ad35001e35e66cd0083334b534d9e", "score": "0.4641862", "text": "@Test\n public void testCastNumberSubclassCompiles() {\n Product product = query.from(Product.class);\n\n query.whereNumber(query.hqlFunction().cast(product.getManyProperties().getProperty1(), Long.class)).lt(10.0d);\n\n validate(\" from Product hobj1 where cast(hobj1.manyProperties.property1 as long) < 10.0\");\n }", "title": "" }, { "docid": "eb09982493684e7d75516b8a0c097f2a", "score": "0.4640687", "text": "public static <T extends Comparable<T>> T calculateMin(T t1, T t2){\n if(t1.compareTo(t2)<0){\n return t1;\n }\n return t2;\n }", "title": "" }, { "docid": "032f4993227237129f54730359de9c9e", "score": "0.46275634", "text": "public Simplex getMinSimplex()\r\n\t{\r\n\t\tdouble min = -MAXVALUE;\r\n\t\tSimplex minSimplex = null;\r\n\t\tfor (int ii = 0; ii < list.size(); ii++)\r\n\t\t{\r\n\t\t\tif (((Simplex) list.get(ii)).getValue() < min)\r\n\t\t\t{\r\n\t\t\t\tminSimplex = (Simplex) list.get(ii);\r\n\t\t\t\tmin = ((Simplex) list.get(ii)).getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minSimplex;\r\n\t}", "title": "" }, { "docid": "ce02c7662070bd2bf9384863a66feda7", "score": "0.46250936", "text": "public double getMinForDataType(int dataType) {\r\n \t\r\n \tdouble min = 0.0;\r\n \tif (dataType == DataBuffer.TYPE_BYTE) {\r\n \t\t// min = Byte.MIN_VALUE;\r\n \t\tmin = 0.0; //used as unsigned\r\n\t }\r\n\t else if (dataType == DataBuffer.TYPE_SHORT) {\r\n\t \tmin = Short.MIN_VALUE;\r\n\t }\t \r\n\t else if (dataType == DataBuffer.TYPE_USHORT) {\t \t\r\n\t \tmin = 0.0;\r\n\t }\r\n\t else if (dataType == DataBuffer.TYPE_INT) {\r\n\t \tmin = Integer.MIN_VALUE; // or 0.0 ?? // assume unsigned ???\r\n\t }\t \r\n\t else if (dataType == DataBuffer.TYPE_FLOAT) {\r\n\t \tmin = Float.MIN_VALUE; \r\n\t }\r\n\t else if (dataType == DataBuffer.TYPE_DOUBLE) {\r\n\t \tmin = Double.MIN_VALUE; \r\n\t }\r\n\t \r\n\t return min;\r\n\t }", "title": "" }, { "docid": "31b08b71448b230c529e824bbeecd12d", "score": "0.46209553", "text": "float getLowerBound();", "title": "" }, { "docid": "0d28727b8ef8d39fc490e0f026c3c9b6", "score": "0.4615242", "text": "public static Z min(final Z... v) {\n if (v == null || v.length == 0) {\n return null;\n }\n Z m = v[0];\n for (int k = 1; k < v.length; ++k) {\n if (v[k].compareTo(m) < 0) {\n m = v[k];\n }\n }\n return m;\n }", "title": "" }, { "docid": "b3530bd163c2ca685879df26d7f8e0aa", "score": "0.46105194", "text": "Optional<Bson> getMin();", "title": "" }, { "docid": "06152f004e0f2d8bf736d9884ec4a4b3", "score": "0.46096927", "text": "public static int StaticCondition() {\n int a, b, c;\n a = 7;\n b = 2;\n if (a < b)\n c = a + b;\n else\n c = a - b;\n return c;\n }", "title": "" }, { "docid": "75e4bb18b1b72e1f23e4f2df81db236b", "score": "0.46009195", "text": "public static void main(String[] args){\n List<Integer> integerList = Arrays.asList();\n\n int minValue = findMinValue(integerList);\n System.out.println(\"Min value :- \"+minValue);\n\n Optional<Integer> minValueOptional = findMinValueOptional(integerList);\n System.out.println(\"Optional min is \" +minValueOptional);\n if(minValueOptional.isPresent()){\n System.out.println(\"minValue using Optional :- \" +minValueOptional.get());\n }else{\n System.out.println(\"No input is passed\");\n }\n\n\n\n }", "title": "" }, { "docid": "75da7fc9b46dcfeb51c912d3860517a3", "score": "0.45914122", "text": "public Object caseMinimumType(MinimumType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c56e875fb38d9a27a2281bfbb0680c31", "score": "0.45892134", "text": "@Override\n public E min() {\n return null;\n }", "title": "" }, { "docid": "c727a291a6698af7497ebb46750bbea9", "score": "0.45888928", "text": "public static double min(double [] vect){\n\tdouble tv = 0.0;\n\tint i;\n\tfor (i=0;i<vect.length;i++)\n\t if ( (i==0) || (vect[i] < tv) )\n\t\ttv = vect[i];\n\treturn tv;\n }", "title": "" }, { "docid": "26f1478b716c6bb4d64bfb9e48562fe9", "score": "0.45795196", "text": "interface ExtendedTuple3<T0, T1, T2> extends Tuple3<T0, T1, T2> {\n\n static <N0, N1, N2> Predicate<ExtendedTuple3<N0, N1, N2>> testing0(Predicate<N0> predicate) {\n return null;\n }\n\n // ...\n }", "title": "" }, { "docid": "e26a0723413eb32d63bb6bc4b9074b51", "score": "0.45611295", "text": "static int min(int... nums) {\r\n\t\tint min_val = nums[1];\r\n\t\tfor (int var : nums) {\r\n\t\t\tmin_val = (var < min_val) ? var : min_val;\r\n\t\t}\r\n\t\treturn min_val;\r\n\t}", "title": "" }, { "docid": "2bc9d38f4e04c84256cf9db7fd343fa8", "score": "0.45551145", "text": "private static <T> T minGeneric(List<T> values, Comparator<T> comparator){\n if(values.isEmpty()){\n throw new IllegalArgumentException(\"List is empty\");\n }\n\n T lowestElement = values.get(0);\n\n for(int i=0;i<values.size();i++){\n final T element = values.get(i);\n if(comparator.compare(element,lowestElement) < 0){\n lowestElement = element;\n }\n }\n\n return lowestElement;\n\n }", "title": "" }, { "docid": "9f7191b979e456a7f15d8f65148ed834", "score": "0.45535162", "text": "int getMinimum();", "title": "" }, { "docid": "aa4c4c71ce0b29eea7bc817133954e8f", "score": "0.4546888", "text": "private static int min(int a, int b, int c) {\n return Math.min(a, Math.min(b, c));\n }", "title": "" }, { "docid": "aa4c4c71ce0b29eea7bc817133954e8f", "score": "0.4546888", "text": "private static int min(int a, int b, int c) {\n return Math.min(a, Math.min(b, c));\n }", "title": "" }, { "docid": "ecd13c57537f1e340be0a5314cebddfe", "score": "0.45457575", "text": "public double getMinForDataType(int dataType) {\n \t\n \tdouble min = 0.0;\n \tif (dataType == DataBuffer.TYPE_BYTE) {\n \t\t// min = Byte.MIN_VALUE;\n \t\tmin = 0.0; //used as unsigned\n\t }\n\t else if (dataType == DataBuffer.TYPE_SHORT) {\n\t \tmin = Short.MIN_VALUE;\n\t }\t \n\t else if (dataType == DataBuffer.TYPE_USHORT) {\t \t\n\t \tmin = 0.0;\n\t }\n\t else if (dataType == DataBuffer.TYPE_INT) {\n\t \tmin = Integer.MIN_VALUE; // or 0.0 ?? // assume unsigned ???\n\t }\t \n\t else if (dataType == DataBuffer.TYPE_FLOAT) {\n\t \tmin = Float.MIN_VALUE; \n\t }\n\t else if (dataType == DataBuffer.TYPE_DOUBLE) {\n\t \tmin = Double.MIN_VALUE; \n\t }\n\t \n\t return min;\n\t }", "title": "" }, { "docid": "1c13c624874ab1fba9a20e3544889330", "score": "0.45414016", "text": "public static double getMin(double data[]) {\n\n double min = data[0];\n for (int i = 0; i < data.length; i++) {\n if (data[i] < min) {\n min = data[i];\n }\n }\n return min;\n }", "title": "" }, { "docid": "24af2ce688adaa52c5d97ca94f577de5", "score": "0.45367917", "text": "public static final <T, R extends java.lang.Comparable<? super R>> T minBy(java.lang.Iterable<? extends T> r5, kotlin.jvm.functions.Function1<? super T, ? extends R> r6) {\r\n /*\r\n java.lang.String r0 = \"$this$minBy\"\r\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r5, r0)\r\n java.lang.String r0 = \"selector\"\r\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r6, r0)\r\n java.util.Iterator r5 = r5.iterator()\r\n boolean r0 = r5.hasNext()\r\n if (r0 != 0) goto L_0x0016\r\n r5 = 0\r\n return r5\r\n L_0x0016:\r\n java.lang.Object r0 = r5.next()\r\n boolean r1 = r5.hasNext()\r\n if (r1 != 0) goto L_0x0021\r\n return r0\r\n L_0x0021:\r\n java.lang.Object r1 = r6.invoke(r0)\r\n java.lang.Comparable r1 = (java.lang.Comparable) r1\r\n L_0x0027:\r\n java.lang.Object r2 = r5.next()\r\n java.lang.Object r3 = r6.invoke(r2)\r\n java.lang.Comparable r3 = (java.lang.Comparable) r3\r\n int r4 = r1.compareTo(r3)\r\n if (r4 <= 0) goto L_0x0039\r\n r0 = r2\r\n r1 = r3\r\n L_0x0039:\r\n boolean r2 = r5.hasNext()\r\n if (r2 != 0) goto L_0x0027\r\n return r0\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.collections._Collections.minBy(java.lang.Iterable, kotlin.jvm.functions.Function1):java.lang.Object\");\r\n }", "title": "" }, { "docid": "936e7bac7037588337fb571ad4c74175", "score": "0.45358926", "text": "public Double min(String fieldname) throws Exception {\r\n\t\tIterator<DataRow> it = iterator();\r\n\t\tDouble s = 0.0;\r\n\t\tBoolean first = true;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tDataRow dr = it.next();\r\n\t\t\tDouble d = dr.getFieldAsNumber(fieldname);\r\n\t\t\tif (first || d < s) {\r\n\t\t\t\ts = d;\r\n\t\t\t\tfirst = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "b8385636ff80c8c6656023565c204620", "score": "0.45331734", "text": "@Test\n void testEscapeAndViolationOfLowerBound() {\n int size = 2;\n double distance = 10;\n GraphModel<Double> city = new GraphModel<>(size);\n city.add(0, distance, 1);\n ArrayList<Boolean> s = new ArrayList<>(Arrays.asList(true, true));\n DistanceStructure<Double, Double> distanceStructure = new DistanceStructure<>(x -> x, new DoubleDistance(), distance + 1, Double.MAX_VALUE, city);\n\n List<Boolean> results = distanceStructure.escape(new BooleanDomain(), s::get);\n\n assertFalse(results.get(0));\n }", "title": "" }, { "docid": "a05157092372228a982301a5d289511d", "score": "0.45318627", "text": "public static double min(double value, double min)\n\t{\n\t\tif(value<min)\n\t\t\treturn value;\n\t\telse\n\t\t\treturn min;\n\t}", "title": "" }, { "docid": "f252c62ab10e610e82721c44ed193018", "score": "0.45078507", "text": "private void computeMinGroupByAttrInt(AttrType[] groupByAttrTypes) throws Exception {\n Tuple tuple;\n float previousGroupByAttrValue = Float.MIN_VALUE;\n Tuple minTuple = null;\n float min = Float.MAX_VALUE;\n float groupByAttrValue = 0;\n int rows = 0;\n\n\n KeyDataEntry temp;\n while ((temp = scanB.get_next()) != null) {\n RID rid = ((LeafData) temp.data).getData();\n tuple = dbHeapFile.getRecord(rid);\n tuple = new Tuple(tuple.getTupleByteArray(), tuple.getOffset(), tuple.getLength());\n tuple.setHdr(noOfColumns, attrType, strSize);\n int index = groupByAttr.offset;\n groupByAttrValue = Phase3Utils.getAttrVal(tuple, index, attrType[index - 1]);\n if (previousGroupByAttrValue == Float.MIN_VALUE) {\n min = Phase3Utils.getAttrVal(tuple, aggList[0].offset, attrType[aggList[0].offset - 1]);\n minTuple = tuple;\n } else if (previousGroupByAttrValue == groupByAttrValue) {\n float val = Phase3Utils.getAttrVal(tuple, aggList[0].offset, attrType[aggList[0].offset - 1]);\n min = Math.min(val, min);\n if (min == val) {\n minTuple = tuple;\n }\n } else {\n Tuple to = new Tuple(Phase3Utils.getAggTuple(groupByAttrValue, groupByAttr.offset, min,\n attrType[aggList[0].offset - 1], attrType));\n min = Phase3Utils.getAttrVal(tuple, aggList[0].offset, attrType[aggList[0].offset - 1]);\n minTuple = tuple;\n if (Phase3Utils.createMaterializedView(materTableName)) {\n materHeapfile.insertRecord(to.returnTupleByteArray());\n } else {\n to.print(groupByAttrTypes);\n }\n rows++;\n }\n previousGroupByAttrValue = groupByAttrValue;\n }\n assert minTuple != null;\n rows++;\n Tuple to = new Tuple(Phase3Utils.getAggTuple(groupByAttrValue, groupByAttr.offset, min,\n attrType[aggList[0].offset - 1], attrType));\n if (Phase3Utils.createMaterializedView(materTableName)) {\n materHeapfile.insertRecord(to.returnTupleByteArray());\n } else {\n to.print(groupByAttrTypes);\n }\n System.out.println(\"No of rows in group by \" + rows);\n }", "title": "" }, { "docid": "17b61dd82680f7f6c521e9a97ab4a857", "score": "0.4507429", "text": "public static native int msat_objective_value_is_strict(long e, long o, int i);", "title": "" }, { "docid": "1e011aad328d00014e650aae38800245", "score": "0.4505474", "text": "private static int min(int one, int two, int three) {\n int min = one;\n if (two < min) {\n min = two;\n }\n if (three < min) {\n min = three;\n }\n return min;\n }", "title": "" }, { "docid": "0fd1e06445a56de43920b8a6c124a995", "score": "0.4505224", "text": "public T findMin( ) {\n return elementAt(findMin(root));\n }", "title": "" }, { "docid": "c0e6881071f9897847e7687a6166326d", "score": "0.45018938", "text": "@Test void testMethodParameterTypeMatch() {\n CalciteAssert.that()\n .query(\"SELECT mod(12.5, cast(3 as bigint))\")\n .planContains(\"final java.math.BigDecimal literal_value = \"\n + \"$L4J$C$new_java_math_BigDecimal_12_5_\")\n .planContains(\"org.apache.calcite.runtime.SqlFunctions.mod(literal_value, \"\n + \"$L4J$C$new_java_math_BigDecimal_3L_)\")\n .returns(\"EXPR$0=0.5\\n\");\n }", "title": "" }, { "docid": "6fd291539a2f943a5220d67bd9d7a263", "score": "0.44992253", "text": "ExprBuilder<T> lessThan(Long rhs);", "title": "" } ]
3f67e2cb85d92641d8274e1557744457
Contexts: Command returns Command Constraint: ( command=Nop | command=Affectation | command=While | command=For | command=If | command=Foreach )
[ { "docid": "be511f9721524c3cd7c6cd9001f96a80", "score": "0.0", "text": "protected void sequence_Command(ISerializationContext context, Command semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" } ]
[ { "docid": "b734d8358f82aab2319d7b7f52f96b35", "score": "0.66298866", "text": "public interface CommandContext\n{\n\t/**\n\t * Retrieve the current attempt number. This will be zero on the initial\n\t * execution attempt on a sequence of <code>Command</code>s, 1 on the first\n\t * retry, etc. Thus, among other things, it will always return 0\n\t * during the <code>PreExecute</code> phase.\n\t * \n\t * @return Retry count.\n\t */\n\tpublic int getAttemptNumber();\n\t\n\t/**\n\t * Retrieve the entire list of <code>Command</code>s that are being\n\t * executed together.\n\t * @return <code>List</code> of <code>Command</code>s.\n\t */\n\tpublic List<Command> getCommands();\n}", "title": "" }, { "docid": "49b25800330fea7cadbdc7b69393262d", "score": "0.61642253", "text": "public interface Command {\n\n /**\n * Returns whether it is a command that must be guaranteed not to be executed\n * at the same time as another command.\n * @return true if the command should ensure that it is not executed at the same\n * time as another command; false otherwise\n */\n boolean isIsolated();\n\n /**\n * This method will be called as the starting point to execute the logic\n * for the action mapped to this command.\n * @param parameters the command parameters\n * @return the message output to the console as a result of an executed command\n */\n CommandResult execute(CommandParameters parameters);\n\n /**\n * This method returns an instance of Command.Descriptor.\n * The descriptor is meta information about the command.\n * @return a Descriptor that is meta information about the command\n */\n Command.Descriptor getDescriptor();\n\n /**\n * An interface that can be used to describe the functionality of the\n * command implementation. This is a very important concept in a text-driven\n * environment such as a command-line user interface.\n */\n interface Descriptor {\n\n /**\n * The purpose of the namespace is to provide an identifier to group\n * commands without relying on class name or other convoluted approaches\n * to group commands.\n *\n * @return the command's namespace\n */\n String getNamespace();\n\n /**\n * Implementation of this method should return a simple string (with no spaces)\n * that identifies the action mapped to this command.\n *\n * @return the name of the action mapped to this command.\n */\n String getName();\n\n /**\n * This method should return a descriptive text about the command\n * it is attached to.\n *\n * @return a descriptive text about the command\n */\n String getDescription();\n\n }\n\n}", "title": "" }, { "docid": "7e64ce62dbc9b076b6cdc8fd7caeaa9f", "score": "0.6131156", "text": "Commands getCommand();", "title": "" }, { "docid": "888bcafa1247b918d9b5725a23be73be", "score": "0.59064806", "text": "ICommandContext getContext();", "title": "" }, { "docid": "a1f7a23cb1130788a925461e946ee4d2", "score": "0.5881501", "text": "public interface Command {\n\n\tvoid action();\n\n\tvoid undo();\n}", "title": "" }, { "docid": "fb33f4a8b092e3a9c1b2033d00ad57d2", "score": "0.58792025", "text": "public interface Commands extends CommandData {\n //In our hello-world app, We will only have one command.\n class Create implements Commands {}\n }", "title": "" }, { "docid": "e05cf9fe5f9648f0c47e716297f0bd4a", "score": "0.5874206", "text": "public List<Command> getCommands();", "title": "" }, { "docid": "c6dbf5f3a6475f4eef0bc97497b76e27", "score": "0.58115107", "text": "ArrayList<Command> getCommands();", "title": "" }, { "docid": "d89b4b38a9dba47b4500070037b3de41", "score": "0.5808524", "text": "CoCommand getCommand();", "title": "" }, { "docid": "5f6e712c19234164062428a9af502726", "score": "0.58082974", "text": "public interface Command<R> extends Measurable {\n Either<Exception, R> apply();\n List<Command<R>> undo();\n}", "title": "" }, { "docid": "ffb4d049932ecec68f7ba54858f89b38", "score": "0.57860225", "text": "java.lang.String getCommand();", "title": "" }, { "docid": "8ae54a285680bada66d1e80d578cf670", "score": "0.57828325", "text": "protected CommandSequence command(\n Assembly<Token, TypeOrType<SlingFunction, Command>, SlingTarget> out) {\n ArrayList<Command> statements = new ArrayList<>();\n while (!out.stackIsEmpty()) {\n statements.add(out.popVal().asV());\n }\n CommandSequence cs = new CommandSequence();\n int n = statements.size();\n for (int i = n - 1; i >= 0; i--) {\n Command o = statements.get(i);\n try {\n cs.addCommand(o);\n } catch (ClassCastException e) {\n throw new RuntimeException(\n \"Expected Command and found \" + o.getClass());\n }\n }\n return cs;\n }", "title": "" }, { "docid": "71364f173e33cb27536410291fcd0f9e", "score": "0.5751348", "text": "public interface Command {\n /**\n * The method executes the list of commands in the classes. The classes that need to execute a\n * list of commands should put them in this method in the sequence they want them to be executed.\n * The execute method will later execute them whe it is called. This way it makes it easier and\n * makes the code look clean.\n */\n void execute();\n\n\n}", "title": "" }, { "docid": "11cd7648633a8bab382882070bd2d326", "score": "0.5745253", "text": "public interface AbstractCommand<T> extends Comparable<AbstractCommand<T>> {\n\n\n /**\n * Execute this command.\n *\n * @param object T is the object that is passed to this command\n * @param args The arguments from the command\n * @author Raine\n * @since 1.1.3\n */\n void execute(T object, Object... args);\n\n /**\n * Get the {@link CommandDescription} that annotates this {@link AbstractCommand}\n *\n * @return The {@link CommandDescription}\n * @author Raine\n * @since 1.1.3\n */\n default CommandDescription getDescription() {\n return getClass().getAnnotation(CommandDescription.class);\n }\n\n /**\n * Return the {@link CommandAttribute}s that are contained within the {@link CommandDescription} annotator\n *\n * @return The {@link CommandAttribute}s\n * @author Raine\n * @since 1.1.3\n */\n default CommandAttribute[] getAttributes() {\n return getDescription().attributes();\n }\n\n /**\n * Returns if the {@link CommandDescription} contains a {@link CommandAttribute} with the given key.\n *\n * @param key The key to check the {@link CommandAttribute} against.\n * @return If the relevant {@link CommandAttribute} exists\n * @author Raine\n * @since 1.1.3\n */\n default boolean hasAttribute(String key) {\n return Arrays.stream(getAttributes()).anyMatch(ca -> ca.key().equals(key));\n }\n\n /**\n * Returns the {@link String} that the given {@link CommandAttribute} contains.\n *\n * @param key The key to get the {@link CommandAttribute} of.\n * @return The relevant {@link String}\n * @author Raine\n * @since 1.1.3\n */\n default String getAttribute(String key) {\n return Arrays.stream(getAttributes()).filter(ca -> ca.key().equals(key)).findFirst().map(CommandAttribute::value).orElse(null);\n }\n\n @Override\n default int compareTo(AbstractCommand<T> that) {\n return this.getDescription().name().compareTo(that.getDescription().name());\n }\n}", "title": "" }, { "docid": "8d67628e630a6885f93ce08e0bb3f887", "score": "0.5694786", "text": "protected abstract boolean commandsCombinable();", "title": "" }, { "docid": "8a93b78dfda81df54f5dffc26e077695", "score": "0.5676978", "text": "public interface Command {\n\n void execute();\n void undo();\n\n}", "title": "" }, { "docid": "7755fc62feae0956574f9e23e57bf14a", "score": "0.56755066", "text": "public interface Command {\n}", "title": "" }, { "docid": "7755fc62feae0956574f9e23e57bf14a", "score": "0.56755066", "text": "public interface Command {\n}", "title": "" }, { "docid": "7755fc62feae0956574f9e23e57bf14a", "score": "0.56755066", "text": "public interface Command {\n}", "title": "" }, { "docid": "c011ba57d44a96b546a4297dd46ce044", "score": "0.5652584", "text": "public interface Command {\n\tpublic String getName();\n\tpublic String describe();\n\tpublic <D> D execute(EntityFactory factory, Resource<?> res, Entity target, Object ...args);\n}", "title": "" }, { "docid": "2232db74b35e166a2d78ca1b4f598ddb", "score": "0.5640911", "text": "public T command() {\n return command;\n }", "title": "" }, { "docid": "67adeda59ab23196797f2234847aaa2a", "score": "0.56348085", "text": "public interface Command {\n\t\n\t\n\tpublic boolean executeCommand(User user, ArrayList<String> args);\n\n\tpublic String getCommandName();\n\t\n\t\n\t\n}", "title": "" }, { "docid": "d47ca2ce9684c7053925752c69daeaed", "score": "0.5634061", "text": "public interface Command {\n\t\n\t/**\n\t * \n\t * @return a string that describes the given command.\n\t */\n\tpublic String toString();\n\t\n\t/**\n\t * \n\t * @return the pressing type of the command.\n\t */\n\tpublic Type getType();\n\t\n\t/**\n\t * Describes how the command will be fired.\n\t * \n\t * @author max\n\t */\n\tpublic enum Type {\n\t\t/**\n\t\t * This command will only fire on \"press down\", and won't continue to fire when held. Think\n\t\t * of it as \"once.\" Also used for normal mouse move events.\n\t\t */\n\t\tPRESS,\n\t\t\n\t\t/**\n\t\t * This command will continue to fire from \"press down\" to \"press up\".\n\t\t */\n\t\tHOLD\n\t}\n}", "title": "" }, { "docid": "f224ab2dfc6a0e76d3226a08ae5903af", "score": "0.56294495", "text": "public interface Command {\n\n void call();\n\n void undo();\n}", "title": "" }, { "docid": "e881ee2f3efc71fa456f9db46ebd43b9", "score": "0.56291676", "text": "public interface Command {\n\n\n /**\n * This method performs the relative command operation\n * @return whether command is successful or not\n */\n boolean execute();\n\n\n /**\n * This method performs a revert of the current command\n * @return whether reverse command is successful or not\n */\n boolean reverse();\n\n\n /**\n * Useful method for analyze a command\n * @param info\n */\n default void debug(String info) {\n System.out.println(\"\\t\\tIn command: \" + this.getClass().getSimpleName());\n System.out.println(\"\\t\\tInfo: \" + info);\n }\n}", "title": "" }, { "docid": "ac027b9c05fb2ff259d3065e56eb329f", "score": "0.5597159", "text": "public interface CommandMode extends Comparable<CommandMode> {\n\t/**\n\t * Check to see if this mode can handle the specified command.\n\t *\n\t * @param command\n\t * The command to check.\n\t *\n\t * @return Whether or not this mode can handle the command. It is assumed not by\n\t * default.\n\t */\n\tdefault boolean canHandle(final String command) {\n\t\treturn false;\n\t}\n\n\t/**\n\t * Get the custom prompt for this mode.\n\t *\n\t * @return The custom prompt for this mode.\n\t *\n\t * @throws UnsupportedOperationException\n\t * If this mode doesn't support a custom\n\t * prompt.\n\t */\n\tdefault String getCustomPrompt() {\n\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\"This mode doesn't support a custom prompt\");\n\t}\n\n\t/**\n\t * Get the name of this command mode.\n\t *\n\t * @return The name of this command mode, or a default string if one isn't\n\t * specified.\n\t */\n\tpublic default String getName() {\n\t\treturn \"(anonymous)\";\n\t}\n\n\t/**\n\t * Check if this mode uses a custom prompt.\n\t *\n\t * @return Whether or not this mode uses a custom prompt.\n\t */\n\tdefault boolean isCustomPromptEnabled() {\n\t\treturn false;\n\t}\n\n\t/**\n\t * Process a command in this mode..\n\t *\n\t * @param command\n\t * The command to process.\n\t *\n\t * @param args\n\t * A list of arguments to the command.\n\t *\n\t * @return The command mode to use for the next command. Defaults to doing\n\t * nothing, and staying in the current mode.\n\t */\n\tdefault CommandMode process(final String command, final String[] args) {\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault int compareTo(final CommandMode o) {\n\t\treturn getName().compareTo(o.getName());\n\t}\n}", "title": "" }, { "docid": "40cbb48fadfe63391b26cd1cd0f4c377", "score": "0.559669", "text": "public abstract void getCommands();", "title": "" }, { "docid": "bd017eb7ce9f0487ea3f8349ed4bd040", "score": "0.5582843", "text": "public interface Command<R> {\n\n /**\n * Override this method to execute the actual command.\n *\n * @param ctxt the context on which the command work. All dependency injections, if any, should be done using this.\n * @return A result. May be {@code null}\n */\n R execute(CommandContext ctxt);\n\n\n /**\n * Retrieves the {@link DvObject}s this command works on. Used by the {@link DataverseEngine}\n * to validate that the user\n * has the permissions required to execute {@code this} command.\n *\n * @return The DvObjects on which the command will work\n */\n Map<String, DvObject> getAffectedDvObjects();\n\n\n /**\n * @return The request under which this command is being executed.\n */\n DataverseRequest getRequest();\n\n /**\n * @return A map of the permissions required for this command\n */\n Map<String, Set<Permission>> getRequiredPermissions();\n\n default boolean isAllPermissionsRequired() {\n return true;\n }\n\n String describe();\n}", "title": "" }, { "docid": "4b857bcf0d4dbf36df09c98b543e4aa8", "score": "0.55820346", "text": "public interface Command {\n\n public void execute();\n public void undo();\n}", "title": "" }, { "docid": "93baf40296cdd1d1dc0ee2162e3be893", "score": "0.55767304", "text": "@Test\n public void testCommands() {\n AtomicInteger model = new AtomicInteger(0);\n\n //Create a few reusable commands.\n Command add10 = Command.parse(\"add 10\");\n Command set20 = Command.parse(\"set 20\");\n Command sub30 = Command.parse(\"sub 30\");\n\n assertThat(model.get(), equalTo(0));\n\n add10.apply(model);\n add10.apply(model);\n\n assertThat(model.get(), equalTo(20));\n\n sub30.apply(model);\n\n assertThat(model.get(), equalTo(-10));\n\n set20.apply(model);\n\n assertThat(model.get(), equalTo(20));\n\n //Commands can also be used in a more fluent manner when reusability\n //is not a concern.\n Command.parse(\"set 1234\").apply(model);\n assertThat(model.get(), equalTo(1234));\n\n //Nonsensical commands return a 'void' command; it doesn't do anything.\n Command.parse(null).apply(model);\n Command.parse(\"\").apply(model);\n Command.parse(\"foo\").apply(model);\n\n assertThat(model.get(), equalTo(1234));\n\n //More complex commands, as opposed to the simple add/set/substract ones have implementations. These are hidden\n //and work exactly the same way as the anonymous ones.\n Command.parse(\"rev\").apply(model);\n assertThat(model.get(), equalTo(4321));\n }", "title": "" }, { "docid": "3f7cb4992623bb74adacaa2670397738", "score": "0.5560283", "text": "CommandTarget getTarget();", "title": "" }, { "docid": "a8934447c3c265b350b8c38f9b883b68", "score": "0.55583316", "text": "CommandCode getCommand();", "title": "" }, { "docid": "59a7f9015198839e6bc1620b32719465", "score": "0.55378115", "text": "private NuxeoCommandContext createCommandContext() {\n return createCommandContext(true);\n }", "title": "" }, { "docid": "72251f2ce4ac9686fd7798f67f6a2011", "score": "0.5525955", "text": "public interface Command {\n\n /**\n * Does the command.\n */\n\n void doCmd();\n\n /**\n * Undoes the command.\n */\n void undoCmd();\n\n}", "title": "" }, { "docid": "0d3ada81970243bc8f2e6467a0853b68", "score": "0.5524168", "text": "public interface ICommand extends ICommandBehavior {\n \n /**\n * Accessor to test if this command has been executed\n * @return boolean True if this command has been executed and not undone,\n * False otherwise\n * \n * @throws Exception Something went wrong.\n */\n boolean isExecuted() throws Exception;\n\n /**\n * Accessor to test if this command has been undone\n * @return boolean True if this command has NOT been executed or if it\n * was undone after execution, False otherwise.\n * \n * @throws Exception Something went wrong.\n */\n boolean isUndone() throws Exception;\n\n}", "title": "" }, { "docid": "1cc0dcbec5cfdd27316811a5afaea1a7", "score": "0.5501274", "text": "public Command getCommand() {\n String inputLine;\n List<String> words = new ArrayList<>();\n\n System.out.print(Internationalisation.getInstance().getResources().getString(\"prompt\"));\n\n inputLine = this.reader.nextLine();\n\n Scanner tokenizer = new Scanner(inputLine);\n while (tokenizer.hasNext()) {\n words.add(tokenizer.next());\n }\n\n return (new Command(words));\n }", "title": "" }, { "docid": "6268328c2f928cdbe918e093979e6780", "score": "0.54928386", "text": "public interface Command {\r\n\t\t/**\r\n\t\t * <h1>doCommand</h1>\r\n\t\t * this method performs the inserted command\r\n\t\t * @param args is the String array that represents the command with the parameters\r\n\t\t */\r\n\t\tvoid doCommand(String[] args);\r\n\t}", "title": "" }, { "docid": "924d6ece29528f46cdd8a90c92e4ca6d", "score": "0.54926455", "text": "public interface Command {\n\n /***\n * Actions to execute when the Command is called.\n * Used to map an action to a key press.\n */\n void execute();\n}", "title": "" }, { "docid": "65b9589e447f21f35af11b153da799ff", "score": "0.54893976", "text": "public static interface CommandInvocation {\n\n\t/** Token of assignment to target */\n\tpublic static final String ASSIGNMENT_TOKEN = \"at\";\n\n\t/** Token of command to invoke */\n\tpublic static final String COMMAND_TOKEN = \"ct\";\n\n\t/** Prefix for command parameter values */\n\tpublic static final String PARAMETER_PREFIX = \"pm_\";\n }", "title": "" }, { "docid": "4a035fa38a225d519c5512f9389ecceb", "score": "0.54886085", "text": "public String getCommand();", "title": "" }, { "docid": "99b6c9518677f90502c61a94430cd08d", "score": "0.54853207", "text": "@Override\r\n protected boolean canExecute(Command c) {\n throw new UnsupportedOperationException(\"Not supported yet.\");\r\n }", "title": "" }, { "docid": "1f17ea0921c10fbdd212f8f2eb74174c", "score": "0.54531264", "text": "interface ICommand {\n\n void execute();\n\n void undo();\n}", "title": "" }, { "docid": "829a5e7ce50d9d89d60a4d44d2f35b31", "score": "0.54378575", "text": "public List<String> process(String commandName, Object command) throws Exception {\n\n List<String> arguments = Lists.newArrayList(commandName);\n\n for (Field field : command.getClass().getDeclaredFields()) {\n field.setAccessible(true);\n if (Modifier.isFinal(field.getModifiers())) {\n continue;\n }\n Object operand = field.get(command);\n if (operand != null) {\n if (primitive(operand)) {\n processAnnotations(field, command, command, arguments);\n } else {\n processAnnotation(field.getAnnotation(Omit.class), operand, command, field, arguments);\n for (Field configuration : operand.getClass().getDeclaredFields()) {\n processAnnotations(configuration, operand, command, arguments);\n }\n }\n }\n }\n return arguments;\n }", "title": "" }, { "docid": "0fd49de551fca3a2f6edf4b32385a33d", "score": "0.5437839", "text": "String getCommand();", "title": "" }, { "docid": "0fd49de551fca3a2f6edf4b32385a33d", "score": "0.5437839", "text": "String getCommand();", "title": "" }, { "docid": "a7f0252e3747371e44a7d5891a612ac9", "score": "0.5437236", "text": "public CommandElements getCommandAccess() {\n\t\treturn pCommand;\n\t}", "title": "" }, { "docid": "451c462e0cfcd60656081f5a83521394", "score": "0.54164135", "text": "public interface CommandManager extends UtilCommands {\n\n /**\n * Set the api used by this manager\n * \n * @param api\n */\n public void setApi(DiscordApi api);\n\n /**\n * Get the api used by this manager.\n * \n * @return\n */\n public DiscordApi getApi();\n\n /**\n * Check whether the given command is valid for this manager.\n * \n * @param expr\n * @return\n */\n public boolean isValid(String expr, MessageCreateEvent e);\n\n /**\n * Evaluate the given command.\n * \n * @param expr\n * @return\n */\n public void run(String expr, MessageCreateEvent e);\n\n}", "title": "" }, { "docid": "af59d8f6f89e911b3c1ad25f39b72c2c", "score": "0.5414437", "text": "public CommandOrBuilder getCommand() {\n\t return this.command;\n\t}", "title": "" }, { "docid": "479053f6ee1185d6d92cea5f23493552", "score": "0.5406356", "text": "public interface Commands extends CommandData {\n class Create implements Commands {}\n }", "title": "" }, { "docid": "479053f6ee1185d6d92cea5f23493552", "score": "0.5406356", "text": "public interface Commands extends CommandData {\n class Create implements Commands {}\n }", "title": "" }, { "docid": "f0bfe52a9579d02455f70520ca95d002", "score": "0.54047966", "text": "default CommandMode process(final String command, final String[] args) {\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3ebddf8097c7a55ba60c5b261eac82c2", "score": "0.5396213", "text": "public void commandAction(Command c, Item item);", "title": "" }, { "docid": "ec329a65376e1036a1f03141dc4af2f9", "score": "0.5395897", "text": "public abstract String getCommand();", "title": "" }, { "docid": "d74b72422e4efc7e61abec8d6e007153", "score": "0.53865945", "text": "public interface CommandIF\n{\n}", "title": "" }, { "docid": "edd8403c0162d5f1e7e40e0cd7552d06", "score": "0.53810555", "text": "interface command {\n void action();\n}", "title": "" }, { "docid": "ca0934cb0430247369b6a03bf1bf31ab", "score": "0.53750956", "text": "public abstract String interpretCommand(String command);", "title": "" }, { "docid": "ff3b51a968d3927b0f8fb90a645f2e10", "score": "0.536344", "text": "public Command getCommand() {\n return Command.this;\n }", "title": "" }, { "docid": "bdd66dd24dd56b3b8f93c1e620ce1ebd", "score": "0.535285", "text": "public Commands getNotificationCommand();", "title": "" }, { "docid": "5183be77bd45b4c98542a35967c49f16", "score": "0.5347241", "text": "public Command getCommand() {\n return command;\n }", "title": "" }, { "docid": "5183be77bd45b4c98542a35967c49f16", "score": "0.5347241", "text": "public Command getCommand() {\n return command;\n }", "title": "" }, { "docid": "9e27e109978cea72bc82e3b222f65411", "score": "0.5344909", "text": "ArrayList<Command> getCommands(CommandType type);", "title": "" }, { "docid": "7fbbc68ff2876f86397db850a1c3dd86", "score": "0.53414255", "text": "public abstract String getCommandPerform();", "title": "" }, { "docid": "72da556b52ce267c2436765aca17ef33", "score": "0.533551", "text": "@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n for (BaseCommand command : commands) {\n if (label.equalsIgnoreCase(command.getBaseCommand())) {\n if (command.hasSubCommands()) {\n \n } else {\n if (sender.hasPermission(command.getPermission())) {\n \n } else {\n \n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "e4a11c34f5633ebaad160d460cc6d4a0", "score": "0.5329744", "text": "public interface Commands {\n\n //Runner method for each command\n void execute(List<String> args, MessageReceivedEvent event);\n\n //Returns the keyword that is required to call the specific command\n String getKeyword();\n\n}", "title": "" }, { "docid": "bdb8de6ab7f40d5a308f5867618a1048", "score": "0.53245354", "text": "protected boolean canApply(Command command) {\n\t\tif (getCondition() == null)\n\t\t\treturn false;\n\n\t\t// If command is already set,\n\t\t// return false\n\t\tif (getCommand() != null)\n\t\t\treturn false;\n\n\t\t// If this while loop already has\n\t\t// the given command, return false\n\t\tif (hasAsSubStatement(command))\n\t\t\treturn false;\n\n\t\t// Check if it is a valid command\n\t\treturn canHaveAsCommand(command);\n\t}", "title": "" }, { "docid": "c9f8bbd57e19a7188406ecaf84738c9b", "score": "0.53178847", "text": "public String getCommand() {\r\n return command;\r\n }", "title": "" }, { "docid": "87ba3498cb954383b9fe1b65902261a8", "score": "0.5309099", "text": "protected DBCommand getCommandFromExpression()\r\n {\r\n if (cmdExpr instanceof DBCommand)\r\n return ((DBCommand)cmdExpr);\r\n // not supported\r\n throw new NotSupportedException(this, \"getCommand\");\r\n }", "title": "" }, { "docid": "6d5a04f3be1ed8f47cd882e01a6fc71f", "score": "0.53039813", "text": "@Basic\n\tpublic Command getCommand() {\n\t\treturn command;\n\t}", "title": "" }, { "docid": "c92ebeabb6d45d3a9d3e2ed4b0fa0003", "score": "0.5296345", "text": "public interface CommandClass\n{\n}", "title": "" }, { "docid": "e829e691747a3f1f3ce947b5542e917e", "score": "0.5282585", "text": "public interface Command {\n /**\n * 执行方法\n */\n public void execute();\n}", "title": "" }, { "docid": "9a21bbd1ae2da73626953cfe51930efc", "score": "0.52823234", "text": "public CommandWords()\n {\n commands = new ArrayList();\n for(Option option : Option.values())\n {\n commands.add(option);\n }\n }", "title": "" }, { "docid": "356f7f44ffab512b92ea202d7d158e3d", "score": "0.5280441", "text": "public interface Command {\n\n void execute();\n}", "title": "" }, { "docid": "6a04ccc235410f4bc0ba47297a75d348", "score": "0.5279491", "text": "public static Iterator<Command> commands() {\n List<Command> list;\n \n // Sorts the list.\n list = new Vector<Command>(commands.size());\n list.addAll(commands.values());\n Collections.sort(list);\n \n return list.iterator();\n }", "title": "" }, { "docid": "6f4a146066e4477e8b0cda31c61e9a59", "score": "0.52719", "text": "public interface Command {\n void execute();\n}", "title": "" }, { "docid": "4c925ecad33725fa25ed53ffa3f33fc2", "score": "0.5267168", "text": "boolean processCommand(IExtensionContext ctx, IConversation conversation, String command, StringTokenizer parameters, String commandLine);", "title": "" }, { "docid": "68273d8f918bca01db70e426b262326c", "score": "0.52651256", "text": "public interface Command {\n\n String execute();\n\n}", "title": "" }, { "docid": "109eb0d309ddd55c98ee9c61b30b688f", "score": "0.5262994", "text": "public interface CommandCalls {\n\tpublic void callBack(BasicCommand cmd);\n}", "title": "" }, { "docid": "335a9a542dea0f7cb24400e731af5e16", "score": "0.5259522", "text": "public interface Command {\n /**\n * Execute action <b>by Yuli</b>\n */\n void execute();\n}", "title": "" }, { "docid": "5002a58c9ee51746216d0adc5f3d2c83", "score": "0.52562875", "text": "private void processCommand(Command command) {\n AGameCommand execution = CommandFactory.getCommand(command);\n\n if (execution == null)\n System.out.println(\"I don't know what you mean...\");\n else\n execution.execute();\n\n // String commandWord = command.getCommandWord();\n // if (commandWord.equals(\"help\")) {\n // printHelp();\n // } else if (commandWord.equals(\"go\")) {\n // goRoom(command);\n // } else if (commandWord.equals(\"quit\")) {\n // quit(command);\n // } else if (commandWord.equals(\"look\")) {\n // look();\n // } else if (commandWord.equals(\"take\")) {\n // take(command);\n // } else if (commandWord.equals(\"drop\")) {\n // drop(command);\n // } else if (commandWord.equals(\"give\")) {\n // give(command);\n // }\n }", "title": "" }, { "docid": "b0c546e579bc7d4941147da49cca3487", "score": "0.5249789", "text": "protected void sequence_Commands(ISerializationContext context, Commands semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "22d97d2057a18d6e5f770b4e06cc4f4c", "score": "0.52462244", "text": "protected String getCommand() {\n return command;\n }", "title": "" }, { "docid": "31d590ce7375de08e2e18684cce2c266", "score": "0.5244162", "text": "public String getCommand() {\n\t\t\n\t\tString input = getInput();\n\t\t\n\t\twhile (!isCommand(input)) {\n\n\t\t\tprintWrongCommando();\n\t\t\tinput = getInput();\n\t\t}\n\t\t\n\t\treturn currentCommand;\n\t}", "title": "" }, { "docid": "f80dc2198030ac700812abe792338ad2", "score": "0.52374256", "text": "public interface Command {\n public void execute();\n}", "title": "" }, { "docid": "f80dc2198030ac700812abe792338ad2", "score": "0.52374256", "text": "public interface Command {\n public void execute();\n}", "title": "" }, { "docid": "f80dc2198030ac700812abe792338ad2", "score": "0.52374256", "text": "public interface Command {\n public void execute();\n}", "title": "" }, { "docid": "c2208d7155e737abfa806780316ac4d9", "score": "0.5235233", "text": "public String getCommand () {\n\treturn command;\n }", "title": "" }, { "docid": "56f34ce7b0a27467327ea1082bdc771f", "score": "0.5232535", "text": "public CommandProcessor commandTableSwitch(Command c) {\n\t\tString cmdName = c.getName();\n\t\ttry {\n\n\t\t\tCommands command = Commands.valueOf(cmdName);\n\n\t\t\tif (!isAllowedByNameFilter(command)) {\n\t\t\t\tLog.info(\"The command is not allowed by the command filter\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tswitch (command) {\n\n\t\t\t// scripting\n\t\t\tcase RigidPolygon:\n\t\t\tcase Relation:\n\t\t\tcase CopyFreeObject:\n\t\t\tcase DataFunction:\n\t\t\tcase SetColor:\n\t\t\tcase SetBackgroundColor:\n\t\t\tcase SetDecoration:\n\t\t\tcase SetDynamicColor:\n\t\t\tcase SetConditionToShowObject:\n\t\t\tcase SetFilling:\n\t\t\tcase SetLevelOfDetail:\n\t\t\tcase SetLineThickness:\n\t\t\tcase SetLineStyle:\n\t\t\tcase SetPointStyle:\n\t\t\tcase SetPointSize:\n\t\t\tcase SetFixed:\n\t\t\tcase SetTrace:\n\t\t\tcase Rename:\n\t\t\tcase HideLayer:\n\t\t\tcase ShowLayer:\n\t\t\tcase SetCoords:\n\t\t\tcase Pan:\n\t\t\tcase CenterView:\n\t\t\tcase ZoomIn:\n\t\t\tcase SetSeed:\n\t\t\tcase ZoomOut:\n\t\t\tcase SetActiveView:\n\t\t\tcase SelectObjects:\n\t\t\tcase SetLayer:\n\t\t\tcase SetCaption:\n\t\t\tcase SetLabelMode:\n\t\t\tcase SetTooltipMode:\n\t\t\tcase UpdateConstruction:\n\t\t\tcase SetValue:\n\t\t\tcase PlaySound:\n\t\t\tcase ReadText:\n\t\t\tcase ParseToNumber:\n\t\t\tcase ParseToFunction:\n\t\t\tcase StartAnimation:\n\t\t\tcase StartRecord:\n\t\t\tcase SetPerspective:\n\t\t\tcase Delete:\n\t\t\tcase Repeat:\n\t\t\tcase Slider:\n\t\t\tcase Checkbox:\n\t\t\tcase Button:\n\t\t\tcase Execute:\n\t\t\tcase GetTime:\n\t\t\tcase ShowLabel:\n\t\t\tcase SetAxesRatio:\n\t\t\tcase SetVisibleInView:\n\t\t\tcase ShowAxes:\n\t\t\tcase ShowGrid:\n\t\t\tcase SlowPlot:\n\t\t\tcase ToolImage:\n\t\t\tcase Turtle:\n\t\t\tcase TurtleForward:\n\t\t\tcase TurtleBack:\n\t\t\tcase TurtleLeft:\n\t\t\tcase TurtleRight:\n\t\t\tcase TurtleUp:\n\t\t\tcase TurtleDown:\n\t\t\tcase RunClickScript:\n\t\t\tcase RunUpdateScript:\n\t\t\tcase SetImage:\n\t\t\t\t// case DensityPlot:\n\t\t\t\treturn getScriptingDispatcher().dispatch(command, kernel);\n\n\t\t\t// advanced\n\t\t\tcase IntersectPath:\n\t\t\tcase IntersectRegion:\n\t\t\tcase IsVertexForm:\n\t\t\tcase Difference:\n\n\t\t\tcase TaylorPolynomial:\n\t\t\tcase TaylorSeries:\n\n\t\t\tcase SecondAxis:\n\t\t\tcase MinorAxis:\n\n\t\t\tcase SemiMinorAxisLength:\n\t\t\tcase SecondAxisLength:\n\n\t\t\tcase Directrix:\n\t\t\tcase Numerator:\n\t\t\tcase Denominator:\n\t\t\tcase ComplexRoot:\n\t\t\tcase SlopeField:\n\t\t\tcase Iteration:\n\t\t\tcase PathParameter:\n\t\t\tcase Asymptote:\n\t\t\tcase CurvatureVector:\n\t\t\tcase Curvature:\n\t\t\tcase OsculatingCircle:\n\t\t\tcase IterationList:\n\t\t\tcase RootList:\n\t\t\tcase ImplicitCurve:\n\t\t\tcase ImplicitSurface:\n\t\t\tcase Roots:\n\t\t\tcase AffineRatio:\n\t\t\tcase CrossRatio:\n\t\t\tcase ClosestPoint:\n\t\t\tcase IsInRegion:\n\t\t\tcase PrimeFactors:\n\t\t\tcase Union:\n\t\t\tcase ScientificText:\n\t\t\tcase VerticalText:\n\t\t\tcase RotateText:\n\t\t\tcase ReplaceAll:\n\t\t\tcase Split:\n\t\t\tcase Ordinal:\n\t\t\tcase Parameter:\n\t\t\tcase Incircle:\n\t\t\tcase SelectedElement:\n\t\t\tcase SelectedIndex:\n\t\t\tcase Unique:\n\t\t\tcase Zip:\n\t\t\tcase Intersection:\n\t\t\tcase PointList:\n\t\t\tcase ApplyMatrix:\n\t\t\tcase Invert:\n\t\t\tcase NInvert:\n\t\t\tcase Transpose:\n\t\t\tcase ReducedRowEchelonForm:\n\t\t\tcase Determinant:\n\t\t\t\t// case MatrixPlot:\n\t\t\tcase Identity:\n\t\t\tcase Centroid:\n\t\t\tcase MajorAxis:\n\t\t\tcase FirstAxis:\n\n\t\t\tcase SemiMajorAxisLength:\n\t\t\tcase FirstAxisLength:\n\n\t\t\tcase AxisStepX:\n\t\t\tcase AxisStepY:\n\t\t\tcase ConstructionStep:\n\t\t\tcase SetConstructionStep:\n\t\t\tcase Polar:\n\n\t\t\tcase LinearEccentricity:\n\t\t\tcase Excentricity:\n\n\t\t\tcase Eccentricity:\n\t\t\tcase Axes:\n\t\t\tcase IndexOf:\n\t\t\tcase Flatten:\n\t\t\tcase Insert:\n\t\t\tcase DynamicCoordinates:\n\t\t\tcase Maximize:\n\t\t\tcase Minimize:\n\t\t\tcase ToBase:\n\t\t\tcase FromBase:\n\t\t\tcase ContinuedFraction:\n\t\t\tcase AttachCopyToView:\n\t\t\tcase Divisors:\n\t\t\tcase DivisorsSum:\n\t\t\tcase Dimension:\n\t\t\tcase DivisorsList:\n\t\t\tcase IsPrime:\n\t\t\tcase LeftSide:\n\t\t\tcase RightSide:\n\t\t\tcase Division:\n\t\t\tcase MatrixRank:\n\t\t\tcase CommonDenominator:\n\t\t\tcase ToPoint:\n\t\t\tcase ToComplex:\n\t\t\tcase ToPolar:\n\t\t\tcase Factors:\n\t\t\tcase NSolveODE:\n\t\t\tcase Rate:\n\t\t\tcase Periods:\n\t\t\tcase Payment:\n\t\t\tcase FutureValue:\n\t\t\tcase PresentValue:\n\t\t\tcase SVD:\n\t\t\t\treturn getAdvancedDispatcher().dispatch(command, kernel);\n\n\t\t\t// prover\n\t\t\tcase Prove:\n\t\t\tcase ProveDetails:\n\t\t\tcase AreCollinear:\n\t\t\tcase AreParallel:\n\t\t\tcase AreConcyclic:\n\t\t\tcase ArePerpendicular:\n\t\t\tcase AreEqual:\n\t\t\tcase AreCongruent:\n\t\t\tcase AreConcurrent:\n\t\t\tcase IsTangent:\n\t\t\tcase LocusEquation:\n\t\t\tcase Envelope:\n\t\t\t\treturn getProverDispatcher().dispatch(command, kernel);\n\n\t\t\t// basic\n\n\t\t\tcase Tangent:\n\t\t\tcase Length:\n\t\t\tcase UnitPerpendicularVector:\n\t\t\tcase UnitOrthogonalVector:\n\t\t\tcase Surface:\n\t\t\tcase Sort:\n\t\t\tcase Product:\n\t\t\tcase Join:\n\t\t\tcase LCM:\n\t\t\tcase GCD:\n\t\t\tcase LetterToUnicode:\n\t\t\tcase UnicodeToLetter:\n\t\t\tcase Object:\n\t\t\tcase CountIf:\n\t\t\tcase Extremum:\n\t\t\tcase RemovableDiscontinuity:\n\t\t\tcase UnitVector:\n\t\t\tcase Direction:\n\t\t\tcase Text:\n\t\t\tcase Vector:\n\t\t\tcase Dot:\n\t\t\tcase Cross:\n\t\t\tcase nPr:\n\t\t\tcase PolyLine:\n\t\t\tcase Polyline:\n\t\t\tcase PointIn:\n\t\t\tcase Line:\n\t\t\tcase Ray:\n\n\t\t\tcase AngleBisector:\n\t\t\tcase AngularBisector:\n\n\t\t\tcase Segment:\n\t\t\tcase Slope:\n\t\t\tcase Angle:\n\t\t\tcase InteriorAngles:\n\t\t\tcase Point:\n\t\t\tcase Midpoint:\n\t\t\tcase Intersect:\n\t\t\tcase Distance:\n\t\t\tcase Radius:\n\t\t\tcase Type:\n\t\t\tcase Arc:\n\t\t\tcase Sector:\n\n\t\t\tcase CircleArc:\n\t\t\tcase CircularArc:\n\t\t\tcase CircleSector:\n\t\t\tcase CircularSector:\n\t\t\tcase CircumcircleSector:\n\t\t\tcase CircumcircularSector:\n\t\t\tcase CircumcircleArc:\n\t\t\tcase CircumcircularArc:\n\n\t\t\tcase Polygon:\n\t\t\tcase Area:\n\t\t\tcase Circumference:\n\t\t\tcase Perimeter:\n\t\t\tcase Locus:\n\t\t\tcase Vertex:\n\t\t\tcase If:\n\t\t\tcase Root:\n\t\t\tcase TurningPoint:\n\t\t\tcase Polynomial:\n\t\t\tcase Spline:\n\t\t\t\t// case Nyquist:\n\t\t\tcase Function:\n\t\t\tcase Curve:\n\t\t\tcase CurveCartesian:\n\t\t\tcase LowerSum:\n\t\t\tcase LeftSum:\n\t\t\tcase RectangleSum:\n\t\t\tcase UpperSum:\n\t\t\tcase TrapezoidalSum:\n\t\t\tcase Ellipse:\n\t\t\tcase Hyperbola:\n\t\t\tcase Conic:\n\t\t\tcase Circle:\n\t\t\tcase Semicircle:\n\t\t\tcase Parabola:\n\t\t\tcase Focus:\n\t\t\tcase Center:\n\t\t\tcase Element:\n\t\t\tcase Sequence:\n\n\t\t\tcase Reflect:\n\t\t\tcase Mirror:\n\n\t\t\tcase Dilate:\n\t\t\tcase Rotate:\n\t\t\tcase Translate:\n\t\t\tcase Shear:\n\t\t\tcase Stretch:\n\n\t\t\tcase Corner:\n\t\t\tcase Name:\n\n\t\t\tcase Diameter:\n\t\t\tcase ConjugateDiameter:\n\n\t\t\tcase LineBisector:\n\t\t\tcase PerpendicularBisector:\n\n\t\t\tcase OrthogonalLine:\n\t\t\tcase PerpendicularLine:\n\n\t\t\tcase OrthogonalVector:\n\t\t\tcase PerpendicularVector:\n\n\t\t\tcase Random:\n\t\t\tcase RandomBetween:\n\t\t\tcase RandomPointIn:\n\n\t\t\tcase Sum:\n\n\t\t\tcase Binomial:\n\t\t\tcase BinomialCoefficient:\n\t\t\tcase nCr:\n\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\tcase Min:\n\t\t\tcase Max:\n\t\t\tcase Append:\n\t\t\tcase First:\n\t\t\tcase Last:\n\t\t\tcase Remove:\n\t\t\tcase RemoveUndefined:\n\t\t\tcase Reverse:\n\t\t\tcase TableText:\n\t\t\tcase Take:\n\t\t\tcase TextToUnicode:\n\t\t\tcase UnicodeToText:\n\t\t\tcase FractionText:\n\t\t\tcase KeepIf:\n\t\t\tcase IsInteger:\n\t\t\tcase IsFactored:\n\n\t\t\tcase Defined:\n\t\t\tcase IsDefined:\n\n\t\t\tcase FormulaText:\n\t\t\tcase LaTeX:\n\t\t\tcase InputBox:\n\t\t\tcase Textfield:\n\t\t\tcase Normalize:\n\t\t\tcase ExportImage:\n\t\t\t\treturn getBasicDispatcher().dispatch(command, kernel);\n\n\t\t\tcase CFactor:\n\t\t\tcase CIFactor:\n\t\t\tcase CSolutions:\n\t\t\tcase CSolve:\n\t\t\tcase Eliminate:\n\t\t\tcase GroebnerLex:\n\t\t\tcase GroebnerDegRevLex:\n\t\t\tcase GroebnerLexDeg:\n\t\t\tcase Numeric:\n\t\t\tcase MixedNumber:\n\t\t\tcase Rationalize:\n\t\t\tcase Substitute:\n\t\t\tcase ToExponential:\n\t\t\tcase Laplace:\n\t\t\tcase InverseLaplace:\n\t\t\tcase Assume:\n\t\t\tcase SolveCubic:\n\t\t\tcase JordanDiagonalization:\n\t\t\tcase Eigenvalues:\n\t\t\tcase Eigenvectors:\n\t\t\tcase ExtendedGCD:\n\t\t\tcase ModularExponent:\n\t\t\tcase CharacteristicPolynomial:\n\t\t\tcase MinimalPolynomial:\n\t\t\tcase LUDecomposition:\n\t\t\tcase QRDecomposition:\n\t\t\t\treturn new CAScmdProcessor(kernel);\n\n\t\t\t// ************** STATS ***************\n\n\t\t\tcase ANOVA:\n\t\t\tcase Bernoulli:\n\t\t\tcase BinomialDist:\n\t\t\tcase BoxPlot:\n\t\t\tcase Cauchy:\n\t\t\tcase Cell:\n\t\t\tcase CellRange:\n\t\t\tcase ChiSquaredTest:\n\t\t\tcase ChiSquared:\n\t\t\tcase Classes:\n\t\t\tcase Column:\n\t\t\tcase ColumnName:\n\t\t\tcase CorrelationCoefficient:\n\t\t\tcase cov:\n\t\t\tcase Covariance:\n\t\t\tcase ContingencyTable:\n\t\t\tcase DotPlot:\n\t\t\tcase Erlang:\n\t\t\tcase Exponential:\n\t\t\tcase FDistribution:\n\t\t\tcase FillCells:\n\t\t\tcase FillColumn:\n\t\t\tcase FillRow:\n\t\t\tcase Fit:\n\t\t\tcase FitImplicit:\n\t\t\tcase FitExp:\n\t\t\tcase FitGrowth:\n\t\t\tcase FitLine:\n\t\t\tcase FitLineX:\n\t\t\tcase FitLineY:\n\t\t\tcase FitLog:\n\t\t\tcase FitLogistic:\n\t\t\tcase FitPoly:\n\t\t\tcase FitPow:\n\t\t\tcase FitSin:\n\t\t\tcase Frequency:\n\t\t\tcase FrequencyPolygon:\n\t\t\tcase FrequencyTable:\n\t\t\tcase Gamma:\n\t\t\tcase GeometricMean:\n\t\t\tcase HarmonicMean:\n\t\t\tcase Histogram:\n\t\t\tcase HistogramRight:\n\t\t\tcase HyperGeometric:\n\t\t\tcase InverseBinomial:\n\t\t\tcase InverseBinomialMinimumTrials:\n\t\t\tcase InverseCauchy:\n\t\t\tcase InverseChiSquared:\n\t\t\tcase InverseExponential:\n\t\t\tcase InverseFDistribution:\n\t\t\tcase InverseGamma:\n\t\t\tcase InverseHyperGeometric:\n\t\t\tcase InverseLogNormal:\n\t\t\tcase InverseLogistic:\n\t\t\tcase InverseNormal:\n\t\t\tcase InversePascal:\n\t\t\tcase InversePoisson:\n\t\t\tcase InverseTDistribution:\n\t\t\tcase InverseWeibull:\n\t\t\tcase InverseZipf:\n\t\t\tcase LogNormal:\n\t\t\tcase Logistic:\n\t\t\tcase Mean:\n\t\t\tcase mean:\n\t\t\tcase MeanX:\n\t\t\tcase MeanY:\n\t\t\tcase Median:\n\t\t\tcase Mode:\n\t\t\tcase Normal:\n\t\t\tcase NormalQuantilePlot:\n\t\t\tcase OrdinalRank:\n\t\t\tcase PMCC:\n\t\t\tcase Pascal:\n\t\t\tcase Percentile:\n\t\t\tcase Poisson:\n\t\t\tcase Q1:\n\t\t\tcase Q3:\n\t\t\tcase Quartile1:\n\t\t\tcase Quartile3:\n\t\t\tcase RSquare:\n\t\t\tcase RandomDiscrete:\n\t\t\tcase RandomElement:\n\t\t\tcase RandomPolynomial:\n\t\t\tcase RandomBinomial:\n\t\t\tcase RandomNormal:\n\t\t\tcase RandomPoisson:\n\t\t\tcase RandomUniform:\n\t\t\tcase ResidualPlot:\n\t\t\tcase RootMeanSquare:\n\t\t\tcase Row:\n\t\t\tcase SD:\n\t\t\tcase MAD:\n\t\t\tcase mad:\n\t\t\tcase SDX:\n\t\t\tcase SDY:\n\t\t\tcase Sxx:\n\t\t\tcase Sxy:\n\t\t\tcase Syy:\n\t\t\tcase SXX:\n\t\t\tcase SXY:\n\t\t\tcase SYY:\n\t\t\tcase Sample:\n\t\t\tcase stdevp:\n\t\t\tcase stdev:\n\t\t\tcase SampleSD:\n\t\t\tcase SampleSDX:\n\t\t\tcase SampleSDY:\n\t\t\tcase SampleVariance:\n\t\t\tcase Shuffle:\n\t\t\tcase SigmaXX:\n\t\t\tcase SigmaXY:\n\t\t\tcase SigmaYY:\n\t\t\tcase Spearman:\n\t\t\tcase StemPlot:\n\t\t\tcase StepGraph:\n\t\t\tcase StickGraph:\n\t\t\tcase SumSquaredErrors:\n\t\t\tcase TDistribution:\n\t\t\tcase TMean2Estimate:\n\t\t\tcase TMeanEstimate:\n\t\t\tcase TTest2:\n\t\t\tcase TTest:\n\t\t\tcase TTestPaired:\n\t\t\tcase TiedRank:\n\t\t\tcase Triangular:\n\t\t\tcase Uniform:\n\t\t\tcase var:\n\t\t\tcase Variance:\n\t\t\tcase Weibull:\n\t\t\tcase ZMean2Estimate:\n\t\t\tcase ZMean2Test:\n\t\t\tcase ZMeanEstimate:\n\t\t\tcase ZMeanTest:\n\t\t\tcase ZProportion2Estimate:\n\t\t\tcase ZProportion2Test:\n\t\t\tcase ZProportionEstimate:\n\t\t\tcase ZProportionTest:\n\t\t\tcase Zipf:\n\n\t\t\t// chart commands for notes\n\t\t\tcase TableToChart:\n\t\t\tcase BarChart:\n\t\t\tcase LineGraph:\n\t\t\tcase PieChart:\n\t\t\t\treturn getStatsDispatcher().dispatch(command, kernel);\n\n\t\t\tcase TriangleCenter:\n\t\t\tcase Barycenter:\n\t\t\tcase Trilinear:\n\t\t\tcase Cubic:\n\t\t\tcase TriangleCurve:\n\t\t\tcase Voronoi:\n\t\t\tcase Hull:\n\t\t\tcase ConvexHull:\n\t\t\tcase MinimumSpanningTree:\n\t\t\tcase DelauneyTriangulation:\n\t\t\tcase TravelingSalesman:\n\t\t\tcase ShortestDistance:\n\t\t\t\treturn getDiscreteDispatcher().dispatch(command, kernel);\n\t\t\tcase NSolve:\n\t\t\tcase Solve:\n\t\t\tcase Solutions:\n\t\t\tcase NSolutions:\n\t\t\tcase CASLoaded:\n\t\t\tcase PlotSolve:\n\t\t\tcase Expand:\n\t\t\tcase Factor:\n\t\t\tcase IFactor:\n\t\t\tcase Simplify:\n\t\t\tcase SurdText:\n\t\t\tcase ParametricDerivative:\n\t\t\tcase Derivative:\n\t\t\tcase NDerivative:\n\t\t\tcase Integral:\n\t\t\tcase IntegralBetween:\n\t\t\tcase NIntegral:\n\t\t\tcase TrigExpand:\n\t\t\tcase TrigSimplify:\n\t\t\tcase TrigCombine:\n\t\t\tcase Limit:\n\t\t\tcase LimitBelow:\n\t\t\tcase LimitAbove:\n\t\t\tcase Degree:\n\t\t\tcase Coefficients:\n\t\t\tcase PartialFractions:\n\t\t\tcase SolveODE:\n\t\t\tcase ImplicitDerivative:\n\t\t\tcase NextPrime:\n\t\t\tcase PreviousPrime:\n\t\t\tcase CompleteSquare:\n\t\t\t\treturn getCASDispatcher().dispatch(command, kernel);\n\t\t\tdefault:\n\t\t\t\tLog.error(\"missing case in CommandDispatcher \" + cmdName);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (RuntimeException e) {\n\t\t\tLog.warn(\"command not found / CAS command called:\" + cmdName);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5bc01b32d071ec8f26ff423dea001254", "score": "0.5232028", "text": "@Override\r\n protected ICommand instantiate (List<ICommand> parameters) {\n return new IfElse(parameters);\r\n }", "title": "" }, { "docid": "b32c7f7173ff67f9aebcde76de7e50bb", "score": "0.52316004", "text": "public interface Command {\n\n String perform(Scanner scanner, Pos pos);\n}", "title": "" }, { "docid": "95bc56fe6a1f45f7da073f302cfef853", "score": "0.5229329", "text": "public interface CommandGroup\n{\n CommandTarget acceptCommand(String command);\n void addObserver(Observer observer);\n void deleteObserver(Observer observer);\n void setManager(CommandTargetManager manager);\n}", "title": "" }, { "docid": "bba79d67ab9674c9f9df2061c3edf168", "score": "0.5221936", "text": "public String getCommand() {\n return command;\n }", "title": "" }, { "docid": "f6e7738fb447a82347231cf40eb20680", "score": "0.52217144", "text": "public interface Command {\n\n void execute(Shape currentShape);\n\n void undo();\n\n void redo();\n}", "title": "" }, { "docid": "c9f160f08143318bc2786d6c77a58b3b", "score": "0.5219051", "text": "public String getCommand() {\n return command;\n }", "title": "" }, { "docid": "7bebaae5654e483a663c24044b7cae81", "score": "0.521902", "text": "Entity apply(Entity entity) throws CommandException;", "title": "" }, { "docid": "916b43d5806912b4970df3e2042e6aeb", "score": "0.5218405", "text": "Object execute(Command command);", "title": "" }, { "docid": "7478bb28f2dcf7a7d24198fa40ac01fe", "score": "0.52164423", "text": "public T caseCommand(Command object)\n {\n return null;\n }", "title": "" }, { "docid": "7478bb28f2dcf7a7d24198fa40ac01fe", "score": "0.52164423", "text": "public T caseCommand(Command object)\n {\n return null;\n }", "title": "" }, { "docid": "23f6b7f008aaf4bce461b4113c21b92d", "score": "0.5216184", "text": "@Override\n public ICommandSequence createCommandSequence() {\n return createCommandSequence(null);\n }", "title": "" }, { "docid": "03beace3483ead4e383d0a1579f8274e", "score": "0.52133554", "text": "void listCommand(String str)\r\n\t {\r\n\t String trimString=str.trim();\r\n\t String strpp[]=trimString.split(\"\\\\s\");\r\n\t StringBuffer str1=new StringBuffer();\r\n\t String str2;\r\n\t String str5;\r\n\t AtomicEvent a;\r\n\t if(strpp.length>2)\r\n\t {\r\n\t \t JOptionPane.showMessageDialog(this, \"Invalid usage of LIST\");\r\n\t\t return;\r\n\t }\r\n\t if((trimString.endsWith(\"LIST\"))&&(strpp.length<2))\r\n\t {\r\n\t \tstr1.append(\"\\n----BASIC EVENTS----\\n\");\r\n\t \r\n\t \tfor(Map.Entry<String,String> e : basicEvents.entrySet())\r\n\t {\r\n\t str1.append(e.getValue()+\"\\n\");\r\n\t \r\n\t }\r\n\t \tstr1.append(\"\\n----BASIC ACTIONS----\\n\");\r\n\t \t\r\n\t for(Map.Entry<String,String> p: basicActions.entrySet())\r\n\t {\r\n\t str1.append(p.getValue()+\"\\n\");\r\n\t }\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t \tstr1.append(\"\\n----USER DEFINED EVENTS----\\n\");\r\n\t \t\r\n\t \tfor(Map.Entry<String,AtomicEvent> e : eventList.entrySet())\r\n\t {\r\n\t str5=e.getKey();\r\n\t a=e.getValue();\r\n\t if(a.expression==null || a.expression==\"\")\r\n\t str1.append(str5+\"=\"+a.expansion+\"\\n\");\r\n\t else\r\n\t str1.append(str5+\"=\"+a.expression+\"\\n\");\r\n\t \r\n\t }\r\n\t \r\n\t Condition print;\r\n\t \r\n\t str1.append(\"\\n----SET CONDITIONS----\\n\");\r\n\t for(Map.Entry<String,Condition> e : runtimeConditions.entrySet())\r\n\t {\r\n\t print=e.getValue();\r\n\t str1.append(e.getKey()+\"=\"+print.value+\"\\n\"); \r\n\t }\r\n\t Action apo;\r\n\t str1.append(\"\\n----USER DEFINED ACTIONS----\\n\");\r\n\t for(Map.Entry<String,Action> e: runtimeActions.entrySet())\r\n\t {\r\n\t apo=e.getValue();\r\n\t str1.append(e.getKey()+\"=\"+apo.actionDisplay+\"\\n\");\r\n\t }\r\n\t Rule rpo;\r\n\t str1.append(\"\\n----DEFINED RULES----\\n\");\r\n\t for(Map.Entry<String,Rule> e: rules.entrySet())\r\n\t {\r\n\t rpo=e.getValue();\r\n\t str1.append(e.getKey()+\"=\"+rpo.event+\",\"+rpo.condition+\",\"+rpo.action+\"\\n\");\r\n\t } \r\n\t }\r\n\t else if(strpp[1].matches(\"event\"))\r\n\t {\r\n\t \t\tstr1.append(\"\\n----BASIC EVENTS----\\n\");\r\n\t \r\n\t \tfor(Map.Entry<String,String> e : basicEvents.entrySet())\r\n\t {\r\n\t str1.append(e.getValue()+\"\\n\");\r\n\t \r\n\t }\r\n\t \tstr1.append(\"\\n----USER DEFINED EVENTS----\\n\");\r\n\t for(Map.Entry<String,AtomicEvent> e : eventList.entrySet())\r\n\t {\r\n\t str5=e.getKey();\r\n\t a=e.getValue();\r\n\t if(a.expression==null || a.expression==\"\")\r\n\t str1.append(str5+\"=\"+a.expansion+\"\\n\");\r\n\t else\r\n\t str1.append(str5+\"=\"+a.expression+\"\\n\");\r\n\t \r\n\t }\r\n\t }\r\n\t else if(strpp[1].matches(\"condition\"))\r\n\t {\r\n\t Condition print;\r\n\t str1.append(\"\\n----SET CONDITIONS----\\n\");\r\n\t for(Map.Entry<String,Condition> e : runtimeConditions.entrySet())\r\n\t {\r\n\t print=e.getValue();\r\n\t str1.append(e.getKey()+\"=\"+print.value+\"\\n\"); \r\n\t }\r\n\t }\r\n\t else if(strpp[1].matches(\"action\"))\r\n\t {\r\n\t Action app;\r\n\t \r\n\t str1.append(\"\\n----BASIC ACTIONS----\\n\");\r\n\t \t\r\n\t for(Map.Entry<String,String> p: basicActions.entrySet())\r\n\t {\r\n\t str1.append(p.getValue()+\"\\n\");\r\n\t }\r\n\t \t\r\n\t str1.append(\"\\n----USER DEFINED ACTIONS----\\n\");\r\n\t for(Map.Entry<String,Action> e: runtimeActions.entrySet())\r\n\t {\r\n\t app=e.getValue();\r\n\t str1.append(e.getKey()+\"=\"+app.actionDisplay+\"\\n\");\r\n\t }\r\n\t }\r\n\t else if(strpp[1].matches(\"rule\"))\r\n\t {\r\n\t Rule rp;\r\n\t str1.append(\"\\n----USER DEFINE RULES----\\n\");\r\n\t for(Map.Entry<String,Rule> e: rules.entrySet())\r\n\t {\r\n\t rp=e.getValue();\r\n\t str1.append(e.getKey()+\"=\"+rp.event+\",\"+rp.condition+\",\"+rp.action+\"\\n\");\r\n\t } \r\n\t }\r\n\t else\r\n\t {\r\n\t JOptionPane.showMessageDialog(this, \"Invalid usage of List\"); \r\n\t return;\r\n\t }\r\n\t String str3=str1+\"\\n\";\r\n\t jTextArea2.setText(str3); \r\n\t \r\n\t }", "title": "" }, { "docid": "91f60ff4adfea4bb359ea621b20310c7", "score": "0.5213154", "text": "@ApiModelProperty(value = \"Commands to limit diagnostics to. By default, the most recent 10 commands on the schedule will be used.\")\n\n @Valid\n\n public ApiCommandList getCommands() {\n return commands;\n }", "title": "" }, { "docid": "20d26f2c2312b34058256a39e352b7b6", "score": "0.52128327", "text": "public interface Command {\n\n String getCommandName();\n\n String getUsage();\n\n String getDescription();\n}", "title": "" } ]
d7cac2575a1b43cd796ef0dc740a82a6
this is the right position to insert the new node
[ { "docid": "56ea4de1a194be03f55b3b2bb9ec5958", "score": "0.0", "text": "private TreeNode put(TreeNode root, K k, V v){\n if (root == null){\n return new TreeNode(k, v, 1);\n }\n\n int comp = root.key.compareTo(k);\n // if k > root.key, it is in right subtree\n if (comp < 0){\n root.right = put(root.right, k, v);\n }\n // if k < root.key, it is in left subtree\n else if (comp > 0){\n root.left = put(root.left , k, v);\n }\n // if k == root.key, key already there in the tree, replace value and return false.\n else{\n root.value = v;\n }\n // update size of root.\n setSize(root, (size(root.left) + size(root.right) + 1));\n return root;\n }", "title": "" } ]
[ { "docid": "d5cc93e53e0b25f939df3d4abf8cb755", "score": "0.7290576", "text": "abstract Node insert(DataNode dnode);", "title": "" }, { "docid": "d083643106c6aa2b9a7666195d01e767", "score": "0.7263915", "text": "abstract public Node insert(MBRHandle data);", "title": "" }, { "docid": "160310a53fcff40a7a5cd00070d3db6b", "score": "0.7190781", "text": "public void insertNode(int key);", "title": "" }, { "docid": "7493381961c12f052b6c0898b37d4da1", "score": "0.71184224", "text": "public void insertTree(int direction, int pos, ITreeModel tree);", "title": "" }, { "docid": "1f2c492916dc51f531d0b415375dd41e", "score": "0.7087292", "text": "public Node insertNode(Node h, int data, int pos){\n if(h==null)\n return new Node(data, null, null); \n //if need to insert at the begining\n if(pos==0){\n \t \tNode newNode = new Node(data, null, h);\n h=newNode;\n return h;\n \t }\n\t\tNode curr = h;\n\t\tNode prev=curr;\n\t\tfor(int i=0;i<pos;i++){\n \t //if(curr==null)\n \t \t//throw new Exception(\"Cannot insert at this position\");\n prev=curr;\n curr = curr.next;\n }\n //if node is the last node\n if(curr==null){\n prev.next = new Node(data, prev, null);\n return h;\n }\n \n //if node is a middle node\n Node newNode = new Node(data, prev, curr);\n prev.next = newNode;\n curr.prev = newNode;\n return h;\n\t}", "title": "" }, { "docid": "d37947e855afdfb096e38bc428e5380b", "score": "0.7084155", "text": "public void nodeInserted();", "title": "" }, { "docid": "d0f7bc16eb2d80f15f03f6a622e97f3b", "score": "0.70355844", "text": "public void insertNode(Node node){\n rack.add(node);\n }", "title": "" }, { "docid": "2f0f4eca4efdb432020a43f14cc7f67c", "score": "0.700602", "text": "@Override\r\n\tpublic Node insertNodeAtSpecificLoc(Node initialNode,int data, int loc) {\n\t\tNode newDataNode = new Node(String.valueOf(data), null);\r\n\t\t// now find the location\r\n\t\tif (initialNode== null)\r\n\t\t\treturn null;\r\n\t\tboolean iterate = true;\r\n\t\tint locationTraversed=0;\r\n\t\tNode currentNode = initialNode;\r\n\t\twhile (iterate) {\r\n\t\t\tif(currentNode.nextNode !=null) {\r\n\t\t\t\tlocationTraversed++;\r\n\t\t\t\tcurrentNode=currentNode.nextNode;\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\titerate=false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(locationTraversed==loc) {\r\n\t\t\t\tnewDataNode.nextNode = \tcurrentNode.nextNode;\r\n\t\t\t\tcurrentNode.nextNode = newDataNode;\r\n\t\t\t}\r\n\t\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn currentNode;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c36fd1faca996bcce08c483bb596d5a4", "score": "0.69452196", "text": "public void insertStart(int new_data){\n //Create the new node\n Node new_node = new Node(new_data);\n //Adjust the position of the node at start\n new_node.next = head;\n head = new_node;\n }", "title": "" }, { "docid": "d3020e1ad5312c7a873954fef753c9d6", "score": "0.6903181", "text": "void insertNewNode(T newNode);", "title": "" }, { "docid": "d004b7cd0a4d27d7f78b50653f1e5a2b", "score": "0.68981534", "text": "void insertBegining(int newdata) {\r\n\t\tNode newNode=new Node(newdata);\r\n\t\tnewNode.next=head;\r\n\t\thead=newNode;\r\n\t}", "title": "" }, { "docid": "7faa07cb14784839f49a4f238e98d5e1", "score": "0.6813965", "text": "void insertAt(int pos, String val)throws Exception{\n if (pos<0 || pos>size) {\n throw new Exception(); \n }\n Node obj = new Node(val);\n /*if (pos==0) {\n obj.next =head;\n head =obj;\n size++;\n return;\n }*/\n head=insertAt(pos,head,obj,0);\n }", "title": "" }, { "docid": "3e97362f56e52c66004fc951b2777b4c", "score": "0.68042445", "text": "public void insertAtPos(AbtPoint val , int pos)\n {\n\n Node nptr = new Node(val, null, null); \n\n if (pos == 1)\n {\n insertAtStart(val);\n return;\n } \n\n Node ptr = start;\n\n for (int i = 2; i <= size; i++)\n {\n if (i == pos)\n {\n Node tmp = ptr.getLinkNext();\n ptr.setLinkNext(nptr);\n nptr.setLinkPrev(ptr);\n nptr.setLinkNext(tmp);\n tmp.setLinkPrev(nptr);\n }\n\n ptr = ptr.getLinkNext(); \n }\n\n size++ ;\n }", "title": "" }, { "docid": "62409a61d73eca3f7737d37dd654cc31", "score": "0.6799524", "text": "void insert(MutableTreeNode child);", "title": "" }, { "docid": "d32fb7bc37b9c190268dec392d6d5b8f", "score": "0.6766963", "text": "private static final Node onInsertNode(final WB_IndexedPoint p, final Node pLastNode) {\n\t\tfinal Node lNode = new Node(p);\n\t\tif (pLastNode == null) {\n\t\t\tlNode.setPreviousNode(lNode);\n\t\t\tlNode.setNextNode(lNode);\n\n\t\t} else {\n\t\t\tlNode.setNextNode(pLastNode.getNextNode());\n\t\t\tlNode.setPreviousNode(pLastNode);\n\t\t\tpLastNode.getNextNode().setPreviousNode(lNode);\n\t\t\tpLastNode.setNextNode(lNode);\n\t\t}\n\t\treturn lNode;\n\t}", "title": "" }, { "docid": "405bcc080bcdf52522d95f92b8cadab1", "score": "0.6726242", "text": "public void insert(int newData) {\n if (newData <= data) {\n if (left == null) {\n left = new Node(newData);\n } else {\n if (left.right == this) {\n throw new RuntimeException(\n \"Cannot insert into a tree that was converted to a doubly-linked list\");\n }\n left.insert(newData);\n }\n } else {\n if (right == null) {\n right = new Node(newData);\n } else {\n if (right.left == this) {\n throw new RuntimeException(\n \"Cannot insert into a tree that was converted to a doubly-linked list\");\n }\n right.insert(newData);\n }\n }\n }", "title": "" }, { "docid": "b97806fdd817ed65d8339838045448f4", "score": "0.66930777", "text": "public void insert(T k) {\n Node found = findClosestNode(k);\n\n // no nodes in the tree\n if (found == null) {\n root = new Node(k);\n size++;\n return;\n }\n\n // found exactly same node\n if (found.el.equals(k)) {\n return;\n }\n\n // create new node\n Node newNode = new Node(k);\n newNode.parent = found;\n size++;\n\n // add as left or right child of the closest node\n if (k.compareTo(found.el) < 0)\n found.left = newNode;\n else\n found.right = newNode;\n\n updateHeights(found);\n }", "title": "" }, { "docid": "a390c597fb3f469cb4c5910674727f3f", "score": "0.66923016", "text": "private void insertByIndex(Object data, String index) {\n\t\tif (((index.compareToIgnoreCase(firstNode.getIndex())<0) && (index.length() == firstNode.getIndex().length())) || \n\t\t\t(index.length() < firstNode.getIndex().length())) {\n\t\t\t\n\t\t\tfirstNode.setprev(new Node(data,index));\n\t\t\t//seta o proximo do anterior = ao atual\n\t\t\tfirstNode.prev().setnext(firstNode);\n\t\t\tfirstNode = firstNode.prev();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\tNode current = firstNode;\n\t\t\t//verifica se chegou ao final e se o valor do indice atual é menor que o indice\n\t\t\t//para quando chegar no fim ou achar um posição maior ou igual ao indice\n\t\t\twhile (current != null && (current.getIndex().compareToIgnoreCase(index))<0)\n\t\t\t\tcurrent = current.next();\n\t\t\t//cria o novo nodo\n\t\t\t//Node novo = new Node(data,index);\n\t\t\t\n\t\t\tif (current == null || index.length() > current.getIndex().length()) {\n\t\t\t\t//se chegar ao final o nodo deve ser inserido como ultimo\n\t\t\t\tlastNode.setnext(new Node(data, index));\n\t\t\t\t//lastNode.next().setprev(current);\n\t\t\t\tlastNode.next().setprev(lastNode);\n\t\t\t\tlastNode = lastNode.next();\n\t\t\t\t//novo = current.prev();\n\t\t\t\t//novo.setprev(lastNode);\n\t\t\t\t//novo.setnext(null);\n\t\t\t\t//lastNode.setnext(novo);\n\t\t\t\t//lastNode = novo;\n\t\t\t} else if (current.getIndex().compareToIgnoreCase(index) == 0) { \n\t\t\t\t\n\t\t\t\t//System.out.println(\"Passou por aqui\");\n\t\t\t\tcurrent.setData(data);\n\t\t\t} else {//if (current != null) \n\t\t\t\t//se nao for o ultimo elemento\n\t\t\t\t//current = atual\n\t\t\t\t//current.prev() = anterior\n\t\t\t\t//current.prev().next() = proximo\n\t\t\t\n\t\t\t\t//define o proximo do anterior como um novo elemento\n\t\t\t\tcurrent.prev().setnext(new Node(data,index));\n\t\t\t\t//atualiza a referencia do proximo do novo objeto\n\t\t\t\tcurrent.prev().next().setnext(current);\n\t\t\t\t//atualiza a referencia do anterior do novo para o anterior\n\t\t\t\tcurrent.prev().next().setprev(current.prev());\n\t\t\t\t//atualizo o anterior com o novo\n\t\t\t\tcurrent.setprev(current.prev().next());\n\t\t\t} \n\t\t}\n\t}", "title": "" }, { "docid": "6071e9a48d31dd92def6c9d2c3eae354", "score": "0.66894966", "text": "private Node insert(Info to_add, int x, Node t) {\n\t\tif (t == null)//this is where adding\n\t\t{\n\t\t\tt = new Node(x,null,null); //create the node\n\t\t\tt.review = to_add;//add the info object\n\t\t\treturn t;//return the node\n\t\t}\t\n\t\tif (x < t.data) { //if index is less than\n\t\t\tt.left = insert(to_add,x, t.left); //go left\n\t\t\tif (height(t.left) - height(t.right) == 2) //tree is not balanced\n\t\t\t\tif (x < t.left.data)\n\t\t\t\t\tt = rotateLeft(t);//perform one rotation\n\t\t\t\telse\n\t\t\t\t\tt = doubleLeft(t); // perform double rotation\n\t\t} else if (x > t.data) { //if index is larger\n\t\t\tt.right = insert(to_add, x, t.right);\n\t\t\tif (height(t.right) - height(t.left) == 2) //tree is not balanced\n\n\t\t\t\tif (x > t.right.data) //perform single rotation\n\t\t\t\t\tt = rotateRight(t);\n\t\t\t\telse\n\t\t\t\t\tt = doubleRight(t);//perform double rotation\n\t\t} else\n\t\t\tt.height = Math.max(height(t.left), height(t.right)) + 1;//find the max height of node\n\t\treturn t;//return the node\n\t}", "title": "" }, { "docid": "68cd08567dc817d9c8b538221b9e104a", "score": "0.66876376", "text": "@Override\n\tpublic void insert() {\n\t\t\n\t}", "title": "" }, { "docid": "be90961898c27a9c0d029a5151811e8b", "score": "0.66805595", "text": "public void insert(e data) {\n\t\tif (super.root == null)\n\t\t{\n\t\t\tsuper.root = new TreeNode<e>(data, null, null); \n\t\t}\n\t\telse {\n\t\t\tTreeNode<e> node = new TreeNode<e>(data, null, null);\t\t\n\t\t\tins(node, super.root);\n\t\t}\n\t}", "title": "" }, { "docid": "474fc23d6b26338415f0fd8c664c659d", "score": "0.66747665", "text": "Node insertBefore(Node newChild, Node refChild);", "title": "" }, { "docid": "3598dd082f35a9b78ff15cdd20a29f7c", "score": "0.66491544", "text": "public void insert ( int newKey ){\n if (isEmpty()){\n root = new BSTreeNode(newKey, null, null);\n return;\n }\n insert_recursive(root, newKey);\n\n }", "title": "" }, { "docid": "1a6720ea3558e5f17d953a1c7158e023", "score": "0.6641401", "text": "public void insertAtPos(int ele, int pos) {\r\n\t\t \r\n\t\t if(pos < 0 || size < pos) {\r\n\t\t\t throw new IllegalArgumentException();\r\n\t\t }\r\n\t\t // create a node\r\n\t\t Node newNode = new Node(ele);\r\n\t\t \r\n\t\t Node tempNode = head;\r\n\t\t Node prevNode = null;\r\n\t\t for(int i =0; i < pos ; i++) {\r\n\t\t\t \tif(tempNode.next == head) {\r\n\t\t\t \t\tbreak; // means only one node is present\r\n\t\t\t \t}\r\n\t\t\t \tprevNode= tempNode;\r\n\t\t\t \ttempNode = tempNode.next;\r\n\t\t \t}\r\n\t\t\tprevNode.next = newNode;\r\n\t\t\tnewNode.next = tempNode;\r\n this.size = this.size +1 ;\r\n //this.traverseData();\r\n\t }", "title": "" }, { "docid": "427308a1a235fc2c10e9dae23b7dbf2a", "score": "0.6632613", "text": "public void insertNode()\n {\n Node temp = new Node();\n System.out.println(\"\\n1.Insert at the start. \\n2.Insert at the specific position. \\n3.Insert at the end\");\n int choice = sc.nextInt();\n switch(choice)\n {\n case 1 :\n System.out.println(\"Enter the value in a node\");\n int value1=sc.nextInt();\n temp.data = value1;\n if(head==null) //There's no node and we are creating the first node.\n {\n head= temp;\n tail= temp;\n temp.prev = null;\n temp.next = null;\n }\n else //If there is a node already and we are creating a node at the start\n {\n head.prev=temp;\n temp.next=head;\n temp.prev=null;\n head = temp;\n }\n break;\n\n case 2:\n System.out.println(\"Enter the value in a node\");\n int value2=sc.nextInt();\n temp.data=value2;\n System.out.println(\"Enter the position where we want to create a node\");\n int position=sc.nextInt();\n int counter=1;\n if(head==null && position==1)\n {\n head=temp;\n tail=temp;\n temp.prev=null;\n temp.next=null;\n }\n else if(head!=null && position==1)\n {\n head.prev=temp;\n temp.next=head;\n temp.prev=null;\n head=temp;\n }\n else {\n Node currentNode = head;\n while (currentNode != null)\n {\n if (counter == position - 1)\n {\n break;\n }\n currentNode = currentNode.next;\n counter++;\n }\n if(currentNode==tail)\n {\n tail.next=temp;\n temp.prev=tail;\n temp.next=null;\n tail=temp;\n }\n else if(currentNode!=null)\n {\n temp.prev=currentNode;\n temp.next=currentNode.next;\n currentNode.next.prev=temp;\n currentNode.next = temp;\n }\n else\n {\n System.out.println(\"Invalid Position\");\n }\n }\n break;\n\n case 3:\n System.out.println(\"Enter the value in a node\");\n int value3=sc.nextInt();\n temp.data=value3;\n if(head==null)\n {\n head=temp;\n tail=temp;\n temp.prev=null;\n temp.next=null;\n }\n else\n {\n tail.next=temp;\n temp.prev=tail;\n temp.next=null;\n tail=temp;\n }\n break;\n\n default:\n System.out.println(\"Invalid choice!! \\n\\n Please select a suitable choice \");\n insertNode();\n }\n }", "title": "" }, { "docid": "e0027128eededd4d7621f14185e764cf", "score": "0.66260123", "text": "private void insertNonExistedNode(TagLinkedListNode newNode) {\n\t\tif (this.next == null) {\n\t\t\t// first node after header pointer\n\t\t\tthis.next = newNode;\n\t\t} else {\n\t\t\tTagLinkedListNode before = this;\n\t\t\tTagLinkedListNode after = this.next;\n\t\t\tboolean alreadyInserted = false;\n\t\t\twhile (after != null) {\n\t\t\t\tif (newNode.getData().compareTo(after.getData()) > 0) {\n\t\t\t\t\t// insert in middle of list\n\t\t\t\t\tbefore.next = newNode;\n\t\t\t\t\tnewNode.next = after;\n\t\t\t\t\talreadyInserted = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbefore = after;\n\t\t\t\tafter = after.next;\n\t\t\t}\n\n\t\t\tif (!alreadyInserted) {\n\t\t\t\t// append to the tail\n\t\t\t\tbefore.next = newNode;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "815fff2f3cfd29cfef004bc92c101ca7", "score": "0.66155887", "text": "public void insertTree(int direction, ITreeModel tree);", "title": "" }, { "docid": "e82036ce589c3746668b459333295930", "score": "0.6594697", "text": "private void insert(Node x, float h_new) \n {\n if (x.getState() == Node.NEW)\n {\n x.setK(h_new);\n }\n else if (x.getState() == Node.OPEN)\n {\n x.setK(Math.min(x.getK(), h_new));\n }\n else if (x.getState() == Node.CLOSED)\n {\n x.setK(Math.min(x.getH(), h_new));\n }\n x.setH(h_new);\n x.setState(Node.OPEN);\n \n //Prevent a node from being added to the open list multiple times.\n if (!open_list.contains(x))\n {\n open_list.add(x);\n }\n Collections.sort(open_list);\n }", "title": "" }, { "docid": "cd4964d5aa10ba54c7ae84cd632d2bae", "score": "0.6585774", "text": "@Override\n\tpublic void insert() {\n\n\t}", "title": "" }, { "docid": "869cc4d828d2d4fe9c61b0ef32c6a188", "score": "0.65798783", "text": "void insert(int index,E data){\n node<E> new_node=new node<>(data);\n int i=0;\n node<E> temp=head;\n if(isEmpty()){\n System.out.println(\"cannot insert in empty linked list\");\n }\n if(index==0){\n new_node.next=temp;\n return;\n }\n node<E> prev=null;\n while(temp!=null && i!=index){\n prev=temp;\n temp=temp.next;\n i++;\n }\n if(i==index){\n prev.next=new_node;\n new_node.next=temp;\n System.out.println();\n return;\n }\n return; \n }", "title": "" }, { "docid": "dd6bd39419b95d05c382869e1869a4fd", "score": "0.6555063", "text": "private void insertNode(Node currentNode, Node newNode){\n\t\tif(newNode.value < currentNode.value){\n\t\t\tif(currentNode.leftChild != null)\n\t\t\t\tinsertNode(currentNode.leftChild,newNode);\n\t\t\telse\n\t\t\t\tcurrentNode.leftChild = newNode;\n\t\t}\n\t\telse if(newNode.value > currentNode.value){\n\t\t\tif(currentNode.rightChild != null)\n\t\t\t\tinsertNode(currentNode.rightChild,newNode);\n\t\t\telse\n\t\t\t\tcurrentNode.rightChild = newNode;\n\t\t}\n\t\telse{\n\t\t\tnewNode.midChild = currentNode.midChild;\n\t\t\tcurrentNode.midChild = newNode;\n\t\t}\n\t}", "title": "" }, { "docid": "fdfc7a9be92755be364aa691a06e818e", "score": "0.6554687", "text": "public void insert(Point2D p)\n {\n if (isEmpty()) \n {\n root = new Node(p, new RectCoord(), true);\n this.size++;\n }\n else recInsert(p, root, new RectCoord());\n \n }", "title": "" }, { "docid": "913ad5f05eb6f09609bc470b28b82e81", "score": "0.65092295", "text": "public void insertItem(Object key) {\n\n if (root == null) {\n root = new Node(key, null, null, null);\n locator.put(key, root);\n lastItem = root;\n parentOfNextOpenPosition = root;\n stack.push(root);\n } else {\n innerInsertItem(parentOfNextOpenPosition, key);\n }\n }", "title": "" }, { "docid": "924b43b6d2f01fe98110a23248a38304", "score": "0.6505117", "text": "public Node<E> insert(E data){\n\t\tNode<E> z = new Node<E>(data);\n\t\ttreeInsert(z);\n\n\t\ttravBalance(z);\n\n\t\treturn z;\n\t}", "title": "" }, { "docid": "b3085874bf0b1c86b3b9fbe98a2466e7", "score": "0.649796", "text": "public Node avlinsert(Node newNode, Node par) {\n\n\t\tNode newpar = par; // root of subtree par\n\n\t\t// If NewNode data less than par then add to left side\n\n\t\tif (newNode.data.toString().compareTo(par.data.toString()) < 0) {\n\n\t\t\tif (par.left == null) {\n\n\t\t\t\tpar.left = newNode; // attach new node as leaf\n\n\t\t\t} else {\n\n\t\t\t\tpar.left = avlinsert(newNode, par.left); // branch left\n\n\t\t\t\tif ((height(par.left) - height(par.right)) == 2) {\n\n\t\t\t\t\tif (newNode.data.toString().compareTo(\n\t\t\t\t\t\t\tpar.left.data.toString()) < 0) {\n\n\t\t\t\t\t\tnewpar = rotatewithleft(par);\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tnewpar = doublerotatewithleft(par);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// If NewNode data greater than par then add to right\n\n\t\telse if (newNode.data.toString().compareTo(par.data.toString()) > 0)\n\n\t\t{\n\t\t\tif (par.right == null) {\n\n\t\t\t\tpar.right = newNode; // attach new node as leaf\n\n\t\t\t} else {\n\n\t\t\t\tpar.right = avlinsert(newNode, par.right); // branch right\n\n\t\t\t\tif ((height(par.right) - height(par.left)) == 2) {\n\n\t\t\t\t\tif (newNode.data.toString().compareTo(\n\t\t\t\t\t\t\tpar.right.data.toString()) > 0) {\n\n\t\t\t\t\t\tnewpar = rotatewithright(par);\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tnewpar = doublerotatewithright(par);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse {\n\n\t\t\t// What if newNode data matches with existing node?\n\n\t\t\t// Do Nothing its a Duplicate Element : So Not Added.\n\t\t}\n\n\t\t// Update the height\n\n\t\tif ((par.left == null) && (par.right != null))\n\t\t\tpar.height = par.right.height + 1;\n\n\t\telse if ((par.right == null) && (par.left != null))\n\t\t\tpar.height = par.left.height + 1;\n\n\t\telse\n\t\t\tpar.height = Math.max(height(par.left), height(par.right)) + 1;\n\n\t\treturn newpar; // return new root of this subtree\n\n\t}", "title": "" }, { "docid": "b5a7c9f3b86b22f4ddc8d5a5f6b75156", "score": "0.6492465", "text": "public void Insert(int n){\n\n node newNode=new node(n);\n//newNode.color=\"R\";\n node current=root;\n node y=nill;\n\n while(current!=nill){ //checking if its not equal to T.nill\n\n y=current;\n if(n<current.data){\n current=current.left;\n }\n else{\n current=current.right;\n }\n }\n newNode.parent=y;\n if(y==nill){\n root=newNode;\n // root.parent=nill;\n root.left=nill;\n root.right=nill;\n // root.color=\"B\";\n }\n else{\n if(newNode.data<y.data){\n y.left=newNode;\n }\n else{\n y.right=newNode;\n }\n newNode.left=nill;\n newNode.right=nill;\n newNode.color=\"R\";\n if(newNode.parent!=nill)\n RB_INSERT_FIXUP(newNode);\n }\n \n }", "title": "" }, { "docid": "d539e9ff9bc685c765751fda29ecdf79", "score": "0.64897215", "text": "public void insert(Point2D p) {\n if (p == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n if (root == null) {\r\n root = new Node(p);\r\n } else {\r\n if (!root.insertRecur(p, START_ITOR)) {\r\n return;\r\n }\r\n }\r\n size++;\r\n }", "title": "" }, { "docid": "39e5cf801c89fc5cd4ee06c21d5ba7da", "score": "0.64889264", "text": "public void insert(int index,E e){\n if(index<0||index>size){\n throw new IllegalArgumentException(\"\");\n }\n if (index==0)\n insertFirst(e);\n else{\n Node prev=head;\n for (int i=0;i<index-1;i++){\n prev=prev.next;\n }\n Node node=new Node(e);\n node.next=prev.next;\n prev.next=node;\n //prev.next=new Node(e,prev.next);\n size++;\n }\n }", "title": "" }, { "docid": "016250a11893d28d7ca6fcb9cdee31ad", "score": "0.6474512", "text": "public void insert(String data){\n\t\t\taddNode(data);\t\n\t\t}", "title": "" }, { "docid": "4fa9256875b6dfe776bff96ce9e23580", "score": "0.64679325", "text": "public NodeInterface addNode(NodeInterface node, int where);", "title": "" }, { "docid": "2db04620212aa11a303c910ced0d5f8e", "score": "0.6467654", "text": "@Override\r\n public void insertElement(Object key, Object element) {\r\n \t//creates new item based on input\r\n Item newItem = new Item (key, element);\r\n \r\n //adds a node to insert the item into if the tree doesn't have nodes yet\r\n if (isEmpty()) {\r\n treeRoot = new TFNode();\r\n treeRoot.insertItem(0, newItem);\r\n treeRoot.setChild(0, null);\r\n treeRoot.setParent(null);\r\n }\r\n \r\n //if the tree already has nodes we need to find where the new element should go\r\n else {\r\n nodeIndexPair pair;\r\n //find the place where the element should be inserted\r\n pair = search(key);\r\n \r\n //if that key already exists in the tree put it at the inorder successor.\r\n if(pair.exactMatch){\r\n pair = inorderSuccessor(pair);\r\n }\r\n \r\n //perform a shifting insert\r\n pair.node.insertItem(pair.index, newItem);\r\n \r\n checkOverflow(pair.node); \r\n }\r\n \r\n size++;\r\n \r\n //Always check to make sure all pointers are hooked up correctly\r\n checkTree();\r\n }", "title": "" }, { "docid": "c14f43dc6f7e8435b9b9f8dd83648b80", "score": "0.6464898", "text": "private void insertAsSibling(final ImmutableJsonNode node) {\n nodeReadOnlyTrx.setCurrentNode(node);\n adaptForInsert((StructNode) node);\n nodeReadOnlyTrx.setCurrentNode(node);\n nodeHashing.adaptHashesWithAdd();\n\n // Get the path node key.\n final long pathNodeKey;\n\n if (buildPathSummary) {\n moveToParentObjectKeyArrayOrDocumentRoot();\n\n if (isObjectKey()) {\n pathNodeKey = ((ImmutableObjectKeyNode) getNode()).getPathNodeKey();\n } else if (isArray()) {\n pathNodeKey = ((ImmutableArrayNode) getNode()).getPathNodeKey();\n } else {\n pathNodeKey = -1;\n }\n } else {\n pathNodeKey = 0;\n }\n\n nodeReadOnlyTrx.setCurrentNode(node);\n\n indexController.notifyChange(IndexController.ChangeType.INSERT, node, pathNodeKey);\n }", "title": "" }, { "docid": "40aec4e2a0896ad247f89fe7469800c3", "score": "0.6463461", "text": "@Override\n public void insertAtPosition(int index, E item) {\n if(size < index){\n throw new IndexOutOfBoundsException();\n }\n Node<E> nodeToInsert = new Node<>(item);\n Node<E> currentNode = this.FIRST.getSuccessor();\n while (index > 0) {\n currentNode = currentNode.getSuccessor();\n index--;\n }\n Node<E> predecessorCurrentNode = currentNode.getPredecessor();\n predecessorCurrentNode.setSuccessor(nodeToInsert);\n currentNode.setPredecessor(nodeToInsert);\n nodeToInsert.setPredecessor(predecessorCurrentNode);\n nodeToInsert.setSuccessor(currentNode);\n this.size++;\n }", "title": "" }, { "docid": "6f296b38739384d3f11e1e2bc48483e0", "score": "0.64308727", "text": "public void insert ( LSInfoItem d )\n {\n root = insert (d, root);\n }", "title": "" }, { "docid": "ae32142e855def5759a2f7e2ea4404a1", "score": "0.6417432", "text": "private void insert() {\r\n // dna is the name of the sequence to insert\r\n String dna = mScan.next();\r\n // data is an array that holds the rectangle coordinates\r\n char[] sequence = dna.toCharArray();\r\n //seq is the String cast of sequence\r\n String seq = sequence.toString();\r\n \r\n //DNATreeNode newNode;\r\n //newNode = new LeafNode(sequence);\r\n \r\n if (!validSequence(sequence)) {\r\n System.out.println(\"sequence rejected: \" + seq);\r\n }\r\n else if (mTree.search(sequence)) {\r\n System.out.println(\"sequence \" + seq);\r\n System.out.println(\" already exists\");\r\n } \r\n else {\r\n mTree.insert(sequence);\r\n }\r\n }", "title": "" }, { "docid": "78b5fe949c53d9f14f776011cbe43733", "score": "0.64128673", "text": "public void insert(Item nodeIn) {\r\n\t\tNode old = first;\r\n\t\tfirst = new Node();\r\n\t\t\r\n\t\tfirst.element = nodeIn;\r\n\t\tfirst.next = old;\r\n\t}", "title": "" }, { "docid": "d67be75c909fa684b9e6247236af67bd", "score": "0.641212", "text": "void insert(int target){\n\t\t\tsize++;\n\t\t\tif(target<=this.val){//smaller or equal goes left\n\t\t\t\tif(this.left==null)\n\t\t\t\t\tthis.left = new QNode(target, 1);\n\t\t\t\telse\n\t\t\t\t\tthis.left.insert(target);\n\t\t\t}else{\n\t\t\t\tif(this.right==null)\n\t\t\t\t\tthis.right = new QNode(target, 1);\n\t\t\t\telse\n\t\t\t\t\tthis.right.insert(target);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "90af1fd7ca94390231477f9cb53f1df5", "score": "0.6405512", "text": "public Node insert(DataNode dnode) {\n\t\tif(data.size() < maxsize-1) {\n\t\t\tboolean dnodeinserted = false;\n\t\t\tint i = 0;\n\t\t\twhile(!dnodeinserted && i < data.size()) {\n\t\t\t\tif( ((DataNode)data.elementAt(i)).inOrder(dnode) ) {\n\t\t\t\t\tdata.add(i,dnode);\n\t\t\t\t\tdnodeinserted = true;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(!dnodeinserted) {\n\t\t\t\tdata.add(data.size(), dnode);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if the leaf is full split\n\t\telse {\n\t\t\tthis.split(dnode);\n\t\t}\n\t\t\n\t\t// return the root of the tree\n\t\treturn this.findRoot();\n\t}", "title": "" }, { "docid": "dfb6954df0efef7096aaa1f7b057a300", "score": "0.6403192", "text": "public void insert(StudentRec newStudent)\n {\n Node previous, current, newNode;\n String newKid = newStudent.getName();\n\n numItems++;\n\n // First, find the proper position for the new item.\n\n previous = null;\n current = head;\n\n while ((current != null)\n && ((newKid).compareTo(current.data.getName()) > 0))\n {\n previous = current;\n current = current.next;\n }\n\n if (previous == null)\n head = new Node(newStudent, head);\n else\n {\n newNode = new Node(newStudent, current);\n previous.next = newNode;\n }\n }", "title": "" }, { "docid": "b0963caaea01e6c6ed1af0736987229b", "score": "0.6397147", "text": "@Override\r\n public void addItem(int Position, T item) {\n \r\n Node newNode = new Node(); //create new node to store the element\r\n newNode.data = item; //assign data to the new node\r\n newNode.next = null; //assign next node to null;\r\n //Position-=1;\r\n \r\n Node prev = null;\r\n Node current = head; //set a current node point to head\r\n if(Position==0) // check if the position is zero\r\n {\r\n Node tmp = new Node(item, null, head); //assign the current head node to the next node of the new node\r\n if(head != null ) {head.prev = tmp;} //if head is null, point new node to head\r\n head = tmp; \r\n if(tail == null) { tail = tmp;} //if tail is null, also point new node to the tail node\r\n }else{\r\n int i = 0; if ((Position >= 1) && (Position <= size )) { \r\n //check the position is valid other than position in zero\r\n while (current !=null && i < Position) {//search the position abd insert the node\r\n prev = current; //point prev to current node\r\n current = current.next; // set current's node as current node\r\n i++; //increase and keep track th position\r\n }\r\n newNode.next = prev.next;\r\n prev.next = newNode;}}\r\n size++;//increase the size of the number element in the list\r\n \r\n }", "title": "" }, { "docid": "02f944c28d24c7fa96121a35afbdf4f7", "score": "0.63954914", "text": "public void insert(Student val) {\n insertH(val, root); \n }", "title": "" }, { "docid": "280b975c6c040f470338ca33953c2255", "score": "0.6385603", "text": "private Node insertKeyAtNode(Node n, int key) {\n //find the position to insert\n int[] curKeys = n.getKeys();\n int i;\n for (i = 0; i < curKeys.length && key > curKeys[i]; i++) {\n }\n //shift and insert\n for (int j = curKeys.length; j > i; j--) {\n n.setKey(curKeys[j - 1], j);\n }\n n.setKey(key, i);\n n.incrementCount();\n return n;\n }", "title": "" }, { "docid": "0ca9d5ece2293573d6feebb3b94c89b9", "score": "0.6380651", "text": "public Node insertBefore(Node newChild, Node refChild) throws DOMException;", "title": "" }, { "docid": "2e409cbb5d3b4e9d7134af26bbc07110", "score": "0.6374203", "text": "public BTreeNode<T> insert(T k)\r\n\t{\r\n\r\n\t\t\t\t\t\t\tif (root.keyTally == 2*m-1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tBTreeNode s = new BTreeNode(m, false);\r\n\t\t\t\t\t\t\t\ts.references[0] = root;\r\n\t\t\t\t\t\t\t\ts.splitChild(0, root);\r\n\t\t\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\t\t\tif (s.keys[0].compareTo(k)<0)\r\n\t\t\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t\t\ts.references[i].insertNonFull(k);\r\n\t\t\t\t\t\t\t\troot = s;\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 root.insertNonFull(k);\r\n\t\t\t\t\t\t\t}\r\n\r\n return root;\r\n\t}", "title": "" }, { "docid": "d78bfe0312f38ba8ee5aae1bdd2709b7", "score": "0.6369216", "text": "public void insert(Point p){\n this.insert(p, _root,null);\n }", "title": "" }, { "docid": "0148ba453c67c68f294de2a193650c5d", "score": "0.63588506", "text": "private void addNewType() {\n LHS_Type newType = new LHS_Type();\n newType.setLHSName(LHS_Type.VALUE_NOT_SET);\n lhsTypes.addType(newType); \n DefaultMutableTreeNode child = new DefaultMutableTreeNode(newType,false);\n tm.insertNodeInto(child,root,root.getChildCount());\n int i = tm.getIndexOfChild(root,child);\n selectNode(i);\n repaint(); \n }", "title": "" }, { "docid": "7269eb45f9f5a7625a06ad800382fb61", "score": "0.6353647", "text": "private Node insert (Node node, int data) {\n if (node == null) {\n node = new Node(data)\n }\n else {\n if (node.getRight() == null)\n node.right = insert (node.right, data);\n else\n node.left = insert (node.left, data);\n\n }\n }", "title": "" }, { "docid": "8058d0ba2612a3b4254ab3e453f05e91", "score": "0.6337089", "text": "public void insertNode(T insertValue)\n\t{\n\t\tif (root == null)\n\t\t{\n\t\t\troot = new TreeNode<T>(insertValue); // create root node\n\t\t}\n\t\telse \n\t\t{\n\t\t\troot.insert(insertValue);\n\t\t}\n\t}", "title": "" }, { "docid": "835d267eac12468bd55a8de5b5d1260a", "score": "0.63368315", "text": "public void insert(Node n) {\n n.next = head;\n head = n;\n size++;\n }", "title": "" }, { "docid": "cd75778a0ca856e30896e2cfc115fa93", "score": "0.6334566", "text": "public synchronized void insertAtGivenPosition(int position, ListNode newNode)\r\n\t{\r\n\t\tListNode p = head;\r\n\t\tif(position<0)\r\n\t\t\t\tposition=0;\r\n\t\tif(position>length)\r\n\t\t\tposition=length;\r\n\t\r\n\t\tif(position==0)\r\n\t\t\tinsertAtBegin(newNode);\r\n\t\telse if(position==length)\r\n\t\t\tinsertAtLast(newNode);\r\n\t\telse \r\n\t\t{\r\n\t\t\tfor(int i=1;i<position;i++)\r\n\t\t\t{\r\n\t\t\t\tp=p.getNext();\r\n\t\t\t}\r\n\t\t\tListNode currentNodeAtSamePosition = p.getNext();\r\n\t\t\tnewNode.setNext(currentNodeAtSamePosition);\r\n\t\t\tcurrentNodeAtSamePosition.setPrev(newNode);\r\n\t\t\tp.setNext(newNode);\r\n\t\t\tnewNode.setPrev(p);\r\n\t\t\tlength++;\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3bbb769cf65ff6bb87512b0d296397bb", "score": "0.63345104", "text": "protected Node findInsertionNode() {\n \t\treturn findValidNode(insertCriteria);\n \t}", "title": "" }, { "docid": "a4cf986519d30fb78485a03c2e4b3b5a", "score": "0.6332082", "text": "public void insert(E data){\n \tNode<E> z = new Node<E>(data);\n \tNode<E> y = nil;\n \tNode<E> x = root;\n\n \twhile(x != nil){\n \t\ty = x;\n \t\tif(z.getData().compareTo(x.getData()) < 0){\n \t\t\tx = x.getLeftChild();\n \t\t} else{\n \t\t\tx = x.getRightChild();\n \t\t}\n \t}\n \t\n z.setParent(y); \n \n if(y == nil){\n \troot = z;\n } else if(z.getData().compareTo(y.getData()) < 0){\n \ty.setLeftChild(z);\n } else{\n \ty.setRightChild(z);\t\n }\n z.setLeftChild(nil);\n \tz.setRightChild(nil);\n \tz.setColor('R');\n insertFixup(z);\n \n }", "title": "" }, { "docid": "f612e96b0c47e2f90868f9e2baa6b0dc", "score": "0.63292116", "text": "private void insertAtCurrentNode(String key, String value){\n\t\ttry {\n\t\t\tLog.e(\"insertAtCurrentNode\",\"Actually Inserting to myPort - \"+myPort+\"-\"+key+\" \"+value);\n\t\t\tFileOutputStream outputStream = getContext().openFileOutput(key, Context.MODE_PRIVATE);\n\t\t\toutputStream.write(value.getBytes());\n\t\t\toutputStream.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tLog.e(\"insertAtCurrentNode\",\"FileNotFoundException\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tLog.e(\"insertAtCurrentNode\",\"CHECK Node Failed before Insert\");\n\t\t}\n\t}", "title": "" }, { "docid": "6be4e3e7427d4295e8d100291ec2b48a", "score": "0.6328098", "text": "public void insert(T item, int index) {\r\n\t\tif (index < 0 || index > size) {\r\n\t\t\tSystem.out.println(\"Invalid Index\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\t\r\n\t\t\t\tif (index == 0) {\r\n\t\t\t\t\tNode<T> node = getNewNode(item);\r\n\t\t\t\t\tnode.next = head;\r\n\t\t\t\t\thead = node;\r\n\t\t\t\t\tsize++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\tNode<T> temp = head;\r\n\t\t\t\tfor (int i = 0;i<(index-1);i++) { // stop at just before where we have to add new node\r\n\t\t\t\t\ttemp = temp.next;\r\n\t\t\t\t}\r\n\t\t\t\tNode<T> node = getNewNode(item);\r\n\t\t\t\tnode.next = temp.next;\r\n\t\t\t\ttemp.next = node;\r\n\t\t\t\tsize++;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3647ff6eaef542c727e036f3cd0751dd", "score": "0.6326058", "text": "void insertBefore(int data) {\n\t\tif (length() > 0 && index() >= 0) {\n\t\t\tNode P = cursor.prev; // previous Node\n\t\t\tNode N = new Node(data);\n\t\t\tcursor.prev = N; // Cursor points to N\n\t\t\tN.next = cursor;\n\t\t\tN.prev = P; \n\t\t\tif (cursor.equals(head)) {\n\t\t\t\thead = N;\n\t\t\t}\n\t\t\tif (P != null) {\n\t\t\t\tP.next = N; // Prev point to N\n\t\t\t}\n\t\t\tlength++;\n\t\t}\n\t}", "title": "" }, { "docid": "99f02552a0869b9a4e95d4990df5bcfb", "score": "0.6307793", "text": "@Override\n\tpublic void push(T newEntry) {\n\t\tNode nextNode = new Node(newEntry, topNode);\n\t\tnextNode = topNode;\n\t\t\n\t}", "title": "" }, { "docid": "882a8c23d67b449c00d9d85e1cb32f08", "score": "0.629796", "text": "void addNode(BaseNode node);", "title": "" }, { "docid": "9e0c21d011df9a822073ec084b049881", "score": "0.62977296", "text": "public Node insert(MBRHandle data)\n {\n\n double area, darea, minarea = 1e60, iarea = 1e60, increase;\n Node inode = null;\n if (m_data.size() == 0)\n {\n return null;\n }\n\n Extent dataExtent = data.extent;\n Extent saveExtent = new Extent();\n for (Object objNode : m_data)\n {\n saveExtent.set(dataExtent);\n Node nodeData = (Node) objNode;\n Extent nodeExtent = nodeData.getExtent();\n\n saveExtent.union(nodeExtent);\n\n area = nodeExtent.area();\n darea = saveExtent.area();\n increase = darea - area;\n if (increase < minarea)\n {\n inode = nodeData;\n minarea = area;\n }\n else if (increase == minarea)\n {\n if (area < minarea)\n {\n inode = nodeData;\n minarea = area;\n }\n }\n }\n\n //TODO:what if inode is null\n if (inode == null)\n {\n System.out.println(\"Another problem\");\n }\n Node rNode = inode.insert(data);\n if (rNode != null)\n {\n Node sNode = insert1(rNode);\n return sNode;\n }\n else\n {\n widen(inode);\n }\n\n return null;\n }", "title": "" }, { "docid": "39bc7d62079d267a6e7ef31e54a9aab8", "score": "0.6297499", "text": "public void insert(MBRHandle data)\n {\n\n Node node = m_root;\n Node rNode = node.insert(data);\n if (rNode != null)\n {\n //root Node was split\n Node newRoot = new InnerNode();\n\n newRoot.insertNonFull(node);\n newRoot.insertNonFull(rNode);\n\n m_root = newRoot;\n }\n }", "title": "" }, { "docid": "93b0943af382b7093909bd459394fa94", "score": "0.62965983", "text": "public SplayNode insert (int value, SplayNode rt) {\n\t// insert the new value in this tree\n\trt = insertHelp(value, rt);\n // then bring the new value to the root\n return splay(rt, value);\n }", "title": "" }, { "docid": "57ee40533a2a6fe8a288ec2380bd6967", "score": "0.62959015", "text": "void insert(int value) {\n\t\t\tBinaryNode node = new BinaryNode();\n\t\t\tnode.setValue(value);\n\t\t\tif (root == null) {\n\t\t\t\troot = node;\n\t\t\t\tSystem.out.println(\"Successfully inserted new node at Root !\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tQueue<BinaryNode> queue = new LinkedList<BinaryNode>();\n\t\t\tqueue.add(root);\n\t\t\twhile (!queue.isEmpty()) {\n\t\t\t\tBinaryNode presentNode = queue.remove();\n\t\t\t\tif (presentNode.getLeft() == null) {\n\t\t\t\t\tpresentNode.setLeft(node);\n\t\t\t\t\tSystem.out.println(\"Successfully inserted new node !\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (presentNode.getRight() == null) {\n\t\t\t\t\tpresentNode.setRight(node);\n\t\t\t\t\tSystem.out.println(\"Successfully inserted new node !\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tqueue.add(presentNode.getLeft());\n\t\t\t\t\tqueue.add(presentNode.getRight());\n\t\t\t\t} // end of else-if\n\t\t\t} // end of loop\n\t\t}", "title": "" }, { "docid": "316036a5648ba4a3785b1ee4159eaf16", "score": "0.6292232", "text": "static SinglyLinkedListNode insertNodeAtPosition(SinglyLinkedListNode head, int data, int position) {\n SinglyLinkedListNode node = new SinglyLinkedListNode(data);\n if(head == null){\n head = node;\n }\n else{\n SinglyLinkedListNode current = head;\n for(int i=1;i< position ; i++){\n current = current.next;\n if(current.next == null){\n break;\n }\n }\n node.next = current.next;\n current.next = node;\n }\n return head;\n }", "title": "" }, { "docid": "c6e3e45c21a9bc287d9f4775820f6cb9", "score": "0.6287686", "text": "public void insert(Integer key) {\n // Your code here...\n if(root == null){\n //System.out.println(\"c:\"+key.toString());\n root = new ListNode(key);\n calculateData();\n //root.data = getData(key);\n }else{\n ListNode temp = new ListNode(key); //create the new employee\n if(root.next == null){\n root.next = temp;\n }else{\n ListNode t = root;\n while((t.next != null)){\n t = t.next;\n }\n if(t.next == null && !contains(key)){\n t.next = temp;\n calculateData();\n //temp.data = getData(key);\n }\n \n }\n }\n }", "title": "" }, { "docid": "fefaafccd852719f2a6739afc5c84d36", "score": "0.6282539", "text": "Position<E> insertParent(Position<E> p, E o);", "title": "" }, { "docid": "695cf62f83541151b7ec963a02bd6745", "score": "0.6278615", "text": "public void insert(int key) {\n Terminal.println(\"Inserting \" + key);\n SkipNode newItem = new SkipNode(key);\n if(newItem.size > maxheight) //set maxheight\n maxheight = newItem.size;\n if(head.size < maxheight)\n increaseHeadTailSize(); //increase the head & tail size\n Terminal.println(\"HEIGHT =\"+newItem.size);\n ptr = head;\n int l = maxheight - 1;\n int k = 0;\n boolean inserted = false;\n while(l >= 0) {\n if (k == 0) { //k is a flag, indicating a change in levels\n Terminal.print(\"At level \" + l + \" compared \" + key + \" to:\");\n k++;\n }\n if (ptr.next[l].key == MAX) {\n Terminal.print(\" infinity\");\n }else {\n Terminal.print(\" \" + ptr.next[l].key);\n }\n if(ptr.next[l].key == key) {\n Terminal.println(\"The key you wish to insert is in use.\");\n }\n if(ptr.next[l].key < key) {\n ptr = ptr.next[l];\n }else {\n if(l <= newItem.size-1) {\n newItem.next[l] = ptr.next[l]; //insert and initialize\n ptr.next[l] = newItem; //new item\n newItem.prev[l] = ptr;\n newItem.next[l].prev[l] = newItem;\n }\n l--;\n Terminal.println(\"\");\n k = 0;\n }\n }\n print();\n }", "title": "" }, { "docid": "c5a930ad15b81391e98b67e1b7d56122", "score": "0.62755954", "text": "private void _insert(Object obj, ListNode node) {\r\n\t\tListNode newNode = new ListNode(obj);\r\n\r\n\t\tnewNode.next = node;\r\n\t\tnewNode.prev = node.prev;\r\n\t\tnode.prev = node.prev.next = newNode;\r\n\r\n\t}", "title": "" }, { "docid": "ae8020c3eabd43f9cc6cd22a1dc0c208", "score": "0.6275248", "text": "public TreeNode insert(TreeNode rt, int addInfo, int lev) {\n\t\tif (rt.isLeaf()) {\n\t\t\tboolean checkAdd = rt.insert(addInfo);\n\t\t\tif (checkAdd) {\n\t\t\t\tupdate = -1;\n\t\t\t\treturn rt;\n\t\t\t} else {\n\t\t\t\t// split\n\t\t\t\tTreeNode next = split(rt, addInfo);\n\t\t\t\tinsertTreeNode(leafValue, next);// add in the single linked list\n\t\t\t\tupdate = next.getValue()[0];\n\t\t\t\tif (rt == root) {\n\t\t\t\t\tTreeNode parent = new TreeNode(max); // add new parent node\n\t\t\t\t\tparent.insert(update);\n\t\t\t\t\tparent.setChildren(0, rt);\n\t\t\t\t\tparent.setChildren(1, next);\n\t\t\t\t\troot = parent;\n\t\t\t\t\tupdate = -1;\n\t\t\t\t\tlevel++;\n\t\t\t\t\tlist.add(new SingleLinkedList<TreeNode>());\n\t\t\t\t\tlist.get(level - 1).add(parent);\n\t\t\t\t\treturn parent;\n\t\t\t\t}\n\t\t\t\treturn next;\n\t\t\t}\n\t\t} else {\n\t\t\tint pos = rt.insertPos(addInfo, 0, rt.size() - 1);\n\t\t\tTreeNode next = insert(rt.getChildren()[pos], addInfo, lev - 1); // new child\n\t\t\tif (next != rt.getChildren()[pos]) {\n\t\t\t\tboolean checkAdd = rt.insert(update);\n\t\t\t\tif (checkAdd) {\n\t\t\t\t\taddChildren(rt, next, false, null);\n\t\t\t\t\tupdate = -1;\n\t\t\t\t\treturn rt;\n\t\t\t\t} else {\n\t\t\t\t\t// split\n\t\t\t\t\tTreeNode nextNode = parentSplit(rt); // parallel with rt\n\t\t\t\t\tinsertTreeNode(list.get(lev - 1), nextNode);\n\t\t\t\t\t// change children\n\t\t\t\t\taddChildren(rt, next, true, nextNode);\n\t\t\t\t\tif (rt == root) {\n\t\t\t\t\t\tTreeNode parent = new TreeNode(max); // add new parent node\n\t\t\t\t\t\tparent.insert(update);\n\t\t\t\t\t\tparent.setChildren(0, rt);\n\t\t\t\t\t\tparent.setChildren(1, nextNode);\n\t\t\t\t\t\troot = parent;\n\t\t\t\t\t\tupdate = -1;\n\t\t\t\t\t\tlevel++;\n\t\t\t\t\t\tlist.add(new SingleLinkedList<TreeNode>());\n\t\t\t\t\t\tlist.get(level - 1).add(parent);\n\t\t\t\t\t\treturn parent;\n\t\t\t\t\t}\n\t\t\t\t\treturn nextNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rt;\n\t\t}\n\t}", "title": "" }, { "docid": "575d1675358e6afdd03f401edae545ef", "score": "0.6275084", "text": "public void insert(int value){\n\t\t\tif(value <= data) {\n\t\t\t\tif(left == null) {\n\t\t\t\t\tleft = new Node(value);\n\t\t\t\t}else {\n\t\t\t\t\tleft.insert(value);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(right == null) {\n\t\t\t\t\tright = new Node(value);\n\t\t\t\t}else {\n\t\t\t\t\tright.insert(value);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8b53aef87ebcc556167465e8fda64d60", "score": "0.6272622", "text": "public Node insert(T data){\r\n return (root == null) ? (root = new Node(data)) : insertHelper(data, root);\r\n }", "title": "" }, { "docid": "ae9cba3b76655268afead33e9f29bb18", "score": "0.62696755", "text": "@Override\n\tpublic void insert(int key, T newValue, int height) {\n\t\tSkipListNode[] nodesToBeUpdated = new SkipListNode[this.maxHeight]; //Array que guarda os ponteiros que devem provavelmente ser atualizados com adicao do novo node. Cada indice e a referencia de cada nivel q precida ser atualizada\n\t\t//Caminha por nivel enquanto achar um node com valor menor que o node a ser inserido - De cima para baixo\n\t\tSkipListNode<T> auxiliar = this.root; //Variavel auxiliar para percorrer a SkipList\n\t\tfor(int i = this.maxHeight - 1; i >= 0; i--){\n\t\t\twhile(auxiliar.getForward(i).getKey() < key){\n\t\t\t\tauxiliar = auxiliar.getForward(i); \n\t\t\t}\n\t\t\t//Guarda os ponteiros a serem atualizados\n\t\t\tnodesToBeUpdated[i] = auxiliar; //Se o proximo no nao for menor, entao esse nivel desse node provavelmente devera ser atualizado, entao guardamos ele.\t\t\n\t\t}\n\t\t//Ha a possibilidade de atualizar um node ja existente ou adicionar um novo node. Defini-se o auxiliar agora, como sendo auxiliar.forward[1]\n\t\t//Sendo entao o auxiliar agora o node a ser atualizado se ele ja existir ou o node APOS o node que foi adicionado\n\t\tauxiliar = auxiliar.getForward(0); //Faz isso para o caso de o no ja existir e ter de atualiza-lo\n\t\tif(auxiliar.getKey() == key){ //Caso de atualizacao\n\t\t\tauxiliar.setValue(newValue);\n\t\t}else{ //Caso em que de fato se vai adicionar um node\n\t\t\tSkipListNode<T> novoNode = new SkipListNode<T>(key, height, newValue);\n\t\t\t//Arrumando os apontadores que o node aponta e os que apontam para o node\n\t\t\tfor(int i = height - 1; i >= 0; i--){\n\t\t\t\tnovoNode.forward[i] = nodesToBeUpdated[i].getForward(i);\n\t\t\t\tnodesToBeUpdated[i].forward[i] = novoNode;\t \t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c92045595f373f312b82927b2b756992", "score": "0.62625986", "text": "void addNode(Node node);", "title": "" }, { "docid": "5321d1e9a093bd31fcc4a98038bb1a2f", "score": "0.6260848", "text": "private void insertAt(int index, TKey key, IndexNode<TKey,TValue> leftChild, IndexNode<TKey,TValue> rightChild) {\n for (int i = this.getKeyCount() + 1; i > index; --i) {\n this.setChild(i, this.getChild(i - 1));\n }\n for (int i = this.getKeyCount(); i > index; --i) {\n this.setKey(i, this.getKey(i - 1));\n }\n\n // insert the new key\n this.setKey(index, key);\n this.setChild(index, leftChild);\n this.setChild(index + 1, rightChild);\n this.keyCount += 1;\n }", "title": "" }, { "docid": "a1f08eb8aae5d33ca27498304aee81e1", "score": "0.62608045", "text": "public void RBTree_insert(Node z){\n Node y = getNil();\n Node x = getRoot();\n\n //first Node skip\n while (x != getNil()){\n y = x;\n if(z.getTotalScore() < x.getTotalScore())\n x = x.getLeft();\n else x = x.getRight();\n }\n\n //set parent of z to y\n z.setParent(y);\n if(y == getNil())\n setRoot(z); //set the root to z since the its parent is NIl\n else if(z.getTotalScore() < y.getTotalScore())\n y.setLeft(z);\n else y.setRight(z);\n z.setLeft(getNil()); //set left to NIl\n z.setRight(getNil()); //set right to NIL\n z.setColor(\"Red\"); //insert initially as \"Red\"\n RBTree_insert_fixUp(z); //fix the color\n }", "title": "" }, { "docid": "86ca1f2396e98e60096e2e6ea0173485", "score": "0.625945", "text": "@Override\n public void insert() {\n\n }", "title": "" }, { "docid": "f72ad3456c695c38c885c033bfe59c31", "score": "0.6255083", "text": "public void insert(Node x){\n\t\tx.setNext(head);\n\t\thead = x;\n\t\tn ++;\n\t}", "title": "" }, { "docid": "f3e2585624fd7e599c30cc49da9e1c19", "score": "0.62534547", "text": "private void addNode(int index, Node<AnyType> t) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n //Node headTemp=headNode;\n Node addNode= t;\n Node temp=headNode;\n if(headNode==null)\n {\n headNode=addNode;\n }\n else if(index>size){\n throw new IndexOutOfBoundsException();\n }\n else\n {\n for(int i=0;i<index-2;i++)\n {\n temp=temp.getNextNode();\n }\n addNode.setNextNode(temp.getNextNode());\n temp.setNextNode(addNode);\n //temp.setNextNode(cerNode);\n //cerNode.setNextNode(temp.getNextNode());\n size++;\n }\n \n \n }", "title": "" }, { "docid": "6aaf2ceab27d9fce1e7d83699c98dd77", "score": "0.62508684", "text": "@Override\r\n\tpublic void add(int pos, T data) {\n\t\tint count = 1;\r\n\t\t//creation of newNode with given data item.\r\n\t\tNode<T> newNode = new Node<T>();\r\n\t\tnewNode.setData(data);\r\n\t\t\r\n\t\tNode<T> temp = first;\r\n\t\t//traverse the list\r\n\t\t//Suppose, we need to insert at a position 3, we traverse to the node 2 (pos-1)\r\n\t\t//temp.getNext() != null condition to check end of the list.\r\n\t\twhile(count != pos-1 && temp.getNext() != null){\r\n\t\t\ttemp = temp.getNext();\r\n\t\t count++;\r\n\t\t}\r\n\t\t//Now we are at (pos-1) position.\r\n\t\t//always handle new node right pointer first.\r\n\t\tnewNode.setNext(temp.getNext());\r\n\t\t//(pos-1) node next is set to newNode.\r\n\t\ttemp.setNext(newNode);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cac101b3f58a81fdedad6bdc2847929a", "score": "0.62495995", "text": "public void insert(T item) {\n\t\troot.insert(item);\n\t}", "title": "" }, { "docid": "8f1f972b612f15277a098dd64b84779b", "score": "0.6247687", "text": "public void insert(int data, int index) throws IndexOutOfBoundsException{\n if (index < 0 || index > size)\n throw new IndexOutOfBoundsException(\"Index: \"+index);\n\n Node nuevo = new Node(data);\n\n if(index == 0){\n nuevo.next = this.first;\n this.first = nuevo;\n this.size++;\n }\n else{\n Node bloque = first;\n for (int i=1; i <= index-1; i++)\n bloque = bloque.next; \n\n Node viejo = bloque.next;\n bloque.next = nuevo;\n nuevo.next = viejo;\n this.size++;\n }\n }", "title": "" }, { "docid": "b488bec7dd9b47ca02d578c6431bde9f", "score": "0.62422574", "text": "public void insert(Object object) {\n\tif (this.lead == this.first) {\n\t this.first = new ListNode(object, this.first);\n\t if (this.last == null) this.last = this.first;\n\t} else if (this.lead == null)\n\t this.last = new ListNode(this.last, object);\n\telse\n\t this.lead.prepend(new ListNode(object));\n\tthis.length++;\n }", "title": "" }, { "docid": "a9058f3a1fe9384bfd0609413b29d07f", "score": "0.62395006", "text": "public void insert(Point2D p) {\n checkNull(p, \"insert() has null argument\");\n if (this.root == null) {\n this.root = new Node(p, KdTree.X_DIR, new RectHV(0, 0, 1, 1));\n this.size++;\n } else {\n Node parent = findParent(p);\n Point2D parentPoint = parent.point;\n RectHV parentRect = parent.rect;\n\n // add new node if point isn't equal\n if (!p.equals(parent.point)) {\n if (parent.orientation == KdTree.X_DIR) {\n if (p.x() <= parentPoint.x()) {\n parent.left = new Node(p, KdTree.Y_DIR,\n new RectHV(parentRect.xmin(), parentRect.ymin(), parentPoint.x(), parentRect.ymax()));\n } else {\n parent.right = new Node(p, KdTree.Y_DIR,\n new RectHV(parentPoint.x(), parentRect.ymin(), parentRect.xmax(), parentRect.ymax()));\n }\n } else {\n if (p.y() <= parentPoint.y()) {\n parent.left = new Node(p, KdTree.X_DIR,\n new RectHV(parentRect.xmin(), parentRect.ymin(), parentRect.xmax(), parentPoint.y()));\n } else {\n parent.right = new Node(p, KdTree.X_DIR,\n new RectHV(parentRect.xmin(), parentPoint.y(), parentRect.xmax(), parentRect.ymax()));\n }\n }\n this.size++;\n }\n }\n }", "title": "" }, { "docid": "93fa01709bb0fe14b55bafa9761a25aa", "score": "0.62387407", "text": "public void insert_after(ListIter pos, T x) {\n pos.node.next = new Node(x, pos.node.next);\n }", "title": "" }, { "docid": "24b423267cce77a3d2a3d9c5ea75ab47", "score": "0.62356776", "text": "@Override\n\tpublic void insert(int index, Object obj) throws Exception {\n\t\tif (index < 0 || index > size) {\n\t\t\tthrow new Exception(\"参数错误\");\n\t\t}\n\t\tindex(index-1);\n\t\tcurrentNode.setNext(new Node(currentNode.getNext(), obj));\n\t\tsize++;\n\t}", "title": "" }, { "docid": "70f7450a6e33d7b1cd5c13900e4fe417", "score": "0.6234609", "text": "public void insert(K key, T info) {\n\n size++;\n\n //Special case - empty tree\n if (root == null) {\n root = new BTNode<K,T>(key, info);\n return;\n }\n\n //Default case - add new node\n\n //References to track traversal\n BTNode <K, T> prev = null;\n BTNode <K, T> cur = root;\n\n //Traverse list moving left or right based upon\n // new key's value relative to each node's key.\n while (cur != null) {\n\n prev = cur;\n\n //If key's value is less than cur's key, traverse left.\n if (key.compareTo(cur.key) < 0) {\n cur = cur.left;\n }\n //Otherwise, traverse right.\n else {\n cur = cur.right;\n }\n }\n\n //Insert new key relative to prev (i.e. the last node\n // visited in the traversal\n if (key.compareTo(prev.key) < 0) {\n prev.left = new BTNode<K, T>(key, info);\n }\n else {\n prev.right = new BTNode<K, T>(key, info);\n }\n }", "title": "" }, { "docid": "86ee3e0a55eb0849f11b2af02a827006", "score": "0.62293714", "text": "@Override\n public boolean insertAt( Number value, int index ) {\n if ( index < 0 || index > ( size() + 1 ) ) {\n System.out.println ( \"Index \" + index + \" out of range.\" );\n return false;\n }\n Node<? extends Number> newNode = new Node<>( value );\n Node current = head;\n for ( int i = 1; i < index-1; i++ ) {\n current = current.next;\n }\n // at this point, current is pointing at (index-1)st node.\n //insert just AFTER current.\n newNode.next = current.next;\n current.next = newNode;\n\n\n return true;\n }", "title": "" }, { "docid": "4ee9f74d22248b22334c9740a1a2d8e6", "score": "0.6228622", "text": "void addNewNode(NetworkNode.TYPE node);", "title": "" }, { "docid": "909982b4eb6ba1bd697458309231991a", "score": "0.6227191", "text": "public void Insert(Entry newNode) {\n//do you want to make it bigger ?\n\t\tif(rightMost >= arr.length-1) {\n\t\t\tSystem.out.println(\"A full array\");\n\t\t}\n\t\telse \n\t\t\trightMost = rightMost+1;\n\t\t\tarr[rightMost] = newNode;\n\t\t this.upHeap(rightMost);\n//dont forget to sort it Up-Heap\n\t}", "title": "" }, { "docid": "e871c569cf313e59dce79419bcb0c5a3", "score": "0.62261355", "text": "public void insert(Point2D p) {\n\t \r\n\t\t if (p == null) throw new NullPointerException(p + \"can't be null!\");\r\n\t\t root = put(root, p, true, new RectHV(0.0, 0.0, 1.0, 1.0));\r\n\t\t \r\n\t }", "title": "" }, { "docid": "ec6e65fa67edf761047a57b579f3bc6d", "score": "0.6224702", "text": "public void insert (int data){\n root = insert(root, data)\n }", "title": "" }, { "docid": "6d3c164d5c3b056a3de0070245708a58", "score": "0.62218416", "text": "static Node insert(Node root, int key) \n{ \n\t// Create a new Node containing \n\t// the new element \n\tNode newnode = newNode(key); \n\n\t// Pointer to start traversing from root and \n\t// traverses downward path to search \n\t// where the new node to be inserted \n\tNode x = root; \n\n\t// Pointer y maintains the trailing \n\t// pointer of x \n\tNode y = null; \n\n\twhile (x != null) { \n\t\ty = x; \n\t\tif (key < x.key) \n\t\t\tx = x.left; \n\t\telse\n\t\t\tx = x.right; \n\t} \n\n\t// If the root is null i.e the tree is empty \n\t// The new node is the root node \n\tif (y == null) \n\t\ty = newnode; \n\n\t// If the new key is less then the leaf node key \n\t// Assign the new node to be its left child \n\telse if (key < y.key) \n\t\ty.left = newnode; \n\n\t// else assign the new node its right child \n\telse\n\t\ty.right = newnode; \n\n\t// Returns the pointer where the \n\t// new node is inserted \n\treturn y; \n}", "title": "" }, { "docid": "f8ce22a07826a4dbe85b1e29eebf2c87", "score": "0.62189215", "text": "public void add(int toInsert)\r\n\t{\r\n\t\tListNode toInsertNode=new ListNode(toInsert);\r\n\t\ttoInsertNode.next=head.next;\r\n\t\thead.next=toInsertNode;\r\n\t\tsize++;\r\n\t}", "title": "" } ]
abb33f85d76f7e8736e63ece06e7d531
databinding method to get an XML representation of this object
[ { "docid": "cdb06bc04a1e8bed3a05f46637d4529a", "score": "0.0", "text": "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n \r\n //We can safely assume an element has only one type associated with it\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(MY_QNAME,\r\n new java.lang.Object[]{\r\n org.apache.axis2.databinding.utils.reader.ADBXMLStreamReader.ELEMENT_TEXT,\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEndDate_type0)\r\n },\r\n null);\r\n\r\n }", "title": "" } ]
[ { "docid": "e8e01405cbdc7e8bfc26bf89b5568b29", "score": "0.6846071", "text": "@Override\n\tpublic Object toXML() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f683af3c3b70fdf53692bd959780afe5", "score": "0.67550135", "text": "public String as_xml() { return inst.lsl_get_xml(obj); }", "title": "" }, { "docid": "f538b94db9a1bcda3fc8edccd38487b9", "score": "0.6713722", "text": "public String toXML()\n {\n\n return new XStream().toXML(this);\n }", "title": "" }, { "docid": "f86ef91e9837b7f9b5cc9e27653051b7", "score": "0.6684431", "text": "@Override\n public String toXML() {\n return null;\n }", "title": "" }, { "docid": "92251ffd334f884b3281b8db2d8aad6d", "score": "0.66470915", "text": "@Override\n\tpublic String toString() {\n\t\treturn toXmlString();\n\t}", "title": "" }, { "docid": "93e3a08516ae354d474ecf70b5910cc1", "score": "0.662091", "text": "public String asXML() {\n return null;\n }", "title": "" }, { "docid": "93e3a08516ae354d474ecf70b5910cc1", "score": "0.662091", "text": "public String asXML() {\n return null;\n }", "title": "" }, { "docid": "604e04bbf9da4596b20c2423d241a629", "score": "0.6512548", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }", "title": "" }, { "docid": "4085005bef26693a53dce4257e748c62", "score": "0.6385794", "text": "public String toXML() {\n try {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n Marshaller m = buildJAXBContext().createMarshaller();\n m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n m.marshal(this.entity, stream);\n return stream.toString(XML_ENCODING).trim();\n } catch (Exception e) {\n Log.error(e.getMessage(), e);\n return Empty;\n }\n }", "title": "" }, { "docid": "5ddd78cd653e869580ad6d6b9d97177b", "score": "0.621252", "text": "public void xmlWriteViewType();", "title": "" }, { "docid": "f16b1ac768a679e4c17f1c713fcca15e", "score": "0.6124291", "text": "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( FilesetNdmpVolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "title": "" }, { "docid": "118af7dc49c3ac933ef01e8e1ce60e74", "score": "0.6111603", "text": "@Override\n\tpublic String createXml() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "92307003fd163e9a00d99d482db8a9cb", "score": "0.59534705", "text": "public String getXml() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2c4f348d52a57f9ed066e89e1d86ac00", "score": "0.5940287", "text": "public String toXml () {\n InverseSax doc = new InverseSax();\n includeXml(doc);\n return doc.toString();\n }", "title": "" }, { "docid": "7a4a50054ff0ec9ef4c1611e60d1b246", "score": "0.5916366", "text": "public Immutable getXml() {\n return null;\n }", "title": "" }, { "docid": "8ab9a1f7299db453591f979836f4b8cb", "score": "0.5886053", "text": "public String toXml(Object o);", "title": "" }, { "docid": "f80e96c77eeb3b9ec6230bf5f02a8b8c", "score": "0.58703506", "text": "public byte[] getXML() {\n return xml;\n }", "title": "" }, { "docid": "5b5f43fcf5eec713f246ee7ba8d6f866", "score": "0.5865247", "text": "public String toString() {\r\n StringBuffer retval = new StringBuffer();\r\n\r\n try {\r\n toXML(retval);\r\n } catch (Exception e) {\r\n IntiroLog.error(getClass(), getClass().getName() + \".toString(): \" + e.getMessage());\r\n }\r\n\r\n return retval.toString();\r\n }", "title": "" }, { "docid": "dabab38c1e545bb2bc22a046bc39cabf", "score": "0.5858143", "text": "public String toXml() {\r\n return String.format(\"<%s group='%04x' element='%04x' vr='%s' fullName='%s'/>\",\r\n name, attributeTag.getGroup(), attributeTag.getElement(), ValueRepresentation.getAsString(valueRepresentation), fullName);\r\n }", "title": "" }, { "docid": "e802f8842fc0ad7866cac809a4e126df", "score": "0.5833429", "text": "@Override\n public String toXML() {\n String xml = \"<Rabbit>\";\n Coordinate coordinate = this.coordinate.left().get();\n\n xml = xml + \"<Coordinate row=\" + '\"' + coordinate.row + '\"' +\n \" column=\" + '\"' + coordinate.column + '\"' + \"/>\";\n\n xml = xml + \"</Rabbit>\";\n return xml;\n }", "title": "" }, { "docid": "a1763f49df516ca26594727bdedf64c2", "score": "0.5826155", "text": "protected Element generateXMLElement(){\n\t\tElement result = super.generateXMLElement();\n\t\tif(isPositioned()){\n\t\t\tresult.setAttribute(\"x\", Integer.toString(posX));\n\t\t\tresult.setAttribute(\"y\", Integer.toString(posY));\n\t\t}\n\t\t\n\t\treturn result;\t\t\n\t}", "title": "" }, { "docid": "4826a3c995eababe2c7402c369db8da9", "score": "0.5804697", "text": "public String toXML() throws ParserConfigurationException, TransformerConfigurationException, TransformerException {\n return toXML(true);\n }", "title": "" }, { "docid": "9d7754cbc208e3389cece8c9ce2d9740", "score": "0.57949495", "text": "String toXML(Object object);", "title": "" }, { "docid": "e3d0e09761a709e957e26ec91ed112d3", "score": "0.5771241", "text": "public String getAsXML() {\n return getAsXML((String)null);\n }", "title": "" }, { "docid": "90c900d16a139951ea3e8fe5e7f6e105", "score": "0.5762157", "text": "public String cvtToXML() throws EQException\n\t{\n\t\tEqBeanFactory eqBeanFactory = EqBeanFactory.getEqBeanFactory();\n\t\tString xml = eqBeanFactory.serialiseBeanAsXML(this);\n\t\treturn xml;\n\t}", "title": "" }, { "docid": "e31ff73326d133c82ed67ec31a86beee", "score": "0.5741704", "text": "@Override\n public List<Element> getXMLElement() {\n List<Element> rtnList = new LinkedList<>();\n // create and add the content Element\n super.getXMLElement().stream().forEach((e) -> {\n rtnList.add(e);\n });\n Element bean = new Element(\"ConnectionBean\");\n rtnList.add(bean);\n // set the data\n bean.setAttribute(\"type\",type.toString());\n bean.setAttribute(\"host\", host);\n bean.setAttribute(\"port\", Integer.toString(port));\n bean.setAttribute(\"taskId\", Integer.toString(taskId));\n\n bean.setAttribute(\"serialVersionUID\", Long.toString(serialVersionUID));\n return (rtnList);\n }", "title": "" }, { "docid": "76e6bc7bc3aa35931ac8aa7450b83d8d", "score": "0.5716943", "text": "public String getXML() {\n StringBuffer retval = new StringBuffer(100);\n\n retval.append(\"<\" + XML_TAG + \">\");\n \n retval.append(XMLHandler.addTagValue(\"sample_size\",\n m_sampleSize));\n retval.append(XMLHandler.addTagValue(\"seed\",\n m_randomSeed));\n retval.append(\"</\" + XML_TAG + \">\");\n\n return retval.toString();\n }", "title": "" }, { "docid": "025b6b903d4c130eea46616ee65847d2", "score": "0.56796527", "text": "public String getXML() {\n/* 98 */ StringBuffer retval = new StringBuffer();\n/* */ \n/* 100 */ retval.append(super.getXML());\n/* */ \n/* 102 */ retval.append(\" \" + XMLHandler.addTagValue(\"sourcedirectory\", this.sourceDirectory));\n/* 103 */ retval.append(\" \" + XMLHandler.addTagValue(\"targetdirectory\", this.targetDirectory));\n/* 104 */ retval.append(\" \" + XMLHandler.addTagValue(\"wildcard\", this.wildcard));\n/* */ \n/* 106 */ return retval.toString();\n/* */ }", "title": "" }, { "docid": "8749ea167d538b5f5ad70592806205c0", "score": "0.56731796", "text": "@Override public String toString() {\n return \"\" + super.toString(); // NOI18N\n }", "title": "" }, { "docid": "91e86388976c7b1534ff328259bfe878", "score": "0.5640369", "text": "public AbstractManeuverXMLAdapter() {\n }", "title": "" }, { "docid": "c5a26501473ce3636fb4cea0825ad793", "score": "0.56236285", "text": "public String toXml()\n {\n StringBuffer xmlBuf = new StringBuffer();\n\n xmlBuf.append(XmlHelper.toXml(APP_TYPE, m_appType));\n xmlBuf.append(XmlHelper.toXml(APP_INSTANCE, m_appInstance));\n xmlBuf.append(XmlHelper.toXml(VERSION, m_version));\n\n return xmlBuf.toString();\n }", "title": "" }, { "docid": "f6759a4d3f3835275a5f83f00e7a142c", "score": "0.5601208", "text": "public String getXmlData() {\n\t\treturn xmlData;\n\t}", "title": "" }, { "docid": "46045f2259de3eab28b444840a5116db", "score": "0.55990386", "text": "public String getXML() throws KettleValueException {\t\t\n\t\tString xml=\"\";\n\t\tfor (Map.Entry<String, Object> entry : fields.entrySet()) {\n\t\t xml += XMLHandler.addTagValue(entry.getKey(), entry.getValue().toString());\n\t\t}\n\t\treturn xml;\n\t}", "title": "" }, { "docid": "d4fc346bba1af316365425617fc469ea", "score": "0.5578359", "text": "public void buildXMLPreview() {\n\t\tgetRoot();\n\t\tSystem.out.println(roots.get(1));\n\t\tsB.append(roots.get(1));\n\t\tfor (int x = 1; x <= xml.size(); x++) {\n\t\t\tsB.append(xml.get(x));\n\t\t}\n\t\tsB.append(roots.get(2));\n\t\tSystem.out.println(sB.toString());\n\t\tsB.delete(0, sB.length());\n\t}", "title": "" }, { "docid": "99fe86bb9bdd5ef8ce19b925e2814265", "score": "0.5547364", "text": "@Override\r\n public String toString() {\r\n return ElementFormatter.format(dataElement);\r\n }", "title": "" }, { "docid": "d74da78d19e066f878a73fbb81715816", "score": "0.5536586", "text": "public K getJaxbObject() {\n return this.jaxbObject;\n }", "title": "" }, { "docid": "d75622fd65e5c48f9453d0359b6e9a45", "score": "0.5485457", "text": "public String toXMLString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tstartTag(buffer);\n\t\tfor (Field field : fields) {\n\t\t\tfieldTag(buffer, field.getName(), field.getValue());\n\t\t}\n\t\tendTag(buffer);\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "e6ee5e02a413b00df930a919be1a9424", "score": "0.54679275", "text": "public String getAsXML() {\n\n StringBuffer sb = new StringBuffer(1024);\n sb.append(\"<photo addedBy=\\\"\" + addedBy + \"\\\" \");\n sb.append(\"addedOn=\\\"\" +\n new SimpleDateFormat(\"MM/dd/yyyy hh:mma\").format(addedOn) +\n \"\\\" \");\n sb.append(\"type=\\\"\" + type + \"\\\" \");\n sb.append(\"fileSize=\\\"\" + fileSize + \"\\\" \");\n sb.append(\"dimensions=\\\"\" + dimensions + \"\\\" \");\n sb.append(\"dpi=\\\"\" + dpi + \"\\\" \");\n sb.append(\"filename=\\\"\" + filename + \"\\\" \");\n sb.append(\"colorDepth=\\\"\" + colorDepth + \"\\\">\\n\");\n sb.append(description + \"\\n\");\n sb.append(\"</photo>\\n\");\n\n return sb.toString();\n\n }", "title": "" }, { "docid": "2aba6396a5f6cec0c88d3430ea165331", "score": "0.54595256", "text": "public boolean xml() {\r\n return xml;\r\n }", "title": "" }, { "docid": "0e267499c2b7cc5bb2865de19bef5403", "score": "0.5446406", "text": "@GET\n @Produces(\"application/xml\")\n public String getXml() {\n //TODO return proper representation object\n return \"<a>ccsd</a>\";\n }", "title": "" }, { "docid": "e801a1b46cdac80dcd67f5273d0431b5", "score": "0.5443047", "text": "@Override\r\n public String toString() {\r\n StringBuffer b = new StringBuffer(\"<![CDATA[\");\r\n b.append(getData());\r\n b.append(\"]]>\");\r\n return b.toString();\r\n }", "title": "" }, { "docid": "638604aabf10d44867336c868dbc4650", "score": "0.5440447", "text": "public String toString(){\r\n\t\treturn new BeanUtil().showContent(this);\r\n\t}", "title": "" }, { "docid": "5c25c7f27f01a4876508f242fd0143af", "score": "0.5426738", "text": "public interface XmlRepresentableType<T> {\n \tpublic String toXMLString(T value, SessionFactoryImplementor factory) throws HibernateException;\n \n \tpublic T fromXMLString(String xml, Mapping factory) throws HibernateException;\n }", "title": "" }, { "docid": "9c3016e6158ceb65efc85ce092a96032", "score": "0.5420561", "text": "String getXML();", "title": "" }, { "docid": "6fd48f36958fb33b193bba3e3f1296e2", "score": "0.5417611", "text": "public void convertObjectToXML(com.provigil.generated.Result result) {\n JAXBContext contextObj;\n try {\n contextObj = JAXBContext.newInstance(com.provigil.generated.Result.class);\n Marshaller marshallerObj = contextObj.createMarshaller();\n marshallerObj.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n //displaying the output to the console\n marshallerObj.marshal(result, System.out);\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7674cf20605d3ebdb7f8dce054293b37", "score": "0.5393828", "text": "public void exportXML() {\n XMLFile.create(this);\n }", "title": "" }, { "docid": "6cbb961402173f6fa5a5122267a00bcb", "score": "0.53922004", "text": "@Override\n public String toString() {\n return \"<@\" + getId() + \"|\" + getName() + \">\";\n }", "title": "" }, { "docid": "b6b80a142b4ed0ce2c69162876891f28", "score": "0.53888255", "text": "protected StringBuffer attributesToXmlString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\treturn sb;\n\t}", "title": "" }, { "docid": "63bf7c1b51917bd2d00b774743edfcdb", "score": "0.5369268", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn builder.toString();\n\t\t}", "title": "" }, { "docid": "d89b72bb5dacdb424125a4ac6a7384c9", "score": "0.5342882", "text": "@Override\n\tpublic String toString(){\n\t\treturn this.serialize();\n\t}", "title": "" }, { "docid": "fe4e08b5a1b0f157947157b6d190a5da", "score": "0.53333235", "text": "@Override public String toString() {\n return \"\" + \"BT=\" + BT // NOI18N\n + super.toString(); // NOI18N\n }", "title": "" }, { "docid": "49577c501f52587ac0a52ced19a16ecf", "score": "0.5312854", "text": "public String getRelationsAsXMLString() {\n\n\tList<String> results = getRelations();\n\treturn createXMLString(results, \"relations\", \"relation\");\n\n }", "title": "" }, { "docid": "6e28dd8de1b19c44bf8b039f1fae230d", "score": "0.5312513", "text": "public String getXML() throws JSONException\n {\n return XML.toString(getFullJSON());\n }", "title": "" }, { "docid": "da6c6052a58933b8c614d1438fa72c73", "score": "0.530934", "text": "public String exportAsXML() {\n\n StringBuffer sb = new StringBuffer();\n for ( int i = 0; i < components.size(); i++ ) {\n Object component = components.get( i );\n if ( component instanceof Expression ) {\n sb.append( ( (Expression) component ).toXML() );\n } else if ( component != null && component instanceof String ) {\n sb.append( escape( ( (String) component ).trim() ) );\n } else {\n sb.append( component );\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "4e7ecc9ceecbb2e6019e357f3b08cc92", "score": "0.5287252", "text": "public void xmlWrite(Element viewType);", "title": "" }, { "docid": "6917b1a832e4d601f17eef6a998d6689", "score": "0.5274139", "text": "public Element toXML() {\n Element plateElement = new Element(\"Plate\");\n plateElement.addContent(new Element(\"id\").setText(\"\"+id));\n plateElement.addContent(new Element(\"name\").setText(getName()));\n plateElement.addContent(new Element(\"type\").setText(type.name()));\n plateElement.addContent(new Element(\"size\").setText(\"\"+reactions.length));\n plateElement.addContent(new Element(\"lastModified\").setText(\"\"+lastModified.getTime()));\n String rowString = \"\" + rows;\n Element rowElement = new Element(\"rows\");\n rowElement.setText(rowString);\n plateElement.addContent(rowElement);\n plateElement.addContent(new Element(\"cols\").setText(\"\"+cols));\n if(plateSize != null) {\n plateElement.addContent(new Element(\"plateSize\").setText(plateSize.name()));\n }\n plateElement.addContent(new Element(\"isDeleted\").setText(\"\"+isDeleted));\n if(getThermocycle() != null) {\n plateElement.addContent(new Element(\"thermocycle\").setText(\"\"+getThermocycle().getId()));\n }\n for(Reaction r : reactions) {\n plateElement.addContent(XMLSerializer.classToXML(\"reaction\",r));\n }\n if(images != null) {\n for(GelImage gi : images) {\n plateElement.addContent(XMLSerializer.classToXML(\"gelImage\", gi));\n }\n }\n\n\n\n return plateElement;\n }", "title": "" }, { "docid": "b3ec0cfab35e828755915bc6719f6306", "score": "0.52728534", "text": "protected String toXml() throws IOException {\n XStream xstream = new XStream();\n xstream.alias(\"column\", SourceColumn.class);\n // omit isTimeFact and isDateFact from serializing to XML\n xstream.omitField(SourceColumn.class, \"isDateFact\");\n xstream.omitField(SourceColumn.class, \"isTimeFact\");\n xstream.alias(\"schema\", SourceSchema.class);\n return xstream.toXML(this);\n }", "title": "" }, { "docid": "2c6143886438d288ada1ab1e6c4343e5", "score": "0.5261157", "text": "public String convertObjectToXML(Object object){\n //Returning the object after converting it to String\n return \"XML : <title>\" + object.toString() + \"<title>\";\n }", "title": "" }, { "docid": "35a15aee712ae982175dddd7e9ab057e", "score": "0.525642", "text": "public XMLElement desc() { return new XMLElement(inst.lsl_get_desc(obj)); }", "title": "" }, { "docid": "b4f768e333f7c9c406e145b0e0cfa1d1", "score": "0.5251806", "text": "@GET\r\n\t@Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\r\n\tpublic Todo getXML() {\r\n\t\tTodo todo = new Todo();\r\n\t\ttodo.setSummary(\"This is my first todo\");\r\n\t\ttodo.setDescription(\"This is my first todo\");\r\n\t\treturn todo;\r\n\t}", "title": "" }, { "docid": "f082544ca03e97650eb8d542e7b02b3e", "score": "0.5251074", "text": "public String toString(){\r\n return root.toString();\r\n }", "title": "" }, { "docid": "760b896c0131e5ca8327871fe4e11869", "score": "0.524874", "text": "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "title": "" }, { "docid": "c257f0e72fd7a947fc1c4dbdb426fe22", "score": "0.5245482", "text": "@DISPID(1610809351) //= 0x60030007. The runtime will prefer the VTID if present\r\n @VTID(16)\r\n java.lang.String xml();", "title": "" }, { "docid": "e9dc86cd984bf41e340dd50e16a41f20", "score": "0.52431643", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "328d3696fd6d4d844e201775b20a09b8", "score": "0.5238621", "text": "@SuppressWarnings(\"unused\")\n\tprivate String writeXml(PersonModel pm){\n XmlSerializer serializer = Xml.newSerializer();\n StringWriter writer = new StringWriter();\n try {\n serializer.setOutput(writer);\n serializer.startDocument(\"UTF-8\", true);\n \n //Root node, DESCRIPTION\n serializer.startTag(\"\", DESCRIPTION);\n \n serializer.startTag(\"\", FIRST_NAME);\n serializer.text(pm.getFirstName());\n serializer.endTag(\"\", FIRST_NAME);\n \n serializer.startTag(\"\", LAST_NAME);\n serializer.text(pm.getLastName());\n serializer.endTag(\"\", LAST_NAME);\n \n serializer.startTag(\"\", DATE);\n serializer.text(pm.getDate());\n serializer.endTag(\"\", DATE);\n \n serializer.startTag(\"\", COMMENT);\n serializer.text(pm.getComment());\n serializer.endTag(\"\", COMMENT);\n \n serializer.startTag(\"\", RATING);\n serializer.text(Float.toString(pm.getRating()));\n serializer.endTag(\"\", RATING);\n \n serializer.endTag(\"\", DESCRIPTION);\n serializer.endDocument();\n return writer.toString();\n \n } catch (Exception e) {\n throw new RuntimeException(e);\n } \n }", "title": "" }, { "docid": "bd6b3f0d428902d218338b2e75aa83ce", "score": "0.5229958", "text": "public boolean getEscapeXml() {\n return super.escapeXml;\n }", "title": "" }, { "docid": "debf3071ab2e319d8958c1f63f143484", "score": "0.5229411", "text": "public String toXml() {\n\t\tStringBuffer x = new StringBuffer();\n\t\tx.append(\"<table-entity id=\\\"\");\n\t\tx.append(getId());\n\t\tx.append(\"\\\"\");\n\t\tif (multiple == true) {\n\t\t\tx.append(\" multiple=\\\"true\\\"\");\n\t\t}\n\t\tx.append(\">\\n\");\n\t\tappendElement(x, \"entityName\", getName());\n\t\tappendElement(x, \"entityType\", getDataType());\n\t\tappendElement(x, \"entityDescription\", getDefinition());\n\t\tAttribute[] atts = getAttributes();\n\t\tfor (int i = 0; i < atts.length; i++) {\n\t\t\tx.append(atts[i].toXml());\n\t\t}\n\t\tx.append(\"</table-entity>\\n\");\n\n\t\treturn x.toString();\n\t}", "title": "" }, { "docid": "497f97d92a2dbf3d192bd89f15ae43e5", "score": "0.5227918", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "497f97d92a2dbf3d192bd89f15ae43e5", "score": "0.5227918", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "497f97d92a2dbf3d192bd89f15ae43e5", "score": "0.5227918", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "497f97d92a2dbf3d192bd89f15ae43e5", "score": "0.5227918", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "497f97d92a2dbf3d192bd89f15ae43e5", "score": "0.5227918", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "497f97d92a2dbf3d192bd89f15ae43e5", "score": "0.5227918", "text": "public String serialize() {\n return null;\n }", "title": "" }, { "docid": "b296bb01ec52e6845dbc075be8a89dc8", "score": "0.52262056", "text": "public abstract void toXML(StringBuffer xmlDoc) throws Exception;", "title": "" }, { "docid": "a69ea00771ff9110aceeef383c97a81f", "score": "0.52196324", "text": "String getXML(String objName);", "title": "" }, { "docid": "73ea6beb832d20727ba0e407f34bc0db", "score": "0.5200561", "text": "@Path(\"/ussd\")\n @GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n StringWriter writer = new StringWriter();\n JAXB.marshal(command.getcommandTest(), writer); // marshal[Convert] Command object to XML\n return writer.toString(); // return XML as String\n }", "title": "" }, { "docid": "7843fbd1667f3c520f9524de4b7a0762", "score": "0.5196129", "text": "@Override\r\npublic String getModel() {\n\treturn super.getModel();\r\n}", "title": "" }, { "docid": "314698b23642658855d2ee3fc2310ca0", "score": "0.5194026", "text": "public String serialize() {\n Gson gson = new Gson();\r\n return gson.toJson(this);\r\n }", "title": "" }, { "docid": "6dbae304c655bf4386e540147760f283", "score": "0.5192927", "text": "public void writeXml() {\n\n }", "title": "" }, { "docid": "b28ffeaaa4a15aeec065b9c4af12121d", "score": "0.5183947", "text": "@GET\r\n //@Consumes(MediaType.APPLICATION_XML) User user\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n return \"<r>Okas</r>\";\r\n }", "title": "" }, { "docid": "ee65369b43700fdbbb8100477214efb7", "score": "0.51733476", "text": "public String toDsml()\n {\n return toDsml( true ); \n }", "title": "" }, { "docid": "e7d86f4c6768780c23a8e1b35bafd157", "score": "0.5168972", "text": "@Override\n\tpublic String toStringToView() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e7d86f4c6768780c23a8e1b35bafd157", "score": "0.5168972", "text": "@Override\n\tpublic String toStringToView() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "05b550ac8c5a1751e12a3efdfd950e04", "score": "0.5160872", "text": "public Element serialize(Document xmldoc) {\r\n\t\tif (presentationColumnID == null) {\r\n\t\t\tpresentationColumnID = \"\";\r\n\t\t}\r\n\t\tNode nPresentationColumnID = xmldoc.createTextNode(presentationColumnID);\r\n\t\tif (presentationColumnName == null) {\r\n\t\t\tpresentationColumnName = \"\";\r\n\t\t}\r\n\t\tNode nPresentationColumnName = xmldoc.createTextNode(presentationColumnName);\r\n\t\tif (presentationColumnMappingID == null) {\r\n\t\t\tpresentationColumnMappingID = \"\";\r\n\t\t}\r\n\t\tNode nPresentationColumnMappingID = xmldoc.createTextNode(presentationColumnMappingID);\r\n\t\t//added DISPLAY NAME and DESCRIPTION nodes\r\n\t\tif (presentationDispayName == null) {\r\n\t\t\tpresentationDispayName = \"\";\r\n\t\t}\r\n\t\tNode nPresentationColumnDisplayName = xmldoc.createTextNode(presentationDispayName);\r\n\t\tif (presentationDescription == null) {\r\n\t\t\tpresentationDescription = \"\";\r\n\t\t}\r\n\t\tNode nPresentationColumnDescription = xmldoc.createTextNode(presentationDescription);\r\n\r\n\t\tElement ePresentationColumn = xmldoc.createElement(\"PresentationColumn\");\r\n\t\tElement ePresentationColumnID = xmldoc.createElement(\"PresentationColumnID\");\r\n\t\tElement ePresentationColumnName = xmldoc.createElement(\"PresentationColumnName\");\r\n\t\tElement ePresentationColumnMappingID = xmldoc.createElement(\"PresentationColumnMappingID\");\r\n\t\t//added DISPLAY NAME and DESCRIPTION elements\r\n\t\tElement ePresentationDisplayName = xmldoc.createElement(\"displayName\");\r\n\t\tElement ePresentationDescription = xmldoc.createElement(\"description\");\r\n\r\n\t\tePresentationColumnID.appendChild(nPresentationColumnID);\r\n\t\tePresentationColumnName.appendChild(nPresentationColumnName);\r\n\t\tePresentationColumnMappingID.appendChild(nPresentationColumnMappingID);\r\n\t\tePresentationDisplayName.appendChild(nPresentationColumnDisplayName);\r\n\t\tePresentationDescription.appendChild(nPresentationColumnDescription);\r\n\r\n\t\tePresentationColumn.appendChild(ePresentationColumnID);\r\n\t\tePresentationColumn.appendChild(ePresentationColumnName);\r\n\t\tePresentationColumn.appendChild(ePresentationColumnMappingID);\r\n\t\tePresentationColumn.appendChild(ePresentationDisplayName);\r\n\t\tePresentationColumn.appendChild(ePresentationDescription);\r\n\r\n\t\tElement ePresentationColumnAliasList = xmldoc.createElement(\"PresentationColumnAliasList\");\r\n\t\tElement ePresentationColumnAlias = null;\r\n\t\tNode nCatalogFolderAlias = null;\r\n\r\n\t\tif(presentationColumnAliases != null)\r\n\t\t\tfor (String sPresColAlias : presentationColumnAliases) {\r\n\t\t\t\tePresentationColumnAlias = xmldoc.createElement(\"PresentationColumnAlias\");\r\n\t\t\t\tif (sPresColAlias == null)\r\n\t\t\t\t\tnCatalogFolderAlias = xmldoc.createTextNode(\"\");\r\n\t\t\t\telse\r\n\t\t\t\t\tnCatalogFolderAlias = xmldoc.createTextNode(sPresColAlias);\r\n\r\n\t\t\t\tePresentationColumnAlias.appendChild(nCatalogFolderAlias);\r\n\t\t\t\tePresentationColumnAliasList.appendChild(ePresentationColumnAlias);\r\n\t\t\t}\r\n\r\n\t\tePresentationColumn.appendChild(ePresentationColumnAliasList);\r\n\t\treturn ePresentationColumn;\r\n\t}", "title": "" }, { "docid": "73bf7d484c1246a5cb0fb974ffc8bbd0", "score": "0.5155591", "text": "public JaxbGenModel(final Properties props) {\r\n setXsdLocation(getString(props, JAXB_XSD_LOCATION, null));\r\n setGenerateIsSetMethod(getBoolean(props,\r\n JAXB_XJB_ISGENERATEISSETMETHOD, DEFAULT_GENERATEISSETMETHOD));\r\n setSerializableUid(getLong(props, JAXB_XJB_SERIALIZABLE_ID,\r\n DEFAULT_SERIALIZABLE_ID));\r\n setElementNamePrefix(getString(props, JAXB_XJB_ELEMENTNAME_PREFIX, null));\r\n setElementNameSuffix(getString(props, JAXB_XJB_ELEMENTNAME_SUFFIX, null));\r\n setTypeNamePrefix(getString(props, JAXB_XJB_TYPENAME_PREFIX, null));\r\n setTypeNameSuffix(getString(props, JAXB_XJB_TYPENAME_SUFFIX, null));\r\n setJaxbPackageName(getString(props, JAXB_PACKAGENAME, null));\r\n setInternalBindings(getBoolean(props, JAXB_INTERNALBINDINGS,\r\n DEFAULT_INTERNALBINDINGS));\r\n setEciCompatible(getBoolean(props, JAXB_ECICOMPATIBLE,\r\n DEFAULT_ECICOMPATIBLE));\r\n setNoPackageInfo(getBoolean(props, JAXB_NOPACKAGEINFO,\r\n DEFAULT_NOPACKAGEINFO));\r\n }", "title": "" }, { "docid": "cfb39e6a1df456902be083357007895b", "score": "0.5144227", "text": "@Override\r\n public String toString() {\n return super.toString();\r\n }", "title": "" }, { "docid": "fdf84febc0c2fa251a8d19dde210f96b", "score": "0.5144189", "text": "public SerializationHandler getOutputDomBuilder() {\n/* 531 */ return this;\n/* */ }", "title": "" }, { "docid": "297ccbe083cf1d6063379b9394d40817", "score": "0.51420796", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "title": "" }, { "docid": "33c49933577990a59272fdb9f1146a11", "score": "0.5138884", "text": "public XMLElement() {\r\n super();\r\n }", "title": "" }, { "docid": "2742efb0a7844f207ffb73d8a6d03e33", "score": "0.5135739", "text": "private static void GenerateXML (int AnimalId) throws Exception{\r\n\t\tAnimal animal = animalManager.getAnimal(AnimalId); //we get the dog from the data base\r\n\t\t//Create a JAXBContext\r\n\t\tJAXBContext context = JAXBContext.newInstance(Animal.class);//We specify the class we want for the XML\r\n\t\t//Get the marshaller\r\n\t\tMarshaller marshal = context.createMarshaller(); // we call the create a marshaller method from the context class\r\n\t\t//Pretty formating\r\n\t\tmarshal.setProperty(marshal.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t//Marshal the Animal to a file\r\n\t\tFile file= new File(\"_/xmls/Output-Animal.xml\");\r\n\t\tmarshal.marshal(animal, file);\r\n\t\t//Marshal the animal to the screen\r\n\t\tmarshal.marshal(animal, System.out); //calling the method but instead with file with system.out\r\n\t}", "title": "" }, { "docid": "acaeae5345be23b3251b0f19b97cba55", "score": "0.5120102", "text": "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "title": "" }, { "docid": "bcbea1fb81497ca8e2ffa4e8eeede72c", "score": "0.511555", "text": "private Element serialize(Datatype d) {\n\t\tElement e = new Element(\"Datatype\");\n\t\te.addAttribute( new Attribute(\"ID\", d.getName()) ); //FIXME: This is little bit confusing ...\n\t\tString name = d.getRoot() != null ? d.getRoot() : d.getName(); //FIXME: This is little bit confusing ...\n\t\te.addAttribute( new Attribute(\"Name\", name) ); \n\t\te.addAttribute( new Attribute(\"Description\", d.getDescription()) );\n\t\tif( d.getComponents() != null )\n\t\t\tfor( Component c : d.getComponents())\n\t\t\t\te.appendChild( serialize(c) );\n\t\treturn e;\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.51116383", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "b7ac9243772b839f0054dc0031c4c702", "score": "0.5107609", "text": "@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public Notification getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "title": "" }, { "docid": "12948e758967f812bbf98140be1846fe", "score": "0.5095342", "text": "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "title": "" } ]
91c7974f004eceeed8c86c093fb46b87
//////////////// SEARCH MZ RT // ////////////////
[ { "docid": "7254ba3b8acad7bfd6dde3f99dc48cae", "score": "0.4639654", "text": "public Map<Field, Collection> searchMzRt(Map<Field, Collection> input, Mode mode, double shift, double prec, double rttolx, double rttoly, Collection<String> cols) throws REngineException, REXPMismatchException {\n\n\t\t// Check that MZ is present\n\t\tif ( ! input.containsKey(Field.MZ))\n\t\t\tthrow new IllegalArgumentException(\"Input map must contain MZ values.\");\n\n\t\t// Check that all vectors in input map have the same length\n\t\tint s = -1;\n\t\tfor (Field f: input.keySet())\n\t\t\tif (s < 0)\n\t\t\t\ts = input.get(f).size();\n\t\t\telse if (s != input.get(f).size())\n\t\t\t\tthrow new IllegalArgumentException(\"All collections in input map must have the same size.\");\n\n\t\t// Thread safety: lock\n\t\tint lock = this.rengine.lock();\n\n\t\t// Create input stream\n\t\tthis.rengine.assign(\"mz\", collectionToREXPDouble(input.get(Field.MZ)));\n\t\tString inputmzrt = \"mz = mz\";\n\t\tif (input.containsKey(Field.RT)) {\n\t\t\tthis.rengine.assign(\"rt\", collectionToREXPDouble(input.get(Field.RT)));\n\t\t\tinputmzrt += \", rt = rt\";\n\t\t}\n\t\tthis.rengine.parseAndEval(\"input.stream <- MsDbInputDataFrameStream$new(msdb.make.input.df(\" + inputmzrt + \"))\");\n\t\tthis.rengine.parseAndEval(\"db$setInputStream(input.stream)\");\n\n\t\t// Create output stream\n\t\tthis.rengine.parseAndEval(\"output.stream <- MsDbOutputDataFrameStream$new()\");\n\t\tthis.rengine.parseAndEval(\"db$addOutputStreams(output.stream)\");\n\n\t\t// Set M/Z tolerance unit\n\t\tthis.rengine.parseAndEval(\"db$setMzTolUnit(\" + (this.mztolunit == MzTolUnit.PPM ? \"MSDB.MZTOLUNIT.PPM\" : \"MSDB.MZTOLUNIT.PLAIN\") + \")\");\n\n\t\t// Set function parameters\n\t\tString params = \"mode = \" + (mode == Mode.POSITIVE ? \"MSDB.TAG.POS\" : \"MSDB.TAG.NEG\");\n\t\tparams += \", shift = \" + shift;\n\t\tparams += \", prec = \" + prec;\n\t\tif (input.containsKey(Field.RT)) {\n\t\t\tparams += \", rt.tol.x = \" + rttolx;\n\t\t\tparams += \", rt.tol.y = \" + rttoly;\n\t\t\tparams += \", col = c(\";\n\t\t\tint i = 0;\n\t\t\tfor (String c: cols)\n\t\t\t\tparams += (i++ > 0 ? \", \" : \"\") + \"'\" + c + \"'\";\n\t\t\tparams += \")\";\n\t\t}\n\n\t\t// Call search method\n\t\tthis.rengine.parseAndEval(\"db$searchForMzRtList(\" + params + \")\");\n\n\t\t// Get output\n\t\tMap<Field, Collection> output = new HashMap<Field, Collection>();\n\t\tthis.rengine.parseAndEval(\"output <- output.stream$getDataFrame()\");\n\t\toutput.put(Field.MOLID, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.MOLID]]\").asStrings()));\n\t\toutput.put(Field.MOLNAMES, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.MOLNAMES]]\").asStrings()));\n\t\toutput.put(Field.MZ, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.MZ]]\").asDoubles()));\n\t\toutput.put(Field.MZTHEO, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.MZTHEO]]\").asDoubles()));\n\t\toutput.put(Field.ATTR, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.ATTR]]\").asStrings()));\n\t\toutput.put(Field.COMP, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.COMP]]\").asStrings()));\n\t\tif (input.containsKey(Field.RT)) {\n\t\t\toutput.put(Field.RT, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.RT]]\").asDoubles()));\n\t\t\toutput.put(Field.COLRT, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.COLRT]]\").asDoubles()));\n\t\t\toutput.put(Field.COL, Arrays.asList(this.rengine.parseAndEval(\"output[[MSDB.TAG.COL]]\").asStrings()));\n\t\t}\n\n\t\t// Thread safety: unlock\n\t\tthis.rengine.unlock(lock);\n\n\t\treturn output;\n\t}", "title": "" } ]
[ { "docid": "94a02d4c262069bcaa1921e85bda8543", "score": "0.5765462", "text": "TorrentPreview[] search(SearchRequest request);", "title": "" }, { "docid": "9c90a4d6e2caa4d5447209304011fbf1", "score": "0.5572155", "text": "private File searchFile(String namePart)\r\n\t{\r\n\t\tFile searched= null;\r\n\t\t\r\n\t\tFile infoLocation= processInfo.getInformationLocation(); \r\n\t\t\r\n\t\tFile src= new File(infoLocation, WSDL_DIRECTORY+File.separator+SRC_DIRECTORY); \r\n\t\t//System.out.println(\"EL CLIENTE ESTA MIRANDO EN EL ARCHIVO \"+src.getAbsolutePath());\r\n\t\t//if(src.exists())\r\n\t\t\t//System.out.println(\"ESTA BIEN\");\r\n\t\t//else\r\n\t\t\t//System.out.println(\"ESTA malllllllllllll\");\r\n\t\tsearched= searchFileInDirectory(src, namePart);\r\n\t\t\t\t\r\n\t\treturn searched; \r\n\t}", "title": "" }, { "docid": "d309a398c77d20b4137eb962d12bb47a", "score": "0.5341802", "text": "Collection<MimeEntry> searchByFilename(String filename);", "title": "" }, { "docid": "77de8b5f59f9ef0e019f550541fa625b", "score": "0.5201942", "text": "private void search(ObjectInputStream is, ObjectOutputStream os) throws Exception {\n // Receive RPC parameters\n String filename = (String) is.readObject(); // Receive filename\n\n // Dispatch call to Server\n ArrayList<Peer> peers = server.search(filename);\n\n // Return result of RPC over the network\n os.writeObject(peers);\n\n // Log action\n Logger.Log(\"Searching for \" + filename + \": \" + ((peers == null) ? 0 : peers.size()) + \" peers found.\");\n }", "title": "" }, { "docid": "aa664c64d02874c8870d931918a839a6", "score": "0.51943594", "text": "public ArrayList<SearchResult> parseTREC8dev(String filename) {\n\n ArrayList<SearchResult> result = new ArrayList<>();\n LineNumberReader lr = null;\n try {\n String line;\n File f = new File(filename);\n if (f == null) {\n System.out.println(\"Error in parseTREC8(): The file does not exist in \" + filename);\n return result;\n }\n FileReader r = new FileReader(filename);\n lr = new LineNumberReader(r);\n while ((line = lr.readLine()) != null) {\n if (line.startsWith(\"Number: \")) {\n SearchResult sr = new SearchResult();\n sr.id = line.substring(line.indexOf(\":\") + 2);\n line = lr.readLine();\n sr.query = line.replace(\"\\\"\",\"\\\\\\\"\"); //lucene appears confused by quotes in a query\n line = lr.readLine();\n ArrayList<String> fileList = new ArrayList<>();\n while (!StringUtil.emptyString(line)) {\n if (line.matches(\"(FR|CR|FT|FBIS|LA).+\")) {\n fileList.add(line);\n }\n else {\n for (String s : fileList)\n sr.answers.put(s,line);\n fileList = new ArrayList<>();\n }\n line = lr.readLine();\n }\n result.add(sr);\n }\n else\n System.out.println(\"Error in LuceneHellowWorld.parseTREC8(): unexpected line: \" + line);\n }\n }\n catch (Exception ex) {\n System.out.println(\"Error in parseTREC8(): \" + ex.getMessage());\n ex.printStackTrace();\n }\n System.out.println(result);\n return result;\n }", "title": "" }, { "docid": "1e0ec007c072e5e70f11c84b763f1844", "score": "0.51410836", "text": "@Override\t\n\tpublic String search(String name) throws RemoteException {\n\t\treturn \"hhh\";\n\t}", "title": "" }, { "docid": "e175a9957c5242858df6e3b4f79e2038", "score": "0.51263523", "text": "static long search_cmn(typval_C[] argvars, pos_C match_pos, int[] flagsp)\n {\n long retval = 0; /* default: FAIL */\n\n boolean save_p_ws = p_ws[0];\n long time_limit = 0;\n int options = SEARCH_KEEP;\n\n theend:\n {\n Bytes pat = get_tv_string(argvars[0]);\n int dir = get_search_arg(argvars[1], flagsp); /* may set \"p_ws\" */\n if (dir == 0)\n break theend;\n\n int flags = flagsp[0];\n if ((flags & SP_START) != 0)\n options |= SEARCH_START;\n if ((flags & SP_END) != 0)\n options |= SEARCH_END;\n\n /* Optional arguments: line number to stop searching and timeout. */\n long lnum_stop = 0;\n if (argvars[1].tv_type != VAR_UNKNOWN && argvars[2].tv_type != VAR_UNKNOWN)\n {\n lnum_stop = get_tv_number_chk(argvars[2], null);\n if (lnum_stop < 0)\n break theend;\n\n if (argvars[3].tv_type != VAR_UNKNOWN)\n {\n time_limit = get_tv_number_chk(argvars[3], null);\n if (time_limit < 0)\n break theend;\n }\n }\n\n /* Set the time limit, if there is one. */\n timeval_C tm = new timeval_C();\n profile_setlimit(time_limit, tm);\n\n /*\n * This function does not accept SP_REPEAT and SP_RETCOUNT flags.\n * Check to make sure only those flags are set.\n * Also, Only the SP_NOMOVE or the SP_SETPCMARK flag can be set.\n * Both flags cannot be set. Check for that condition also.\n */\n if (((flags & (SP_REPEAT | SP_RETCOUNT)) != 0) || ((flags & SP_NOMOVE) != 0 && (flags & SP_SETPCMARK) != 0))\n {\n emsg2(e_invarg2, get_tv_string(argvars[1]));\n break theend;\n }\n\n pos_C save_cursor = new pos_C();\n COPY_pos(save_cursor, curwin.w_cursor);\n pos_C pos = new pos_C();\n COPY_pos(pos, save_cursor);\n\n int subpatnum = searchit(curwin, curbuf, pos, dir, pat, 1L, options, RE_SEARCH, lnum_stop, tm);\n if (subpatnum != 0)\n {\n if ((flags & SP_SUBPAT) != 0)\n retval = subpatnum;\n else\n retval = pos.lnum;\n if ((flags & SP_SETPCMARK) != 0)\n setpcmark();\n COPY_pos(curwin.w_cursor, pos);\n if (match_pos != null)\n {\n /* Store the match cursor position. */\n match_pos.lnum = pos.lnum;\n match_pos.col = pos.col + 1;\n }\n /* \"/$\" will put the cursor after the end of the line, may need to correct that here */\n check_cursor();\n }\n\n /* If 'n' flag is used: restore cursor position. */\n if ((flags & SP_NOMOVE) != 0)\n COPY_pos(curwin.w_cursor, save_cursor);\n else\n curwin.w_set_curswant = true;\n }\n\n p_ws[0] = save_p_ws;\n\n return retval;\n }", "title": "" }, { "docid": "d5b13c78895ba4851d0e600468628a75", "score": "0.51223207", "text": "abstract public CwEntry findEntry(Crossword cw);", "title": "" }, { "docid": "c18024e41ea28b9ade2f90d8fba4eb3c", "score": "0.5106429", "text": "public List<Algo1_line> search(String mac, List<LineFile> _file){\r\n\t\tList<Algo1_line> line = new ArrayList<Algo1_line>();;\r\n\t\tfor(LineFile _list : _file){\r\n\t\t\tList<Network> net = _list.getNetwork();\r\n\t\t\tfor(Network n: net){\r\n\t\t\t\tif (n.getMac().equals(mac)){\r\n\t\t\t\t\tline.add(new Algo1_line(n.getSignal(),_list.getAlt(),_list.getLocation()));\t\r\n\t\t\t\t\tn.setTaken(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn line;\r\n\t}", "title": "" }, { "docid": "35426a5dbea54bc1b83910dd3ea90d1c", "score": "0.5083808", "text": "public void locate_Mac(){\r\n\t\t_fileList = new ArrayList<Algo1_linefile>();\r\n\t\tfor(LineFile l : _file){\r\n\t\t\tList<Algo1_line> line = new ArrayList<Algo1_line>();\r\n\t\t\t_wLat = new ArrayList<Double>();\r\n\t\t\t_wLon = new ArrayList<Double>();\r\n\t\t\t_wAlt = new ArrayList<Double>();\r\n\t\t\t_wWeigth = new ArrayList<Double>();\r\n\t\t\tList<Network> wifi = l.getNetwork();\r\n\t\t\tfor(Network n : wifi){\r\n\t\t\t\tList<Network> net = new ArrayList<Network>();\r\n\t\t\t\tif(n.isTaken()==false){\r\n\t\t\t\t\tString mac = n.getMac();\r\n\t\t\t\t\tnet.add(n);\r\n\t\t\t\t\tline = search(mac, _file);\r\n\r\n\t\t\t\t\tline.sort(null);\r\n\t\t\t\t\tfor(int i=0;i<Parameters.max_Signals && i<line.size();i++){\r\n\t\t\t\t\t\tdouble lat = line.get(i).getLocation().getLat();\r\n\t\t\t\t\t\tdouble lon = line.get(i).getLocation().getLon();\r\n\t\t\t\t\t\tdouble alt = line.get(i).getAlt();\r\n\t\t\t\t\t\tdouble weight = 1/(Math.pow(line.get(i).getSignal(), 2));\r\n\t\t\t\t\t\t_wLat.add(lat*weight);\r\n\t\t\t\t\t\t_wLon.add(lon*weight);\r\n\t\t\t\t\t\t_wAlt.add(alt*weight);\r\n\t\t\t\t\t\t_wWeigth.add(weight);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcalc_Wsum();\r\n\t\t\t\t\t_fileList.add(new Algo1_linefile(l.getTime(), new Point_2D(wLon, wLat), wAlt, net.get(0)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2767297b89cff165ede74f049d50a035", "score": "0.5082268", "text": "private void searchRequest(String request) {\n List<String> array = folder.searchIndex(request);\n if (array != null) {\n send(Integer.toString(array.size()));\n }\n for (String path : array) {\n send(path);\n }\n }", "title": "" }, { "docid": "33b3d86a61b1eb8f3cc83f17af5c0ec4", "score": "0.50685006", "text": "@Override\n public List<Document> search (String keyword) {\n if (keyword == null) {\n throw new IllegalArgumentException(\"Keyword must not be null.\");\n }\n List<Document> matches = new ArrayList<>();\n keyword = this.stringFormatter(keyword);\n long currentUseTime = System.nanoTime();\n for (URI uri : trie.getAllSorted(keyword, this.createComparator(keyword))) {\n DocumentImpl doc;\n File file = new File(dir, (uri.getAuthority() + uri.getPath() + \".json\"));\n if (file.exists()) {\n doc = this.storage.get(uri);\n this.addToHeapAndUsage(doc, currentUseTime);\n }\n else {\n doc = this.storage.get(uri);\n doc.setLastUseTime(currentUseTime);\n this.heap.reHeapify(new LUT(uri));\n }\n matches.add(doc);\n }\n return matches;\n }", "title": "" }, { "docid": "9b841d044b7142ef12a9d724e156a48b", "score": "0.5067135", "text": "private void cmdSearch()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "257aaaaacbf1f01af632ac22801e19ff", "score": "0.5049663", "text": "private List<Media> findMedia(String filename, Boolean isFromPiction) {\n\t\tList<Media> found = new ArrayList<Media>();\n\t\t\n\t\t// The filename is stored in the title for BAMPFA.\n\t\t\n\t\tString searchQuery = \"(media_common:title=\\\"\" + nxqlEscapeString(filename) + \"\\\")\";\n\t\t\n\t\tString url = UriComponentsBuilder.fromUriString(getServicesUrlTemplate())\n\t\t\t.queryParam(\"as\", searchQuery)\n\t\t\t.queryParam(\"wf_deleted\", \"false\")\n\t\t\t.queryParam(\"pgSz\", 0)\n\t\t\t.build()\n\t\t\t.toString();\n\t\t\n\t\tlogger.debug(\"finding media: url=\" + url + \" isFromPiction=\" + isFromPiction);\n\t\t\n\t\tRecordList recordList = restTemplate.getForObject(url, RecordList.class, MEDIA_SERVICE_NAME, null);\n\t\t\n\t\tif (recordList.totalItems > 0) {\n\t\t\tfor (RecordList.Item item : recordList.items) {\n\t\t\t\tMedia candidateMedia = readMedia(item.csid);\n\t\t\t\tboolean isMatch = true;\n\t\t\t\t\n\t\t\t\tif (isFromPiction != null) {\n\t\t\t\t\t// A media record originated from Piction if it has a non-null pictionId.\n\t\t\t\t\t\n\t\t\t\t\tboolean candidateIsFromPiction = (candidateMedia.piction.pictionId != null);\n\t\t\t\t\tisMatch = (candidateIsFromPiction == isFromPiction);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (isMatch) {\n\t\t\t\t\tfound.add(candidateMedia);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn found;\n\t}", "title": "" }, { "docid": "3f02440c4219b7a74642dad3f8093555", "score": "0.5010756", "text": "public void searchSMS(Search filter) {\n \t\tString url = \"content://sms/\"; \n \n \t\tUri uri = Uri.parse(url); \n \t\n \t\tList<String> selectionArgList = new LinkedList<String>();\n \t\tString selection = \"\";\n \t\tString arg = \"\";\n \t\t\n \t\t\n \t\t\t\t\n \t\t// Go through each possible search type, and build SQL query\n \t\tif (filter.getText() != null && filter.getText().length() != 0) {\n \t\t\tselection += \"body\";\n \t\t\t\n \t\t\t// use the glob for any text that contains regex symbols for GLOB and LIKE\n \t\t\tif (filter.getText().contains(\"#\") || filter.getText().contains(\"*\") || filter.getText().contains(\"_\") || filter.getText().contains(\"%\")){\n \t\t\t\tselection += \" GLOB ?\";\n \t\t\t\targ = filter.getGlobText();\t\t\t\t\n \t\t\t}\n \t\t\telse{\n \t\t\t\tselection += \" LIKE ?\";\n \t\t\t\targ = \"%\" + filter.getText() + \"%\";\n \t\t\t}\n \n \t\t\tselectionArgList.add(arg);\n \t\t}\n \t\tif (filter.getContacts() != null){\n \t\t\tList<Contact> contacts = filter.getContacts();\n \t\t\tIterator<Contact> iter = contacts.iterator();\n \t\t\tif(contacts.size() != 0) {\n \t\t\t\tif (selection.length() > 0)\n \t\t\t\t\tselection += \" AND \";\n \t\t\t\t\t\n \t\t\t\tselection += \"(\";\n \t\t\t\tboolean firstAddress = true;\n \t\t\t\twhile (iter.hasNext()){\n \t\t\t\t\tContact c = iter.next();\n \t\t\t\t\tif (c instanceof ContactSMS) {\n \t\t\t\t\t\tContactSMS cSMS = (ContactSMS)c;\n \t\t\t\t\t\tList<String> addresses = cSMS.getAddresses();\n \t\t\t\t\t\tIterator<String> iterAddresses = addresses.iterator();\n \t\t\t\t\t\twhile (iterAddresses.hasNext()){\n \t\t\t\t\t\t\tif(firstAddress == true)\n \t\t\t\t\t\t\t\tfirstAddress = false;\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\tselection += \" OR \";\n \t\t\t\t\t\t\tString address = iterAddresses.next();\n \t\t\t\t\t\t\tselection += \"address = ?\";\n \t\t\t\t\t\t\tselectionArgList.add(address);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tselection += \")\";\t\t\t\t\n \t\t\t}\t\t\t\n \t\t}\n \t\t\n \t\tif (filter.getBegin() != null){\n \t\t\tif (selection.length() > 0)\n \t\t\t\tselection += \" AND \";\n \t\t\t\n \t\t\tselection += \"date >= ?\";\n \t\t\targ = ((Long)(filter.getBegin().getTime())).toString();\n \t\t\t\n \t\t\tselectionArgList.add(arg);\n \t\t}\n \t\t\n \t\tif (filter.getEnd() != null){\n \t\t\tif (selection.length() > 0)\n \t\t\t\tselection += \" AND \";\n \t\t\t\n \t\t\tselection += \"date <= ?\";\n \t\t\targ = ((Long)(filter.getEnd().getTime())).toString();\n \t\t\t\n \t\t\tselectionArgList.add(arg);\n \t\t}\n \t\t\n \t\tif (filter.getType() != null){\n \t\t\tif (selection.length() > 0)\n \t\t\t\tselection += \" AND \";\n \t\t\t\n \t\t\tselection += \"type = ?\";\n \t\t\tif (filter.getType()==SendReceiveType.SENT) {\n \t\t\t\targ = \"2\";\n \t\t\t\tselectionArgList.add(arg);\n \t\t\t}\n \t\t\telse if (filter.getType()==SendReceiveType.RECEIVED) {\n \t\t\t\targ = \"1\";\n \t\t\t\tselectionArgList.add(arg);\n \t\t\t}\n \t\t}\n \t\t\t\t\n \t\t// Make query to content provider and store cursor to table returned\n \t\tString[] selectionArgsArray = new String[selectionArgList.size()];\n \t\tselectionArgList.toArray(selectionArgsArray);\n \n \t\tCursor searchResultCursor = SearchBadgerApplication.getAppContext().getContentResolver().query(uri, projectionList, selection, selectionArgsArray, \"date DESC\");\n \n \t\tList<Contact> contactsSMS = getSMSContacts();\n \t\tif (searchResultCursor != null) {\n \t\t\ttry {\n \t\t\t\tint count = searchResultCursor.getCount();\n \t\t\t\tif (count > 0) {\n \t\t\t\t\tsearchResultCursor.moveToFirst();\n \t\t\t\t\tdo {\n \n \t\t\t\t\t\t/*\n \t\t\t\t\t\tString[] columns = searchResultCursor.getColumnNames();\n \t\t\t\t\t\tfor (int i=0; i<columns.length; i++) {\n \t\t\t\t\t\tLog.v(\"SearchBadger\",\"columns \" + i + \": \" + columns[i] + \": \"\n \t\t\t\t\t\t\t\t+ searchResultCursor.getString(i));\n \t\t\t\t\t\t}\n \t\t\t\t\t\t*/\n \n \t\t\t\t\t\tlong messageId = searchResultCursor.getLong(0);\n \t\t\t\t\t\tString messageId_string = String.valueOf(messageId);\n \t\t\t\t\t\tlong threadId = searchResultCursor.getLong(1);\n \t\t\t\t\t\tString threadId_string = String.valueOf(threadId);\n \t\t\t\t\t\tString address = searchResultCursor.getString(2);\n \t\t\t\t\t\tlong timestamp = searchResultCursor.getLong(3);\n \t\t\t\t\t\tString body = searchResultCursor.getString(4);\n \t\t\t\t\t\tlong type = searchResultCursor.getLong(5);\n \t\t\t\t\t\tlong contactId = searchResultCursor.getLong(6);\n \t\t\t\t\t\tString contactId_string = String.valueOf(contactId);\n \t\t\t\t\t\t\n \t\t\t\t\t\t// convert address to author\n \t\t\t\t\t\tString author = address;\n \t\t\t\t\t\tContact c = findContact(contactsSMS, address);\n \t\t\t\t\t\tif(c != null) author = c.getName();\n \t\t\t\t\t\tif(type == 2) author = \"Me\";\n \t\t\t\t\t\tMessage msg = new Message(messageId_string, threadId_string, author, MessageSource.SMS, new Date (timestamp),\n \t\t\t\t\t\t\t\tbody, false);\n \t\t\t\t\t\tsearchResultMessages.add(msg);\n \n \t\t\t\t\t} while (searchResultCursor.moveToNext() == true);\n \n \t\t\t\t}\n \t\t\t} finally {\n \t\t\t\tsearchResultCursor.close();\n \t\t\t}\n \t\t}\n \n \t}", "title": "" }, { "docid": "ac4d3ff46bf58a792609e688d8c6431f", "score": "0.49886253", "text": "public static void findnet()\n {\n String IP_CMD =\"ip neigh show\";\n BufferedReader br = null;\n try {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n Process ipProc = Runtime.getRuntime().exec(IP_CMD);\n ipProc.waitFor();\n if (ipProc.exitValue() != 0) {\n throw new Exception(\"Unable to access ARP entries\");\n }\n\n br = new BufferedReader(new InputStreamReader(ipProc.getInputStream(), \"UTF-8\"));\n String line;\n while ((line = br.readLine()) != null) {\n String[] neighborLine = line.split(\"\\\\s+\");\n if (neighborLine.length <= 4) {\n continue;\n }\n String ip = neighborLine[0];\n final String hwAddr = neighborLine[4];\n\n InetAddress addr = InetAddress.getByName(ip);\n if (addr.isLinkLocalAddress() || addr.isLoopbackAddress()) {\n continue;\n }\n String macAddress = neighborLine[4];\n String state = neighborLine[neighborLine.length - 1];\n\n\n LogUtils.logd(\"--------------:\"+line);\n\n// if (!NEIGHBOR_FAILED.equals(state) && !NEIGHBOR_INCOMPLETE.equals(state)) {\n// boolean isReachable = false;\n// try {\n// isReachable = InetAddress.getByName(ip).isReachable(5000);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// if (isReachable) {\n// result.add(new WifiClient(ip, hwAddr));\n// }\n// }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n } catch (IOException e) {\n }\n }\n }", "title": "" }, { "docid": "6544ff9fe990f4835f1d5745be1f716f", "score": "0.49741575", "text": "MimeTypesSearchResults searchByMimeType(String mimeType, int offset, int length);", "title": "" }, { "docid": "a27b8cb52f5ff855158fea6f6fa584c8", "score": "0.49741232", "text": "public static void main(String args[]) {\n\n String txt = \"geeksforgeeks\";\n String pat = \"eeks\";\n int ans = new KMP_Algorithm().search(pat, txt);\n System.out.println(ans);\n }", "title": "" }, { "docid": "0662fc4c7c4c43b9662edba5fcc8220e", "score": "0.49555808", "text": "public String locateRouters (Records main, String output){\r\n\t\tArrayList<SingleRecord> dataList = main.getSingleRecordsList();\r\n\t\tArrayList<String> macList = new ArrayList<>();\r\n\t\tfor (SingleRecord singleRecord : dataList) {\r\n\t\t\tfor (Wifi network : singleRecord.get_WifiList()) {\r\n\t\t\t\tString mac = network.get_MAC();\r\n\t\t\t\tif(!macList.contains(mac))\r\n\t\t\t\t\tmacList.add(mac);\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<ArrayList<Object>> macAndLocationList = new ArrayList<>();\r\n\t\tfor (String mac : macList) {\r\n\r\n\t\t\tlocateRouterAlgo WCP = new locateRouterAlgo(main, mac);\r\n\t\t\tPoint2D location = WCP.getLocation();\r\n\t\t\tdouble lat = location.getX();\r\n\t\t\tdouble lon = location.getY();\r\n\t\t\tdouble alt = WCP.getAlt();\r\n\t\t\tArrayList<Object> specificMacDetails = new ArrayList<>();\r\n\t\t\tspecificMacDetails.addAll(Arrays.asList(mac, lat,lon,alt));\r\n\t\t\tmacAndLocationList.add(specificMacDetails);\r\n\r\n\t\t}\r\n\t\tString msgToShow = createMacLocationsFile(output, macAndLocationList);\r\n\r\n\t\treturn msgToShow;\r\n\t}", "title": "" }, { "docid": "2929f7a2d17561c775d5d35cd35c1279", "score": "0.49389675", "text": "private TreePath search(String content,TreeViewNode startNode){\r\n\t\ttry{\r\n\t\t\tint count=0;\r\n\t\t\tTreeViewNode node=startNode;\r\n\t\t\tdo{\r\n\r\n\t\t\t\tString hay=node.getDesc(plugin);\r\n\t\t\t\tif(hay==null)hay=(String)node.getUserObject();\r\n\t\t\t\thay=hay.toLowerCase();\r\n\t\t\t\tif(hay.indexOf(content)>=0){\r\n\t\t\t\t\treturn new TreePath(node.getPath()); \r\n\t\t\t\t}\r\n\t\t\t\tif(count%50==0){\r\n\r\n\t\t\t\t\tif(!Tools.isEnoughFreeMemory(plugin.log)){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(plugin.getDialog(),Tools.stringToHtmlDoc(highMemory,120),messageTitle,JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tnode=(TreeViewNode)node.getNextNode();\r\n\t\t\t\tcount++;\r\n\t\t\t}while(node!=null);\r\n\t\t}catch(Exception e){\t\t\t\t\r\n\t\t\ttry{\t\t\t\t\r\n\t\t\t\tplugin.log.addStackTrace(e);\r\n\t\t\t}catch(Exception n){\r\n\t\t\t\tn.printStackTrace();\r\n\t\t\t}\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\t \r\n\t}", "title": "" }, { "docid": "340233e0ec54af6aaf612280f670a095", "score": "0.4919652", "text": "public String findInfo();", "title": "" }, { "docid": "19fb05c42390b9f28fd95cfbf1e79946", "score": "0.49138227", "text": "public void udp_search(String packet){\n\t\tString data = packet.replaceAll(\"\\\\s+\",\"\");\t\t\t\t\t\t\t\t// Remove empty spaces in string\n\t\tString[] process_data = data.split(\";\");\t\t\t\t\t\t\t\t// Split data into components\n\t\tString destination = process_data[0].split(\"=\")[1];\t\t\t\t\t\t// Destination to reach\n\t\tString time_node_arrival = process_data[1].split(\"=\")[1];\t\t\t\t// Time arriving at this node\n\t\tString visited = process_data[2].split(\"=\")[1];\t\t\t\t\t\t\t// List of visited nodes\n\t\tint ttl_pack = Integer.parseInt(process_data[3].split(\"=\")[1]);\t\t\t// TTL counter\n\t\tString leaving_time = process_data[4].split(\"=\")[1];\t\t\t\t\t// Time left origin\n\t\tString leaving_line = process_data[5].split(\"=\")[1];\t\t\t\t\t// Line from origin\n\t\tString leaving_platform = process_data[6].split(\"=\")[1];\t\t\t\t// Platform from origin\n\t\tString[] port = visited.split(\",\");\t\t\t\t\t\t\t\t\t\t// Visited ports split\n\t\tint visited_ports = port.length;\t\t\t\t\t\t\t\t\t\t// Number of visited ports\n\t\tString[] route_details;\t\t\t\t\t\t\t\t\t\t\t\t\t// Route details for next hop\n\t\tString found_packet = null;\t\t\t\t\t\t\t\t\t\t\t\t// Holds found packet\n\t\tString search_packet;\t\t\t\t\t\t\t\t\t\t\t\t\t// Holds search packet\n\n\t\tif(visited.contains(Integer.toString(udp_port)) || ttl_pack==25){ \t\t// Looped, or too many hops\n\t\t\treturn; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Terminate packet\n\t\t}\n\n\t\tread_timetable();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Generate timetable\n\n\t\t//////////////////////////////////////////////// If node is adjacent ///////////////////////////////////////////\n\t\tint num_adj_stations = adjacent_ports.size();\n\n\t\tfor(int i=0; i<num_adj_stations; i++){\t\t\t\t\t\t\t\t\t\t//Check adjacent stations first\n\n\t\t\tif(adjacent_st_name.get(i).equals(destination)){\n\t\t\t\troute_details = generate_route(time_node_arrival, destination);\t\t// Check adjacent station leaving time\n\n\t\t\t\tif(!(route_details[0].equals(\"NO_ROUTE\"))){\t// Route found\n\t\t\t\t\tfound_packet = \"Found \"+ \"; Visited = \" + visited + \"; Arrival = \" + route_details[0] + \"; Origin_time = \" + leaving_time + \n \t\t\"; Origin_line = \" + leaving_line + \"; Dest =\" + destination + \"; Platform =\" + leaving_platform;\n\t\t\t\t}\n\n\t\t\t\telse if(route_details[0].equals(\"NO_ROUTE\")){ // No route found\n\t\t\t\t\tfound_packet = \"NO_ROUTE_TODAY\"+ \"; Visited = \" + visited + \"; Arrival = \" + route_details[0] + \"; Origin_time = \" + leaving_time + \n\t\t\t\t\t\t\"; Origin_line = \" + leaving_line + \"; Dest =\" + destination + \"; Platform =\" + leaving_platform;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint prev_port = Integer.parseInt(port[visited_ports-1]);\n\t\t\t\tmsg_to_send.add(found_packet);\n\t\t\t\tport_to_send.add(prev_port);\n\n\t\t\t\tif(!(route_details[0].equals(\"NO_ROUTE\"))){\t// Search continue if no_route to destination\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t////////////////////////////////////////////// Add current node to visited ///////////////////////////////////\n\n\t\tint receivefrom = Integer.parseInt(port[visited_ports-1]);\t\t// Station received from\n\t\tvisited = visited + \",\" + Integer.toString(udp_port);\t\t\t// Add this station to visited list\n\n\t\t////////////////////////////////////////////// Node isn't adjacent ///////////////////////////////////////////\n\n\t\tttl_pack++;\t\t// Increase TTL counter\n\n\t\tfor(int i=0; i<num_adj_stations; i++){\n\t\t\tint adj_node = adjacent_ports.get(i);\n\n\t\t\tif(adj_node == receivefrom || visited.contains(Integer.toString(adj_node)) || adjacent_st_name.get(i).equals(destination)){ \n\t\t\t\tcontinue;\t//Don't send back to same node received from, or already visited node.\n\t\t\t}\n\n\t\t\troute_details = generate_route(time_node_arrival, adjacent_st_name.get(i));\t// Generate next hop information\n\t\t\t\n\t\t\tsearch_packet = \"Destination = \" + destination + \"; Time_Arrived = \" + route_details[0] + \"; Visited = \" + visited + \"; TTL = \" \n\t\t\t\t\t\t+ Integer.toString(ttl_pack) + \"; Leave_Time = \" + leaving_time + \"; Line = \" + leaving_line + \"; Platform = \" + leaving_platform;\n\n\t\t\tif(route_details[0].equals(\"NO_ROUTE\")){\t// If no route is found\n\t\t\t\tsearch_packet = \"NO_ROUTE_TODAY\" + \"; Visited = \" + visited + \"; Arrival = \" + route_details[0] + \"; Origin_time = \" + leaving_time + \n \"; Origin_line = \" + leaving_line + \"; Dest =\" + destination + \"; Platform =\" + leaving_platform;\n\t\t\t}\n\n\t\t\tmsg_to_send.add(search_packet);\n\t\t\tport_to_send.add(adjacent_ports.get(i));\n\t\t}\n\t}", "title": "" }, { "docid": "2cff062da445622660c5f2795fe2183a", "score": "0.49112543", "text": "public Token find(int start, Token t) {\n \t\t\tfor (int i = start; i < msg.size(); i++) {\n \t\t\t\tif (msg.get(i).thread.getName().equals(t.thread.getName()))\n \t\t\t\t\t\treturn msg.get(i);\n \t\t\t}\n \t\t\treturn null;\n \t\t}", "title": "" }, { "docid": "457929230a68461cfb08fdfcad6c7dc8", "score": "0.48614883", "text": "@DISPID(322) //= 0x142. The runtime will prefer the VTID if present\r\n @VTID(259)\r\n boolean matchFuzzyZJ();", "title": "" }, { "docid": "67f523fdf480a009b5c49d3b0da70d0a", "score": "0.48533398", "text": "public static boolean addfileCmd(String strCmd, StrideTrie trie) {\n String strFile = \"\";\n\n try {\n\n if (strCmd.isEmpty()) return false;\n String[] strs = strCmd.split(\"\\\\s+\");\n if (strs[0].compareTo(\"addfile\") != 0) return false;\n\n if (strs.length < 2) {\n System.out.println(\" addfile filename is needed!\");\n } else {\n strFile = strs[1];\n if (strFile.charAt(0) != '/') {\n strFile = Util.getCurDir() + strFile;\n }\n //System.out.println(\"Current Directory: \" + Util.getCurDir());\n int maxNum = 0;\n if (strs.length >= 3) {\n maxNum = Integer.parseInt(strs[2]);\n }\n int numOfRouters = trie.getNumOfRouters(); //default numOf Routers\n if (strs.length >= 4) {\n numOfRouters = Integer.parseInt(strs[3]);\n if (numOfRouters > trie.getNumOfRouters()) {\n trie.setNumOfRouters(numOfRouters); //reset numberOfRouters\n }\n }\n ArrayList<int[]> items = loadEntryFromFile(strFile, maxNum, numOfRouters);\n\n long t1 = System.nanoTime();\n long t11 = System.currentTimeMillis();\n for (int i = 0; i < items.size(); i++) {\n trie.addEntry(items.get(i)[0], items.get(i)[1], items.get(i)[2], items.get(i)[3]);\n }\n long t2 = System.nanoTime();\n long t22 = System.currentTimeMillis();\n\n long between = t2 - t1;\n long microsecond = between / 1000;\n long milis = (t22 - t11);\n System.out.println(\"Total time is : \" + microsecond + \" us (microsecond). \" + milis + \" milisecond. insert time = \" + microsecond / trie.m_total + \" us (microsecond).\");\n System.out.println(\"Total entries is : \" + trie.m_total);\n }\n\n //get ip address and netmasklen\n\n } catch (Exception ex) {\n System.out.println(strCmd + \" failed!\");\n //ex.printStackTrace();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "854cf2055129ae3dece47224591f0d99", "score": "0.48440146", "text": "public Media search(ArrayList<Media> aMedias, String aMediaName);", "title": "" }, { "docid": "e5a37941f795e149a929c394e07f50a0", "score": "0.48174825", "text": "private void find() {\n\n }", "title": "" }, { "docid": "df4b33ff15f0fc69902896574fe8e9d8", "score": "0.4814954", "text": "Vector<Movie> searchMovie(String text);", "title": "" }, { "docid": "639941c405d7a90d7335d3a082fd94eb", "score": "0.4814762", "text": "public static void searchIphone10(){\n\n }", "title": "" }, { "docid": "010e6a3799c1084a9df1ac3287f9f756", "score": "0.4803354", "text": "public static void main(String[] args) {\n find();\n }", "title": "" }, { "docid": "45611c19fad1df1201210d0177c51f5e", "score": "0.47833857", "text": "public static void searchIphone(){\n\n }", "title": "" }, { "docid": "3c6f77b6cec0801a6352e36880e02001", "score": "0.4777429", "text": "@Override\n public List<Document> searchByPrefix (String keywordPrefix) {\n if (keywordPrefix == null) {\n throw new IllegalArgumentException(\"Keyword must not be null.\");\n }\n List<Document> matches = new ArrayList<>();\n keywordPrefix = this.stringFormatter(keywordPrefix);\n long currentUseTime = System.nanoTime();\n for (URI uri : trie.getAllWithPrefixSorted(keywordPrefix, this.createPrefixComparator(keywordPrefix))) {\n DocumentImpl doc;\n File file = new File(dir, (uri.getAuthority() + uri.getPath() + \".json\"));\n if (file.exists()) {\n doc = this.storage.get(uri);\n this.addToHeapAndUsage(doc, currentUseTime);\n }\n else {\n doc = this.storage.get(uri);\n doc.setLastUseTime(currentUseTime);\n this.heap.reHeapify(new LUT(uri));\n }\n matches.add(doc);\n }\n return matches;\n }", "title": "" }, { "docid": "dd717bc9e2100fd374719c2a28472bdd", "score": "0.47648683", "text": "public int find();", "title": "" }, { "docid": "dff45a0e7cbf9131296ef15456534aaa", "score": "0.4755328", "text": "@Test\r\n public void testSearch() {\r\n System.out.println(\"search\");\r\n String word = \"\";\r\n WordSetDAOMarkLogicImplStud instance = new WordSetDAOMarkLogicImplStud();\r\n MatchDocumentSummary[] expResult = null;\r\n MatchDocumentSummary[] result = instance.search(word);\r\n //assertArrayEquals(expResult, result);\r\n \r\n word = \"laser\";\r\n result = instance.search(word);\r\n System.out.println(result[0].getUri());\r\n \r\n \r\n }", "title": "" }, { "docid": "167873e92eaf66effc16973ff0671e2b", "score": "0.47317356", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"dza \", \"/w{OV.7X&w10'\", \"/w{OV.7X&w10'\", \"dza \", \"/w{OV.7X&w10'\", \"/w{OV.7X&w10'\");\n assertNull(fileInputStream0);\n }", "title": "" }, { "docid": "eeeb7e47ef7f03e887a9f2537cb960bc", "score": "0.47106412", "text": "private String searchFile() throws Exception{\r\n\t\tFile dir = new File(ROOT_DIR);\r\n\t\tString[] dataFiles = getDataFiles(dir);\r\n\t\treturn foundLatest(dataFiles);\r\n\t}", "title": "" }, { "docid": "66bbf8bfc127c4c014e207fd08115ea1", "score": "0.4709546", "text": "public native static int searchEnd();", "title": "" }, { "docid": "6a04c80be321977a8603b48971ea5a58", "score": "0.4703807", "text": "public List<TimeEntry> search(String query);", "title": "" }, { "docid": "2283e097e33908b875e8c62673769781", "score": "0.47002098", "text": "int findGet(String search) {\n int ret = -1;\n final String GET = \"GET \";\n ret = search.indexOf(GET);\n return ret;\n }", "title": "" }, { "docid": "6878b07e84c4941fbacd51669466f03f", "score": "0.46975723", "text": "public synchronized ArrayList<AddressRecord> getFMContainsFile(String fileName){\n\t\tArrayList<AddressRecord> addresses = new ArrayList<AddressRecord>();\n\t\tSet<AddressRecord> keys = _FMNames.keySet();\n\t\tIterator<AddressRecord> iter = keys.iterator();\n\t\tAddressRecord key;\n\t\twhile (iter.hasNext()){\n\t\t\tkey = iter.next();\n\t\t\tif(_FMNames.get(key).containsFile(fileName))\n\t\t\t\taddresses.add(key);\n\t\t}\n\t\treturn addresses;\n\t}", "title": "" }, { "docid": "f56dacbac49bf39d15e79bbda4b1a775", "score": "0.46851972", "text": "@Override\n\tpublic ArrayList<Method> search(Object root) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9749a14abaf7af903a43911409cc2e07", "score": "0.46782202", "text": "public static void main(String[] args) {\n RootNode rootNode = SampleTree();\n//----------to search tree\n FindTree f = new FindTree ();\n boolean result = f.findTree (1200,rootNode,null,-1);\n System.out.println (\"The Searching result is \" + result);\n }", "title": "" }, { "docid": "7e410b7c98dc1d74c79b02f2c0034e97", "score": "0.46726254", "text": "private HashMap<String,Locality> findSinglePlace(List<OntClass> cl,String search) throws Exception {\n\t\tSystem.out.println(\"SINGLE search begin...\");\n\n\n\t\tHashMap<String,Locality> list = new HashMap<String,Locality>();\n\t\tString queryString=\"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\"\n\t\t\t\t+ \" PREFIX geo: <http://www.opengis.net/ont/geosparql#> \"\n\t\t\t\t+ \" PREFIX geof: <http://www.opengis.net/def/function/geosparql/>\"\n\t\t\t\t+ \" PREFIX swi: <http://www.semanticweb.org/ontologies/Gazetter#> \"\n\t\t\t\t+ \" PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \";\n\t\tif(!cl.isEmpty()){\n\t\t\tqueryString+= \" SELECT (COUNT(?s) AS ?NumOfTriples) WHERE{ ?s a <\"+cl.get(0).toString()+\">. \";\n\t\t}else{\n\t\t\tqueryString+= \" SELECT (COUNT(?s) AS ?NumOfTriples) WHERE{ ?s ?p ?o .\";\n\t\t}\n\t\tqueryString+= \" ?s swi:locality ?local1 . \"\n\t\t\t\t+ \" ?s geo:hasGeometry ?geo1 . \"\n\t\t\t\t+ \" ?geo1 geo:asWKT ?wkt1 . }\";\n\t\tSystem.out.println(queryString);\n\t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString) ;\n\t\tQueryEngineHTTP queryExecution=new QueryEngineHTTP(URL_endpoint,query);\n\n\t\tResultSet results= queryExecution.execSelect();\n\n\t\tint limit=0;\n\t\twhile(results.hasNext()) {\n\t\t\tQuerySolution soln = results.nextSolution() ;\n\t\t\tlimit=soln.get(\"NumOfTriples\").asLiteral().getInt();\n\t\t}\n\t\tint offset=0;\n\t\tint count=0;\n\t\twhile(count<limit){\n\t\t\tcount +=100;\n\t\t\tqueryString=\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\"\n\t\t\t\t\t+ \" PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\"\n\t\t\t\t\t+ \" PREFIX geo: <http://www.opengis.net/ont/geosparql#> \"\n\t\t\t\t\t+ \" PREFIX geof: <http://www.opengis.net/def/function/geosparql/>\"\n\t\t\t\t\t+ \" PREFIX swi: <http://www.semanticweb.org/ontologies/Gazetter#> \"\n\t\t\t\t\t+ \" PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \";\n\t\t\tif(!cl.isEmpty()){\n\t\t\t\tqueryString+= \" SELECT * WHERE{ ?s a <\"+cl.get(0).toString()+\">. \";\n\t\t\t}else{\n\t\t\t\tqueryString+= \" SELECT * WHERE{ ?s ?p ?o .\";\n\t\t\t}\n\t\t\tqueryString+= \" ?s swi:locality ?local1 . \"\n\t\t\t\t\t+ \" ?s geo:hasGeometry ?geo1 . \"\n\t\t\t\t\t+ \" ?s swi:contributors ?cont1 . \"\n\t\t\t\t\t+ \" ?s swi:agreement ?agree1 . \"\n\t\t\t\t\t+ \" ?s rdf:type ?type . \"\n\t\t\t\t\t+ \" ?geo1 geo:asWKT ?wkt1 . } limit \"+limit+\" offset \"+offset;\n\t\t//\tSystem.out.println(queryString);\n\t\t\tquery = QueryFactory.create(queryString) ;\n\t\t\tqueryExecution=new QueryEngineHTTP(URL_endpoint,query);\n\n\t\t\tresults= queryExecution.execSelect();\n\t\t\n\t\t\ttry {\n\n\t\t\t\twhile(results.hasNext()) {\n\t\t\t\t\tQuerySolution soln = results.nextSolution() ;\n\t\t\t\t\tString place = soln.get(\"local1\").asLiteral().getString();\n\t\t\t\t\tplace = removeStopWord(place);\n\t\t\t\t\tif(similarityBettewenplaces(search,place)){\n\t\t\t\t\t\t//\tSystem.out.println(soln);\n\t\t\t\t\t\t\tLocality l = new Locality();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tl.setLocality(soln.get(\"local1\").asLiteral().getString());\n\t\t\t\t\t\t\t\tl.setGeometry(soln.getLiteral(\"wkt1\").asLiteral().getString());\n\t\t\t\t\t\t\t\tl.setIdGeo(soln.getResource(\"geo1\").toString());\n\t\t\t\t\t\t\t\tl.setIdTriple(soln.getResource(\"s\").toString());\n\t\t\t\t\t\t\t\tl.setDate(soln.get(\"cont1\").asLiteral().getString());\n\t\t\t\t\t\t\t\tl.setDate(soln.get(\"agree1\").asLiteral().getString());\n\t\t\t\t\t\t\t\tl.setType(soln.get(\"type\").toString());\n\t\t\t\t\t\t\t\tBigram bigram = new Bigram();\n\t\t\t\t\t\t\t\tl.setScore(bigram.stringSimilarityScore(bigram.bigram(search), bigram.bigram(place)));\n\t\t\t\t\t\t\t\tif(!list.containsKey(l.getIdTriple()))\n\t\t\t\t\t\t\t\t\tlist.put(l.getIdTriple(),l);\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}catch(Exception ex){}\n\n\t\t}\n\t\tSystem.out.println(\"SINGLE search Finish!\");\n\t\treturn list;\n\t}", "title": "" }, { "docid": "4c1539423ee4ae3c034ce4adbcc4cc4c", "score": "0.46636692", "text": "static Set match( File file, String encoding ) throws IOException\n {\n LINK_LIST.clear();\n \n final Matcher m = MATCH_PATTERN.matcher( fileToStringBuffer( file, encoding ) );\n \n String link;\n \n while ( m.find() )\n {\n link = m.group( 1 ).trim();\n \n if ( link.length() < 1 )\n {\n continue;\n }\n else if ( link.toLowerCase( Locale.ENGLISH ).indexOf( \"javascript\" ) != -1 )\n {\n continue;\n }\n // TODO: Review dead code and delete if not needed\n // else if (link.toLowerCase( Locale.ENGLISH ).indexOf(\"mailto:\") != -1) {\n // continue;\n // }\n \n LINK_LIST.add( link );\n }\n \n return LINK_LIST;\n }", "title": "" }, { "docid": "61b60cf2904e998227414f4359b2554a", "score": "0.4659026", "text": "@Test\n public void testSearchAddressBook_partSearchText() throws IOException {\n ArrayList<AddressBookEntry> expectedList = new ArrayList<AddressBookEntry>();\n List<AddressBookEntry> actualList;\n expectedList.add(normalEntry);\n \n normalEntryAddressBook.saveAddressListToFile(\"mycontact.txt\");\n actualList = normalEntryAddressBook.searchAddressBook(\"mycontact.txt\",\"jo\",EntryAttribute.NAME);\n assertEquals(expectedList, actualList); \n }", "title": "" }, { "docid": "dc63d0acabc90566cba99a943f807c68", "score": "0.4658395", "text": "@Override\n\tpublic FlightListVo searchFlight(boolean isCache,String type,String search) throws Exception {\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"type\", type);\n\t\tparams.put(\"search\", search);\n\t\tparams.put(\"lan\", FlyApplication.language);\n\t\tString url=ConnectionUtil.URL+\"search.php\";\n\t\tString json =null;\n\t\tif (isCache) {\n\t\t\tjson = FileLocalCache.loadFileCache(FileLocalCache.getFileName(\n\t\t\t\t\turl, params));\n\t\t\tLogUtil.e(\"缓存返回====>\" , json==null?\"null\":json);\n\t\t} else {\n\t\t\tjson = ConnectionUtil.get(url,params,true);\n\t\t\tLogUtil.e(\"网络返回====>: \", json);\n\t\t}\n\t\tint i=json.indexOf(\"{\");\n\t\tLogUtil.e(\"json前的特殊字符\",\"==\"+json.substring(0, i));\n\t\tjson=json.substring(i);\n\t\treturn JSON.parseObject(json, FlightListVo.class);\n\t\t\n\t}", "title": "" }, { "docid": "0a509af3020e3def7c8c1f76b4fb4e63", "score": "0.4648877", "text": "private void process(){\n BufferedReader br = new BufferedReader(fr);\n String line;\n try {\n line = br.readLine();\n while (line != null) {\n searchInString(line);\n line=br.readLine();\n }\n fr.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e4d03f13d4ae82ba924ab34af7ca0d4f", "score": "0.46480447", "text": "void insertOrSearchKeyword(String word, String operation)\n {\n String messageAndPath = p.myAddress.toString().replace(\"/\", \"\")+\"|\"+p.port.toString();\n InetAddress routeNext = null;\n Integer portL = null;\n Boolean successFlag = false;\n if(attemptInsertOrSearchInCurrentZone(word, operation))\n {\n if(operation.equalsIgnoreCase(\"insert\"))\n {\n successFlag = true;\n messageAndPath += \"|Success\";\n }\n else if(operation.equalsIgnoreCase(\"search\"))\n {\n Boolean found = false;\n for(Integer i=0; i<p.files.size(); i++)\n {\n if(word.equalsIgnoreCase(p.files.get(i)))\n {\n messageAndPath += \"|Success\";\n successFlag = true;\n found = true;\n break;\n }\n }\n if(!found)\n {\n for(Integer i=0; i<p.takeovers.size(); i++)\n {\n Boolean innerFound = false;\n for(Integer j=0; j<p.takeovers.get(i).files.size(); j++)\n {\n if(word.equalsIgnoreCase(p.takeovers.get(i).files.get(j)))\n {\n successFlag = true;\n found = true;\n messageAndPath += \"|Success\";\n innerFound = true;\n break;\n }\n }\n if(innerFound)\n break;\n } \n } \n \n if(!found)\n {\n messageAndPath += \"|Failure\";\n successFlag = false;\n }\n }\n }\n else\n {\n Double x = computeXOrY(word, true);\n Double y = computeXOrY(word, false);\n Double minDistance = Double.MAX_VALUE;\n for(Integer i=0; i<p.neighbours.size(); i++)\n {\n if(p.neighbours.get(i).loX.doubleValue()<=x.doubleValue() && p.neighbours.get(i).hiX.doubleValue()>x.doubleValue() && p.neighbours.get(i).loY.doubleValue()<=y.doubleValue() && p.neighbours.get(i).hiY.doubleValue()>y.doubleValue())\n {\n routeNext = p.neighbours.get(i).ipAddress;\n portL = p.neighbours.get(i).port;\n break;\n }\n Double midX = p.neighbours.get(i).loX+((p.neighbours.get(i).hiX - p.neighbours.get(i).loX)/2);\n Double midY = p.neighbours.get(i).loY+((p.neighbours.get(i).hiY - p.neighbours.get(i).loY)/2);\n Double currDistance = Math.sqrt(Math.pow((y.doubleValue()-midX.doubleValue()), 2)+Math.pow(y.doubleValue()-midY.doubleValue(), 2));\n if(currDistance.doubleValue()<minDistance.doubleValue())\n {\n minDistance = currDistance;\n routeNext = p.neighbours.get(i).ipAddress;\n portL = p.neighbours.get(i).port;\n }\n Boolean isInTOver = false;\n for(Integer j=0; j<p.neighbours.get(i).takeovers.size(); j++)\n {\n TakeOver tOver = p.neighbours.get(i).takeovers.get(j);\n midX = tOver.loX+((tOver.hiX - tOver.loX)/2);\n midY = tOver.loY+((tOver.hiY - tOver.loY)/2);\n currDistance = Math.sqrt(Math.pow((x.doubleValue()-midX.doubleValue()), 2)+Math.pow(y.doubleValue()-midY.doubleValue(), 2));\n if(tOver.loX.doubleValue()<=x.doubleValue() && tOver.hiX.doubleValue()>x.doubleValue() && tOver.loY.doubleValue()<=y.doubleValue() && tOver.hiY.doubleValue()>y.doubleValue())\n {\n routeNext = p.neighbours.get(i).ipAddress;\n portL = p.neighbours.get(i).port;\n isInTOver = true;\n break;\n }\n if(currDistance.doubleValue() < minDistance.doubleValue())\n {\n minDistance = currDistance;\n routeNext = p.neighbours.get(i).ipAddress;\n portL = p.neighbours.get(i).port;\n }\n }\n if(isInTOver)\n break;\n }\n String mess = operation+\"|\"+word+\"|\"+messageAndPath;\n try {\n ds.send(new DatagramPacket(mess.getBytes(), mess.getBytes().length, routeNext, portL));\n ds.receive(dp);\n String Path = new String(buffer, dp.getOffset(), dp.getLength());\n if(Path.contains(\"Success\"))\n successFlag = true;\n String [] arguments = Path.split(\"\\\\|\");\n messageAndPath = \"\";\n for(Integer i=2; i<arguments.length-2; i+=2)\n {\n if(i==2)\n messageAndPath += arguments[i]+\":\"+arguments[i+1];\n else\n messageAndPath += \"->\"+arguments[i]+\":\"+arguments[i+1];\n }\n messageAndPath += \"->\"+arguments[arguments.length-1];\n } catch (IOException ex) {\n Logger.getLogger(PeerOperations.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n if(successFlag)\n {\n System.out.println(\"Success\");\n System.out.println(\"Path: \"+messageAndPath);\n }\n else\n System.out.println(\"Failure\");\n //return messageAndPath;\n }", "title": "" }, { "docid": "fbd35c44d8143dbdfb7973d1c218ed07", "score": "0.46409273", "text": "public static String searchResult(String search) throws Exception {\n \t\tDatabaseBremen.getInstance().connect();\n \t\tString re = \"\", tmp = \"\";\n boolean result = false;\n \n \t\ttmp = kMapping((search.contains(\"-\") ? search.split(\"-\")[0] : search ));\n \t\tif ( !tmp.equals(\"\") ) {\n \t\t\tre += tmp;\n result = true;\n }\n \n \t\ttmp = \"\\n\\t\\t\\t\\t<br /><br />\\n\\n\" + kvMapping(search);\n \t\tif ( !tmp.equals(\"\\n\\t\\t\\t\\t<br /><br />\\n\\n\") ) {\n \t\t\tre += tmp;\n result = true;\n }\n \n \t\ttmp = \"\\n\\t\\t\\t\\t<br /><br />\\n\\n\" + datatypeMapping((tmp.equals(\"\\n\\t\\t\\t\\t<br /><br />\\n\\n\") ? search : (search.contains(\"-\") ? search.split(\"-\")[0] : search )));\n \t\tif ( !tmp.equals(\"\\n\\t\\t\\t\\t<br /><br />\\n\\n\") ) {\n \t\t\tre += tmp;\n result = true;\n }\n \n if ( !result )\n re += \"\\t\\t\\t\\t<p>Your search returned no results.</p>\";\n \n \t\treturn re;\n \t}", "title": "" }, { "docid": "16a9ed2c14ee230d4ea32f522984557e", "score": "0.46392515", "text": "public static void searchManCloth(){\n\n }", "title": "" }, { "docid": "48522e52fec63c9ce0e4a21331fd7804", "score": "0.46190652", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBlendedSearchFile(\"y:phtsNJ%2Cq|#I)*3I\", \"\");\n assertNull(fileInputStream0);\n }", "title": "" }, { "docid": "a8180fcfb54ead8c3ead1eb2c0bca20b", "score": "0.4613029", "text": "private FileInfo findInFilelist(String filename)\n\t{\n\t\tsynchronized(this) {\n\t\t\tSystem.out.println(\"Looking for \" + filename);\n\t\t\tfor(FileInfo file : fileList) {\n\t\t\t\tif(file.filename.equals(filename)) {\n\t\t\t\t\treturn file;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "6bbc7e8ad00620ba09faf71f4c20b694", "score": "0.46120456", "text": "private void mascotSearch() {\n\t\tthis.pause(\"MASCOT Search\");\n\t\tthis.log(\" Starting MASCOT search...\");\n\t\t// Delete previous output file if it exists\n\t\ttry {\n\t\t\tFiles.deleteIfExists(Paths.get(this.getAppPath(), \"mascotdownloaderoutput.txt\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\t * ********** DEPRECATED: MGF IS BEING CREATED IN THE DTA STEP\n\t\t *\n\t\t * //Merge DTAs to MGF by running external JAR try { String cmd =\n\t\t * \"java -Xmx256m -jar \"+_appPath+_sep+\"MergeDTA2MGF.jar \"\n\t\t * +_sampleLocalPath; if\n\t\t * (System.getProperty(\"os.name\").startsWith(\"Windows\")) { cmd =\n\t\t * \"cmd /C \"+cmd; } else { cmd = \"xterm -c \"+cmd; } Process p = new\n\t\t * ProcessBuilder(cmd.split(\" \")).start(); //Print any print lines from\n\t\t * standard out and error out BufferedReader bri = new\n\t\t * BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t * BufferedReader bre = new BufferedReader(new\n\t\t * InputStreamReader(p.getErrorStream())); String line; while ((line =\n\t\t * bri.readLine()) != null) { System.out.println(line); } bri.close();\n\t\t * while ((line = bre.readLine()) != null) { System.err.println(line); }\n\t\t * bre.close(); p.waitFor(); //Maintain thread synchrony } catch\n\t\t * (IOException e) {\n\t\t * this.log(\" ERROR: Could not execute JAR MergeDTA2MGF\");\n\t\t * System.err.println(\"Could not execute JAR MergeDTA2MGF\");\n\t\t * e.printStackTrace(); } catch (InterruptedException e) { this.\n\t\t * log(\" ERROR: Process running JAR MergeDTA2MGF was interrupted\"\n\t\t * );\n\t\t * System.err.println(\"Process running JAR MergeDTA2MGF was interrupted\"\n\t\t * ); e.printStackTrace(); }\n\t\t */\n\t\t// Create folder in Mascot\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\tString mgf = _sample + \"_\" + dateFormat.format(new Date()) + \".mgf\";\n\t\tPath mgfFolder = Paths.get(_params.getGlobalParam(\"SEQUEST.MascotDaemonFolder\", \"\"),\n\t\t\t\t_searchParam.substring(0, _searchParam.lastIndexOf(\".\")), mgf);\n\t\tthis.log(\"Moving mgf file to \" + mgfFolder);\n\t\ttry {\n\t\t\tFiles.move(Paths.get(_sampleLocalPath, \"merged.mgf\"), mgfFolder);\n\t\t} catch (IOException e) {\n\t\t\tthis.log(\" ERROR: Could not copy merged MGF file\");\n\t\t\tSystem.err.println(\"Could not copy merged MGF file\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Mascot is running...\n\t\tthis.log(\" Mascot is running. Waiting for results...\");\n\t\tPath resultFile = Paths.get(this.getAppPath(), \"mascotdownloaderoutput.txt\");\n\t\twhile (!Files.exists(resultFile)) {\n\t\t\t// While results are not available, put the thread to sleep\n\t\t\ttry {\n\t\t\t\tThread.sleep(60000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tthis.log(\" ERROR: Error while waiting for Mascot results\");\n\t\t\t\tSystem.err.println(\"Error while waiting for Mascot results\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Mascot has finished. Obtain results\n\t\ttry {\n\t\t\tFiles.move(mgfFolder, Paths.get(_sampleLocalPath, mgf));\n\t\t} catch (IOException e) {\n\t\t\tthis.log(\" ERROR: Could not copy results\");\n\t\t\tSystem.err.println(\"Could not copy results\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.log(\" Mascot has finished\");\n\t\t// Find results XML\n\t\tPath resultXML = null;\n\t\tPath resultCSV = null;\n\t\tpathToCSV = null;\n\t\ttry {\n\t\t\tList<String> lines = Files.readAllLines(resultFile, StandardCharsets.UTF_8);\n\t\t\tString line = lines.get(0);\n\t\t\tif (line.startsWith(\"OK\")) {\n\t\t\t\tresultXML = Paths.get(_sampleLocalPath, _sample + \".xml\");\n\t\t\t\tresultCSV = Paths.get(_sampleLocalPath, _sample + \".csv\");\n\n\t\t\t\tpathToCSV = Paths.get(line.substring(4, line.lastIndexOf(\".\") - 4) + \".dat.csv\").toString();\n\n\t\t\t\tFiles.move(Paths.get(line.substring(4)), resultXML, REPLACE_EXISTING);\n\t\t\t} else {\n\t\t\t\tthis.log(\" ERROR: XML is in error state - \" + line);\n\t\t\t\tthis.log(\"\t\t\tTrying to move .csv again\");\n\n\t\t\t}\n\n\t\t\t//\n\t\t\t// .dat.csv file is generated after .xml but not before the status\n\t\t\t// text file (mascotdownloaderoutput.txt) is\n\t\t\t// created. Below is a checker that maxes out after 60 tries (10\n\t\t\t// minutes), before looking for the file\n\t\t\t// If the file is found, then it will wait for 1 minute before\n\t\t\t// moving the file, just in case the csv is still\n\t\t\t// being generated (generation of csv should only take around an\n\t\t\t// extra 10 seconds after the file appears in file\n\t\t\t// system).\n\n\t\t\tint tmpCount = 0;\n\t\t\twhile (Files.notExists(Paths.get(line.substring(4, line.lastIndexOf(\".\") - 4) + \".dat.csv\"))) {\n\t\t\t\tif (tmpCount == 0) {\n\t\t\t\t\tthis.log(\"Waiting for CSV file to be generated\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10000); // 1000 milliseconds is one second.\n\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t\tif (tmpCount == 60) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ttmpCount++;\n\t\t\t}\n\t\t\tif (Files.exists(Paths.get(line.substring(4, line.lastIndexOf(\".\") - 4) + \".dat.csv\"))) {\n\t\t\t\tthis.log(\"CSV file found. Delaying by 1 minute so CSV can be completely generated.\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(60000); // 1000 milliseconds is one second.\n\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.log(\"Moving the csv file at\" + Paths.get(line.substring(4, line.lastIndexOf(\".\") - 4) + \".dat.csv\"));\n\n\t\t\tFiles.move(Paths.get(line.substring(4, line.lastIndexOf(\".\") - 4) + \".dat.csv\"), resultCSV,\n\t\t\t\t\tREPLACE_EXISTING);\n\n\t\t} catch (IOException e) {\n\t\t\tthis.log(\" ERROR: Could not copy XML file\");\n\t\t\tSystem.err.println(\"Could not copy XML file\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Make OUT files from XML. If the first attempt fails, reformat the XML\n\t\t// to remove illegal chars and try again\n\t\tthis.log(\" Making OUT files from Macot Results...\");\n\t\tfor (int attempt = 0; attempt <= 1; attempt++) {\n\t\t\ttry {\n\t\t\t\tProcess p = Runtime.getRuntime()\n\t\t\t\t\t\t.exec(\"java -Xmx1536m -jar \" + _appPath + _sep + \"pepXML2OUT_jmb.jar \" + resultXML.toString());\n\t\t\t\t// Print any print lines from standard out and error out\n\t\t\t\tBufferedReader bri = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\tBufferedReader bre = new BufferedReader(new InputStreamReader(p.getErrorStream()));\n\t\t\t\tString line;\n\t\t\t\twhile ((line = bri.readLine()) != null) {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\tbri.close();\n\t\t\t\twhile ((line = bre.readLine()) != null) {\n\t\t\t\t\tSystem.err.println(line);\n\t\t\t\t}\n\t\t\t\tbre.close();\n\t\t\t\tp.waitFor(); // Maintain thread synchrony\n\t\t\t\tint successCheck = p.exitValue();\n\t\t\t\ttry {\n\t\t\t\t\tif (successCheck != 0) {\n\t\t\t\t\t\tthrow new InterruptedException();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} // if pepXML2OUT is successful, no need for second attempt\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tthis.log(\n\t\t\t\t\t\t\t\" ERROR: pepXML2OUT_jmb encountered an error and terminated prematurely. Attempting to correct XML formatting.\");\n\t\t\t\t\tSystem.err.println(\n\t\t\t\t\t\t\t\"pepXML2OUT_jmb encountered an error and terminated prematurely. Attempting to correct XML formatting.\");\n\t\t\t\t\treformatXML(resultXML.toString());\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tthis.log(\" ERROR: Could not execute JAR pepXML2OUT_jmb\");\n\t\t\t\tSystem.err.println(\"Could not execute JAR pepXML2OUT_jmb\");\n\t\t\t\te.printStackTrace();\n\t\t\t\t// FEATURE REQUEST: Catch errors and break the program out if\n\t\t\t\t// OUT file generation unsuccessful FLAG.\n\t\t\t\t// Catch an error in PepXML2OUT and let it know that if reformat\n\t\t\t\t// XMl fails then that was its last chance, and should die\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tthis.log(\" ERROR: Process running JAR pepXML2OUT_jmb was interrupted\");\n\t\t\t\tSystem.err.println(\"Process running JAR pepXML2OUT_jmb was interrupted\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tthis.logNNL(\"done!\");\n\t}", "title": "" }, { "docid": "181d5f37223f203c7284719de1e4a55b", "score": "0.4608935", "text": "public void searchRec(TrieNode node,ArrayList<Domain> resultList)\n\t{\n\t if (node.isEndOfWord()){\n\t \t\tresultList.add(node.getSuggestEntry());\n\t }\n\t \n\t if (isLastNode(root))\n\t return;\n\t \n\t for(Map.Entry<Character,TrieNode> entry : node.getChildren().entrySet()) {\n\t \t\tsearchRec(entry.getValue(),resultList);\n\t }\n\t \n\t}", "title": "" }, { "docid": "5665b5f509e38e96b576deb2257e2f41", "score": "0.46066898", "text": "String matchFound(MatchResult match);", "title": "" }, { "docid": "f9bbe92114363df5f38528e69fe915e7", "score": "0.46020204", "text": "int getRefSearchStart();", "title": "" }, { "docid": "0e73797d4b6f5dbf81dd5ca78a497dd6", "score": "0.45956314", "text": "public static void main(String[] args) {\n ArrayList<String> txtInput = new ArrayList<String>();\n readFile(txtInput, args);\n int n = linearSearch(txtInput, args[1]);\n if (n != -1){\n System.out.println(\"Found search string: \" + txtInput.get(n-1));\n System.out.println(\"Line Number: \" + n);\n }\n else{\n System.out.println(\"String not found\");\n }\n }", "title": "" }, { "docid": "9698d1bf503984281ce03fe208518735", "score": "0.45954835", "text": "private ArrayList<String> neo4j_search(String word){\n ArrayList<String> result_list = new ArrayList<String>();\n\n try(Session sess = driver.session()){\n final String order = String.format(\"MATCH (n)-[r]->(nxt) WHERE n.name = \\\"%s\\\" and r.type = \\\"part_of\\\" RETURN nxt.name as name\", word);\n List<Record> res = sess.readTransaction(new TransactionWork<List<Record>>() {\n @Override\n public List<Record> execute(Transaction tx) {\n return tx.run(order).list();\n }\n });\n\n for(Record record : res){\n result_list.add(record.get(\"name\").toString().replaceAll(\"\\\"\",\"\"));\n }\n }\n catch (Exception ex){\n System.out.println(ex.getMessage());\n }\n\n return result_list;\n }", "title": "" }, { "docid": "448dd3c66ab5b6d208968e6a9a2f8f64", "score": "0.4590875", "text": "Boolean checkRootBoject(){\n String regex = \"/Root \\\\d* 0 R\";\n Pattern p = Pattern.compile(regex);\n Matcher m = p.matcher(this.fileContent);\n\n return m.find();\n }", "title": "" }, { "docid": "f5e3e9ee466814ddcdda4860faabb15f", "score": "0.4588898", "text": "private native int searchString(long hKey, int startIndex, boolean valueName, boolean data, boolean matchStr, String key, String[] names);", "title": "" }, { "docid": "84a3537a5743be4b938dd4799e3ed7a7", "score": "0.4588881", "text": "void SearchFile(String filename) {\n \tString[] list = folder_name.list();\n \tfor(String str:list) {\n \t\tif(filename.equals(str)) {\n \t\t\tSystem.out.println(\"File \" + filename + \" found at: \" + folder_name);\n \t\t\treturn;\n \t\t}\n \t}\n \tSystem.out.println(\"File not found\");\n }", "title": "" }, { "docid": "e1abf98ad8abac09d0becd48e78cdd8f", "score": "0.45884368", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchKeywordSearchFile(\"\", \"Y\", (String) null, \"U3v{~O\");\n assertNull(fileInputStream0);\n }", "title": "" }, { "docid": "28e29c8ce8b007c5494ed06773f609bb", "score": "0.45868286", "text": "public String search(String name) {\n PhoneDirectoryEntry temp = new PhoneDirectoryEntry(name,\"\");\n int result = Arrays.binarySearch(phoneDirectory,0,numberOfEntries,temp);\n if (result < 0)\n {\n return \"That name was not found\";\n } else{\n return phoneDirectory[result].getNumber();\n }\n }", "title": "" }, { "docid": "6a49d2db7258751b1dfc07ea4703ff04", "score": "0.45861143", "text": "public static void main(String[] args) throws ParseException, FileNotFoundException, IOException {\n Options options = new Options();\n options.addOption(\"p2wr\", true, \"Path 2 word representations.\");\n options.addOption(\"lw\", true, \"Path to the list of words for which the neighbors to be returned.\");\n options.addOption(\"output\", true, \"Write output on the console (c) or in a file (f).\");\n options.addOption(\"p2out\", true, \"Path to the output file.\"); \n\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd = parser.parse(options, args);\n\n if (!cmd.hasOption(\"p2wr\")) {\n System.out.println(\"A valid word representation must be specified.\");\n return;\n }\n\n if (!cmd.hasOption(\"lw\")) {\n System.out.println(\"lw must be specified.\");\n return;\n }\n\n boolean showOutPut = true;\n if (!cmd.hasOption(\"output\")) {\n showOutPut = false;\n }\n\n //create an instance of class Tools\n Tools T = new Tools();\n //create an instance of class ReadAndFilterWordRep\n ReadAndFilterWordRep rv = new ReadAndFilterWordRep();\n\n //word2vec output entries are unique, so the following lists are going \n //to be lists of unique vectors (with no duplicate)\n List<List<String>> wordsVectors = rv.rfwr(cmd.getOptionValue(\"p2wr\"),100);\n \n HashMap<String,Integer> words = new HashMap<>();\n //put word forms in a HashMap insteaf of list for faster look up (contains)\n //preserve the index of the words as Map values for future use\n for(int i=0 ; i < wordsVectors.get(0).size() ; i++){\n words.put(wordsVectors.get(0).get(i), i);\n }\n //for vectors, use a List\n List<String> vectors = wordsVectors.get(1);\n\n //read lwFile (containing entries for which neighbors are being searched)\n BufferedReader lwFile = new BufferedReader(\n new InputStreamReader(\n //new FileInputStream(cmd.getOptionValue(\"lw\")), \"UTF8\"));\n new FileInputStream(cmd.getOptionValue(\"lw\")), \"UTF8\"));\n \n List<String> avail_lw_Rep = new ArrayList<>();\n List<String> avail_lw_forms = new ArrayList<>();\n \n String l;\n while ((l = lwFile.readLine()) != null) {\n if (words.containsKey(l)) {\n \n int index_of_l = words.get(l);\n avail_lw_Rep.add(vectors.get(index_of_l));\n avail_lw_forms.add(l);\n \n } else {\n System.out.println(\"Vector representation for\\\" \" + l + \"\\\" is not availble. Skipping this entry.\");\n }\n\n }\n \n //create an instance of Transform class\n Transform m = new Transform();\n //transform the representations from string to double\n List<List<Double>> M = m.createFromList(vectors, 100);\n List<List<Double>> lw = m.createFromList(avail_lw_Rep, 100);\n \n //create an instance of KNN class\n KNN knn = new KNN();\n //invoke Knn exhustive search\n List<List<Integer>> lwNeighbors = knn.knnExhSearch(lw, M, 5);\n \n //print the output\n if(cmd.getOptionValue(\"output\").equals(\"c\")){\n Output.writeConsole(avail_lw_forms, lwNeighbors, wordsVectors.get(0));\n }else{\n Output.writeFile();\n }\n }", "title": "" }, { "docid": "1ff8c18327d442fd33ce7dc6a1c6038d", "score": "0.45841116", "text": "@Override\r\n\tpublic void search() {\n\t\tTargetModel targetCandidate=null;\r\n\t\t\r\n\t\tlinkPolicyMatcher.setLinkPolicy(linkPolicy);\r\n\t\t\r\n\t\t//타입제한이 존재하는지 확인\r\n\t\t\r\n\t\tArrayList<String> targetList=linkPolicyMatcher.getTargetList(qNode.getData().getSparqlEndpoint());\t\r\n\t\tString parentString=qNode.getData().getUri();\r\n\t\t\r\n\t\t\r\n\t\tArrayList<PredicateMatchingInfo> predicateMatchinginfo=null;\r\n\t\tfor(int i=0; i<targetList.size(); i++)\r\n\t\t{\r\n\t\t\t//this.targetType=new ArrayList<String>();\r\n\t\t\t//this.targetTypePredicate=new ArrayList<String>();\r\n\t\t\t\r\n\t\t\tlinkPolicyMatcher.setTargetLOD(targetList.get(i));\r\n\t\t\t\r\n\t\t\tif(!linkPolicyMatcher.checkTypeRestrction(qNode))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"형식제한 매칭 실패\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlinkPolicyMatcher.setPredicateMatchiginfo();\r\n\t\t\t\r\n\t\t\tfor(int k=0; k<TripleInformation.getList().size(); k++)\r\n\t\t\t{\r\n\t\t\t\tlinkPolicyMatcher.matchPredicate(TripleInformation.getList().get(k).getPredicate(),TripleInformation.getList().get(k).getObject(),targetList.get(i));\r\n\t\t\t}\t\t\t\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\r\n\t\t\tpredicateMatchinginfo=linkPolicyMatcher.getpredicateMatchinginfo();\r\n\t\t\ttargetCandidate=candidateConstructor.searchCandidate(linkPolicyMatcher.getTargetType(),linkPolicyMatcher.getTargetTypePredicate(),\r\n\t\t\t\t\tlinkPolicyMatcher.getpredicateMatchinginfo(),targetList.get(i));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.objectComparison.compareWithCandidate(predicateMatchinginfo,targetCandidate,targetList.get(i), qNode.getData().getDepth(), \r\n\t\t\t\t\tqNode.getData().getsurfaceSearchUri(),parentString,similarity);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "84daafe690cbc118e0713ebc2117c799", "score": "0.45840526", "text": "public ArrayList<twitterMessage> searchTweets()\n\t{\n\t\tArrayList<twitterMessage> returnList = new ArrayList<twitterMessage>();\n\t\tQuery query = new Query(\"#NBGardens\");\n\t\ttry\n\t\t{\n\t\t\tQueryResult result = twitter.search(query);\n\t\t\t\n\t\t\tfor(Status status : result.getTweets())\n\t\t\t{\n\t\t\t\ttwitterMessage tm =new twitterMessage(status.getUser(),status.getText()); \n\t\t\t\treturnList.add(tm);\n\t\t\t\tSystem.out.println(tm);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tloggingHandle.errorLog(e, \"TMC-STE01\");\n\t\t}\n\t\treturn returnList;\n\t}", "title": "" }, { "docid": "bd0bdf29625b425c0c0ebfc839dd5abd", "score": "0.45836514", "text": "@Override\n\tpublic String[] searchObjects(String searchID, ArrayList<String> outUIDs,\n\t\t\tArrayList<ArrayList<String>> outFilenames,\n\t\t\tArrayList<ArrayList<String>> outFileURLs) {\n\t\t\n\t\tString[] objects = null;\n\t\tif (searchID != null) {\n\n\t\t\tString responseBody = requestData(roboEarthBaseURL+requestObjectSuffix+searchID);\n\t\t\tif (responseBody != null && (responseBody.startsWith(\"[\") || responseBody.startsWith(\"{\"))) {\n\n\t\t\t\ttry {\n\t\t\t\t\t// Create a list of returned objects and their time stamps, ...\n\t\t\t\t\tObjectList objList = new ObjectList(responseBody);\n\n\t\t\t\t\tif (objList != null) {\n\n\t\t\t\t\t\tif (outUIDs != null) {\n\t\t\t\t\t\t\toutUIDs.clear();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (outFilenames != null) {\n\t\t\t\t\t\t\toutFilenames.clear();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (outFileURLs != null) {\n\t\t\t\t\t\t\toutFileURLs.clear();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tobjects = new String[objList.size()];\n\t\t\t\t\t\tfor (int i=0;i<objects.length; i++) {\n\t\t\t\t\t\t\tresponseBody = objList.get(i);\n\t\t\t\t\t\t\tobjects[i] = responseBody;\n\t\t\t\t\t\t\tif (outUIDs != null) {\n\t\t\t\t\t\t\t\toutUIDs.add(objList.getUID(i));\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (outFilenames != null) {\n\t\t\t\t\t\t\t\tString[] names = objList.getFilenames(i);\n\t\t\t\t\t\t\t\tif (names != null) {\n\t\t\t\t\t\t\t\t\tArrayList<String> nameList = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\tfor (String name : names) {\n\t\t\t\t\t\t\t\t\t\tnameList.add(name);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toutFilenames.add(nameList);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (outFileURLs != null) {\n\t\t\t\t\t\t\t\tString[] urls = objList.getFileURLs(i);\n\t\t\t\t\t\t\t\tif (urls != null) {\n\t\t\t\t\t\t\t\t\tArrayList<String> urlList = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\tfor (String url : urls) {\n\t\t\t\t\t\t\t\t\t\turlList.add(url);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toutFileURLs.add(urlList);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} catch (InvalidSyntaxException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} else {\n\t\t\tSystem.out.println(\"parameter error (null pointer)\");\n\t\t}\n\t\treturn objects;\n\n\t}", "title": "" }, { "docid": "7115d2ce351734a2731b8146aa2d7e70", "score": "0.4581346", "text": "public static void main(String[] args) {\n\t\tTrie trie = new Trie();\n trie.insert(\"flink\");\n trie.insert(\"netty\");\n trie.insert(\"mysql\");\n trie.insert(\"redis\");\n\n // false\n System.out.println(trie.search(\"mongodb\"));\n // true\n System.out.println(trie.search(\"redis\"));\n //false\n System.out.println(trie.search(\"my\"));\n // true\n System.out.println(trie.search(\"mysql\"));\n // true\n System.out.println(trie.startsWith(\"my\"));\n\t}", "title": "" }, { "docid": "9f5fdef58c0ed5b482fbfa164334a0bf", "score": "0.45678994", "text": "List<FileData> findByContent(String word);", "title": "" }, { "docid": "28477615a20cbe4d8c3c7c50f61943d1", "score": "0.45670456", "text": "public static void main(String args[]) throws IOException, URISyntaxException {\n String response = search(\"from:TwitterDev OR from:SnowBotDev OR from:DailyNASA\");\n System.out.println(response);\n }", "title": "" }, { "docid": "7347fe97c5affbe4e1f8a4161461107a", "score": "0.45627907", "text": "Boolean checkRef(){ \n String obj = \"xref\\\\s*\\\\d \\\\d\\\\s*[\\\\d{10} \\\\d{5} n\\\\s*|\\\\d \\\\d\\\\s*|\\\\d{10} \\\\d{5} f\\\\s*]+ *trailer *\\\\s*<< *\\\\s*/(.+)|( *)>>startxref\\\\d+%%EOF\"; \n Pattern p = Pattern.compile(obj);\n Matcher m = p.matcher(this.fileContentPrepared);\n return m.find(); \n }", "title": "" }, { "docid": "d139bdf7fa22ade318a5b97711f62e4e", "score": "0.4557506", "text": "private static String searchFor(String grepfor, Path path) throws IOException {\n\n final byte[] toSearch = grepfor.getBytes(StandardCharsets.UTF_8);\n StringBuilder report = new StringBuilder();\n int padding = 1; // need to scan 1 character ahead in case it is a word boundary.\n int lineCount = 0;\n int matchesCount = 0;\n boolean isInsideWord = false;\n boolean isLineOrWordEnd = false;\n\n try (FileChannel channel = FileChannel.open(path, StandardOpenOption.READ)) {\n\n final long channelLength = channel.size();\n int channelPtrPosition = 0;\n\n while (channelPtrPosition < channelLength) {\n\n long remaining = channelLength - channelPtrPosition;\n // int conversion is safe because of a safe MAPSIZE.. Assume a reaosnably sized toSearch.\n int tryQuotSize = MAPSIZE + toSearch.length + padding;\n int quotSize = (int)Math.min(tryQuotSize, remaining);\n // different limits depending on whether we are the last mapped segment.\n int limit = tryQuotSize == quotSize ? MAPSIZE : (quotSize - toSearch.length);\n MappedByteBuffer buffer = channel.map(MapMode.READ_ONLY, channelPtrPosition, quotSize);\n System.out.println(\"Mapped from \" + channelPtrPosition + \" for \" + quotSize);\n channelPtrPosition += (tryQuotSize == quotSize) ? MAPSIZE : quotSize;\n\n for (int i = 0; i < limit; i++) {\n\n final byte b = buffer.get(i);\n if (isLineOrWordEnd) {\n if (b == '\\n') {\n isLineOrWordEnd = false;\n isInsideWord = false;\n lineCount ++;\n }\n } else if (b == '\\n') {\n lineCount++;\n isInsideWord = false;\n } else if (b == '\\r' || b == ' ') {\n isInsideWord = false;\n } else if (!isInsideWord) {\n if (wordMatch(buffer, i, quotSize, toSearch)) {\n matchesCount++;\n i += toSearch.length - 1;\n if (report.length() > 0) {\n report.append(\", \");\n }\n report.append(lineCount);\n isLineOrWordEnd = true;\n } else {\n isInsideWord = true;\n }\n }\n }\n }\n }\n return \"Times found at--\" + matchesCount + \"\\nWord found at--\" + report;\n }", "title": "" }, { "docid": "923867006956808a5525458688730328", "score": "0.45552492", "text": "public static void main(String[] args) {\n\t\tString targetFile = \"a1.pdf\";\n\t\tString pathToSearch = \"/Users/jquigtar/toSearch\";\n\t\t//set target file name and beginning directory\n\t\tFindFile finder = new FindFile(10);\n\t\t//creates FindFile object with set MAX_NUMBER_OF_FILES_TO_FIND\n\t\t\n\t\ttry {\n\t\t\tfinder.directorySearch(targetFile, pathToSearch);\n\t\t\t//begins search of target file at beginning directory\n\t\t}catch(ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"Found target file more then \" + finder.getCount() + \" times\");\n\t\t\tSystem.out.println(\"Ending program.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"The target file was found \" + finder.getCount() + \" time(s)\");\n\t\tSystem.out.println();\n\t\t\n\t\tif(finder.getCount() > 0) {\n\t\t\tString [] files = finder.getFiles();\n\t\t\t//creates String array with locations of where the file was found\n\t\t\t//the print all of the locations\n\t\t\tSystem.out.println(\"Printing files found\");\n\t\t\t\n\t\t\tfor(int i = 0; i < finder.getCount(); i++) {\n\t\t\t\tSystem.out.println(files[i].toString());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8e0e7bdbfed8127b33fc1663a4efc709", "score": "0.45516974", "text": "public static boolean searchFile(MyFile mf, String keyword) {\n if (!mf.getName().toLowerCase().endsWith(\".txt\")) {\n return false;\n }\n //read the content of mf and see if keyword is in the content of mf or not\n /*You can use LineNumberReader to read the content of given mf and check out if\n the content of given mf contains keyword. This function should return true if \n the searching is found, otherwise return false*/\n\n String text = getTextFromFile(mf.getFullPath());\n String patternString = \".*\" + keyword + \".*\";\n Pattern pattern = Pattern.compile(patternString, Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(text);\n return matcher.find();\n\n }", "title": "" }, { "docid": "6b3ef038717646a17daf2b5a2f126aa6", "score": "0.45482808", "text": "private native int searchBinary(long hKey, int startIndex, byte[] value, String[] names);", "title": "" }, { "docid": "c579fc90b14172d0839a8c8c503c9823", "score": "0.4547649", "text": "protected static Array findFileResources(String type) {\n ApplicationContext ctx = ApplicationContext.getInstance();\n String root = FileRequestHandler.PATH_FILES.toString();\n Path path = FileRequestHandler.PATH_FILES.child(type, true);\n Dict dict;\n Metadata[] meta;\n String file;\n Array res = new Array();\n \n dict = (Dict) ctx.getStorage().load(PluginManager.PATH_INFO);\n meta = ctx.getStorage().lookupAll(path);\n for (int i = 0; i < meta.length; i++) {\n file = StringUtils.removeStart(meta[i].path().toString(), root);\n if (meta[i].isBinary() && file.endsWith(\".\" + type)) {\n res.add(file + \"?\" + dict.getString(\"version\", \"1\"));\n }\n }\n res.sort();\n return res;\n }", "title": "" }, { "docid": "0c2ab4c65794d13f9a4c0f20c8dc635e", "score": "0.45469484", "text": "@Override\n\tpublic void search_member() {\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString name;\n\t\t\t\n\t\t\tSystem.out.println(\"[회원검색]\");\n\t\t\tSystem.out.print(\"검색할 이름:\");\n\t\t\tname = br.readLine();\n\t\t\t\n\t\t\tComparator<MemberVO> comparator = new Comparator<MemberVO>() { //익명 클래스 \n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(MemberVO o1, MemberVO o2) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn o1.getName().compareTo(o2.getName());\n\t\t\t\t}\n\t\t\t};\n\t\t\tCollections.sort(lists,comparator);\n\t\t\t\n\t\t\tint n =0;\n\t\t\n\t\t\tIterator<MemberVO> it =lists.iterator();\n\t\t\t\n\t\t\twhile(it.hasNext()){\n\t\t\t\tMemberVO ob = it.next();\n\t\t\t\tif(ob.getName().startsWith(name)){\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"검색된 회원수 :\"+n);\n\t\t\tfor(MemberVO ob : lists){\n\t\t\t\t\n\t\t\t\tif(ob.getName().startsWith(name)){\n\t\t\t\t\tSystem.out.println(ob.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ie){\n\t\t\tie.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "db585dc1feabbddba8a672466d8247d2", "score": "0.45466328", "text": "static long searchpair_cmn(typval_C[] argvars, pos_C match_pos)\n {\n long retval = 0; /* default: FAIL */\n\n boolean save_p_ws = p_ws[0];\n long lnum_stop = 0;\n long time_limit = 0;\n\n theend:\n {\n /* Get the three pattern arguments: start, middle, end. */\n Bytes spat = get_tv_string_chk(argvars[0]);\n Bytes mpat = get_tv_string_chk(argvars[1]);\n Bytes epat = get_tv_string_chk(argvars[2]);\n if (spat == null || mpat == null || epat == null)\n break theend; /* type error */\n\n /* Handle the optional fourth argument: flags. */\n int[] flags = { 0 };\n int dir = get_search_arg(argvars[3], flags); /* may set \"p_ws\" */\n if (dir == 0)\n break theend;\n\n /* Don't accept SP_END or SP_SUBPAT.\n * Only one of the SP_NOMOVE or SP_SETPCMARK flags can be set.\n */\n if ((flags[0] & (SP_END | SP_SUBPAT)) != 0\n || ((flags[0] & SP_NOMOVE) != 0 && (flags[0] & SP_SETPCMARK) != 0))\n {\n emsg2(e_invarg2, get_tv_string(argvars[3]));\n break theend;\n }\n\n /* Using 'r' implies 'W', otherwise it doesn't work. */\n if ((flags[0] & SP_REPEAT) != 0)\n p_ws[0] = false;\n\n /* Optional fifth argument: skip expression. */\n Bytes skip;\n if (argvars[3].tv_type == VAR_UNKNOWN || argvars[4].tv_type == VAR_UNKNOWN)\n skip = u8(\"\");\n else\n {\n skip = get_tv_string_chk(argvars[4]);\n if (argvars[5].tv_type != VAR_UNKNOWN)\n {\n lnum_stop = get_tv_number_chk(argvars[5], null);\n if (lnum_stop < 0)\n break theend;\n if (argvars[6].tv_type != VAR_UNKNOWN)\n {\n time_limit = get_tv_number_chk(argvars[6], null);\n if (time_limit < 0)\n break theend;\n }\n }\n }\n if (skip == null)\n break theend; /* type error */\n\n retval = do_searchpair(spat, mpat, epat, dir, skip, flags[0], match_pos, lnum_stop, time_limit);\n }\n\n p_ws[0] = save_p_ws;\n\n return retval;\n }", "title": "" }, { "docid": "de262230469bb926f2c6bfa89c56dae7", "score": "0.45396468", "text": "public static void main(String[] args) {\n List<String> list = new ArrayList<>();\n search(list);\n }", "title": "" }, { "docid": "61915269d4fd8777907b91ea35b5bd81", "score": "0.45386323", "text": "public static void main(String[] args) {\n\t\tSearchString st = new SearchString();\r\n\t\tList<Business> blst = st.list;\r\n\t\tString prefix = \"bur\";\r\n\t\tfor (Business bs: blst) {\r\n\t\t\tString[] arr = bs.name.toLowerCase().split(\" \");\r\n\t\t\tfor(String str:arr) {\r\n\t\t\t\tif(str.startsWith(prefix)) {\r\n\t\t\t\t\tSystem.out.println(\"simple prefix matched:\" + bs.name);\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\tint[] lps = new int[prefix.length()];\r\n\t\t\r\n\t\tst.findLps(prefix, lps);\r\n\t\t\r\n\t\tSystem.out.println(\"lps:\" + Arrays.toString(lps));\r\n\t\t\r\n\t\tint M = prefix.length();\r\n\t\tfor(Business bs:blst) {\r\n\t\t\tint N = bs.name.length();\r\n\t\t\tint j = 0; //index of pattern\r\n\t\t\tint i = 0; //index of bs name\r\n\t\t\twhile(i < N) {\r\n\t\t\t\tif (prefix.charAt(j) == bs.name.toLowerCase().charAt(i)) {\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\tif( j == M) {\r\n\t\t\t\t\tSystem.out.println(\"find a match:\" + bs.name + \", at index:\" + (i-j));\r\n\t\t\t\t\tj = lps[j-1];\r\n\t\t\t\t}\r\n\t\t\t\telse if(i < N && prefix.charAt(j) != bs.name.toLowerCase().charAt(i)) {\r\n\t\t\t\t\tif(j == 0) {\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tj = lps[j-1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cbded9a25e7d9c2d3c7a3f9e67da55fc", "score": "0.45364523", "text": "public void binarySearch(){\n \n if(string_data == null){//Return if the file doesn't be loaded\n System.out.println(\"*xxxxxxxxxx[ NO SE HAN CARGADO DATOS :C ]xxxxxxxxxx*\");\n return;\n }\n \n SEARCH_OPTION = false;\n startSearchMenu();\n }", "title": "" }, { "docid": "b7059726ef339e48b20e4e1b05651917", "score": "0.45327422", "text": "private int search(String txt) {\n\t\t\tint N = txt.length();\n\t\t\tlong txtHash = hash(txt, M);\n\t\t\tif (patHash == txtHash && check(txt, 0)) // casamento\n\t\t\t\treturn 0;\n\t\t\tfor (int i = 1; i <= N - M; i++) {\n\t\t\t\ttxtHash = (txtHash + PRIME - RM * txt.charAt(i - 1) % PRIME) % PRIME;\n\t\t\t\ttxtHash = (txtHash * R + txt.charAt(i + M - 1)) % PRIME;\n\t\t\t\tif (patHash == txtHash)\n\t\t\t\t\tif (check(txt, i))\n\t\t\t\t\t\treturn i;\n\t\t\t}\n\t\t\treturn N;\n\t\t}", "title": "" }, { "docid": "3105ce8cc5622858b11821b4aec97cd3", "score": "0.45320326", "text": "public String search(Shark s) {\n\t\t String str = null;\n\t\ttry {\n\t\t File text = new File(fileName);\n\t\t\t Scanner sc = new Scanner(text);\n\t\t\t\n\t\t\twhile (sc.hasNextLine() == true)\n\t\t\t{ String shark = sc.nextLine(); \n\t\t\t\t\tif (shark.contains(s.getName())) \n\t\t\t\t\t{\n\t\t\t\t str = s.getName();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t\n\t\t\n\t}", "title": "" }, { "docid": "01d40a99f77e793d270b0c46efb1f7b0", "score": "0.45300978", "text": "@Override\r\n public void execute(String[] args) {\n if (args.length < 1 || args[0].isEmpty())\r\n throw new DukeException(\"Keywords not specified!\");\r\n \r\n // check : keywords for regex search\r\n boolean regexSearch = args[0].equals(\"-r\");\r\n if (regexSearch && args.length < 2)\r\n throw new DukeException(\"Keywords not specified for regex!\");\r\n \r\n // process\r\n List<String> found = regexSearch\r\n ? findRegex(String.join(\" \", Arrays.copyOfRange(args, 1, args.length)))\r\n : findSimple(String.join(\" \", args));\r\n \r\n if (found.isEmpty()) {\r\n ui.printFancy(\"No tasks matches your query!\");\r\n } else {\r\n StringBuilder builder = new StringBuilder();\r\n builder.append(\"Here are the matching tasks in your list:\\n\");\r\n for (String foundLine : found)\r\n builder.append(foundLine).append(\"\\n\");\r\n builder.deleteCharAt(builder.length() - 1);\r\n ui.printFancy(builder.toString());\r\n }\r\n }", "title": "" }, { "docid": "904daa09611516fea6e0a958964a82a4", "score": "0.45295262", "text": "protected abstract void search(Pattern pat);", "title": "" }, { "docid": "6aa349da1145081ad1daaf1947d0714f", "score": "0.4528147", "text": "private String[] search(String searchTerm) { \n \n \t // At this point, we have the URL of the coffee store info that resulted from the search which comes from the web serive we deploy on the Google Web Engine. \n \t //Now load the data we have\n \t try {\n \t \tURL u = new URL(\"http://1-dot-stellar-day-540.appspot.com/YoutubeDataAPIServlet?input=\"+searchTerm); \t \t\n \t \treturn getRemoteContent(u);\n \t } catch (Exception e) {\n \t e.printStackTrace();\n \t return null; // so compiler does not complain\n \t }\n\n }", "title": "" }, { "docid": "c74f12087ce5552bec5b3c64b9038408", "score": "0.45217952", "text": "public synchronized RTEntry[] _getAll()\r\n {\r\n Object[] oo_ = (Object[])map.get(new RTKey(0,0,0,0,0,0), \r\n drcl.data.Map.MATCH_WILDCARD);\r\n RTEntry[] ee_ = new RTEntry[oo_.length];\r\n System.arraycopy(oo_, 0, ee_, 0, oo_.length);\r\n return ee_;\r\n }", "title": "" }, { "docid": "df2247b2003e8abca9a45106cc5c325f", "score": "0.4517645", "text": "private Node<T> rSearch(Node<T> tail){return null;}", "title": "" }, { "docid": "521610ade44fdb25adceb729e9ca5229", "score": "0.4516887", "text": "private void print() throws IOException{\n\t\tString head = \"------------------------------------------------\";\n\t\tString searchDir = \"검색할 디렉토리 : \" + findDir.getAbsolutePath();\n\t\tString searchEx = \"검색할 파일 확장자 : \" + extendedFileName;\n\t\tString shWord = \"검색할 단어 : \" + searchWord;\n\t\tString sDelm = \"검색된 단어 양옆에 표시할 문자 : \" + delm;\n\t\tseachResult.add(head + \"\\n\");\n\t\tseachResult.add(searchDir + \"\\n\");\n\t\tseachResult.add(searchEx + \"\\n\");\n\t\tseachResult.add(shWord + \"\\n\");\n\t\tseachResult.add(sDelm + \"\\n\");\n\t\tseachResult.add(head + \"\\n\");\n\t\t\n\t\tSystem.out.println(head);\n\t\tSystem.out.println(searchDir);\n\t\t\n\t\tSystem.out.println(searchEx);\n\t\tSystem.out.println(shWord);\n\t\tSystem.out.println(sDelm);\n\t\tSystem.out.println(head);\n\t\t\n\t\tFile[] list = findDir.listFiles();\n\t\tList<File> searchedList = new ArrayList<File>();\n\t\tfor(File f : list) {\n\t\t\tif(f.isFile()) {\n\t\t\t\tString ef = getExtendedFileName(f);\n\t\t\t\tif(ef.compareToIgnoreCase(extendedFileName) == 0) {\n\t\t\t\t\tsearchedList.add(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(searchedList.size() > 0) {\n\t\t\tint foundCount = 0;\n\t\t\tfor(File f : searchedList) {\n\t\t\t\tString fn = f.getName();\n\t\t\t\tseachResult.add(\"파일명 : \" + fn + \"\\n\");\n\t\t\t\t\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\t\t\tString data=\"\";\n\t\t\t\tint atomCount = 0;\n\t\t\t\twhile((data = br.readLine()) != null) {\n\t\t\t\t\tif(data.contains(searchWord)) {\n\t\t\t\t\t\tfoundCount++;\n\t\t\t\t\t\tatomCount++;\n\t\t\t\t\t\tseachResult.add(data.replaceAll(searchWord, String.valueOf(delm+searchWord+delm)).trim() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t\tif(atomCount < 1) {\n\t\t\t\t\tseachResult.add(\"결과가 없습니다.\\n\");\n\t\t\t\t}\n\t\t\t\tseachResult.add(\"\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tif(foundCount > 0) {\n\t\t\t\tSystem.out.println(seachResult.toString());\n\t\t\t} else {\n\t\t\t\tseachResult.add(\"결과가 없습니다.\" + \"\\n\");\n\t\t\t}\n\t\t} else\n\t\t\tSystem.out.println(\"결과가 없습니다.\");\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "15a81cc39faf1c691f241fffa87967bb", "score": "0.451521", "text": "@DISPID(310) //= 0x136. The runtime will prefer the VTID if present\r\n @VTID(235)\r\n boolean matchFuzzyByte();", "title": "" }, { "docid": "49f02c504050cc3f26a5bcc13c324c78", "score": "0.45145294", "text": "mrtech.smarthome.rpc.Models.ZoneQuery getQuery();", "title": "" }, { "docid": "dee074e71e916f7457c70f7919ad3b3e", "score": "0.4511835", "text": "public static boolean loadCmd_old(String strCmd, StrideTrie trie) {\n\n String strFile = \"\";\n\n try {\n\n if (strCmd.isEmpty()) return false;\n String[] strs = strCmd.split(\"\\\\s+\");\n if (strs[0].compareTo(\"load\") != 0) return false;\n\n if (strs.length < 2) {\n System.out.println(\" Load filename is needed!\");\n } else {\n strFile = strs[1];\n if (strFile.charAt(0) != '/') {\n strFile = Util.getCurDir() + strFile;\n }\n int maxNum = 0;\n if (strs.length >= 3) {\n maxNum = Integer.parseInt(strs[2]);\n }\n //System.out.println(\"Current Directory: \" + Util.getCurDir());\n\n long t1 = System.nanoTime();\n long t11 = System.currentTimeMillis();\n loadFromFile(trie, strFile, maxNum);\n long t2 = System.nanoTime();\n long t22 = System.currentTimeMillis();\n\n long between = t2 - t1;\n long ms = between / 1000;\n long milis = (t22 - t11);\n System.out.println(\"Total time is : \" + ms + \" milisecond. \" + milis + \" milisecond. insert time =\" + milis / trie.m_total + \" milisecond.\");\n System.out.println(\"Total entries is : \" + trie.m_total);\n }\n\n //get ip address and netmasklen\n\n } catch (Exception ex) {\n System.out.println(strCmd + \" failed!\");\n //ex.printStackTrace();\n return false;\n }\n return true;\n\n }", "title": "" }, { "docid": "ede30c6e82cdd6e0fe18b29834e29091", "score": "0.45106024", "text": "public static void search() {\n System.out.println(\"Для поиска введите фамилию\");\n System.out.println(\"Для выхода нажмите 0\");\n while (true) {\n Scanner scan = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n String surname = scan.nextLine();\n if(surname.equals(\"0\"))\n break;\n try {\n File file = new File(\"notebook.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader reader = new BufferedReader(fr);\n String line = reader.readLine();\n while (line != null) {\n if (surname.equalsIgnoreCase(line.split(\" \")[0])) {\n System.out.println(line + \"\\n\");\n }\n line = reader.readLine();\n }\n System.out.println(\"Введите фамилию\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "edbff6b843ffcbc9a16ccdf4354cbc22", "score": "0.45033762", "text": "public int searchIfExists(String tn) \r\n {\r\n \t\r\n \tint found = -1;\r\n \tSystem.out.println(\"TN passed in searchIfExists function in storagelist: \" + tn);\r\n \tfor(Package p : packages)/*int index = 0; index < packages.size(); index++)*/\r\n \t{\r\n \t\tSystem.out.println(\"In for loop\");\r\n \t\tString tempTrackingNumb = p.getTrackingNumber();\r\n \t\tSystem.out.println(\"temp tn: \" + tempTrackingNumb);\r\n \t\tif(tn.equals(tempTrackingNumb))/*p.get(index).getTrackingNumber()))*/\r\n \t\t{\r\n \t\t\tSystem.out.println(\"In if\");\r\n \t\t\tfound = packages.indexOf(p);\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \t\r\n \tSystem.out.println(\"Here is found\" + found);\r\n \treturn found;\r\n }", "title": "" }, { "docid": "b24323a3267ef06cb2d02a83ed1db1a1", "score": "0.4500704", "text": "@Override\n\tpublic MemberVO search_member(MemberVO rec) {\n\t\t\n\t\tIterator<MemberVO> it = lists.iterator();\n\t\t\n\t\twhile(it.hasNext()){\n\t\t\tMemberVO ob = it.next();\n\t\t\t\n\t\t\tif(ob.equals(rec))\n\t\t\t\treturn ob;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0534b99d2801f55d97114fa4117645c5", "score": "0.44995126", "text": "private java.util.List<com.baidu.location.d.h> e() {\n /*\n r9 = this;\n r2 = 0;\n r3 = new java.util.ArrayList;\n r3.<init>();\n r4 = new java.util.ArrayList;\n r4.<init>();\n r0 = new java.io.File;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1 = \"/proc/mounts\";\n r0.<init>(r1);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1 = r0.exists();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r1 == 0) goto L_0x0058;\n L_0x0018:\n r1 = new java.util.Scanner;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1.<init>(r0);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n L_0x001d:\n r0 = r1.hasNext();\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n if (r0 == 0) goto L_0x0055;\n L_0x0023:\n r0 = r1.nextLine();\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n r5 = \"/dev/block/vold/\";\n r5 = r0.startsWith(r5);\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n if (r5 == 0) goto L_0x001d;\n L_0x002f:\n r5 = 9;\n r6 = 32;\n r0 = r0.replace(r5, r6);\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n r5 = \" \";\n r0 = r0.split(r5);\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n if (r0 == 0) goto L_0x001d;\n L_0x003f:\n r5 = r0.length;\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n if (r5 <= 0) goto L_0x001d;\n L_0x0042:\n r5 = 1;\n r0 = r0[r5];\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n r3.add(r0);\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n goto L_0x001d;\n L_0x0049:\n r0 = move-exception;\n L_0x004a:\n r0.printStackTrace();\t Catch:{ all -> 0x011a }\n if (r1 == 0) goto L_0x0052;\n L_0x004f:\n r1.close();\n L_0x0052:\n r0 = r9.b;\n return r0;\n L_0x0055:\n r1.close();\t Catch:{ Exception -> 0x0049, all -> 0x0117 }\n L_0x0058:\n r0 = new java.io.File;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1 = \"/system/etc/vold.fstab\";\n r0.<init>(r1);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1 = r0.exists();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r1 == 0) goto L_0x00b4;\n L_0x0065:\n r1 = new java.util.Scanner;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1.<init>(r0);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n L_0x006a:\n r0 = r1.hasNext();\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n if (r0 == 0) goto L_0x00b1;\n L_0x0070:\n r0 = r1.nextLine();\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n r5 = \"dev_mount\";\n r5 = r0.startsWith(r5);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n if (r5 == 0) goto L_0x006a;\n L_0x007c:\n r5 = 9;\n r6 = 32;\n r0 = r0.replace(r5, r6);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n r5 = \" \";\n r0 = r0.split(r5);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n if (r0 == 0) goto L_0x006a;\n L_0x008c:\n r5 = r0.length;\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n if (r5 <= 0) goto L_0x006a;\n L_0x008f:\n r5 = 2;\n r0 = r0[r5];\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n r5 = \":\";\n r5 = r0.contains(r5);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n if (r5 == 0) goto L_0x00a5;\n L_0x009a:\n r5 = 0;\n r6 = \":\";\n r6 = r0.indexOf(r6);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n r0 = r0.substring(r5, r6);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n L_0x00a5:\n r4.add(r0);\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n goto L_0x006a;\n L_0x00a9:\n r0 = move-exception;\n r2 = r1;\n L_0x00ab:\n if (r2 == 0) goto L_0x00b0;\n L_0x00ad:\n r2.close();\n L_0x00b0:\n throw r0;\n L_0x00b1:\n r1.close();\t Catch:{ Exception -> 0x0049, all -> 0x00a9 }\n L_0x00b4:\n r0 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r1 = r0.getAbsolutePath();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r0 = r9.b;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r5 = new com.baidu.location.d.h;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r6 = 0;\n r7 = \"Auto\";\n r5.<init>(r1, r6, r7);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r0.add(r5);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r3 = r3.iterator();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n L_0x00cd:\n r0 = r3.hasNext();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r0 == 0) goto L_0x010e;\n L_0x00d3:\n r0 = r3.next();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r0 = (java.lang.String) r0;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r5 = r4.contains(r0);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r5 == 0) goto L_0x00cd;\n L_0x00df:\n r5 = r0.equals(r1);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r5 != 0) goto L_0x00cd;\n L_0x00e5:\n r5 = new java.io.File;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r5.<init>(r0);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r6 = r5.exists();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r6 == 0) goto L_0x00cd;\n L_0x00f0:\n r6 = r5.isDirectory();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r6 == 0) goto L_0x00cd;\n L_0x00f6:\n r5 = r5.canWrite();\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n if (r5 == 0) goto L_0x00cd;\n L_0x00fc:\n r5 = r9.b;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r6 = new com.baidu.location.d.h;\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r7 = 0;\n r8 = \"Auto\";\n r6.<init>(r0, r7, r8);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n r5.add(r6);\t Catch:{ Exception -> 0x010a, all -> 0x0115 }\n goto L_0x00cd;\n L_0x010a:\n r0 = move-exception;\n r1 = r2;\n goto L_0x004a;\n L_0x010e:\n if (r2 == 0) goto L_0x0052;\n L_0x0110:\n r2.close();\n goto L_0x0052;\n L_0x0115:\n r0 = move-exception;\n goto L_0x00ab;\n L_0x0117:\n r0 = move-exception;\n r2 = r1;\n goto L_0x00ab;\n L_0x011a:\n r0 = move-exception;\n r2 = r1;\n goto L_0x00ab;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.location.d.i.e():java.util.List<com.baidu.location.d.h>\");\n }", "title": "" }, { "docid": "38e2bf12568d1e98a9e50f3cc61b3283", "score": "0.44951797", "text": "public static void searchWomanCloth(){\n\n }", "title": "" }, { "docid": "a53f5aca80f72dade2b2bbbc4239ab66", "score": "0.4494928", "text": "private String query(String commandTail){\n String[] keyArray = commandTail.split(\"\\\\.\");\n return (commandTail + \" : \" + this.trie.querySearch(keyArray, 0, this.trie.getRoot()));\n }", "title": "" }, { "docid": "17d6a9b4138c8cedddbd9ea046c35aee", "score": "0.44909534", "text": "public interface EntryFinder {\n\n /**\n * @param entry przetwarzany rekord\n * @param names nazwy, ktorych szukamy w rekordach\n * @return true jesli przetwarzany spelnia podane kryteria\n */\n\n boolean found (Entry entry, String[] names);\n\n}", "title": "" }, { "docid": "75dcd617f8d70d7d86000cc2c63af34a", "score": "0.44849312", "text": "public List<CountryTelephonePrefix> find();", "title": "" } ]
97f4ab8befd5772cd933f0aad45ab323
Gets the balance of an address
[ { "docid": "6874c3d810673da71d49240fbf4e6c73", "score": "0.7348201", "text": "public Request<BigInteger> getBalance(Address address) {\n return getBalance(address, null);\n }", "title": "" } ]
[ { "docid": "163fb4d96527528f10c20e6042ef08ae", "score": "0.79943", "text": "public JSONObject getBalance(String address) throws Exception\n {\n JSONObject result = (JSONObject) query(\"/chains/main/blocks/head/context/contracts/\" + address + \"/balance\", null);\n\n return result;\n }", "title": "" }, { "docid": "318acb821a0c0dbccbe297d204c83927", "score": "0.70742804", "text": "org.qsn.api.rpc.grpc.proto.entity.common.BInteger getBalance();", "title": "" }, { "docid": "226700081304a20440d7032c5ac1da96", "score": "0.6966432", "text": "String getBalance(String customerId);", "title": "" }, { "docid": "9faf2071e8b6a7922bdba74fa9b802d0", "score": "0.6960858", "text": "org.chromium.components.sync.protocol.WalletPostalAddress getAddress();", "title": "" }, { "docid": "d75a9257a611d1686afabb172ff08880", "score": "0.6893143", "text": "double getBalance();", "title": "" }, { "docid": "d75a9257a611d1686afabb172ff08880", "score": "0.6893143", "text": "double getBalance();", "title": "" }, { "docid": "0b8db50de4291db7f266f643fa55dce5", "score": "0.68741107", "text": "BigDecimal getBalance();", "title": "" }, { "docid": "1ca9df150e64539c73f5aa3aabfbc339", "score": "0.6861547", "text": "public Request<BigInteger> getBalance(Address address, BigInteger height) {\n long requestId = System.currentTimeMillis();\n RpcObject.Builder builder = new RpcObject.Builder()\n .put(\"address\", new RpcValue(address));\n if (height != null) {\n builder.put(\"height\", new RpcValue(height));\n }\n foundation.icon.icx.transport.jsonrpc.Request request = new foundation.icon.icx.transport.jsonrpc.Request(\n requestId, \"icx_getBalance\", builder.build());\n return provider.request(request, findConverter(BigInteger.class));\n }", "title": "" }, { "docid": "0fa0facb0306f03efb522ace596bc910", "score": "0.6702136", "text": "Account getBalance(long accountNumber, String userName) throws RemoteException;", "title": "" }, { "docid": "eb70946ce6d27e8663ce7b2158162eb6", "score": "0.6684599", "text": "WalletDto getBalance(String emailId);", "title": "" }, { "docid": "8538bbda904c380074a3ab97fe603e03", "score": "0.663719", "text": "@GetMapping(path = \"/accounts/{accountId}/balance\")\n @CrossOrigin(origins = \"http://localhost:4200\")\n public BigDecimal retrieveAccountBalance(@PathVariable long accountId) {\n Optional<Account> account = accountRepository.findById(accountId);\n if (!account.isPresent()) {\n throw new AccountNotFoundException(\n String.format(\"Account %s not found.\", accountId));\n }\n return account.get().getAccountBalance();\n }", "title": "" }, { "docid": "eebe954fcabb196269bc5a922858eabb", "score": "0.66312075", "text": "private double getAccountBalance(String accountId) {\n System.out.println(\"Checking balance for Account \" + accountId);\n return server.getAccountBalance(accountId);\n }", "title": "" }, { "docid": "a1c691b4a0c6a8c6362447461d3fd055", "score": "0.66259277", "text": "public double getBalance(){\r\n\t\treturn accountBal;\r\n\t}", "title": "" }, { "docid": "40c774326c7697a0872c4a792f532b7f", "score": "0.6560463", "text": "public static double getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "53b37f1c5c999bfa1439b950402690b1", "score": "0.6553896", "text": "public float getBalance()\r\n\t\tthrows AccountException;", "title": "" }, { "docid": "bae6e5576bc5b2208ac3f57530037c6d", "score": "0.6553822", "text": "public static double getBalance() {\r\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "5638d64bb2b14fc055b37dfb2da05d61", "score": "0.6552033", "text": "public double getTotalBalance();", "title": "" }, { "docid": "425b86f5578f6c47d6b214b5b3163540", "score": "0.6527634", "text": "public Integer balance ( String accno ) throws Exception {\n Account myacc = retrieve(accno);\n return myacc.balance();\n }", "title": "" }, { "docid": "d3264e3b6b0f44029d6044809c1d2034", "score": "0.6523343", "text": "public long getBalance() {\n return balance;\n }", "title": "" }, { "docid": "3f84bc34c8bb403afa3bf0b9e2beb3b4", "score": "0.65202415", "text": "public okhttp3.Call getAddressBalanceAsync(String address, final ApiCallback<BigDecimal> _callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener _progressListener = null;\n ProgressRequestBody.ProgressRequestListener _progressRequestListener = null;\n\n if (_callback != null) {\n _progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n _callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n _progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n _callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n okhttp3.Call localVarCall = getAddressBalanceValidateBeforeCall(address, _progressListener, _progressRequestListener);\n Type localVarReturnType = new TypeToken<BigDecimal>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "title": "" }, { "docid": "fb8d5c56c6ba098c39170ea4766fb557", "score": "0.6509852", "text": "public double getBalance() {\r\n return balance.getBalance();\r\n }", "title": "" }, { "docid": "ad639d11835d8be6d589e356e235d5bd", "score": "0.64996314", "text": "@GET\n @Path(\"/{accountId}/balance\")\n public BigDecimal getBalance(@PathParam(\"accountId\") Long accountId) throws BaseException {\n final CustomerAccount customerAccount = daoFactory.getCustomerAccountDAO().getCustomerAccountById(accountId);\n\n if(customerAccount == null){\n throw new WebApplicationException(\"CustomerAccount not found\", Response.Status.NOT_FOUND);\n }\n return customerAccount.getBalance();\n }", "title": "" }, { "docid": "9d6d1da1e11b392bc477477280ba21e4", "score": "0.64644825", "text": "public long getBalance() {\n return this.balance;\n }", "title": "" }, { "docid": "56abb8e364972b2e972faa0bf70492a2", "score": "0.6439673", "text": "public double getBalance() {\n return accountBalance;\n }", "title": "" }, { "docid": "9c0e89714290cb0ba3accad62c69f4b4", "score": "0.643455", "text": "public okhttp3.Call getAddressBalanceCall(String address, final ProgressResponseBody.ProgressListener _progressListener, final ProgressRequestBody.ProgressRequestListener _progressRequestListener) throws ApiException {\n Object localVarPostBody = new Object();\n\n // create path and map variables\n String localVarPath = \"/ins/addr/{address}/balance\"\n .replaceAll(\"\\\\{\" + \"address\" + \"\\\\}\", localVarApiClient.escapeString(address.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if (_progressListener != null) {\n localVarApiClient.setHttpClient(localVarApiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {\n @Override\n public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {\n okhttp3.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), _progressListener))\n .build();\n }\n }).build());\n }\n\n String[] localVarAuthNames = new String[] { };\n return localVarApiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _progressRequestListener);\n }", "title": "" }, { "docid": "a413e3eaca3dc2bd64abbf32bf30b381", "score": "0.6427729", "text": "public int getBalance() {\n return balance;\n }", "title": "" }, { "docid": "39e88c958156f280cd4bccef42db9552", "score": "0.64060915", "text": "public abstract BigDecimal getAccountBalance(Long accountNum);", "title": "" }, { "docid": "1ae852602153c858fe6eb70f503afb69", "score": "0.63917464", "text": "public Long getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "4b55be11345ee8bd00f7359dc16526b4", "score": "0.6385846", "text": "public double getBalance() {\n if(balance>0)\n return balance;\n else\n return 0.0;\n }", "title": "" }, { "docid": "e325d22d7799f10cf60c6446820d13ac", "score": "0.63794196", "text": "public double getBalance() {\n \n return balance;\n }", "title": "" }, { "docid": "99559f02b8288840e340da594ddcdc24", "score": "0.63744736", "text": "public BigDecimal getBalance() {\n return balance;\n }", "title": "" }, { "docid": "05951aa361b52c066559cf3dd1b4ce1b", "score": "0.6368939", "text": "public double getBalance()\r\n\t{\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "92719646a8c05049b2277fbb6849467f", "score": "0.63643503", "text": "public double getBalance()\r\n\t{\r\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "40eb524c5eafa7030473afc2e0bae691", "score": "0.6355988", "text": "public double getBalance() { return balance; }", "title": "" }, { "docid": "34a0a4f2aaeb60c583a5c39f7085e054", "score": "0.63533014", "text": "public int getBalance()\n {\n int bal = (bringForwardBalance + purchaseIn + disposeIn + transferIn + allocateIn + salesIn + adjustmentIn + loanIn + discrIn + freeIn) - (purchaseOut + disposeOut + transferOut + allocateOut + salesOut + discrOut + returnOut + adjustmentOut + loanOut + freeOut);\n return bal;\n }", "title": "" }, { "docid": "baf187f3d72c18f9240eab58fde29889", "score": "0.6349563", "text": "public double getBalance(){\n\t\treturn this.balance;\n\t}", "title": "" }, { "docid": "e1a61730d60f9502a4bfbb2b6f1d1b66", "score": "0.63489485", "text": "double viewBalance(BankAccount account);", "title": "" }, { "docid": "00d53c46e0f7d0825ec4866d2459c858", "score": "0.6330284", "text": "public double getBalance() {\n return balance;\n }", "title": "" }, { "docid": "00d53c46e0f7d0825ec4866d2459c858", "score": "0.6330284", "text": "public double getBalance() {\n return balance;\n }", "title": "" }, { "docid": "00d53c46e0f7d0825ec4866d2459c858", "score": "0.6330284", "text": "public double getBalance() {\n return balance;\n }", "title": "" }, { "docid": "00d53c46e0f7d0825ec4866d2459c858", "score": "0.6330284", "text": "public double getBalance() {\n return balance;\n }", "title": "" }, { "docid": "7fcfb9063d504f20d5143fa5a4458dba", "score": "0.6327314", "text": "public int getBalance() {\n return Balance;\n }", "title": "" }, { "docid": "7c36ce15840c09d85bb8525b44cdd1be", "score": "0.6316444", "text": "public ApiResponse<BigDecimal> getAddressBalanceWithHttpInfo(String address) throws ApiException {\n okhttp3.Call localVarCall = getAddressBalanceValidateBeforeCall(address, null, null);\n Type localVarReturnType = new TypeToken<BigDecimal>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "title": "" }, { "docid": "e15a957c3c040c5ac6f94c9b1372328d", "score": "0.63089037", "text": "long getBalance() {\r\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "9226ab4d5d19b6a636c9dcbb52204855", "score": "0.6302077", "text": "public double getBalance () {\n return balance;\n }", "title": "" }, { "docid": "2c652f6fc6ecbe90e355e92582caa1e5", "score": "0.63008344", "text": "public double getBalance() {\n return this.balance;\n }", "title": "" }, { "docid": "5fba6e3861d5bb69fcd4cd6432586b5f", "score": "0.6291708", "text": "public double getBalance()\n {\n return balance;\n }", "title": "" }, { "docid": "5fba6e3861d5bb69fcd4cd6432586b5f", "score": "0.6291708", "text": "public double getBalance()\n {\n return balance;\n }", "title": "" }, { "docid": "a89a6f0f886e8655ba632f2a6b8ff24b", "score": "0.6290685", "text": "public double getBalance() {\r\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "8122700bc0a8b19707ce03d917f3fb5c", "score": "0.628895", "text": "@Override\n\tpublic double getBalance() {\n\t\treturn balance;\n\n\t}", "title": "" }, { "docid": "4699b9d5919c1d07c2a3f5d08e8e9f67", "score": "0.62841314", "text": "public double getbalance() {\r\n return balance; \r\n }", "title": "" }, { "docid": "4213e19e39d47b4de00dd3dd434591df", "score": "0.62777233", "text": "public float getBalance() {\n return balance;\n }", "title": "" }, { "docid": "9dde8aa8a7e0c0a62614863ec58c9f16", "score": "0.62753975", "text": "public int balance() {\t\t\t\t\t\t\t\t// return [balance] from [account object 0-1000]\n\t\treturn balance;\t\t\t\t\t\t\t\t\t// referenced by [bank object] [balance method]\n\t}", "title": "" }, { "docid": "8d55e859e5fc1d8af0767c355394d8cf", "score": "0.6267176", "text": "public double getBalance () {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "818adf46aea04d37da85e58a7bd020b4", "score": "0.62659305", "text": "public double getBalance() {\n\n return balance;\n }", "title": "" }, { "docid": "2bcaa63105d1368de6241ed97674ae67", "score": "0.6264356", "text": "public double getSavingsBalance(){\r\n return sAccount.getBalance();\r\n }", "title": "" }, { "docid": "154512114df9a2968ff4d287a264d1d2", "score": "0.6259973", "text": "public double getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "154512114df9a2968ff4d287a264d1d2", "score": "0.6259973", "text": "public double getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "c9457ba80f827682e0c1b81124bb5c0f", "score": "0.6259787", "text": "public double getBalance ()\n {\n return this.balance;\n }", "title": "" }, { "docid": "9fc5778e5bfd77a5e57a7de881c5e6ad", "score": "0.62584674", "text": "@Override\n public double getBalance() {\n return balance;\n }", "title": "" }, { "docid": "ff7d5ef3cf3f81dec9c61546d4515823", "score": "0.6256353", "text": "@GetMapping(\"/acconts/{code}\")\n public Double getBalanceAccount( @PathVariable String code) {\n return clientBankDomainServiceAdapter.checkBalanceAccount(code);\n }", "title": "" }, { "docid": "07a0cf9d2727e79a462b012268b58df8", "score": "0.6251926", "text": "public double getBalance() {\n\t\treturn this.balance;\n\t}", "title": "" }, { "docid": "e91aa62da1651c4bb319279749384615", "score": "0.62316674", "text": "@Override\n\tpublic double getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "a7f08699e38005ad741e5f671029b876", "score": "0.6227236", "text": "public int getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "e9b2548841534e68484b162a7dd97568", "score": "0.62240565", "text": "public double getAccountBalance() {\r\n return accountBalance;\r\n }", "title": "" }, { "docid": "b321962242dea3a053a3a72c06814770", "score": "0.62193507", "text": "public double getBalance()\r\n {\r\n return balance;}", "title": "" }, { "docid": "6e604f8f21be16a727f4762d94686803", "score": "0.6214812", "text": "public List<BalanceAssetGeneral> getAddressBalances(String address,int minconf,boolean includelocked) throws HdacException {\r\n\t\tList<BalanceAssetGeneral> balance = new ArrayList<BalanceAssetGeneral>();\r\n\r\n\t\tObject objectBalances = executeGetAddressBalances(address,minconf,includelocked);\r\n\t\tbalance = BalanceFormatter.formatBalanceAssetsGeneral((ArrayList<Object>) objectBalances);\r\n\r\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "ed0727ab6dc1a9e181e56005cbfd584d", "score": "0.6213467", "text": "@Test\n public void getBalance() {\n String result = client.processRequest(getBalance, new GetBalance(authToken, donaldAccount.getiBAN()));\n assertThat(result, hasJsonPath(\"result\"));\n assertThat(result, hasJsonPath(\"result.balance\"));\n\n result = client.processRequest(getBalance, new GetBalance(authToken, dagobertAccount.getiBAN()));\n assertThat(result, hasJsonPath(\"result\"));\n assertThat(result, hasJsonPath(\"result.balance\"));\n }", "title": "" }, { "docid": "0462b8a7e79e4c486291ba9cb6c6986f", "score": "0.61986893", "text": "public int getAccountBalance() {\n\t\t\n\t\treturn account_Balance[0];\n\t}", "title": "" }, { "docid": "7cd5c4518c0699f530541f353ef912fb", "score": "0.61962575", "text": "public float getBalance() {\r\n return balance;\r\n }", "title": "" }, { "docid": "2ff8ae3c2bbaad7f68cbe20061ae628f", "score": "0.6195852", "text": "public double getBalance()\r\n {\r\n return fundsbalance;\r\n }", "title": "" }, { "docid": "872c6a6d4e77e38e854d82abe2c0ba4e", "score": "0.61953586", "text": "public int getBalance(){ \r\n\t return balance; \r\n\t}", "title": "" }, { "docid": "e156374ee8b1f45f0a50819f07e8a8a2", "score": "0.6194731", "text": "SimplePromise<BigInteger> getAccountBalance(String accountId);", "title": "" }, { "docid": "3c9fa43dd2f4af0b85479609270cdc47", "score": "0.61846006", "text": "public double getTotalBalance() {\r\n return totalBalance;\r\n }", "title": "" }, { "docid": "3f7dfd2bf9a02cafccf1aa64431b0769", "score": "0.6180148", "text": "@RequestMapping(value=\"/balance\", method=RequestMethod.GET)\n\tpublic Response getBalance() {\n\t\t/**This should return status of each kind of notes */\n\t\tLOGGER.debug(\"withdrawAmount - begins\");\n\t\treturn atmHandler.getBalance();\n\t}", "title": "" }, { "docid": "36b26092d30a8445990cf57f64ab3b6d", "score": "0.6172907", "text": "private void getBalance() {\n GetBalanceRequest request = new GetBalanceRequest(MERCHANT_ID, isSandbox);\n AmazonPay.getBalance(this, request, new APayCallback() {\n @Override\n public void onSuccess(Bundle bundle) {\n final GetBalanceResponse response = GetBalanceResponse.fromBundle(bundle);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n ((TextView) findViewById(R.id.balanceView)).setText(response.getBalance()+\"INR\");\n\n\n showSignOutView();\n// enableUnsafeUiElements();\n// hideProgressBar();\n }\n });\n }\n\n @Override\n public void onError(final APayError aPayError) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // ResponseProcessor.processErrorForTextView(aPayError, (TextView) findViewById(R.id.aPayMoreInfoView), \"AmazonPayActivity\");\n // ((TextView) findViewById(R.id.balanceView)).setText(\"Balance: -\");\n showLinkAccountView();\n// disableUnsafeUiElements();\n// hideProgressBar();\n }\n });\n\n }\n });\n }", "title": "" }, { "docid": "d33f5da0df0f2c35dd56d471a936224b", "score": "0.61698437", "text": "public synchronized double getbalance(double value){\n return value;\n }", "title": "" }, { "docid": "ad63f95b82fe8a6697e6e09c4d3e8b87", "score": "0.61505747", "text": "@Override\n\tpublic int getBalance() {\n\t\treturn this.balance;\n\t}", "title": "" }, { "docid": "a0970fc906f02730bf4fa9350220750c", "score": "0.614464", "text": "@GetMapping(\"/account/balance\")\n public double getAccountBalance(@RequestBody String IBAN) {\n Account currentAccount = accountServiceImp.findByIBAN(IBAN);\n return currentAccount.getBalance();\n }", "title": "" }, { "docid": "f9e030207005793c5dfcb7a0f32591da", "score": "0.6113705", "text": "public double getBalance() {\n LOGGER.trace(\"Entering the Savings getBalance() with no parameters.\");\n\n String inputString = balance.getText();\n double value = -987.0; // -987.0 for invalid field\n\n // valid input field\n inputString = UTILS.removeDollarFormatSpecialCharacters(inputString);\n if (VERIFIER.checkField(inputString, UTILS.getCurrencyName())) {\n try {\n value = new Double(inputString);\n } catch (NumberFormatException e) {\n UTILS.invalidNumber(\"Invalid Savings balance(\" + inputString + \").\");\n }\n }\n\n LOGGER.trace(\"Leaving the Savings getBalance().\");\n LOGGER.trace(RETURNING + value + \">\");\n\n return value;\n }", "title": "" }, { "docid": "08e51f6ae45ac9b156f4b71c404db474", "score": "0.611093", "text": "public double getAcctBalance(){\n\t\t\n\t\treturn acctBalance;\n\t\t\n\t}", "title": "" }, { "docid": "203ee96a1f56f4eb45f87626446f9240", "score": "0.6102519", "text": "public static int getbalance() {\n return ((one * 1) + (five * 5) + (ten * 10));\n }", "title": "" }, { "docid": "775a020e612bf59d3b191fa01fc51f50", "score": "0.60938966", "text": "public java.lang.String getAddonBalance(){\n return localAddonBalance;\n }", "title": "" }, { "docid": "467b8b7a5c261df90ded253faf7ac51b", "score": "0.6080585", "text": "public double getBalance(){\r\n return balance;\r\n }", "title": "" }, { "docid": "6f5438e7c75c776933684ab9c9b0be87", "score": "0.6063436", "text": "protected BigDecimal getAcctBalance()\n\t{\n\t\tBigDecimal result = Env.ZERO;\n\t\tfor (int i = 0; i < m_lines.size(); i++)\n\t\t{\n\t\t\tFactLine line = (FactLine)m_lines.get(i);\n\t\t\tresult = result.add(line.getAcctBalance());\n\t\t}\n\t//\tlog.fine(result.toString());\n\t\treturn result;\n\t}", "title": "" }, { "docid": "59bc78015597a8fb85502138b0aef381", "score": "0.60570276", "text": "public String getBankAddr() {\n return bankAddr;\n }", "title": "" }, { "docid": "c8b5db4e981d142a4ad9f6ffa31e710f", "score": "0.60376006", "text": "@Override\r\n\tpublic int getBalance(int accountNum, int custid) throws BankException {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "61bd1da27b337703905a29a1be02fa13", "score": "0.60337514", "text": "public double getBalance(){\n return balance;\n }", "title": "" }, { "docid": "a5f283b0e9c71c7534f133a3d321abcf", "score": "0.6031893", "text": "public String getBalance() {\n return DumpUtil.getRubles(sector(4).bytes(0, 0, 4));\n }", "title": "" }, { "docid": "d45c1e8eb9683b954c56dc5948a6f305", "score": "0.602522", "text": "public int getBalance(int accountNumber) {\n return accounts.get(accountNumber);\n }", "title": "" }, { "docid": "b3e1383622c92d4b370ff7760d75b9ae", "score": "0.6016432", "text": "public double getTotalBalance(){\n double sum = 0;\n\n for(double i : accounts)\n sum += i;\n\n return sum;\n }", "title": "" }, { "docid": "7e1b600a3c5e4c690beba4f4e6401c38", "score": "0.6008593", "text": "BigDecimal getOutstandingBalance() throws Exception;", "title": "" }, { "docid": "458518795438e15052d48a6dbcdd275f", "score": "0.6007354", "text": "public BigDecimal getAddressBalance(String address) throws ApiException {\n ApiResponse<BigDecimal> localVarResp = getAddressBalanceWithHttpInfo(address);\n return localVarResp.getData();\n }", "title": "" }, { "docid": "a3083272ac299c8d7989065eb3bd6fa3", "score": "0.6000084", "text": "public double getNetBalance() {\n int sum = 0;\n for (Account acc : accountList) {\n if (acc instanceof DebtAccount) {\n sum -= acc.getBalance();\n } else if (acc instanceof AssetAccount) {\n sum += acc.getBalance();\n }\n }\n return sum;\n }", "title": "" }, { "docid": "c4184473e84b602cd18ee7c4ab410b18", "score": "0.59937656", "text": "public ProjectBean showBalance(long acctNo) throws Exception ;", "title": "" }, { "docid": "50b7c131197d08bf21eeae7167073379", "score": "0.5987514", "text": "public void getLoanBalance(){\n\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-getLoanBalance() ERROR: \" + caught.toString());\n\t\t\t\t}\n\n\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\t\t\n\t\t\t\t\tbalanceLabel.setText(result.getMsg());\n\t\t\t\t\tsetAmount();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttry {\t\n\t\t\t\tgetUiParams().getBmObjectServiceAsync().action(bmoLoan.getPmClass(), bmoLoan, BmoLoan.ACTION_TOTAL, \"\" + loanId, callback);\n\t\t\t} catch (SFException e) {\n\t\t\t\tstopLoading();\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-getLoanBalance() ERROR: \" + e.toString());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "76dfb9af7c6fb293176504d40d714f08", "score": "0.5985494", "text": "@Override\n\tpublic double getBalance(int accNumber) {\n\t\tlogger.trace(\"Get Balance is accessed at DAO layer\");\n\t\ttry {\n\t\t\tlogger.info(\"Balance extracted successful\");\n\t\t\tWallet wallet = em.find(Wallet.class, accNumber);\n\t\t\treturn wallet.getBalance();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"InvalidLoginException thrown by validate method\");\n\t\t\treturn DOUBLE;\n\t\t}\n\t}", "title": "" }, { "docid": "96da6ca50323934486479b8e4cac614c", "score": "0.59828615", "text": "public static double getAccountBalance(int accID) {\n double balance = 0;\n for (Map.Entry<Integer,Employee> a : accountList.entrySet()) {\n int key = a.getKey();\n balance = a.getValue().getBalance();\n }\n return balance;\n }", "title": "" }, { "docid": "77fc01335849cb891072b13403231021", "score": "0.5955502", "text": "@GetMapping(\"/account/balance\")\r\n public Float getAccountBalance(\r\n @RequestParam (name = \"accountNumber\", required =false ) String accountNumber) {\r\n AccountBalance acctBalance = null;\r\n try {\r\n acctBalance = AccountService.findAccountBalance(accountNumber);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return acctBalance.getBalance();\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "1ca7321ef6bbc26c0eb071aea6bd341f", "score": "0.59497476", "text": "public int getAccBalance() {\r\n\t\treturn account;\r\n\t}", "title": "" } ]
b777a0373d35a1fe1be346905ac20ab1
Initializing the Page Objects:................................................................
[ { "docid": "ed774c0d13407a80a60d8b11bb76c99d", "score": "0.7175624", "text": "public AnalysePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" } ]
[ { "docid": "96975dbfd0d24cb801fc49b7ba55a0a1", "score": "0.801259", "text": "@Override\n\tprotected void initOwnPageComponents() {\n\t\tsuper.initOwnPageComponents();\n\t\tconstructPage();\n\n\t}", "title": "" }, { "docid": "2d36fa63c9c5c628a97494e1ce38df32", "score": "0.7638502", "text": "void initPage(String pagePath, String pageClassName);", "title": "" }, { "docid": "8763768eff4a14892f8222ec4b75d3a1", "score": "0.7632205", "text": "public BasePage() {\n PageFactory.initElements(Driver.get(), this);\n }", "title": "" }, { "docid": "b4822e77de7358a33c7c18f662ab50f6", "score": "0.76302594", "text": "private void InitializePage() {\n\t\t/* Variable Configuration */\n\t\t_imageHeight = Integer.parseInt(this.getString(R.string.IMAGE_HEIGHT));\n\t\t_url_get_moments_by_kloudlet = this\n\t\t\t\t.getString(R.string.URL_GET_MOMENTS_BY_KLOUDLETID);\n\n\t\t/* UI Configuration */\n\t\tInitializeSatelliteMenu();\n\t\tTextView title = (TextView) findViewById(R.id.title);\n\t\ttitle.setText(_kloudlet_name);\n\n\t\t/* HTTP queries */\n\t\tGetMomentsByKloudId();\n\t}", "title": "" }, { "docid": "409632ac39bce1db3abda39e2e9e8b83", "score": "0.76223123", "text": "public RetailPageObj() {\n\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "9992b7613980f6c4988e952f0f5e084f", "score": "0.7529923", "text": "void initPage(String pagePath, String pageClassName, String siteLocale);", "title": "" }, { "docid": "1c8a2008313589767feadd72fac50f1e", "score": "0.74828064", "text": "@Override\n\tpublic void initialize() {\n\t\tsetupPageRegistrationHandler();\n\t\ttraverse();\n\t}", "title": "" }, { "docid": "6719d0cbc2c08142088b9be740b2a4ce", "score": "0.74249744", "text": "public HomePage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "a82092117922afc8513a03cd01478eee", "score": "0.73489064", "text": "public void initializePageObjectModel() \r\n\t{\r\n\t\tobjCheckBoxDemoPage =new CheckBoxDemoPage(this);\r\n\t}", "title": "" }, { "docid": "f396521d33f638538bd0e78cd9ef4265", "score": "0.73092526", "text": "public DynamicLoadingPage() {\n\n PageFactory.initElements(driver, this);\n\n }", "title": "" }, { "docid": "d19c4cfa41137e735678b2e225346fb5", "score": "0.7285753", "text": "public Page() {\r\n }", "title": "" }, { "docid": "5d2e4106442406c6a8d790e5a61d2449", "score": "0.72468686", "text": "public HomePage()\n\t{\n\t\tPageFactory.initElements(BrowserFactory.driver, this);\n\t}", "title": "" }, { "docid": "1e1a51a390dee38caf942d1cd57a991e", "score": "0.72065747", "text": "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "1e1a51a390dee38caf942d1cd57a991e", "score": "0.72065747", "text": "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "1e1a51a390dee38caf942d1cd57a991e", "score": "0.72065747", "text": "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "4c3c57259c690f9e894e886cf9d9c0c7", "score": "0.7183803", "text": "public homePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "683ebb6e4047b35bb33a35db33d206ad", "score": "0.71397245", "text": "public IdioktitisPage() {\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "06f0a56bbd075316101600b59684ce78", "score": "0.7135113", "text": "public void pageSetup()\r\n {\n }", "title": "" }, { "docid": "099bdc69fc0c69274666c314c9e1ffb7", "score": "0.70960295", "text": "public void init() {\r\n\t\tmainPage = getContentPane();\r\n\t\tmainPage.setLayout(new FlowLayout());\t\r\n\t\tmainPage.setBounds(100, 100, 1200, 800);\r\n\r\n\t\tmakeGUI();\r\n\r\n\t\tuserData = new UserData();\r\n\r\n\t}", "title": "" }, { "docid": "cc9fd9a6df7b8d03dcd520ba8ae9b3c0", "score": "0.70909965", "text": "public PAGE() {\n initComponents();\n \n }", "title": "" }, { "docid": "7dcea8ff2b1cd2bcddead80ef2a9daf3", "score": "0.7083178", "text": "@BeforeMethod\n public void intializeElements(){\n homePage = PageFactory.initElements(driver, HomePage.class);\n //pharmecyPage = PageFactory.initElements(driver,PharmecyPage.class);\n loginUsingGoogleSheetPage = PageFactory.initElements(driver,LoginUsingGoogleSheetPage.class);\n }", "title": "" }, { "docid": "8f2d3eac3730513522892aedc2aef49d", "score": "0.70028424", "text": "public Page(PageManager pages) {\n\t this.pages = pages;\n driver = pages.getWebDriver();\n wait= new WebDriverWait(driver, 10); \n\t}", "title": "" }, { "docid": "f45bcd934e20251f6effe403ecc24caa", "score": "0.6977674", "text": "public PatientHomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "title": "" }, { "docid": "9cdab638a9c43b1b8c186f40de1824c3", "score": "0.6968916", "text": "protected <T extends AbstractPageObject> T initPage(T page) throws PageObjectException {\n // get locators\n Locale locale;\n try {\n locale = new Locale(AutomationMain.getConfigProperties().getContentLanguage());\n } catch (AutomationFrameworkException e) {\n throw new PageObjectException(\"Main factory initialization exception.\", e);\n }\n\n try {\n Browser browser = Browser.getCurrentBrowser();\n LOG.info(\"Current URL: \" + getCurrentUrl());\n if (StringUtils.isNotBlank(page.getPageUrl()) \n && !browser.getCurrentUrl().contains(page.getPageUrl())) {\n LOG.error(\"Navigate to URL: \" + page.getPageUrl());\n throw new PageObjectException(\"Page validation exception. Expected page URL is \" + page.getPageUrl() + \" URL in fact \" + getCurrentUrl());\n }\n page.setPageFactory(this);\n page.init(browser, locale);\n LOG.info(page.getClass().getName() + \" page created.\");\n } catch (Exception e) {\n throw new PageObjectException(\"Unable initialize \" + page.getClass().getName() + \" page by URL: \" + page.getPageUrl() + \"\\n\" + e.getMessage(), e);\n }\n return page;\n }", "title": "" }, { "docid": "506159726728ab62c2c31e1413fc2ba4", "score": "0.69362634", "text": "public RegisterationPage() {\n\t\tsuper();\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "10441b50845f62501911890081d01714", "score": "0.69051975", "text": "public LoginPage()\n{\n\tPageFactory.initElements(driver, this);\n}", "title": "" }, { "docid": "989c1d0ce78732ac99a0774463153013", "score": "0.689884", "text": "@BeforeMethod\n\t\tpublic void SetUp()\n\t\t{\n\t\t\tinitialization();\n\t\t\t\n\t\t\t/* To access the methods and Variable of Login Page, creating the object of Login Page*/\n\t\t\t\n\t\t\tsignuppage = new SignUpPage();\t\t\n\t\t}", "title": "" }, { "docid": "679dc298faf3a78fc75febd59051de3b", "score": "0.68918556", "text": "public LoginPage()\r\n {\r\n\tPageFactory.initElements(driver, this); \r\n }", "title": "" }, { "docid": "be43a72927d4522161f38ad5d45c653f", "score": "0.68883115", "text": "public NextPage() {\n }", "title": "" }, { "docid": "6bad392d68374852b408efc8450e8798", "score": "0.6855932", "text": "public DashboardPage () {\n PageFactory.initElements(Driver.get(),this);\n\n }", "title": "" }, { "docid": "cb21affd144a30ca8dcfda59f2838ce4", "score": "0.6853475", "text": "public void initialPage() {\n\n composite_left = new Composite(pagecomposite, SWT.BORDER);\n\n //GridLayout layout = new GridLayout();\n\n FormLayout layout = new FormLayout();\n pagecomposite.setLayout(layout);\n\n // overview label sets\n Label label_overview = new Label(pagecomposite, 0);\n // @FIXME Set the font style of this label\n label_overview.setText(\"Overview\");\n\n FormData label_form = new FormData();\n label_form.left = new FormAttachment(0,6);\n label_form.right = new FormAttachment(30);\n label_form.top = new FormAttachment(0,5);\n label_overview.setLayoutData(label_form);\n\n // initial right composite\n\n coll_table.initialCollectionsComposite(this);\n cha_table.initialCollectionsComposite(this);\n collPage.initialCollectionsComposite(this);\n chaPage.initialChannelsComposite(this);\n\n initialLeftComposite();\n }", "title": "" }, { "docid": "87766e45c17d12196b73c6715d2d3070", "score": "0.682415", "text": "public MainPage() {\n setLayout(new BorderLayout());\n initComponents();\n initObjects();\n\n }", "title": "" }, { "docid": "415f03a7c967fb7ee0245789bedfd1a5", "score": "0.6804935", "text": "public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "66836794d7db3f81a3c63ce0ad436194", "score": "0.6789296", "text": "private void initialize() {\n\t\tbaseHorizontalPanel = new HorizontalPanel();\n\t\tnextImage = new Image(\"images/nextImg.png\");\n\t\tprevImage = new Image(\"images/prevImg.png\");\n\t\tuserDisplayerPanel = new HorizontalPanel();\n\t\tchatUserWidgetMap = new HashMap<Integer, Entity>();\n\t}", "title": "" }, { "docid": "246c75be0de3562db46193c2cea164d8", "score": "0.67830384", "text": "public Loginpage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ed19a521e0ba64f8332047e594d89969", "score": "0.6781782", "text": "public PageInfo() {\n }", "title": "" }, { "docid": "4d3bcd6fbcbe41925f499f0da1395c94", "score": "0.67767423", "text": "public AllocPage()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "3fb1a993e346b8bc4b0b6d40218bf300", "score": "0.6776258", "text": "public LoginPage(){ //create a constructor of the login page \r\n\t\tPageFactory.initElements(driver, this); //pagefactory.initelement method is used inilize the obj with driver and \"this\"means current class\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "2a4c1f870ebb188d855066cd48968f3d", "score": "0.67708135", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n createPages();\n }", "title": "" }, { "docid": "40094e73b72a76e7a17c69a3ff5fabc0", "score": "0.6766488", "text": "private SimusOfPage() {\n initFields();\n }", "title": "" }, { "docid": "1231165f267787be30ad88274850abed", "score": "0.67427963", "text": "private void initialize() {\r\n\t\tcreateMainFrame();\r\n\t\tcreateLevel1();\r\n\t\tcreateLevel2();\r\n\t\tcreateLevel3();\r\n\t\tcreateLevel4();\r\n\t\tcreateLevel5();\r\n\t\tcreateBackHardness();\r\n\t\tcreateLevelEditor();\r\n\t\tsetupBackground();\r\n\t}", "title": "" }, { "docid": "8339e697cf0c2df8d70aba8f4d42b292", "score": "0.6734652", "text": "public TestRochesterBookingPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "title": "" }, { "docid": "1f0f9135828c6a7332bb9fb9b412e387", "score": "0.6721946", "text": "public void initBrowser() {\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\tlogger.info(\"Browser started\");\n\t\tsettingsPage = new SettingsPage(driver);\n\t\tstartPage = new StartPage(driver);\n\t\tmessagePage = new MessagePage(driver);\n\t\tinboxPage = new InboxPage(driver);\n\t\tthemePage = new ThemePage(driver);\n\t}", "title": "" }, { "docid": "d4027e88dd6898dd136a7e4c832043a2", "score": "0.6711315", "text": "public ClerkPage() {\n initComponents();\n }", "title": "" }, { "docid": "d9cd87823a9d5ab7682bd1dd5812abe5", "score": "0.6711213", "text": "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "title": "" }, { "docid": "a1c0a78a1b7bb2d0cc9aa7e3963d3231", "score": "0.67092675", "text": "public LoginPage() {\r\n\t\t//how will u initilaze your page factory? answer we have one method pagefactory.initelemets by using this method \r\n\t\tPageFactory.initElements(driver, this); //here driver is driver this is pointing to current class \r\n\t\t\t}", "title": "" }, { "docid": "294e9c28f75277e1187fa4ceccd0640b", "score": "0.6709051", "text": "public ProductPage()\n\t\t\t{\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "60ecae208be112c684b8a8ebc50225c6", "score": "0.67050546", "text": "public LoginPage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "title": "" }, { "docid": "ec1459a313077b53ca8c6e56044e6f6a", "score": "0.66989714", "text": "private void initialize() {\n\t\tinitStartPanel();\n\t\tinitBreakPanel();\n\t\tinitTopPanel();\n\n\t}", "title": "" }, { "docid": "bc2ba2f385a3b63c2ee1b06a7c8d5e8c", "score": "0.6696399", "text": "@Override\n public void init() {\n // Perform initializations inherited from our superclass\n super.init();\n\n try {\n _init();\n } catch (Exception e) {\n log(\"Page1 Initialization Failure\", e);\n throw e instanceof FacesException ? (FacesException) e : new FacesException(e);\n }\n\n\n }", "title": "" }, { "docid": "cece012eea6d9fc9e5812a8e4d469239", "score": "0.6689788", "text": "public LoginPage() {\r\n\t\t//Initialize page factory\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "01dd56ee9a7db079cd07f99544bf9cb6", "score": "0.66658896", "text": "@Override\r\n\tpublic void prepareEnvironment(){\r\n\t\t\r\n\t\tthis.Initialize();\r\n\t\tthis.loginPage = PageFactory.initElements(driver, LoginPage.class);\t\r\n\t\tthis.homePage = PageFactory.initElements(driver, HomePage.class);\r\n\t\tthis.setupPage = PageFactory.initElements(driver, SetupPage.class);\r\n\t\tthis.groupsPage = PageFactory.initElements(driver, GroupsPage.class);\r\n\t\tthis.createGroupPage = PageFactory.initElements(driver, CreateGroupPage.class);\r\n\t\tthis.groupManagerPage = PageFactory.initElements(driver, GroupManagerPage.class);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "26743de0a2fcad62b3c81ebdcc728a5b", "score": "0.6634309", "text": "public mainPage() {\n initComponents();\n }", "title": "" }, { "docid": "63e343c651d1e80af71b6f59006fa3fb", "score": "0.6631574", "text": "protected void initializeUIMap()\n\t{\n\t\tlibManhattanCommonFunctions = new ManhattanCommonFunctions(scriptHelper);\n\t\tif (getCurrentPage(\"CreateAsnFromPOPage\"))\n\t\t\treport.updateTestLog(\"Create Asn From PO Page verification\", \"Create Asn From PO Page loaded as expected.\", Status.DONE);\n\t\telse\n\t\t\treport.updateTestLog(\"Create Asn From PO Page verification\", \"Create Asn From PO Page not loaded!!!!\", Status.FAIL);\n\t}", "title": "" }, { "docid": "2fe251eacb99c17f27f9b9ed13ccd18b", "score": "0.6625815", "text": "@Override\n\tprotected void init(PageDto page, HttpServletRequest request,\n\t\t\tHttpServletResponse response, Model model) {\n\n\t}", "title": "" }, { "docid": "0f4ec6a3ed5ae2e9ef22a50d43530852", "score": "0.6620007", "text": "public HomePage(final WebDriver driver) { \t\n super(driver); \n PageFactory.initElements(driver, this);\n LOGGER.info(\"Home Page has loaded\");\n }", "title": "" }, { "docid": "88e1076433fda369067c92268e645dee", "score": "0.66012985", "text": "public RegistrationPage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "20d0e56dd441be03fd8e4456c21077f1", "score": "0.65832", "text": "public SearchPage() {\r\n\t\tPageFactory.initElements(SeleniumWebDriver.driver, this);\r\n\t\tlogTitleMessage(\"Instantiating page, waiting for element: \"+readyLocator+ \" to be present\");\r\n\t\twaitForElement(readyLocator, READYLOCATORWAITTIME);\r\n\t\tlogTitleMessage(\"Instantiated \"+readyLocator +\" , ready for use\");\r\n\t}", "title": "" }, { "docid": "7993aeed62053c6b784ad69b69108c00", "score": "0.6579989", "text": "public void initPage( File file ) {\r\n\t\t//Get parser from factory by sending it the file\r\n\t\t//The factory will return an IPresentationParser with the correct implementation\r\n\t\t// and its file contents initialized\r\n\t\tIPresentationParser parser = ParserFactory.getParser( file );\r\n\r\n\t\tthis.setPageName( parser.getPageName() );\r\n\t\tthis.setPageURI( parser.getPageURI() );\r\n\r\n\t\t//Call the methods on the parser to populate the correct field details\r\n\t\tthis.setFields( parser.buildFieldDetails() );\r\n\t}", "title": "" }, { "docid": "0ca697f32418f256bd5f621d4a15787b", "score": "0.6574464", "text": "@BeforeMethod\n\tpublic void setUp() {\n\t\tinitialization();\n\t\tloginPage = new LoginPage(); //to access LoginPage methods\n\t\tlandingPage = loginPage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\")); \n//\t\ttestUtil = new TestUtil();\n\t\tcontactsPage = new ContactsPage();\n\t\tdealsPage = new DealsPage();\n\t}", "title": "" }, { "docid": "8dfddacd5346610787488122d573d792", "score": "0.6570679", "text": "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "38f37dc2b116f1bf6ca5d81323ae5bcc", "score": "0.6563056", "text": "Page createPage();", "title": "" }, { "docid": "919340cd7a9d0814176001e72563f37f", "score": "0.65625215", "text": "private void loadPage() {\n defPage.loadDrivers( new Command() {\n @Override public void execute() {\n defPageLoadedOK[ 0 ] = true;\n }\n }, new ParameterizedCommand<Throwable>() {\n @Override public void execute( Throwable parameter ) {\n defPageLoadedOK[ 0 ] = false;\n }\n } );\n }", "title": "" }, { "docid": "d73e3c8d9a9ad154543b9ba468a05e7d", "score": "0.6561372", "text": "public PTSettingPage(){\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "title": "" }, { "docid": "98a301bc1e5d8a6ef95b98bc18d0d9d7", "score": "0.65585", "text": "public Session(){\n this.welcomePage = new WelcomePage(this);\n this.mainMenuPage = new MainMenuPage(this);\n this.cityFarmersPage = new CityFarmersPage(this);\n this.storePage = new StorePage(this);\n this.inventoryPage = new InventoryPage(this);\n this.farmLandPage = new FarmLandPage(this);\n this.newsFeedPage = new NewsFeedPage(this);\n this.myFriendsPage = new MyFriendsPage(this);\n this.myWallPage = new MyWallPage(this);\n this.threadPage = new ThreadPage(this);\n this.giftPage = new GiftPage(this);\n this.visitPage = new VisitPage(this);\n }", "title": "" }, { "docid": "2bce019a89633dfc64d486dafb999791", "score": "0.6540801", "text": "public HomePage() {\n initComponents();\n }", "title": "" }, { "docid": "43c015a6794c4986379d52591e215244", "score": "0.65234596", "text": "public StartPage() {\r\n\r\n\t\tthis.setBorders(false);\r\n\r\n\t\tBorderLayoutData northLayoutData = new BorderLayoutData(HEADER_HEIGHT);\r\n\t\tnorthLayoutData.setMargins(new Margins(0, 0, 0, 0));\r\n\t\tthis.setNorthWidget(startPageHeader, northLayoutData);\r\n//\t\tnorthLayoutData.setSplit(true);\r\n\r\n\t\tBorderLayoutData southLayoutData = new BorderLayoutData(FOOTER_HEIGHT);\r\n\t\tsouthLayoutData.setMargins(new Margins(0, 0, 0, 0)); // 앞쪽에 보이는 가로 줄을 없애준다\r\n\t\tthis.setSouthWidget(startPageFooter, southLayoutData);\r\n//\t\tsouthLayoutData.setSplit(true);\r\n\t\t\r\n\t\tBorderLayoutData centerLayoutData = new BorderLayoutData(CENTER_HEIGHT);\r\n\t\tcenterLayoutData.setMargins(new Margins(0, 0, 0, 0)); // 앞쪽에 보이는 가로 줄을 없애준다\r\n//\t\tcenterLayoutData.setSplit(true);\r\n\r\n\t\tthis.changePage(\"0\");\r\n\r\n\t}", "title": "" }, { "docid": "0d2789c12cd255842efa8c07d739cbc0", "score": "0.6517585", "text": "@BeforeMethod\n\tpublic void setUp(){\n\t\t\n\t\tthis.extentReportLogger = PageBase.extentReportLogger;\n\t\textentReportLogger.assignCategory(testCategory);\n\t\thomePage = new HomePage();\n\t\tlandingPage = new LandingPage();\n\t\tthis.configReader = PageBase.configReader;\n\t}", "title": "" }, { "docid": "9730e759b3808db4638937e6e487ab94", "score": "0.6512152", "text": "public LandingPageTest() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "384cf89678da98ebf809e90bda1f8dc6", "score": "0.6484824", "text": "@Override\n protected void initPage() {\n setContentView(R.layout.page_teacher_reply_result);\n\n Bundle bundle = getArguments();\n if (bundle != null && bundle.containsKey(KEY_ITEM)) {\n info = (QuizContentInfo) bundle.getSerializable(KEY_ITEM);\n }\n\n init();\n\n bindPageTitleBar(R.id.pageTeacherReplyResultTitleBar);\n }", "title": "" }, { "docid": "d1789ef1d045a459eda87877cbbcb752", "score": "0.6473788", "text": "public PropertyPage() {\r\n super();\r\n }", "title": "" }, { "docid": "ee6390c5c2b07d27ea8be4552ba6e5a8", "score": "0.6463407", "text": "public void createBasicPage() {\n \n \t\t// Fill userPanel\n \t\tmyMeta = new Meta();\n \t\tuserPanel.add(myMeta);\n \n \t\t// Fill searchPanel\n \t\tmySearchArea = new SearchArea();\n \t\tsearchPanel.add(mySearchArea);\n \n \t\t// Fill footerPanel\n \t\tmyFooter = new Footer();\n \t\tfooterPanel.setWidth(\"100%\");\n \t\tfooterPanel.add(myFooter);\n \n \t\t// Fix Panels to divs\n \t\tRootPanel.get(\"user\").add(userPanel);\n \t\tRootPanel.get(\"search\").add(searchPanel);\n \t\tRootPanel.get(\"data\").add(dataPanel);\n \t\tRootPanel.get(\"footer\").add(footerPanel);\n \n \t\t// Sets Cursor\n \t\t// z.B. ewSymbolTextBox.setFocus(true);\n \n \t}", "title": "" }, { "docid": "59d5653be8d8a804a8b6764e2d889b73", "score": "0.6454093", "text": "private void initialize() \n\t{\n\t\tsetupFrame();\n\t\tsetupText();\n\t\tsetupButtons();\n\t}", "title": "" }, { "docid": "60808959f9ab3a303693d45cb7ebeff8", "score": "0.64524466", "text": "public MainPage() {\n initComponents();\n }", "title": "" }, { "docid": "13f2280020912f1064167230b666e010", "score": "0.6439961", "text": "public LoginPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "title": "" }, { "docid": "7b506e5f729a9078fa703023269e3226", "score": "0.64343", "text": "public void setUpPracticePage(){\n promptPageLoadDetail();\n loadPhrases(); //load the phrases from assets file\n setSessionAttributes(); //set the session attributes.\n }", "title": "" }, { "docid": "13c7fb4a28416cd1912818bdbf01a629", "score": "0.64318204", "text": "@BeforeMethod\n\tpublic void setUp() {\n\t\tinitialization();\n\t\tdashboardpage=new DashboardPage();\n\t}", "title": "" }, { "docid": "b54f76a83c48616e70ec69f4928d14b8", "score": "0.6430705", "text": "public homePage() {\n initComponents();\n }", "title": "" }, { "docid": "3010bf5e2e8815edd160a94ac14b150d", "score": "0.64303553", "text": "@Override\n protected void createPages() {\n createTextEditorPage();\n createVisualDesignerPage();\n createContextMenu();\n }", "title": "" }, { "docid": "5f93f01e6e7b344ceb3bb79617013291", "score": "0.64102346", "text": "public TeseCase_005(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "title": "" }, { "docid": "53c7df621533c5731c439f6e8149a1ad", "score": "0.64100647", "text": "public HomePage (WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tAjaxElementLocatorFactory factory = new AjaxElementLocatorFactory(driver, 100);\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "title": "" }, { "docid": "25d39ae81ccc97fb945ca266b600abcf", "score": "0.6405044", "text": "public FrontPage() {\n initComponents();\n }", "title": "" }, { "docid": "a9e95ac5bc16e784f375baea2bdea307", "score": "0.6399217", "text": "public void init() {\n // Perform initializations inherited from our superclass\n super.init();\n // Perform application initialization that must complete\n // *before* managed components are initialized\n // TODO - add your own initialiation code here\n\n // <editor-fold defaultstate=\"collapsed\" desc=\"Managed Component Initialization\">\n // Initialize automatically managed components\n // *Note* - this logic should NOT be modified\n try {\n _init();\n } catch (Exception e) {\n log(\"Page1 Initialization Failure\", e);\n throw e instanceof FacesException ? (FacesException) e : new FacesException(e);\n }\n\n // </editor-fold>\n // Perform application initialization that must complete\n // *after* managed components are initialized\n // TODO - add your own initialization code here\n }", "title": "" }, { "docid": "1cafa717023b9d2975dfcbfe8bd578f3", "score": "0.63974094", "text": "private void initialize() {\n \t\t_page = new Page();\n \t\t_currentStroke = null;\n \t\t_origInvTransform = null;\n \t\t_gestureState = None;\n \t\t_mode = NotesCanvas.FreehandMode;\n \n \t\t// Register for surface callbacks\n \t\tgetHolder().addCallback(this);\n \t\tsetFocusable(true);\n \t\t\n \t\t// Initialize lipitk\n \t\tContext context = getContext();\n \t\tFile externalFileDir = context.getExternalFilesDir(null);\n \t\tString path = externalFileDir.getPath();\n \t\tLog.d(\"JNI\", \"Path: \" + path);\n\t\t_lipitkInterface = new LipiTKJNIInterface(path, \"alphanumeric\");\n \t\t_lipitkInterface.initialize();\n \t}", "title": "" }, { "docid": "a9fd49d231646b5ae14c75b741d34ba2", "score": "0.6397204", "text": "@Override\r\n\tpublic void createPages() {\r\n\r\n\t\t// loadModel();\r\n\r\n\t\t// Only creates the pages if there is something that can be edited\r\n\t\tif (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\t\t\tcreateSelectionTreeView();\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "title": "" }, { "docid": "d86054cf4b40c4fbdc631c76bec66d2a", "score": "0.63877386", "text": "private void initialize() {\n\t\twebBrowser = new WebBrowser();\n\t\twebBrowser.setSize(760,455);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setSize(800,600);\n\t\tthis.setContentPane(getJContentPane());\t\n\t}", "title": "" }, { "docid": "23d7f4c1370b7557fba4e0889390f0dc", "score": "0.63848794", "text": "private void initPaging() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t toolbarPage = new ToolbarPages();\r\n\t\t\t\r\n\t\t\ttoolbarPage.firstPage.addListener(new ButtonListenerAdapter(){\r\n\t\t\t\tpublic void onClick(Button button, EventObject e) {\r\n\t\t\t\t\tcurrentPage = 1;\r\n\t\t\t\t\ttoolbarPage.disableFirstAll();\r\n\t\t\t\t\tobtenDatosGrid();\r\n\t\t\t }\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\ttoolbarPage.prevPage.addListener(new ButtonListenerAdapter(){\r\n\t\t\t\tpublic void onClick(Button button, EventObject e) {\r\n\t\t\t\t\tif(currentPage > 1)\r\n\t\t\t\t \tcurrentPage--;\r\n\t\t\t\t\tif(currentPage == 1){\r\n\t\t\t\t\t\ttoolbarPage.disableFirstAll();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttoolbarPage.enableAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tobtenDatosGrid(); \r\n\t\t\t }\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\ttoolbarPage.nextPage.addListener(new ButtonListenerAdapter(){\r\n\t\t\t\tpublic void onClick(Button button, EventObject e) {\r\n\t\t\t\t\tif(currentPage < pages)\r\n\t\t\t\t\t\tcurrentPage++;\r\n\t\t\t\t\tif(currentPage == pages){\r\n\t\t\t\t\t\ttoolbarPage.disableLastAll();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttoolbarPage.enableAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tobtenDatosGrid();\r\n\t\t\t }\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\ttoolbarPage.lastPage.addListener(new ButtonListenerAdapter(){\r\n\t\t\t\tpublic void onClick(Button button, EventObject e) {\r\n\t\t\t\t\tcurrentPage = pages;\r\n\t\t\t\t\ttoolbarPage.disableLastAll();\r\n\t\t\t\t\tobtenDatosGrid();\r\n\t\t\t }\r\n\t\t\t});\r\n\t if(grid!= null)\r\n\t\t\tgrid.setTopToolbar(toolbarPage);\r\n\t}", "title": "" }, { "docid": "baeb85d5cf3b6d23489ead44faa5022e", "score": "0.63746387", "text": "private void init() {\n createPrincipalWindow();\n loadPersons();\n }", "title": "" }, { "docid": "1e6f5afbaf3eb50419efd74bccf7feb4", "score": "0.6374509", "text": "@PostConstruct\n\tpublic void init() {\n\t\thtml();\n\t}", "title": "" }, { "docid": "189c041ed7fbdd36f9615eceee00e5aa", "score": "0.63739926", "text": "public void initializePaginationFields() {\n \n this.librarySize = calculateLibrarySize();\n this.totalPages = calculateTotalPages();\n this.dvdIndexBegin = 0;\n this.dvdIndexEnd = (10 > this.librarySize) ? \n this.librarySize : 10;\n this.pageBegin = 1;\n this.pageEnd = (this.totalPages > 10) ? 10 : this.totalPages;\n }", "title": "" }, { "docid": "e0e3291fa6ab6471a2036e64b6207498", "score": "0.63705236", "text": "public Menu_page() {\n initComponents();\n }", "title": "" }, { "docid": "d6d09bdf30c188ab9335ccc96fa9ed81", "score": "0.63678813", "text": "public Front_Page() {\n initComponents();\n }", "title": "" }, { "docid": "6d40d757ba9aca65f7672461e6b34481", "score": "0.63524586", "text": "public Homepage(WebDriver driver){\r\n this.driver = driver;\r\n PageFactory.initElements(driver, this);\r\n }", "title": "" }, { "docid": "64b5a809fc67cf82277d36a778ccb3d8", "score": "0.63520247", "text": "public TagPage() {\n }", "title": "" }, { "docid": "cd6af2463502f35209a021b0af14b785", "score": "0.6342202", "text": "private void initialize() {\r\n\r\n\t\tthis.containers = new HashSet<Container>();\r\n\t\tthis.forums = new HashSet<Forum>();\r\n\t\tthis.items = new CIManagerT<ContentItem>();\r\n\t\tthis.posts = new CIManagerT<Post>();\r\n\t\tthis.roles = new HashSet<Role>();\r\n\t\tthis.sites = new HashSet<Site>();\r\n\t\tthis.spaces = new HashSet<Space>();\r\n\t\tthis.threads = new CIManagerT<Thread>();\r\n\t\tthis.useraccounts = new HashSet<UserAccount>();\r\n\t\tthis.usergroups = new HashSet<Usergroup>();\r\n\r\n\t}", "title": "" }, { "docid": "e7a533089d0e48dfc411e95be15a6211", "score": "0.63394046", "text": "public PageUtils(WebDriver driverTopNavigationPage)//400\n\t{\n\t\tthis.driver=driverTopNavigationPage;\n\t\t//System.out.println(\"PageUtils constructor starts\");\n\t}", "title": "" }, { "docid": "0e444f5b0a22abd0f6e648a7469cfca1", "score": "0.63116926", "text": "@BeforeMethod\n\tpublic void setup() {\n\t\ttry {\n\t\tinitialization();\n\t\tcorporateWellnessPage = new CorporateWellnessPage();\n\t\tdiagnosticPage = new DiagnosticPage();\n\t\tsearchFilters = new SearchFilters();\n\t\tExcelData excelData = new ExcelData();\n\t\tFormDetails = ExcelData.readExcel();\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\t \n\t\t\t }\n\t}", "title": "" }, { "docid": "3203664fe217a17625454bbba7bb7c37", "score": "0.6310828", "text": "public LandingPageController() {\n\t\t\n\t}", "title": "" }, { "docid": "a6e68b9a4a09adef95b3cb8baf4b5165", "score": "0.6306135", "text": "private void init() {\n initPlayers();\n initPlanets();\n initEvents();\n initAccessibilityMap();\n GUIController.generateMenuBar();\n }", "title": "" }, { "docid": "a09eb1da226a4591f7689ff0afc3c565", "score": "0.6294319", "text": "public UserPage() {\n initComponents();\n }", "title": "" } ]
899c9f16d2a10beec81393a53a4ab55c
/ 73: / 74:
[ { "docid": "dceabb5aba182fd2db74f26372108446", "score": "0.0", "text": "public void setStarttime(Date starttime)\r\n/* 75: */ {\r\n/* 76: 73 */ this.starttime = starttime;\r\n/* 77: */ }", "title": "" } ]
[ { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6673789", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "3e2b6cecdab3b4495e39686fcb37522b", "score": "0.6586119", "text": "public void method_7608() {}", "title": "" }, { "docid": "c57f1ac14f2f0e46c1513c8a17bdd4ff", "score": "0.64749664", "text": "public void mo7951b() {\n }", "title": "" }, { "docid": "ff231ae14151480462e77ab05b88eb7a", "score": "0.64725643", "text": "public void mo16989u() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6457436", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "24f5e9e5d90e7d3e2f30be6eeac46ab8", "score": "0.6351395", "text": "public void mo3786e() {\n }", "title": "" }, { "docid": "24f5e9e5d90e7d3e2f30be6eeac46ab8", "score": "0.6351395", "text": "public void mo3786e() {\n }", "title": "" }, { "docid": "3e30483383f6ea0d9f0907d64eae6944", "score": "0.6350839", "text": "void mo24576P();", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.63118076", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.627824", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "55d5edc707d5605e17fc846fa1dd6e68", "score": "0.62349385", "text": "public void mo23347c() {\n }", "title": "" }, { "docid": "4c98e7c6f9e5db0b36b0a6af7feadadc", "score": "0.61985576", "text": "void mo79675b();", "title": "" }, { "docid": "2d9907d0d874b33ec9899bf3c57a102b", "score": "0.6197442", "text": "public void mo3840a() {\n }", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.61946994", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "eb8af820e42c58def8f68959b174a532", "score": "0.6192489", "text": "public void mo23373a() {\n }", "title": "" }, { "docid": "1d117eadcdba9f8bb7df7cafe5348fb6", "score": "0.61829054", "text": "public void mo23378d() {\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.6168189", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "d1d60c66fa761ad217761a3573d3780f", "score": "0.6147881", "text": "public int method_9833() {\r\n return 2;\r\n }", "title": "" }, { "docid": "0584017cc50128958402ae40b3e27955", "score": "0.61288166", "text": "public final void mo57094b() {\n }", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.6125176", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f95915bf87d195500932036591341489", "score": "0.61193424", "text": "public final void mo27169a() {\n }", "title": "" }, { "docid": "f0eca3ed510fbd3e94c6bb81c7e99622", "score": "0.6102538", "text": "void mo24943N();", "title": "" }, { "docid": "8b0e6e12092cd8ce22574c3cd574c579", "score": "0.6094581", "text": "public void mo133630c() {\n }", "title": "" }, { "docid": "1dd8a199a60cbd32540bcb7fbf092c48", "score": "0.6082036", "text": "public void mo3994a() {\n }", "title": "" }, { "docid": "e1df080ac8b5b6e20c8ba27c5cb2a6d4", "score": "0.60663164", "text": "public void mo7242i() {\n }", "title": "" }, { "docid": "a94c57ea16341682c136768c3b288399", "score": "0.60447145", "text": "void mo16517j();", "title": "" }, { "docid": "cf9eccacb98a6d1d28638b4cc549d74b", "score": "0.6042067", "text": "public void mo3785d() {\n }", "title": "" }, { "docid": "cf9eccacb98a6d1d28638b4cc549d74b", "score": "0.6042067", "text": "public void mo3785d() {\n }", "title": "" }, { "docid": "223475c14350c54edf0eb59aa643f675", "score": "0.60188895", "text": "void mo13751b();", "title": "" }, { "docid": "b21335651fee041596ce91a9107b8ac8", "score": "0.60159117", "text": "public int mo11162g_() {\n return 2;\n }", "title": "" }, { "docid": "6be346ab7f18b1ab924c9bd8d73df6b8", "score": "0.60135514", "text": "void mo79414b();", "title": "" }, { "docid": "317f78909ef26128b999338b85824cfc", "score": "0.601276", "text": "public int a()\r\n/* 70: */ {\r\n/* 71:77 */ return 4;\r\n/* 72: */ }", "title": "" }, { "docid": "9fd43a668572759a42f4c627d07ea5c6", "score": "0.59959257", "text": "public void mo23379e() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5993609", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "560f6c2aac4d5d67b024cf90713ff292", "score": "0.5993218", "text": "void mo37904b();", "title": "" }, { "docid": "86f67cfce39cce220c5b6b73f63c91ab", "score": "0.59890765", "text": "public int method_2283() {\n return this.field_2783;\n }", "title": "" }, { "docid": "d4ee6383311b636edb11e8eb4aa98e64", "score": "0.5986877", "text": "void mo79674a();", "title": "" }, { "docid": "63d0bb968fc9db2ed086e8eda27d0e6d", "score": "0.5978653", "text": "void mo41028a();", "title": "" }, { "docid": "3b4dc33b10b5118abc4eb30e17a7b07d", "score": "0.59711444", "text": "public abstract int mo28561g() throws IOException;", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5963775", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5963775", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "281684aca52298cffd773cdcd5cef152", "score": "0.5951956", "text": "public void mo16156c() {\n }", "title": "" }, { "docid": "9bbc951ea1250abe86de801fd3e32179", "score": "0.5947304", "text": "void mo12437g();", "title": "" }, { "docid": "88b03ed79c0063b322eaa25e9b9cb537", "score": "0.5945053", "text": "void mo3962c();", "title": "" }, { "docid": "972955258f6bea110715d84203c34172", "score": "0.5939144", "text": "public void mo3787f() {\n }", "title": "" }, { "docid": "8c6028efba5e4560da6fda123ca869b4", "score": "0.59288186", "text": "public void mo7241h() {\n }", "title": "" }, { "docid": "5aaf62d07c3e7efed59734d0dd28964b", "score": "0.5928422", "text": "public void mo1957h() {\n }", "title": "" }, { "docid": "365a2e73ef62d092a0bf8924f58f06de", "score": "0.5919863", "text": "public int method_1927() {\r\n return this.field_1707;\r\n }", "title": "" }, { "docid": "7408669469dd0a2453b29bff215e7818", "score": "0.5918806", "text": "public int method_1963() {\r\n return this.field_1737;\r\n }", "title": "" }, { "docid": "16204cafbf9df0138a51b6e5ca1aac71", "score": "0.5916286", "text": "void mo79415c();", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5914963", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "90bfa717ddbf5373463d4be5470cd86a", "score": "0.58930093", "text": "public int method_1967() {\r\n return this.field_1741;\r\n }", "title": "" }, { "docid": "9d29f4bf3d8cc5a806c4a76de774968c", "score": "0.5885447", "text": "void mo306a() {\n }", "title": "" }, { "docid": "bfc863282a6a6f450605c6f36572ad48", "score": "0.5884006", "text": "public void mo23346b() {\n }", "title": "" }, { "docid": "d7c23afa29b141c5634c7b4be4080431", "score": "0.5882705", "text": "public final void mo39697bC() {\n }", "title": "" }, { "docid": "24f30370515bfcc6241bb76e6bfd35eb", "score": "0.5878546", "text": "public final void mo9279b() {\n }", "title": "" }, { "docid": "2042877c35b1ecbdb97b8517e7aefb14", "score": "0.58754086", "text": "void mo85672b();", "title": "" }, { "docid": "67dda16bc03bfbaa3c2e8ec820b79d17", "score": "0.587469", "text": "C7436c mo5136a();", "title": "" }, { "docid": "d577bb6fb9056aa4f3c52f6e2a19314c", "score": "0.5872995", "text": "public int method_1969() {\r\n return this.field_1743;\r\n }", "title": "" }, { "docid": "348f9d712354de8c41893b022bf55618", "score": "0.5872799", "text": "public int c()\r\n/* 547: */ {\r\n/* 548:438 */ return 64;\r\n/* 549: */ }", "title": "" }, { "docid": "441f462c7b035881a73cad97b7a539ab", "score": "0.58676314", "text": "public void mo23380f() {\n }", "title": "" }, { "docid": "3163e782b75b20bf26c159a844dfbe07", "score": "0.5865369", "text": "void mo24939J();", "title": "" }, { "docid": "1bc071f9f9b2f3fbb87c60b4c8d3b47a", "score": "0.58593357", "text": "public int method_1085() {\n return this.field_741;\n }", "title": "" }, { "docid": "04a85a2950b52300ee87b225c6877327", "score": "0.5852128", "text": "C5240a mo3952e();", "title": "" }, { "docid": "74ce7e52d9f72d5136c87197c9b4cdd2", "score": "0.58521235", "text": "public void mo16166l() {\n }", "title": "" }, { "docid": "8856648a24eed8059f46d9b9d5d02b33", "score": "0.58473605", "text": "public void mo1048f() {\n }", "title": "" }, { "docid": "775f0fb2656afbee20d318708825ca5b", "score": "0.584736", "text": "void mo103027a();", "title": "" }, { "docid": "b209dc36b28746755525d96c6e6e8609", "score": "0.58421355", "text": "public abstract int mo28173c();", "title": "" }, { "docid": "b670e1dc90498e742a89edb4292760f1", "score": "0.58330613", "text": "void mo24941L();", "title": "" }, { "docid": "33faa6524a6c8ff988105b9656e6a6b3", "score": "0.5830622", "text": "void mo79413a();", "title": "" }, { "docid": "d4ef56844ad6903b5800c65db5976699", "score": "0.5828268", "text": "void mo3964d() throws IOException;", "title": "" }, { "docid": "0687cc28e76bdaf742f27c58245f64d0", "score": "0.58282137", "text": "public int method_1966() {\r\n return this.field_1740;\r\n }", "title": "" }, { "docid": "c61a51b75353d394e62c1321a742fc76", "score": "0.58265686", "text": "void mo6261z();", "title": "" }, { "docid": "b78b84fe8ad22f711f2db8088162ffec", "score": "0.58227307", "text": "public int method_1965() {\r\n return this.field_1739;\r\n }", "title": "" }, { "docid": "4f391b2e01f27bc2f65330d496059f6e", "score": "0.5822655", "text": "public void mo67231z_() {\n }", "title": "" }, { "docid": "e171672a3dd0517cabc8bfaa3ff2989c", "score": "0.581695", "text": "public final void mo18108g() {\n }", "title": "" }, { "docid": "93b833c21eaa95e451b4791e7c397339", "score": "0.58134484", "text": "public int func_77647_b(int par1)\n/* */ {\n/* 24 */ return par1;\n/* */ }", "title": "" }, { "docid": "21d4492972d9dfc528d670b20dcfd9f4", "score": "0.5809847", "text": "public int method_1968() {\r\n return this.field_1742;\r\n }", "title": "" }, { "docid": "0603a9d05cc2a97648b5d6bad755b190", "score": "0.580767", "text": "public void mo23431g() {\n }", "title": "" }, { "docid": "efbcf7d392c9984e852dff01fddbc827", "score": "0.5804627", "text": "Draft mo26940e();", "title": "" }, { "docid": "4096e4a95e9c27985e971c04e65341b6", "score": "0.5801414", "text": "void mo73716b();", "title": "" }, { "docid": "2e296c7b382db30567518337feec07cf", "score": "0.58007324", "text": "public int k_()\r\n/* 490: */ {\r\n/* 491:392 */ return 1;\r\n/* 492: */ }", "title": "" }, { "docid": "dab9504cbc8c24915f01e8779cb65404", "score": "0.5799667", "text": "void mo26031b();", "title": "" }, { "docid": "f5afcd5e993fd1a6a141ff86bd20722c", "score": "0.5794902", "text": "void mo12438h();", "title": "" }, { "docid": "ebc179cc67a973954383847ffd1b99db", "score": "0.57629293", "text": "private void m9541a(java.lang.String r11, java.lang.String r12, java.lang.String r13, java.lang.String r14, java.util.Map<java.lang.String, java.lang.Object> r15) {\n /*\n r10 = this;\n r0 = 0;\n r1 = 2;\n r2 = 0;\n r3 = 1;\n if (r14 != 0) goto L_0x001c;\n L_0x0006:\n r7 = r10.f7975u;\t Catch:{ Exception -> 0x0018 }\n r8 = com.leanplum.p069a.C2590h.f8058c;\t Catch:{ Exception -> 0x0018 }\n r9 = com.leanplum.p069a.C2590h.f8062g;\t Catch:{ Exception -> 0x0018 }\n r4 = r11;\n r5 = r12;\n r6 = r15;\n r12 = com.leanplum.p069a.bo.m9603a(r4, r5, r6, r7, r8, r9);\t Catch:{ Exception -> 0x0018 }\n goto L_0x002a;\n L_0x0014:\n r11 = move-exception;\n r12 = r2;\n goto L_0x012d;\n L_0x0018:\n r11 = move-exception;\n r15 = r2;\n goto L_0x00ca;\n L_0x001c:\n r12 = r10.f7975u;\t Catch:{ Exception -> 0x0018 }\n r15 = \"https://\";\n r15 = r14.startsWith(r15);\t Catch:{ Exception -> 0x0018 }\n r4 = com.leanplum.p069a.C2590h.f8062g;\t Catch:{ Exception -> 0x0018 }\n r12 = com.leanplum.p069a.bo.m9604a(r14, r12, r15, r4);\t Catch:{ Exception -> 0x0018 }\n L_0x002a:\n r15 = r12.getURL();\t Catch:{ Exception -> 0x00c7, all -> 0x00c5 }\n r12.connect();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4 = r12.getResponseCode();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r4 == r5) goto L_0x0055;\n L_0x0039:\n r2 = new java.lang.Exception;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r6 = \"Leanplum: Error sending request to: \";\n r5.<init>(r6);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5.append(r11);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11 = \", HTTP status code: \";\n r5.append(r11);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5.append(r4);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11 = r5.toString();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r2.<init>(r11);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n throw r2;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n L_0x0055:\n r11 = new java.util.Stack;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11.<init>();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4 = r13;\n L_0x005b:\n r5 = new java.io.File;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5.<init>(r4);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4 = r5.getParent();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n if (r4 == 0) goto L_0x006a;\n L_0x0066:\n r11.push(r4);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n goto L_0x005b;\n L_0x006a:\n r4 = r11.isEmpty();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n if (r4 != 0) goto L_0x0091;\n L_0x0070:\n r4 = r11.pop();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4 = (java.lang.String) r4;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4 = com.leanplum.p069a.C2594s.m9734d(r4);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5 = new java.io.File;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5.<init>(r4);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5 = r5.mkdir();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n if (r5 != 0) goto L_0x006a;\n L_0x0085:\n r5 = new java.lang.Object[r1];\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r6 = \"Failed to create directory: \";\n r5[r0] = r6;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5[r3] = r4;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n com.leanplum.p069a.ao.m9517b(r5);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n goto L_0x006a;\n L_0x0091:\n r11 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r5 = com.leanplum.p069a.C2594s.m9734d(r13);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r4.<init>(r5);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11.<init>(r4);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n com.leanplum.p069a.bo.m9609a(r12, r11);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11 = f7966m;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11 = r11 - r3;\n f7966m = r11;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11 = r10.f7978x;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n if (r11 == 0) goto L_0x00b0;\n L_0x00ab:\n r11 = r10.f7978x;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11.mo2627a(r2);\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n L_0x00b0:\n r11 = f7966m;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n if (r11 != 0) goto L_0x00bd;\n L_0x00b4:\n r11 = f7967n;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n if (r11 == 0) goto L_0x00bd;\n L_0x00b8:\n r11 = f7967n;\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n r11.mo2609a();\t Catch:{ Exception -> 0x00c3, all -> 0x00c5 }\n L_0x00bd:\n if (r12 == 0) goto L_0x012c;\n L_0x00bf:\n r12.disconnect();\n return;\n L_0x00c3:\n r11 = move-exception;\n goto L_0x00c9;\n L_0x00c5:\n r11 = move-exception;\n goto L_0x012d;\n L_0x00c7:\n r11 = move-exception;\n r15 = r2;\n L_0x00c9:\n r2 = r12;\n L_0x00ca:\n r12 = r11 instanceof java.io.EOFException;\t Catch:{ all -> 0x0014 }\n if (r12 == 0) goto L_0x00f4;\n L_0x00ce:\n if (r2 == 0) goto L_0x00f4;\n L_0x00d0:\n r12 = r2.getURL();\t Catch:{ all -> 0x0014 }\n r12 = r12.equals(r15);\t Catch:{ all -> 0x0014 }\n if (r12 != 0) goto L_0x00f4;\n L_0x00da:\n r5 = 0;\n r11 = r2.getURL();\t Catch:{ all -> 0x0014 }\n r6 = r11.toString();\t Catch:{ all -> 0x0014 }\n r9 = new java.util.HashMap;\t Catch:{ all -> 0x0014 }\n r9.<init>();\t Catch:{ all -> 0x0014 }\n r4 = r10;\n r7 = r13;\n r8 = r14;\n r4.m9541a(r5, r6, r7, r8, r9);\t Catch:{ all -> 0x0014 }\n if (r2 == 0) goto L_0x00f3;\n L_0x00f0:\n r2.disconnect();\n L_0x00f3:\n return;\n L_0x00f4:\n r12 = new java.lang.Object[r1];\t Catch:{ all -> 0x0014 }\n r14 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0014 }\n r15 = \"Error downloading resource:\";\n r14.<init>(r15);\t Catch:{ all -> 0x0014 }\n r14.append(r13);\t Catch:{ all -> 0x0014 }\n r13 = r14.toString();\t Catch:{ all -> 0x0014 }\n r12[r0] = r13;\t Catch:{ all -> 0x0014 }\n r12[r3] = r11;\t Catch:{ all -> 0x0014 }\n com.leanplum.p069a.ao.m9516a(r12);\t Catch:{ all -> 0x0014 }\n r12 = f7966m;\t Catch:{ all -> 0x0014 }\n r12 = r12 - r3;\n f7966m = r12;\t Catch:{ all -> 0x0014 }\n r12 = r10.f7979y;\t Catch:{ all -> 0x0014 }\n if (r12 == 0) goto L_0x0119;\n L_0x0114:\n r12 = r10.f7979y;\t Catch:{ all -> 0x0014 }\n r12.mo2612a(r11);\t Catch:{ all -> 0x0014 }\n L_0x0119:\n r11 = f7966m;\t Catch:{ all -> 0x0014 }\n if (r11 != 0) goto L_0x0126;\n L_0x011d:\n r11 = f7967n;\t Catch:{ all -> 0x0014 }\n if (r11 == 0) goto L_0x0126;\n L_0x0121:\n r11 = f7967n;\t Catch:{ all -> 0x0014 }\n r11.mo2609a();\t Catch:{ all -> 0x0014 }\n L_0x0126:\n if (r2 == 0) goto L_0x012c;\n L_0x0128:\n r2.disconnect();\n return;\n L_0x012c:\n return;\n L_0x012d:\n if (r12 == 0) goto L_0x0132;\n L_0x012f:\n r12.disconnect();\n L_0x0132:\n throw r11;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.a.aw.a(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map):void\");\n }", "title": "" }, { "docid": "375ce81a273e9bc4c26364c33e814407", "score": "0.57621264", "text": "int mo6573a() {\n return 0;\n }", "title": "" }, { "docid": "9c78dfd9e1a470b1bd008504d19d9197", "score": "0.57615525", "text": "protected void mo1958j() {\n }", "title": "" }, { "docid": "8d35b13080846681d5779f9e386346a1", "score": "0.57590836", "text": "void mo3613a();", "title": "" }, { "docid": "fbbd37f37985e3645a8e869134fefc6e", "score": "0.5752029", "text": "public abstract int mo28574t();", "title": "" }, { "docid": "10d4b99527264ba7ece21e9c4fd7f5ee", "score": "0.5747282", "text": "@Test\n public void test206() throws Throwable {\n String string0 = StringUtils.center(\"jSU}\", 642);\n int int0 = StringUtils.indexOf(\" jSU} \", '1', (-1948));\n int int1 = StringUtils.lastIndexOf(\"a?sUz3aI\", '=');\n String string1 = StringUtils.remove(\"Y?\\\"U\", ']');\n String string2 = StringUtils.leftPad(\"99.0\", (-1047), 'T');\n String string3 = StringUtils.defaultString(\"java.specification.vendor\", \"'; the SystemUtils property value will default to null.\");\n String string4 = StringUtils.reverse(\"!r%8q`3>\\\"y1\");\n String string5 = StringUtils.stripEnd(\"B\", \" vs \");\n }", "title": "" }, { "docid": "d6399070244da4ae2bd0cda9ffd0678f", "score": "0.5744439", "text": "public abstract long mo28570p() throws IOException;", "title": "" }, { "docid": "50f6eb8f0f97453f337a7eea42abf300", "score": "0.5744432", "text": "public final void mo11846a() {\n }", "title": "" }, { "docid": "fba35869ecce85161f623a9af60e7895", "score": "0.57432634", "text": "public String b()\r\n/* 15: */ {\r\n/* 16:217 */ return \"random.anvil_land\";\r\n/* 17: */ }", "title": "" }, { "docid": "fb5cbac9d3c38f0870bb03948a2c9a01", "score": "0.5743131", "text": "String mo13146b(Context context, long j);", "title": "" }, { "docid": "83895c79fbae49f8a20db729b571b069", "score": "0.5735033", "text": "void mo117a(C37022f c37022f, C8173a c8173a, C37022f c37022f2);", "title": "" }, { "docid": "f17fc6d9dfe0b43268957e13097d45c5", "score": "0.57341295", "text": "void mo25044g();", "title": "" }, { "docid": "6d88985ba5b7bb31042a3ddad42a77e0", "score": "0.57340765", "text": "public abstract int mo28568n() throws IOException;", "title": "" }, { "docid": "47c10fdc1b28fa964e0a2f5ebef2da6d", "score": "0.5732666", "text": "void mo95276a();", "title": "" }, { "docid": "bbf7d2bfdc57e1ee0ea5fb4fb0499850", "score": "0.5731479", "text": "String mo13147c(Context context, long j);", "title": "" }, { "docid": "93df35682c80123f491393ffb87e555b", "score": "0.5731048", "text": "void mo39551OF(int i);", "title": "" }, { "docid": "0f5a32129428fad3df0c3a52baf4a7f8", "score": "0.573084", "text": "public void mo4211m() {\n }", "title": "" } ]
f1d1e795df005fbfe59aa98a8634c7d2
please leave following line alone, necessary for keyboard/mouse input
[ { "docid": "3191d1f2b644c64801c120ea36181f99", "score": "0.0", "text": "public static void main(String args[]) {\n\t\tKeyController kC = new KeyController(Canvas.getInstance(),new starter());\n\t\tMouseController mC = new MouseController(Canvas.getInstance(),new starter());\n\t\tm = new Rectangle(50,100,300,300);\n\t\tColor newColor = new Color(255,200,50);\n\t\tm.setColor(newColor);\n\t\tm.draw();\n\t\tm.fill();\n\t\tRectangle a = new Rectangle(297,0,5,500);\n\t\ta.draw();\n\t\ta.fill();\n\t\tRectangle b = new Rectangle(0,297,500,5);\n\t\tb.draw();\n\t\tb.fill();\n\n\t}", "title": "" } ]
[ { "docid": "06f94f003cc11f57d18539ea2b94c6b4", "score": "0.6750404", "text": "@Override\n \tprotected void mouse() {\n \t\t\n \t}", "title": "" }, { "docid": "1c9cf8423b5c4584248c912f30ec2462", "score": "0.6658055", "text": "@Override\r\n\tpublic void input(MouseHandle mosue) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c236259c599a32833bf6b0cede4de9f", "score": "0.6571697", "text": "private void handleMouseInput (double x, double y) {\n \treturn;\n }", "title": "" }, { "docid": "db4c7ee8160af4526a30364ea1a972df", "score": "0.645078", "text": "@Override\n\tpublic void handleInput() {\n\t\t\n\t}", "title": "" }, { "docid": "939bdc743baad6199a8e1af6f3426f4a", "score": "0.63954115", "text": "private void handleInput() {\n\n\t}", "title": "" }, { "docid": "33f6932831fe502607adfaa8b484d9ca", "score": "0.6388636", "text": "void input() {\n enableKeyTypedInConsole(true);\n cursor(0, 0);\n rightInput = false;\n while (!rightInput) {\n delay(50);\n }\n }", "title": "" }, { "docid": "3766a60592e8b19b894e7741479cb69d", "score": "0.6386682", "text": "@Override\n\tpublic void keyPressed() {\n\t\t\n\t}", "title": "" }, { "docid": "26cf49cf2c59dd5a85b42922c5b05a02", "score": "0.6359573", "text": "void mouseInputResponse(MouseEvent e)\n\t{\n\t}", "title": "" }, { "docid": "1d4b5083c8dd6461df36a24cea57b967", "score": "0.6349985", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2153ed80919d4dae09cc6e0bd1d5fe7a", "score": "0.630669", "text": "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\r\n\t\t\t}", "title": "" }, { "docid": "c7fde2992f1c798292ead844834e7a7d", "score": "0.62567794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "c7fde2992f1c798292ead844834e7a7d", "score": "0.62567794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "c7fde2992f1c798292ead844834e7a7d", "score": "0.62567794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "c7fde2992f1c798292ead844834e7a7d", "score": "0.62567794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "c7fde2992f1c798292ead844834e7a7d", "score": "0.62567794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "c7fde2992f1c798292ead844834e7a7d", "score": "0.62567794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "892269ab5c0b3737bd9fe676913300ed", "score": "0.6250181", "text": "@Override\n\t\t\tpublic void mousePressed() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "5a6c87106a223007363163a1950b710f", "score": "0.6235978", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}", "title": "" }, { "docid": "5047388e37851b28c86445238c1bc501", "score": "0.6223649", "text": "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t}", "title": "" }, { "docid": "c68e915d6055dec9e9e5a8a6751e3f4d", "score": "0.6211767", "text": "@Override\n\tpublic void mousePressed() {\n\n\t}", "title": "" }, { "docid": "60a636c68be3c22b0b08b9b3b234edf6", "score": "0.6203978", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "60a636c68be3c22b0b08b9b3b234edf6", "score": "0.6203978", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "60a636c68be3c22b0b08b9b3b234edf6", "score": "0.6203978", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "60a636c68be3c22b0b08b9b3b234edf6", "score": "0.6203978", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "099d65db6bfc0e63ff9ec2717a3d144d", "score": "0.61881423", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}", "title": "" }, { "docid": "099d65db6bfc0e63ff9ec2717a3d144d", "score": "0.61881423", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}", "title": "" }, { "docid": "099d65db6bfc0e63ff9ec2717a3d144d", "score": "0.61881423", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}", "title": "" }, { "docid": "099d65db6bfc0e63ff9ec2717a3d144d", "score": "0.61881423", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}", "title": "" }, { "docid": "b5fbc80cf698e57e287ba40de96294fa", "score": "0.61794585", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t}", "title": "" }, { "docid": "b5fbc80cf698e57e287ba40de96294fa", "score": "0.61794585", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t}", "title": "" }, { "docid": "02f72a8d25e15954619435ac71f17979", "score": "0.6170476", "text": "@Override\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "d1e1323b868b953335eef5f35c93a21b", "score": "0.6162563", "text": "@Override\r\n\t\t\tpublic void mousePressed(java.awt.event.MouseEvent e) {\n\r\n\t\t\t}", "title": "" }, { "docid": "454caa67a35cdb657e6e4073d2bec797", "score": "0.61476135", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "454caa67a35cdb657e6e4073d2bec797", "score": "0.61476135", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "454caa67a35cdb657e6e4073d2bec797", "score": "0.61476135", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "454caa67a35cdb657e6e4073d2bec797", "score": "0.61476135", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8742e7295d65cb023b7937ecf5934571", "score": "0.61275434", "text": "public void eventInput(MouseEvent e) {\n\n\t}", "title": "" }, { "docid": "87e2a2721d4edc551e5ebd892da6f1dc", "score": "0.612395", "text": "private void input() {\r\n\t\t// check for input\r\n\t\t// Sample mouse and key usage\r\n\t\tcamera.processKeyboard(16f, camAccel);\r\n\r\n\t\tif (mouseEnabled) {\r\n\t\t\tif (Mouse.isButtonDown(0)) {\r\n\t\t\t\tMouse.setGrabbed(true);\r\n\t\t\t} else if (Mouse.isButtonDown(1)) {\r\n\t\t\t\tMouse.setGrabbed(false);\r\n\t\t\t}\r\n\t\t\tif (Mouse.isGrabbed()) {\r\n\t\t\t\tcamera.processMouse(0.5f, 85, -85);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_N)) {\r\n\t\t\tmouseEnabled = true;\r\n\t\t}\r\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_RETURN)) {\r\n\t\t\t// return camera to center\r\n\t\t\tcamera.setPosition(0, 0, 0);\r\n\t\t\tcamera.setRotation(0, 0, 0);\r\n\t\t}\r\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {\r\n\t\t\tquit();\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "c0f3f38bbe6eda570291cb194448dbc7", "score": "0.6123192", "text": "@Override\n public void keyPressed(KeyEvent e) {\n\n }", "title": "" }, { "docid": "b48dacec74570d55da1d57450a291a86", "score": "0.6093504", "text": "@Override\n\tpublic void keyPressed(int key) {\n\n\t}", "title": "" }, { "docid": "660d8687585b0a293fee77f49c8c4fcd", "score": "0.6090971", "text": "@Override\n public void keyPressed(KeyEvent e) {\n\n }", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "95a4c1f7be1478234de4d336a42523d9", "score": "0.608863", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "22ed90196ead15fea3da81f0cb5c9555", "score": "0.6086928", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "22ed90196ead15fea3da81f0cb5c9555", "score": "0.6086928", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "bbd88a77568cc3d95626a5ca91f958ab", "score": "0.6084832", "text": "@Override\n public void keyPressed(KeyEvent e) {\n \n }", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b62389ca91f78206602d147c9952b76", "score": "0.6079305", "text": "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d54a64d32a459867f09dfb76b4d79742", "score": "0.6075007", "text": "@Override\r\n public void keyPressed(KeyEvent e) {\n\r\n }", "title": "" }, { "docid": "acf49e92f55388b0e68ce3828ad58c16", "score": "0.6074071", "text": "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "acf49e92f55388b0e68ce3828ad58c16", "score": "0.6074071", "text": "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "acf49e92f55388b0e68ce3828ad58c16", "score": "0.6074071", "text": "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "d91d573fd85ce6ce03e9e4ffb5158f52", "score": "0.60735697", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\r\n\t\t\t}", "title": "" }, { "docid": "d91d573fd85ce6ce03e9e4ffb5158f52", "score": "0.60735697", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\r\n\t\t\t}", "title": "" }, { "docid": "d91d573fd85ce6ce03e9e4ffb5158f52", "score": "0.60735697", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\r\n\t\t\t}", "title": "" }, { "docid": "d91d573fd85ce6ce03e9e4ffb5158f52", "score": "0.60735697", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\r\n\t\t\t}", "title": "" }, { "docid": "e36dfa9bf147b0390da1a292701e2dc9", "score": "0.60726345", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent arg0) {\n\r\n\t}", "title": "" }, { "docid": "3c01ea15a8b8c38192eb93e01de318f1", "score": "0.6069989", "text": "@Override\n public void keyReleased ( KeyEvent e )\n {\n\n }", "title": "" }, { "docid": "099ecc6d8ceb6e5599acaa229efc7f90", "score": "0.6068513", "text": "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "099ecc6d8ceb6e5599acaa229efc7f90", "score": "0.6068513", "text": "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "e97ae4ad9940503fa9456da631b3f3fd", "score": "0.60542953", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" } ]
5156dbbf730d92af1361760e86cdd5b3
/ Checks (if necessary) and save data
[ { "docid": "01a265e9fbba6373f8f7fca825df8593", "score": "0.0", "text": "public static final String callMethodFor (final EFormElement field, final String value)\n {\n String checkInputReturnMessage = Data.CHECKMESSAGE_SUCCESS;\n\n switch (field)\n {\n /*\n * Order data\n */\n case ORDER_ID:\n if (value != null)\n checkInputReturnMessage = InputChecker.checkOrderReference (value);\n\n if (checkInputReturnMessage.equals (\"ok\"))\n invoiceData.getInvoiceRecipient ().getOrderReference ().setOrderId (value);\n\n invoiceData.getInvoiceRecipient ().getOrderReference ().checkIfOrderIDIsGovernmentOrderNumber ();\n\n break;\n\n case ORDER_REFERENCEDATE:\n invoiceData.getInvoiceRecipient ().getOrderReference ().setReferenceDate (value);\n break;\n\n case ORDER_DESCRIPTION:\n invoiceData.getInvoiceRecipient ().getOrderReference ().setDescription (value);\n break;\n\n case SUPPLIER_ID:\n if (value != null)\n checkInputReturnMessage = InputChecker.checkSupplierID (value);\n\n if (checkInputReturnMessage.equals (\"ok\"))\n invoiceData.getBiller ().setSupplierID (value);\n\n break;\n\n case INVOICE_NUMBER:\n invoiceData.setInvoiceNumber (value);\n break;\n\n case INVOICE_DATE:\n invoiceData.setInvoiceDate (value);\n break;\n\n case INVOICE_CURRENCY:\n final ECurrency e = ECurrency.getFromInvoiceCurrencyOrNull (value);\n\n invoiceData.setInvoiceCurrency (e.getInvoiceCurrencyShort ());\n break;\n\n case FROM_DATE:\n invoiceData.getDelivery ().setFromDateInternal (value);\n break;\n\n case TO_DATE:\n invoiceData.getDelivery ().setToDateInternal (value);\n break;\n\n case COMMENT:\n invoiceData.setComment (value);\n break;\n\n /*\n * Contact data - biller\n */\n case BILLER_NAME:\n invoiceData.getBiller ().getAddress ().setName (value);\n break;\n\n case BILLER_STREET:\n invoiceData.getBiller ().getAddress ().setStreet (value);\n break;\n\n case BILLER_ZIP:\n invoiceData.getBiller ().getAddress ().setZip (value);\n break;\n\n case BILLER_TOWN:\n invoiceData.getBiller ().getAddress ().setTown (value);\n break;\n\n case BILLER_COUNTRY:\n invoiceData.getBiller ().getAddress ().setCountry (value);\n break;\n\n case BILLER_EMAIL:\n invoiceData.getBiller ().getAddress ().setEmail (value);\n break;\n\n case BILLER_PHONE:\n invoiceData.getBiller ().getAddress ().setPhone (value);\n break;\n\n case BILLER_CONTACT:\n invoiceData.getBiller ().getAddress ().setContact (value);\n break;\n\n /*\n * Contact data - invoice recipient\n */\n case INVOICERECIPIENT_NAME:\n invoiceData.getInvoiceRecipient ().getAddress ().setName (value);\n break;\n\n case INVOICERECIPIENT_STREET:\n invoiceData.getInvoiceRecipient ().getAddress ().setStreet (value);\n break;\n\n case INVOICERECIPIENT_ZIP:\n invoiceData.getInvoiceRecipient ().getAddress ().setZip (value);\n break;\n\n case INVOICERECIPIENT_TOWN:\n invoiceData.getInvoiceRecipient ().getAddress ().setTown (value);\n break;\n\n case INVOICERECIPIENT_COUNTRY:\n invoiceData.getInvoiceRecipient ().getAddress ().setCountry (value);\n break;\n\n case INVOICERECIPIENT_EMAIL:\n invoiceData.getInvoiceRecipient ().getAddress ().setEmail (value);\n break;\n\n case INVOICERECIPIENT_PHONE:\n invoiceData.getInvoiceRecipient ().getAddress ().setPhone (value);\n break;\n\n case INVOICERECIPIENT_CONTACT:\n invoiceData.getInvoiceRecipient ().getAddress ().setContact (value);\n break;\n\n /*\n * Contact data - delivery\n */\n case DELIVERY_ID:\n invoiceData.getDelivery ().setDeliveryID (value);\n break;\n\n case DELIVERY_NAME:\n invoiceData.getDelivery ().getAddress ().setName (value);\n break;\n\n case DELIVERY_STREET:\n invoiceData.getDelivery ().getAddress ().setStreet (value);\n break;\n\n case DELIVERY_ZIP:\n invoiceData.getDelivery ().getAddress ().setZip (value);\n break;\n\n case DELIVERY_TOWN:\n invoiceData.getDelivery ().getAddress ().setTown (value);\n break;\n\n case DELIVERY_COUNTRY:\n invoiceData.getDelivery ().getAddress ().setCountry (value);\n break;\n\n case DELIVERY_EMAIL:\n invoiceData.getDelivery ().getAddress ().setEmail (value);\n break;\n\n case DELIVERY_PHONE:\n invoiceData.getDelivery ().getAddress ().setPhone (value);\n break;\n\n case DELIVERY_CONTACT:\n invoiceData.getDelivery ().getAddress ().setContact (value);\n break;\n\n /*\n * Payment fields\n */\n case PAYMENT_BIC:\n invoiceData.getPaymentMethod ().getUniversalBankTransaction ().getBeneficiaryAccount ().setBic (value);\n break;\n\n case PAYMENT_IBAN:\n invoiceData.getPaymentMethod ().getUniversalBankTransaction ().getBeneficiaryAccount ().setIban (value);\n break;\n\n case PAYMENT_ACCOUNTOWNER:\n invoiceData.getPaymentMethod ()\n .getUniversalBankTransaction ()\n .getBeneficiaryAccount ()\n .setBankAccountOwner (value);\n break;\n\n /*\n * VAT id numbers\n */\n case DETAILS_RIGHT_VATID_BILLER:\n invoiceData.getBiller ().setVatID (value);\n break;\n\n case DETAILS_RIGHT_VATID_INVOICERECIPIENT:\n invoiceData.getInvoiceRecipient ().setVatID (value);\n break;\n\n /*\n * Due date\n */\n case DUE_DATE:\n if (value != null)\n {\n invoiceData.addPaymentContitions ();\n invoiceData.getPaymentConditions ().setDueDate (value);\n }\n else\n {\n if (invoiceData.getPaymentConditions () != null)\n invoiceData.getPaymentConditions ().setDueDate (value);\n }\n break;\n\n /*\n * Set default return message\n */\n default:\n checkInputReturnMessage = Data.CHECKMESSAGE_SUCCESS;\n }\n\n return checkInputReturnMessage;\n }", "title": "" } ]
[ { "docid": "720a4d816285f3c49bf0f7e77a8ff5e4", "score": "0.6910971", "text": "@Override\n\tpublic void saveData() {\n\t\tsuper.saveData();\n\t}", "title": "" }, { "docid": "45cabaa9cd63de352f0d5c0b99f5d447", "score": "0.6885286", "text": "public void saveData();", "title": "" }, { "docid": "056ed7b9e661d49a720ad4b326bb8323", "score": "0.680469", "text": "public void saveData(){\n SavedData.isOldGame = true;\n SavedData.elapsedTime = elapsedTime;\n SavedData.player = player;\n SavedData.lvl = lvl;\n SavedData.enemies = enemies;\n }", "title": "" }, { "docid": "24deb23cfd9c134ba752ca18d65894d1", "score": "0.67247355", "text": "@Override\n protected boolean saveAllData() {\n return false;\n }", "title": "" }, { "docid": "4fb7ff1f04993df835e21a2c0cc5b443", "score": "0.6716903", "text": "public void saveData () throws FileNotFoundException, IOException{\n data.saveData();\n }", "title": "" }, { "docid": "4868eb99713d536c73ff25ee1a4afa68", "score": "0.66601926", "text": "@Override\n\tpublic int saveData(Boolean required) {\n\t\treturn 0; \n\t}", "title": "" }, { "docid": "1bc465125157dde76b459d1345718eb1", "score": "0.6634737", "text": "public void saveData() {\r\n\t\ttry {\r\n\t\t\tdata.save(dfile);\r\n\t\t} catch (IOException ex) {\r\n\t\t\tBukkit.getServer().getLogger().severe(ChatColor.RED + \"Could not save data.yml!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "797672c7924624c4ce0e799f1e58a84b", "score": "0.65256214", "text": "private Boolean persistData() {\n\t\tBoolean result = false;\t\t\n\t\t\n\t\ttry{\n\t\t\tDate date = new Date();\n\t\t\tUserData userData = new UserData();\n\t\t\tCountryData countryData = new CountryData();\n\t\t\t\n\t\t\t//Get the attempts count (Example: 10)\n\t\t\tString attemptsCount = getServletContext().getInitParameter(\"attemptsCount\");\n\t\t\t\t\t\t\n\t\t\t//Set the attributes\n\t\t\tuserData.setCreatedOn(date.toString());\n\t\t\tuserData.setDeviceId(this.deviceId);\n\t\t\tuserData.setSIMId(this.simId);\n\t\t\tuserData.setCountryCode(this.countryCode);\n\t\t\tuserData.setAttemptsLeft(attemptsCount);\n\t\t\tuserData.setPassPhrase(this.passPhrase);\n\t\t\tuserData.setPhoneNumber(this.phoneNumber);\n\t\t\tuserData.setSeed(this.seed);\n\t\t\tuserData.setToken(this.token);\n\t\t\tuserData.setEmailId(this.emailId);\n\t\t\tuserData.setUserId(this.phoneNumber + this.countryCode);\n\t\t\t\n\t\t\tcountryData.setCountryCode(this.countryCode);\n\t\t\t\n\t\t\t//Persist the data onto google data store\n\t\t\tDBHandler dbHandler = new DBHandler();\n\t\t\tresult = dbHandler.storeData(userData);\t\t\n\t\t\t\n\t\t\tresult = dbHandler.storeData(countryData);\n\t\t\t\n\t\n\t\t}catch(Exception ex){\n\t\t\tresult = false;\n\t\t}\n\t\t\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1b9bfba1c8e37ca18138ce9d8c1cb82b", "score": "0.6515598", "text": "public void saveData(){\n }", "title": "" }, { "docid": "9f7b58f27443ed8b165cc1786f9b47ce", "score": "0.6486076", "text": "public void saveData()\n {\n if(validate()) {\n Log.i(\"info\", \"Saving Data\");\n data = new Data(message.getText().toString(), phone.getText().toString(), typeVal);\n handler.save(data);\n Log.i(\"here\", \"saved successfully\");\n fab.show();\n title.setText(R.string.title_final);\n }\n }", "title": "" }, { "docid": "41420fbeb22d3433d1e7073bb4bbe461", "score": "0.64774746", "text": "private void saveData() {\n\t\tUserInfo info = new UserInfo();\n\t\tinfo.setName(mNameEdit.getText().toString().trim());\n\t\tinfo.setSurname(mSurnameEdit.getText().toString().trim());\n\t\ttry {\n\t\t\tinfo.setDateOfBirth(mSdf.parse(mDateOfBirth.getText().toString()).getTime());\n\t\t} catch (ParseException e) { }\n\t\tinfo.setBio(mBioEdit.getText().toString().trim());\n\t\tinfo.setLink(mLinkEdit.getText().toString().trim());\n\t\tinfo.setEmail(mEmailEdit.getText().toString().trim());\n\t\t\n\t\tDbHelper db = new DbHelper(getActivity());\n\t\tdb.open();\t\t\n\t\tdb.updateUserInfo(info);\n\t\tdb.close();\n\t}", "title": "" }, { "docid": "e16089dee71e57731f897012b54cfb1a", "score": "0.64405876", "text": "public boolean savOrUpdate() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b77121800e22ada0363a074235e51ef7", "score": "0.64350444", "text": "@Override\n protected boolean save(IMeasurementData md) throws Exception {\n return false;\n }", "title": "" }, { "docid": "b0acaf67c897b6508d7d8dc31c917d63", "score": "0.64295584", "text": "public void saveData() {\n AccessData.db.deleteSports(sportToEdit);\n HashMap<String,Object> map = new HashMap<>();\n map.put(\"bio\",bio_content.getText().toString());\n map.put(\"age\",date.getTime());\n map.put(\"firstname\",fname_text.getText().toString());\n map.put(\"name\", name_text.getText().toString());\n map.put(\"sports\",sportItems);\n\n AccessData.db.updateUser(AccessData.currentUser,map);\n saved=true;\n if(isChanged == true) {\n AccessData.db.addPhoto(uriUser);\n }\n }", "title": "" }, { "docid": "05707769eeb700cf0f26ae4bb90b5519", "score": "0.64103925", "text": "private boolean hasUnsaveData() {\n \treturn false;\n }", "title": "" }, { "docid": "2d7c56292043c25038b717d0a89b8e23", "score": "0.64051867", "text": "public static void save(){\n\t\ttry{\n\t\t\twriteLoanFile();\n\t\t\twriteUserFile();\n\t\t\twriteBookFile();\n\t\t\twriteJournalFile();\n\t\t}\n\t\tcatch(FileNotFoundException e){\n\t\t\tSystem.out.println(\"Failed to Save: Input files may have been overwriten..\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "title": "" }, { "docid": "db559e862f8786a6a1b14b6d7bbe0818", "score": "0.6374454", "text": "public void saveData() {\n\n\t\tthis.model.setProduit(this.produitAdapter.getSelectedItem());\n\n\t\tthis.model.setMachine(this.machineAdapter.getSelectedItem());\n\n\t\tthis.model.setUser(this.userAdapter.getSelectedItem());\n\n\t\tthis.model.setDuree(this.dureeView.getEditableText().toString());\n\n\t\tthis.model.setDateEntre(this.dateEntreView.getEditableText().toString());\n\n\t\tthis.model.setDateSortie(this.dateSortieView.getEditableText().toString());\n\n\t}", "title": "" }, { "docid": "d46f376df80db0032b24bb0f57b86b62", "score": "0.63627183", "text": "private Boolean CheckDataBeforeSave()\n\t{\n\t\tEditText name = (EditText)findViewById(R.id.txtProfileName);\n\t\t\n\t\tif (name.getText().toString().length() == 0)\n\t\t{\n\t\t\tname.requestFocus();\n\t\t\taPartoToast.ShowToast(this, getCurrentFocus(), R.string.option_error_missing_name);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// check the number\n\t\tEditText numb = (AutoCompleteTextView)findViewById(R.id.txtNumber);\n\t\t\n\t\tif (numb.getText().toString().length() == 0)\n\t\t{\n\t\t\tnumb.requestFocus();\n\t\t\taPartoToast.ShowToast(this, getCurrentFocus(), R.string.option_error_missing_number);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// check the text message\n\t\tEditText sms = (EditText)findViewById(R.id.txtMessage);\n\t\t\n\t\tif (sms.getText().toString().length() == 0)\n\t\t{\n\t\t\tsms.requestFocus();\n\t\t\taPartoToast.ShowToast(this, getCurrentFocus(), R.string.option_error_missing_text);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "5aa31813cd07e67ff4473551c254b05d", "score": "0.63564086", "text": "public void saveToUserData()\n {\n try\n {\n data.indication = edIndication.getText();\n data.name_dse = edName.getText();\n data.sprav_dse = edSpravNo.getText();\n data.first_use = edFirstUse.getText();\n //data.otvetstv = LUtil.getSelectedStrCB(cbOtvetstv);\n data.izdelie = edIzd.getText();\n /*\n if (data.code_dse.equals(\"\"))\n\tdata.code_dse = edKodAsup.getText();\n else if (edKodAsup.getText().equals(\"\"))\n\tdata.code_dse = \"\";\n */\n }\n catch (Exception ex)\n {\n MessageBox.post(ex);\n }\n edIndication.setForeground(Color.BLACK);\n edName.setForeground(Color.BLACK);\n }", "title": "" }, { "docid": "c5ca2421333460a93336baccfa8e1f5a", "score": "0.6348564", "text": "public void save() {\n if (!(Boolean) Configuration.getConfig(Configuration.DATASTORAGE))\n return;\n\n if (playerDataExists(uid)) {\n FileConfiguration section = MyZ.instance.getPlayerDataConfig(uid);\n List<String> stringFriends = new ArrayList<String>();\n for (UUID id : friends)\n stringFriends.add(id.toString());\n section.set(\"location\", location);\n section.set(\"player.kills\", player_kills);\n section.set(\"zombie.kills\", zombie_kills);\n section.set(\"pigman.kills\", pigman_kills);\n section.set(\"giant.kills\", giant_kills);\n section.set(\"player.kills_life\", player_kills_life);\n section.set(\"zombie.kills_life\", zombie_kills_life);\n section.set(\"pigman.kills_life\", pigman_kills_life);\n section.set(\"giant.kills_life\", giant_kills_life);\n section.set(\"player.kills_life_record\", player_kills_life_record);\n section.set(\"zombie.kills_life_record\", zombie_kills_life_record);\n section.set(\"pigman.kills_life_record\", pigman_kills_life_record);\n section.set(\"giant.kills_life_record\", giant_kills_life_record);\n section.set(\"deaths\", deaths);\n section.set(\"rank\", rank);\n section.set(\"isBleeding\", isBleeding);\n section.set(\"isPoisoned\", isPoisoned);\n section.set(\"wasKilledNPC\", wasKilledNPC);\n section.set(\"timeOfKickban\", timeOfKickban);\n section.set(\"friends\", stringFriends);\n section.set(\"heals_life\", heals_life);\n section.set(\"thirst\", thirst);\n section.set(\"clan\", clan);\n section.set(\"minutes.played\", minutes_alive);\n section.set(\"minutes.played_life\", minutes_alive_life);\n section.set(\"minutes.played_life_record\", minutes_alive_life_record);\n section.set(\"research\", research);\n section.set(\"isZombie\", isZombie);\n section.set(\"legBroken\", isBrokenLeg);\n try {\n section.save(new File(MyZ.instance.getDataFolder() + File.separator + \"data\" + File.separator\n + SQLManager.UUIDtoString(uid) + \".yml\"));\n } catch (IOException e) {\n MyZ.instance.getLogger().warning(\"Unable to save a PlayerData for \" + uid.toString() + \": \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "f73fc7ad03ece74db30c37910ebaf716", "score": "0.63280874", "text": "public void storeData(){\n\t}", "title": "" }, { "docid": "35b49ad9242eb19f627a454c915b39c2", "score": "0.6322314", "text": "private void saveData() {\n if (check_holecard.isChecked()) house_strat.setHolecard(true);\n else house_strat.setHolecard(false);\n if (check_draw17.isChecked()) house_strat.setDraw17(true);\n else house_strat.setDraw17(false);\n if (check_doubleonsoft.isChecked()) house_strat.setDoubleonsoft(true);\n else house_strat.setDoubleonsoft(false);\n if (check_splitacesone.isChecked()) house_strat.setSplitacesone(true);\n else house_strat.setSplitacesone(false);\n if (check_splitacesnobjs.isChecked()) house_strat.setSplitacesnobjs(true);\n else house_strat.setSplitacesnobjs(false);\n if (check_resplitaces.isChecked()) house_strat.setResplitaces(true);\n else house_strat.setResplitaces(false);\n if (check_surrender.isChecked()) house_strat.setSurrender(true);\n else house_strat.setSurrender(false);\n if (check_surrendervsace.isChecked()) house_strat.setSurrendervsace(true);\n else house_strat.setSurrendervsace(false);\n if (check_surrenderearly.isChecked()) house_strat.setSurrenderearly(true);\n else house_strat.setSurrenderearly(false);\n\n int i = decks.getSelectedItemPosition();\n if (i == 5) i = 8;\n else if (i == 4) i = 6;\n else i++;\n house_strat.setDecks(i);\n\n i = max_splits.getSelectedItemPosition();\n if (i == 3) i = 0;\n else i = i + 1;\n house_strat.setMaxsplits(i);\n\n intent.putExtra(\"object\", (Parcelable) house_strat);\n\n // send back result\n finishClass();\n }", "title": "" }, { "docid": "eee01bd3b78bdcba5aeecd32aa5c2423", "score": "0.6316506", "text": "private void saveData() {\n String name = nameEditText.getText().toString();\n String pwd = pwdEditText.getText().toString();\n //create file\n SharedPreferences preferences = getSharedPreferences(SHAREDPREFS, MODE_PRIVATE);\n //test case\n //open file\n SharedPreferences.Editor editor = preferences.edit();\n //write to file\n editor.putString(KEYNAME, name);\n editor.putString(KEYPWD, pwd);\n //save file\n editor.commit();\n }", "title": "" }, { "docid": "2eec8cd0c39f35db13363d1c2786879f", "score": "0.63119555", "text": "private void saveState() throws IOException {\n\t\tsaveContents();\n\t\tsaveCriteria();\n\t}", "title": "" }, { "docid": "d2f59ccf19b4d0e5fc1edd4b1ec64e47", "score": "0.63085884", "text": "private void save() {\n\t\tif (Theatre.save()) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\" The Theatre has been successfully saved in the file TheatreData \\n\");\n\t\t} else {\n\t\t\tSystem.out.println(\" There has been an error in saving \\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "24009c56ca0b2fcfb5e432e3fe399925", "score": "0.6299037", "text": "@Override protected void save() {\n \t}", "title": "" }, { "docid": "bcbb548df5aacc35fd07cb21f80de55a", "score": "0.62943035", "text": "private void save() {\n\t\tISecurePreferences preferences = SecurePreferencesFactory.getDefault().node(OUT_KEY);\n\t\ttry {\n\t\t\tpreferences.put(IN_KEY,serialization(),true);\n\t\t\tDescartesIssuesView.resetWizard();\n\t\t} catch (StorageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "09f9aa32a0697f4cdb775b77c138006f", "score": "0.6281616", "text": "public void save() {\n save(true);\n }", "title": "" }, { "docid": "b51b9b64601556d65a9db7001609a7b0", "score": "0.62809867", "text": "public void save() {\r\n\t\tif(this.exists() && validate())\r\n\t\t\tupdate();\r\n\t\telse\r\n\t\t\tinsert();\r\n\t}", "title": "" }, { "docid": "b4a8645723583d52a7bc435bc70575fb", "score": "0.62805575", "text": "public void save()\n\t{\n\t\treturn; // TODO: implement saving during API - DB Layer Link up\n\t}", "title": "" }, { "docid": "6128c0e6df4fa56a6929688f48af66e3", "score": "0.6279553", "text": "protected abstract boolean writedata();", "title": "" }, { "docid": "ea1a1745cb8f8749e8275490432326cf", "score": "0.62634283", "text": "private void saveData() {\n Log.enter();\n SharedPreferences preferenced = getActivity().getPreferences(\n Context.MODE_PRIVATE);\n \n SharedPreferences.Editor editor = preferenced.edit();\n \n editor.putInt(VENDOR, mWheelVendor.getCurrentItem());\n editor.putInt(CAMERA, mWheelCamera.getCurrentItem());\n editor.putInt(APERTURE, mWheelAperture.getCurrentItem());\n editor.putInt(FOCAL_LENGTH, mWheelFocalLength.getCurrentItem());\n editor.putInt(SUBJECT_DISTANCE, mWheelSubjectDistance.getCurrentItem());\n editor.putInt(MEASURE_UNIT, mWheelMeasureUnit.getCurrentItem());\n editor.putInt(MEASURE_RESULT_UNIT, mMeasureResultUnit);\n editor.putString(NEAR_LIMIT, mLabelNearLimitResult.getText().toString());\n editor.putString(FAR_LIMIT, mLabelFarLimitResult.getText().toString());\n editor.putString(HYPERFOCAL, mLabelHyperFocalResult.getText()\n .toString());\n editor.putString(TOTAL, mLabelTotalResutl.getText().toString());\n \n editor.commit();\n }", "title": "" }, { "docid": "84f770d2306dc2b6939af025a819fe38", "score": "0.6261959", "text": "private void write()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfileWrite = openFileOutput(\"ProjectSaveData\", Context.MODE_PRIVATE);\n\t\t}\n\t\tcatch(FileNotFoundException e){}\n\t\ttry\n\t\t{\n\t\t\tfileWrite.write(savedData, 0, savePoints);\n\t\t}\n\t\tcatch(IOException e){}\n\t\ttry\n\t\t{\n\t\t\tfileWrite.close();\n\t\t}\n\t\tcatch(IOException e){}\n\t}", "title": "" }, { "docid": "02e3b7a3a2b670077c2844e6141b3c81", "score": "0.6261929", "text": "protected boolean onSave() {\n\t\tif (isDirty()) {\n\t\t\tString _fname = fname.getText();\n\t\t\tString _lname = lname.getText();\n\t\t\tString _title = title.getText();\n\t\t\tString _houseaddress = houseaddress.getText();\n\t\t\tString _tel = telephone.getText();\n\t\t\tString _email = email.getText();\n\t\t\tString _fbname = facebookname.getText();\n\t\t\tString _handle = twitterhandle.getText();\n\t\t\tString _skype = skypeid.getText();\n\t\t\t\n\t\t\tstore.set(\"firstname\", _fname);\n\t\t\tstore.set(\"lastname\", _lname);\n\t\t\tstore.set(\"title\", _title);\n\t\t\tstore.set(\"houseaddress\", _houseaddress);\n\t\t\tstore.set(\"telephone\", _tel);\n\t\t\tstore.set(\"email\", _email);\n\t\t\tstore.set(\"fbname\", _fbname);\n\t\t\tstore.set(\"twitter\", _handle);\n\t\t\tstore.set(\"skype\", _skype);\n\t\t\t\n\t\t\tstore.commit();\n\t\t}\n\t\treturn super.onSave();\n\t}", "title": "" }, { "docid": "3c6b33c239d52b05e8a85f1aced44e19", "score": "0.62409985", "text": "protected void saveGame()\n\t{\n\t\tsetSaveData();\n\t\twrite();\n\t\treadSaveData();\n\t}", "title": "" }, { "docid": "cc8546e303efcd0acf98c93395e1008e", "score": "0.6240408", "text": "public abstract boolean save();", "title": "" }, { "docid": "4f4a0575880971411483f55f7f02614b", "score": "0.623018", "text": "@Override\n\tpublic void saveData() {\n\t\tsuper.saveData();\n//\t\tString GuarantyType = et_GuarantyType.getText().toString();//抵押物类型\n\t\tString CertType = sp_CertType.getSelectedCode();//权利人证件类型\n\t\tString CertID = et_CertID.getText().toString();//权利人证件号码\n\t\tString OwnerName = et_OwnerName.getText().toString();//权利人名称\n\t\tString OwnerType = sp_OwnerType.getSelectedCode();//权利人类型\n\t\tString Togetheronwer = et_Togetheronwer.getText().toString();//共有人信息\n\t\tString GuarantySubType = sp_GuarantySubType.getSelectedCode();//房产类型\n\t\tString HourseFormat = sp_HourseFormat.getSelectedCode();//房产状况\n\t\tString GuarantyLocation = et_GuarantyLocation.getText().toString();//房屋详细地址\n\t\t//String GuarantyArea = et_GuarantyArea.getText().toString();//抵押物区域地点\n\t\tString GuarantyAmount = et_GuarantyAmount.getText().toString();//房屋建筑面积\n\t\tString GuarantyDescript = et_GuarantyDescript.getText().toString();//抵押物说明\n\t\tString EvalMethod = sp_EvalMethod.getSelectedCode();//抵押物评估方式\n\t\tString EvalOrgName = et_EvalOrgName.getText().toString();//评估机构名称\n\t\tString EvalDate = et_EvalDate.getText().toString();//价值评估时间\n\t\tString EvalNetValue = et_EvalNetValue.getText().toString();//抵押物评估价值\n\t\tString GuarantyCurrency = sp_GuarantyCurrency.getSelectedCode();//抵押物债权币种\n\t\tString ConfirmValue = et_ConfirmValue.getText().toString();//抵押物债券价值\n\t\t\n\t\tif(Contants.houseInfo==null){\n\t\t\tContants.houseInfo = new House();\n\t\t}\n\t\t//担保类型,pad端固定为010010,\n\t\tContants.houseInfo.setGuarantyType(\"010010\");\n\t\tContants.houseInfo.setCertType(CertType);\n\t\tContants.houseInfo.setCertID(CertID);\n\t\tContants.houseInfo.setOwnerName(OwnerName);\n\t\tContants.houseInfo.setOwnerType(OwnerType);\n\t\tContants.houseInfo.setTogetheronwer(Togetheronwer);\n\t\tContants.houseInfo.setGuarantySubType(GuarantySubType);\n\t\tContants.houseInfo.setHourseFormat(HourseFormat);\n\t\tContants.houseInfo.setGuarantyLocation(GuarantyLocation);\n\n\t\t//抵押物的区域地点设置 不需要 因为是动态设置的\n//\t\tContants.houseInfo.setGuarantyArea(TheGuarantyArea);\n//\t\tContants.houseInfo.setGuarantyAreaName(TheGuarantyAreaName);\n\n\t\tContants.houseInfo.setGuarantyAmount(GuarantyAmount);\n\t\tContants.houseInfo.setGuarantyDescript(GuarantyDescript);\n\t\tContants.houseInfo.setEvalMethod(EvalMethod);\n\t\tContants.houseInfo.setEvalOrgName(EvalOrgName);\n\t\tContants.houseInfo.setEvalDate(EvalDate);\n\t\tContants.houseInfo.setEvalNetValue(EvalNetValue);\n\t\tContants.houseInfo.setGuarantyCurrency(GuarantyCurrency);\n\t\tContants.houseInfo.setConfirmValue(ConfirmValue);\n\t\t\n\t\tContants.houseInfo.setOwnerID(Contants.assureInfo.getCustomerID());\n\t}", "title": "" }, { "docid": "422cfa727d0a4001ad2f79390cc73df1", "score": "0.6229567", "text": "private void saveAction() {\n\t\tif (tree != null && tree.getStringPath() != null) {\n\t\t\tif (tree.saveTreeToFile(tree.getStringPath())) {\n\t\t\t\tupdateStatus(\"Tree saved sucessfully\");\n\t\t\t} else {\n\t\t\t\tupdateStatus(\"Wasn't able to save\");\n\t\t\t}\n\t\t\tupdateSaveItemUsable();\n\t\t} else {\n\t\t\t// This line of code shouldn't be executed at any time\n\t\t\tupdateStatus(\"Wasn't able to save\");\n\t\t}\n\t}", "title": "" }, { "docid": "13a759e221228da449a7239178b617ff", "score": "0.62132066", "text": "private boolean saveToDatabase() {\n // Check whether all spinners have been answered\n boolean missingAnswers = checkMissingAnswers();\n\n int status;\n if (missingAnswers) {\n status = Test.INCOMPLETED;\n } else {\n status = Test.COMPLETED;\n }\n\n ContentValues values = new ContentValues();\n if (mTab == Test.IN) {\n values.put(TestEntry.COLUMN_CONTENT_IN, generateContent());\n values.put(TestEntry.COLUMN_STATUS_IN, status);\n } else {\n values.put(TestEntry.COLUMN_CONTENT_OUT, generateContent());\n values.put(TestEntry.COLUMN_STATUS_OUT, status);\n }\n\n int rows = getActivity().getContentResolver().update(mTestUri, values, null, null);\n Log.d(LOG_TAG, \"rows updated: \" + rows);\n\n return !missingAnswers;\n }", "title": "" }, { "docid": "ab9b2e9d4c18c24a5163f49aa479570d", "score": "0.61752564", "text": "public final void save() {\n GameData data = new GameData();\n try {\n data.save();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1fabd374b99b0d34432e509086416ea7", "score": "0.61735064", "text": "public void storeData() {\r\n\r\n }", "title": "" }, { "docid": "2e97f8a1b0f50e7ca10964f7e266b3c9", "score": "0.61715853", "text": "@Override\n public boolean save() {\n return false;\n }", "title": "" }, { "docid": "e9f0a11a8bbf60c419da80b0c601e589", "score": "0.616338", "text": "public void saveData()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile dir = new File(c.getFilesDir(), sSubDir); // open the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// subdirectory if\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it exists\n\t\t\tif (!dir.exists()) // create if necessary\n\t\t\t\tdir.mkdir();\n\t\t\tFile file = new File(dir, sFilename);\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tDataOutputStream out = new DataOutputStream(fos);\n\n\t\t\tout.writeBoolean(bSleepDiaryReminder);\n\t\t\tout.writeInt(iSDRmin);\n\n\t\t\tout.writeBoolean(bWindDownTimeReminder);\n\t\t\tout.writeInt(iWDTmin);\n\n\t\t\tout.writeBoolean(bPrescribedBedTimeReminder);\n\n\t\t\tout.writeBoolean(bPrescribedWakeTimeReminder);\n\n\t\t\tout.writeBoolean(bUpdateSleepPrescriptionReminder);\n\t\t\tout.writeInt(iUSPDayofWeek);\n\t\t\tout.writeInt(iUSPmin);\n\n\t\t\tout.writeBoolean(bTakeAssessmentReminder);\n\t\t\tout.writeInt(iTADayofWeek);\n\t\t\tout.writeInt(iTARepeat);\n\t\t\tout.writeInt(iTAmin);\n\n\t\t\tout.writeBoolean(bStopCaffeineReminder);\n\t\t\tout.writeInt(iSCmin);\n\n\t\t\tout.writeBoolean(bWorryTimeReminder);\n\t\t\tout.writeInt(iWTDayofWeek);\n\t\t\tout.writeInt(iWTmin);\n\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t}\n\t}", "title": "" }, { "docid": "7c52c9e9a6a2f6b733b48a4fd5a19ed1", "score": "0.61580944", "text": "public void save(){\n DishManager dishManager = DishManager.getInstance();\n dishManager.clear();\n data.forEach(dishManager::addDish);\n dishManager.save();\n modified = false;\n }", "title": "" }, { "docid": "68aabb2b3962dc83b94b5d02751bd728", "score": "0.6142322", "text": "public void saveFile(){\n\t\t\n\t\ttry{\n\t\t\tdata.save(datafile);\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cc12f59935319cd703ff7c46275ac814", "score": "0.6138615", "text": "public boolean save() {\n if(hotelModel == null) {\n return false;\n }\n\n try(ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream(FILENAME))) {\n objectOutputStream.writeObject(hotelModel);\n\n return true;\n }\n catch(FileNotFoundException e) {}\n catch(IOException e) {}\n\n return false;\n }", "title": "" }, { "docid": "35bae0d9bca57fffae201a2b717ac3a5", "score": "0.6136264", "text": "public void readSaveData()\n\t{ //TODO change some\n\t\tcontrol.soundController.volumeMusic = savedData[1];\n\t\tcontrol.soundController.volumeEffect = savedData[2];\n\t\tcontrol.itemControl.helm = savedData[15];\n\t\tcontrol.itemControl.shirt = savedData[16];\n\t\tcontrol.itemControl.staff = savedData[17];\n\t\tcontrol.itemControl.favor = savedData[18];\n\t\t//savedData[58]=\n\t}", "title": "" }, { "docid": "972074d0a8140f887ede21f93354b7a8", "score": "0.6128619", "text": "public void saveChanges(){\n checkFields();\n }", "title": "" }, { "docid": "cada45f707fc4714ab9888acd1f6d336", "score": "0.61185896", "text": "public boolean updateData() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "eca77e0c994aac8237680fbaef99b1f8", "score": "0.6107899", "text": "protected void storeOrUpdateData (DbHelper dbHelper, Map data)\n throws CheckinException\n {\n final String METHOD_NAME = \"storeOrUpdateData\";\n this.logDebug(METHOD_NAME + \" 1/3: Started\");\n try\n {\n int id = this.getIdOfExisting(dbHelper);\n if ( id == Id.UNDEFINED )\n {\n // Create new document:\n this.logDebug(METHOD_NAME + \" 2/3: New Document\");\n this.id = dbHelper.storeData(this.type, data);\n }\n else\n {\n // Update existing document:\n this.logDebug(METHOD_NAME + \" 2/3: Document exists\");\n this.id = id;\n dbHelper.updateData(this.type, this.id, data);\n }\n this.logDebug(METHOD_NAME + \" 3/3: Done\");\n }\n catch (Exception exception)\n {\n throw new CheckinException(this.getIdentification(), exception);\n }\n }", "title": "" }, { "docid": "0002aaec88b0e42a51aba9968b0f2532", "score": "0.6098996", "text": "protected void verifyInputForSave() throws Exception {\n\t\tsuper.verifyInputForSave();\n\t\t\n\t\tif(editData.getNumber()==null||editData.getNumber().trim().length()==0){\n\t\t\tFDCMsgBox.showWarning(this,\"评标模板编码不能为空\");\n\t\t\tabort();\n\t\t}\n\t\t\n\t\tif(editData.getName()==null||editData.getName().trim().length()==0){\n\t\t\tFDCMsgBox.showWarning(this,\"评标模板名称不能为空\");\n\t\t\tabort();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<kdtTemplateEntry.getRowCount();i++){\n\t\t\t\n\t\t\tif(kdtTemplateEntry.getCell(i, 0).getValue() == null || kdtTemplateEntry.getCell(i, 1).getValue()==null ||kdtTemplateEntry.getCell(i, 2).getValue() == null){\n\t\t\t\tFDCMsgBox.showWarning(this,\"评标指标名称的相关参数不完整!\");\n\t\t\t\tabort();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "0f85cc251cdf03f651582011e51e88e6", "score": "0.6097535", "text": "private void save(){\n //file exsits \n if(mainFile == null)\n saveAs();\n else{\n saveFile(mainFile);\n }\n }", "title": "" }, { "docid": "33e10b6654da7964305356a427f65ec8", "score": "0.6097507", "text": "public boolean save(Object ob) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a008489c81e78aadcd7b7559f52ab9a1", "score": "0.6097015", "text": "public boolean saveDirData(DirDataEditInfo info) {\n boolean sucess = false;\r\n try {\r\n DirData dirdata = null;\r\n if (info.getDirId() != null && info.getDirId().trim().length() > 0) {\r\n dirdata = this.selectDirData(info.getDirId());\r\n\r\n org.springframework.beans.BeanUtils.copyProperties(info,\r\n dirdata, new String[] { \"dirId\", \"createTime\",\r\n \"isValid\" });\r\n }\r\n if (dirdata == null) {\r\n dirdata = new DirData();\r\n BeanUtils.copyProperties(dirdata, info);\r\n }\r\n dirDataDao.save(dirdata);\r\n sucess = true;\r\n } catch (Exception e) {\r\n System.err.println(e.getMessage());\r\n }\r\n return sucess;\r\n }", "title": "" }, { "docid": "9de7e7ed066cdfc27b28303679290100", "score": "0.6083958", "text": "public void saveInDB() {\n\t\t\n\t}", "title": "" }, { "docid": "01060c29f47481159dced60477e6d2a5", "score": "0.60769755", "text": "void saveData(PlayerData playerData) throws Exception;", "title": "" }, { "docid": "471afa466c7df8b98e357e7c740e420d", "score": "0.6065014", "text": "public void save(){\n\t\tsyncMapCharArray();\n\t\tsaveBugsFile();\n\t}", "title": "" }, { "docid": "b67ef3efec7a302e14df3a67f18e49f2", "score": "0.6062318", "text": "public boolean commit() {\n return data.saveValues();\n }", "title": "" }, { "docid": "2b7e9244d6da9c28e56f8f5c9457fea5", "score": "0.60558254", "text": "void saveEdits() {\n \tString itemTitle = txtCompany.getText().toString();\n if (!itemTitle.isEmpty()) {\n\t RadioGroup groupType =(RadioGroup)findViewById(R.id.type);\n\t RadioButton selectedBtn = (RadioButton) findViewById(groupType.getCheckedRadioButtonId());\n Company newCompany = new Company(itemTitle, txtDescription.getText().toString(), selectedBtn.getText().toString());\n\n\t if (company[0] != null && !company[0].isEmpty()) { // existing Contacts already have an ID\n\t newCompany.setId(Long.valueOf(company[0]));\n\t // save existing Company to the database\n\t datasource.updateCompany(newCompany);\n\t } else {\n\t // save new Company to the database\n\t Company savedCompany = datasource.createCompany(newCompany);\n\t company[0] = String.valueOf(savedCompany.getId()); // update current company with newly created ID to avoid duplicate saves\n\t }\n\t // notify user that job was saved\n\t Toast.makeText(getApplicationContext(), \"Saving...\", Toast.LENGTH_SHORT).show();\n\t // Log pageview w/ Google Analytics\n\t ((JobAgent) this.getApplication()).trackPVFull(\"Company details\", \"save company\",itemTitle,\"\");\n \t}\n }", "title": "" }, { "docid": "a47d5c0c5f39ac4f603b6af3521fb26a", "score": "0.60489506", "text": "@Override\n\tpublic boolean save(Hashtag dataObject) throws SQLException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ec6afb3c35964f2be8502eac73894ed2", "score": "0.60434985", "text": "private void save() {\n // Just going to save all values, cos fuck it.\n ageEditText = (TextView) findViewById(R.id.age);\n String age = ageEditText.getText().toString();\n EditText bio = (EditText) findViewById(R.id.bio_edit_text);\n String about = bio.getText().toString();\n //String genderInfo = gender.getText().toString();\n\n String ageUrl = LoadBalancer.RequestServerAddress()+ \"/rest/login/SaveStringPropertyToNode/\"+userId+\"/Age/\"+age;\n String aboutInfoUrl = LoadBalancer.RequestServerAddress()+ \"/rest/login/SaveStringPropertyToNode/\"+userId+\"/About/\"+about;\n //String genderInfoUrl = LoadBalancer.RequestServerAddress()+ \"/rest/login/SaveStringPropertyToNode/\"+userId+\"/Sex/\"+genderInfo;\n\n // Do the saving\n HTTPRequestHandler simpleSaver = new HTTPRequestHandler();\n // simpleSaver.SendSimpleHttpRequestAndReturnString(saveNameUrl);\n simpleSaver.SendSimpleHttpRequestAndReturnString(ageUrl);\n simpleSaver.SendSimpleHttpRequestAndReturnString(aboutInfoUrl);\n\n // simpleSaver.SendSimpleHttpRequestAndReturnString(genderInfoUrl);\n\n }", "title": "" }, { "docid": "49c72fc0773b3e8431e2f85c4fabd2c7", "score": "0.6040745", "text": "private void saveDataForSync() {\n for (GsonTag tag : TasksService.getInstance().loadAllTags()) {\n SyncService.getInstance().saveTagForSync(tag);\n }\n\n // Load all non-deleted tasks.\n List<GsonTask> tasksToSave = new ArrayList<>();\n for (GsonTask task : TasksService.getInstance().loadAllTasks()) {\n if (!task.getDeleted()) {\n task.setId(null);\n tasksToSave.add(task);\n }\n }\n\n // Save tasks for syncing.\n SyncService.getInstance().saveTasksForSync(tasksToSave);\n }", "title": "" }, { "docid": "c109671a6428c426b5b041fae661848d", "score": "0.60398686", "text": "@Override\r\n\tprotected void save() throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "d47629e0676d0b60f5142cb7522a2910", "score": "0.6034048", "text": "void save();", "title": "" }, { "docid": "d47629e0676d0b60f5142cb7522a2910", "score": "0.6034048", "text": "void save();", "title": "" }, { "docid": "81df2b2f1e86fad4c3c492f9cd111d07", "score": "0.6020814", "text": "private void saveData() {\n KelasModel kelasModel = new KelasModel();\n\n // Memasukkan data ke kelas model\n kelasModel.setId_kelas(id_kelas);\n kelasModel.setNama_kelas(nama_kelas);\n kelasModel.setNama_wali(nama_wali);\n\n // Melakukan operasi update untuk update ke sqlite\n siswaDatabase.kelasDao().update(kelasModel);\n }", "title": "" }, { "docid": "e104adcbc21ea424b9ef63f08d6de377", "score": "0.6013662", "text": "private void saveData() {\n int musicID = songsUtils.getCurrentMusicID();\n sharedPrefsUtils.writeSharedPrefs(\"audio_session_id\", getCurrentMediaPlayer().getAudioSessionId());\n try {\n sharedPrefsUtils.writeSharedPrefs(\"musicID\", musicID);\n sharedPrefsUtils.writeSharedPrefs(\"title\", songsUtils.queue().get(musicID).getTitle());\n sharedPrefsUtils.writeSharedPrefs(\"artist\", songsUtils.queue().get(musicID).getArtist());\n sharedPrefsUtils.writeSharedPrefs(\"album\", songsUtils.queue().get(musicID).getAlbum());\n sharedPrefsUtils.writeSharedPrefs(\"albumid\", songsUtils.queue().get(musicID).getAlbumID());\n sharedPrefsUtils.writeSharedPrefs(\"raw_path\", songsUtils.queue().get(musicID).getPath());\n sharedPrefsUtils.writeSharedPrefs(\"duration\", songsUtils.queue().get(musicID).getDuration());\n sharedPrefsUtils.writeSharedPrefs(\"durationInMS\", getCurrentMediaPlayer().getDuration());\n } catch (Exception e) {\n Log.d(TAG, \"Unable to save song info in persistent storage. MusicID \" + musicID);\n }\n }", "title": "" }, { "docid": "b99375af17f99f6bcdfcea0d920519c1", "score": "0.6007204", "text": "public void save() {\n try {\n JSONObject result = service.save(getData());\n if ((boolean) result.get(\"success\")) {\n data = (JSONObject) ((JSONObject) result.get(\"data\")).get(0);\n enableButtons();\n refreshModel();\n save.getStyleClass().remove(\"red-button\");\n }\n notifyResult(result);\n } catch (Exception e) {\n ViewsManager.getInstance().notifyError(e.getMessage());\n }\n }", "title": "" }, { "docid": "f869fe1d4b44394ecdf5c22d3d9ec2d8", "score": "0.60018235", "text": "public synchronized void saveAllData() throws IOException {\n\t\tFile f = new File(SAVE_PATH);\n\t\tif(!f.exists()) {\n\t\t\tf.createNewFile();\n\t\t}//End if\n\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(f));\n\t\toos.writeObject(this);\n\t\toos.close();\n\t}", "title": "" }, { "docid": "786a6ae5618b9575fc92a62fe14e515a", "score": "0.59998554", "text": "@Override\n public void updateDataStore() {\n if(newStudentName != null && newStudentAddress != null && newStudentPhone != null) {\n students.addStudent(new Student(newStudentName, newStudentAddress, newStudentPhone));\n }\n }", "title": "" }, { "docid": "95c00a238088e69bf2dcf63c23c179c1", "score": "0.598122", "text": "@Override\n\tpublic void save() {\n\t\t\n\t}", "title": "" }, { "docid": "d0320a39870a10d90b28fcf066c3d323", "score": "0.5980471", "text": "protected void needToSave() {\n ObservableList styleClasses = save.getStyleClass();\n if (!styleClasses.contains(\"red-button\")) styleClasses.add(\"red-button\");\n if (!controller.isNewRowFlag() && data.get(\"id\") == null) controller.setNewRowFlag(true);\n }", "title": "" }, { "docid": "20d14454cb9c183e33a0e615ed7c183b", "score": "0.597776", "text": "private boolean save()\r\n {\r\n String name = name_field.getText().trim();\r\n String com_mach = com_mach_field.getText().trim();\r\n \r\n // Verify text boxes are filled out (we'll check numbers later)\r\n if (name.isEmpty())\r\n {\r\n InvalidValueError(\"The \\\"Name\\\" field cannot be empty\");\r\n name_field.requestFocus();\r\n return false;\r\n }\r\n \r\n if (com_mach.isEmpty())\r\n {\r\n // Send prompt that specifies which version of the field is needed\r\n InvalidValueError(\"The \\\"\" + com_mach_field.getPromptText() + \"\\\" field cannot be empty\");\r\n com_mach_field.requestFocus();\r\n return false;\r\n }\r\n \r\n // Check stock is an int\r\n try{Integer.parseInt(stock_field.getText().trim());}\r\n catch (NumberFormatException e)\r\n {\r\n // Error window: \"Stock must be an integer\"\r\n InvalidValueError(\"The value for \\\"Stock\\\" must be an integer.\");\r\n stock_field.requestFocus();\r\n return false;\r\n }\r\n int stock = Integer.parseInt(stock_field.getText().trim());\r\n \r\n // Check price is a double\r\n try{Double.parseDouble(price_field.getText().trim());}\r\n catch (NumberFormatException e)\r\n {\r\n InvalidValueError(\"The value for \\\"Price/Cost\\\" must be a number.\");\r\n price_field.requestFocus();\r\n return false;\r\n }\r\n double price = Double.parseDouble(price_field.getText().trim());\r\n \r\n // Check if max is an int\r\n try{Integer.parseInt(max_field.getText().trim());}\r\n catch (NumberFormatException e)\r\n {\r\n // Error window: \"Max must be an integer\"\r\n InvalidValueError(\"The value for \\\"Max\\\" must be an integer.\");\r\n max_field.requestFocus();\r\n return false;\r\n }\r\n int max = Integer.parseInt(max_field.getText().trim());\r\n \r\n // Check if min is an int\r\n try{Integer.parseInt(min_field.getText().trim());}\r\n catch (NumberFormatException e)\r\n {\r\n InvalidValueError(\"The value for \\\"Min\\\" must be an integer.\");\r\n min_field.requestFocus();\r\n return false;\r\n }\r\n int min = Integer.parseInt(min_field.getText().trim());\r\n \r\n // Check if machine id is an int (for In-House)\r\n boolean inHouse = inhouse_button.isSelected();\r\n if (inHouse)\r\n {\r\n try\r\n {\r\n Integer.parseInt(com_mach);\r\n } catch (NumberFormatException e)\r\n {\r\n InvalidValueError(\"The \\\"\" + com_mach_field.getPromptText() + \"\\\" field must be an int\");\r\n com_mach_field.requestFocus();\r\n return false;\r\n }\r\n }\r\n\r\n // Check for valid integer values: Min, Max, Stock\r\n if (min < 0)\r\n {\r\n InvalidValueError(\"Min must be 0 or greater\");\r\n min_field.requestFocus();\r\n return false;\r\n }\r\n if (max < 1)\r\n {\r\n InvalidValueError(\"Max must be 1 or greater\");\r\n max_field.requestFocus();\r\n return false;\r\n }\r\n if (min > max)\r\n {\r\n InvalidValueError(\"The value for \\\"Min\\\" cannot be greater than \\\"Max\\\".\");\r\n min_field.requestFocus();\r\n return false;\r\n }\r\n if (stock > max || stock < min)\r\n {\r\n InvalidValueError(\"The value for \\\"Stock\\\" must be between Min and Max.\");\r\n stock_field.requestFocus();\r\n return false;\r\n }\r\n \r\n // Save the data:\r\n if (inhouse_button.isSelected())\r\n {\r\n Inventory.addPart(new InHouse(\r\n part_id, \r\n name,\r\n price,\r\n stock,\r\n min,\r\n max,\r\n Integer.parseInt(com_mach)\r\n ));\r\n }\r\n else if (outsourced_button.isSelected())\r\n {\r\n Inventory.addPart(new Outsourced(\r\n part_id,\r\n name,\r\n price,\r\n stock,\r\n min,\r\n max,\r\n com_mach\r\n ));\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "a84c0441d936dc4121b639089cf54539", "score": "0.59639883", "text": "public void doSave(RunData data, TemplateContext context)\n throws Exception\n {\n IntakeTool intake = getIntakeTool(context);\n ScarabLocalizationTool l10n = getLocalizationTool(context);\n List issueTypes = IssueTypePeer.getAllIssueTypes(false);\n boolean dupe = false;\n boolean saved = false;\n if (intake.isAllValid())\n {\n ScarabRequestTool scarabR = getScarabRequestTool(context);\n for (int i=0; i<issueTypes.size(); i++)\n {\n IssueType issueType = (IssueType)issueTypes.get(i);\n Group group = intake.get(\"IssueType\", issueType.getQueryKey());\n // make sure name is unique\n Field field = group.get(\"Name\");\n String name = field.toString();\n if (IssueTypePeer.isUnique(name, issueType.getIssueTypeId())) \n {\n group.setProperties(issueType);\n issueType.save();\n ScarabCache.clear();\n saved = true;\n }\n else \n {\n dupe = true;\n field.setMessage(\"Duplicate\");\n }\n }\n if (dupe)\n {\n scarabR.setAlertMessage(\n l10n.get(\"ChangesResultDuplicateNames\"));\n }\n else if (saved)\n {\n scarabR.setConfirmMessage(\n l10n.get(DEFAULT_MSG));\n }\n else\n {\n scarabR.setInfoMessage(\n l10n.get(NO_CHANGES_MADE));\n }\n }\n }", "title": "" }, { "docid": "663a536eb5ef250b351050f96871d1b3", "score": "0.5958701", "text": "public void markDataAsSaved() {\n for (TableRowData trd : tableRows) {\n trd.markAsSaved();\n }\n }", "title": "" }, { "docid": "d057c8639bdb5552322e081099a72941", "score": "0.59476113", "text": "public void saveAndExit() {\n // Empty, for future use maybe. \n }", "title": "" }, { "docid": "7bccab0bd0462244b958716668dcac83", "score": "0.5947377", "text": "protected void processSaveClick() {\n\t\tOTPProps.setProperty(\"ldap.server\", txtServerName.getValue());\n\t\tOTPProps.setProperty(\"ldap.url\", txtLDAPUrl.getValue());\n\t\tOTPProps.setProperty(\"ldap.base\", txtBase.getValue());\n\t\tOTPProps.setProperty(\"ldap.principal\",txtPrincipal.getValue());\n\t\tOTPProps.setProperty(\"ldap.credential\", txtCredentials.getValue());\n\t\tif(OTPProps.saveProperty()){\n\t\t\tNotification.show(\"Saved success\");\n\t\t}else{\n\t\t\tNotification.show(\"Saved fail\", Type.ERROR_MESSAGE);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "6ac23957d70deaa7a5d8cd8b724eaab9", "score": "0.59413886", "text": "@Override\n public boolean saveProvideData(PersistenceData persistenceData) {\n\n long expectVersion = getExpectVersion(PersistenceDataBuilder.getDataInfoId(persistenceData));\n return saveProvideData(persistenceData, expectVersion);\n }", "title": "" }, { "docid": "63bdaf67ffb351bc04838b38645304b0", "score": "0.5940646", "text": "private void save() {\n //ProductionEntry production;\n // get text from text view as int and store in integer variable\n /*firstProd = Integer.parseInt((firstProdTextView.getText()).toString());\n secondProd = Integer.parseInt((secondProdTextView.getText()).toString());\n thirdProd = Integer.parseInt((thirdProdTextView.getText()).toString());*/\n calculateProductions();\n total = firstProd + secondProd + thirdProd;\n\n\n /*\n Check if its a new production entry for a particular date\n */\n if (bigProductionEntry != null) {\n for (ProductionEntry entry : bigProductionEntry.get(m)) {\n if (entry.getProductionDate().matches(dateString)) {\n Toast.makeText(AddNewProduction.this, \"Date already exits, Set new Date and \" +\n \"try again\", Toast.LENGTH_LONG).show();\n return;\n }\n }\n }\n /*if (mProductionEntries.get(m).getProductionDate().matches(dateString)) {\n Toast.makeText(AddNewProduction.this, \"Date already exits, Set new Date and \" +\n \"try again\", Toast.LENGTH_LONG).show();\n return;\n } *///else {\n // Constructor of Production Entry class\n ProductionEntry production = new ProductionEntry(penName, firstProd, secondProd,\n thirdProd, total, firstCrackedEggs, firstGoodEggs, secondCrackedEggs, secondGoodEggs,\n thirdCrackedEggs, thirdGoodEggs, dateString);\n\n // push key for production\n prodKey = mProductionDatabaseReference.child(penKey).child(\"production\").push().getKey();\n // save in shared preference, with key\n SavePreferences(dateString, prodKey);\n // reference database and add data.\n mProductionDatabaseReference.child(penKey).child(\"production\").child(prodKey).setValue(production);\n // Exit the activity\n finish();\n //}\n // }\n }", "title": "" }, { "docid": "4b6a80d7b1072a4540601b688938f1f2", "score": "0.59388936", "text": "@Override\n\tpublic void storeToDB() {\n\t\tEmployeeWriter eWrite = new EmployeeWriter(file.getName(), empList, errorList, invalidList);\n\t\tboolean saveEmployees = eWrite.writeFiles();\n\t\tif(!saveEmployees) {\n\t\t\tSystem.out.println(\"Issue writing files \" + file);\n\t\t}\n\t}", "title": "" }, { "docid": "5cf00474a319de3db277610558129f43", "score": "0.5923366", "text": "boolean save() throws Exception {\r\n\t\tif (documentIO == null) {\r\n\t\t\tif (!selectCurrentFile()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// save into existing file or into a new file\r\n\t\tif (SBOLUtils.setupFile().exists()) {\r\n\t\t\treturn saveIntoExistingFile();\r\n\t\t} else {\r\n\t\t\treturn saveIntoNewFile();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1e94aedc161fc9e3bcdd5ae0ce93804", "score": "0.59152883", "text": "public void addSuccessfulSave()\n {\n for(int i = 0; i < successSaves.length; i++)\n {\n if(successSaves[i] == false)\n {\n successSaves[i] = true;\n break;\n }\n }\n }", "title": "" }, { "docid": "f9bb50db2e00130ad0cb0d3316d1fca7", "score": "0.59145224", "text": "@Override\n public boolean save() throws Goliath.Exceptions.Exception\n {\n // Validate each object in the collection\n return isValid() ? super.save() : false;\n }", "title": "" }, { "docid": "097d1dd98a9ad6aa5aca2acc85565911", "score": "0.59141344", "text": "public void saveConfig() \r\n {\r\n try\r\n {\r\n this.data.save(this.dataFile);\r\n }\r\n catch (IOException e)\r\n {\r\n throw new RuntimeException(\"An exception occured while saving storage file\", e);\r\n }\r\n }", "title": "" }, { "docid": "9192415a8dbcaa4b84427a159f478387", "score": "0.5907936", "text": "@Override\n\tprotected void updateDataIntoDatabase() {\n\n\t}", "title": "" }, { "docid": "ff2b2d8ada69754ea2b8a5a8c5682aaf", "score": "0.59063274", "text": "protected void saveData(GAL_Population population){\t\n\t\t//Guardo informacion de la generacion lastGeneration\n\t\tbestChromosomeFromGeneration[lastGeneration]= population.getBestChromosome();\n\t\taverageFitnessFromGeneration[lastGeneration]= population.getTotalFitness()/population.size();\n\t\t\n\t\t//Guardo en la ventada\n\t\twindow.addFirst(population.clone());\n\t\t//Si la lista se pasa del tamano de la ventana\n\t\tif(window.size()>windowSize)\n\t\t\twindow.removeLast();\n\t}", "title": "" }, { "docid": "8375fbc818f2c0f51256e1238003fb65", "score": "0.58967286", "text": "public void saveData()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile dir = new File(c.getFilesDir(), sSubDir); // open the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// subdirectory if\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it exists\n\t\t\tif (!dir.exists()) // create if necessary\n\t\t\t\tdir.mkdir();\n\t\t\tFile file = new File(dir, sFilename);\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tDataOutputStream out = new DataOutputStream(fos);\n\t\t\twriteData(out);\n\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t}\n\t}", "title": "" }, { "docid": "4d198ca622b7f45668a56694035e09fc", "score": "0.5893523", "text": "private void guardarDatosEnFichero() {\n\t\t\n\t\tthis.gdf.guardarDatos();\n\t}", "title": "" }, { "docid": "a0daa76369e1ca4e3cc50eea2a6077db", "score": "0.5889408", "text": "private boolean UpdateData() {\n if (titleText.getEditText().getText().length() > 0) {\n editTodo.setTitle(titleText.getEditText().getText().toString());\n } else {\n titleText.setError(\"Enter at least one character\");\n return false;\n }\n editTodo.setDescription(descriptionText.getEditText().getText().toString());\n editTodo.setComplete(doneSwitch.isChecked());\n //Date is not updated here but in the setDueDate function\n //Location is not updated here but in the setLocation function\n return true;\n }", "title": "" }, { "docid": "1643bdaa045e8ba55f45355645cc514c", "score": "0.5881308", "text": "private void saveChanges() {\n String firstNameString = firstNameEditText.getText().toString().trim();\n String lastNameString = lastNameEditText.getText().toString().trim();\n String lastServiceString = lastServiceEditText.getText().toString().trim();\n String emailString = emailEditText.getText().toString().trim();\n String phoneNumberString = phoneEditText.getText().toString().trim();\n String birthdayString = birthdayEditText.getText().toString().trim();\n String referralString = referralEditText.getText().toString().trim();\n String emergencyNameString = emergencyContactNameEditText.getText().toString().trim();\n String emergencyPhoneString = emergencyContactPhoneEditText.getText().toString().trim();\n int massagedPreviouslyInt;\n if (massagedPreviouslyCheckBox.isChecked()) {\n massagedPreviouslyInt = 1;\n } else {\n massagedPreviouslyInt = 0;\n }\n String massagedPreviouslyDateString = massagedPreviouslyDateEditText.getText().toString()\n .trim();\n int currentlyPregnantInt;\n String pregnantWeeksString = pregnantWeeksEditText.getText().toString().trim();\n if (pregnantCheckBox.isChecked() && pregnantWeeksString != \"\") {\n currentlyPregnantInt = 1;\n } else {\n currentlyPregnantInt = 0;\n }\n String lastPregnancyDateString = lastPregnancyEditText.getText().toString().trim();\n String medicationsString = medicationsEditText.getText().toString().trim();\n String recentSurgeriesString = recentSurgeriesEditText.getText().toString().trim();\n String healthIssuesString = healthIssuesEditText.getText().toString().trim();\n int numbnessInt;\n if (numbnessCheckBox.isChecked()) {\n numbnessInt = 1;\n } else {\n numbnessInt = 0;\n }\n int swellingInt;\n if (swellingCheckBox.isChecked()) {\n swellingInt = 1;\n } else {\n swellingInt = 0;\n }\n int headachesInt;\n if (headachesCheckBox.isChecked()) {\n headachesInt = 1;\n } else {\n headachesInt = 0;\n }\n String goalsString = goalsEditText.getText().toString().trim();\n String importantNotesString = importantNotesEditText.getText().toString().trim();\n String derogatoryNotesString = derogatoryNotesEditText.getText().toString().trim();\n String notesString = notesEditText.getText().toString().trim();\n\n // Create a ContentValues object where column names are the keys and the client attributes\n // are the values.\n ContentValues values = new ContentValues();\n values.put(ClientContract.ClientEntry.COLUMN_FIRST_NAME, firstNameString);\n values.put(ClientContract.ClientEntry.COLUMN_LAST_NAME, lastNameString);\n values.put(ClientContract.ClientEntry.COLUMN_LAST_SERVICE, lastServiceString);\n values.put(ClientContract.ClientEntry.COLUMN_IMPORTANT, mImportant);\n values.put(ClientContract.ClientEntry.COLUMN_IMPORTANT_NOTES, importantNotesString);\n values.put(ClientContract.ClientEntry.COLUMN_IT_WORKS, mItWorks);\n values.put(ClientContract.ClientEntry.COLUMN_GENDER, mGender);\n values.put(ClientContract.ClientEntry.COLUMN_EMAIL, emailString);\n values.put(ClientContract.ClientEntry.COLUMN_PHONE_NUMBER, phoneNumberString);\n values.put(ClientContract.ClientEntry.COLUMN_BIRTHDAY, birthdayString);\n values.put(ClientContract.ClientEntry.COLUMN_REFERRAL, referralString);\n values.put(ClientContract.ClientEntry.COLUMN_EMERGENCY_CONTACT_NAME, emergencyNameString);\n values.put(ClientContract.ClientEntry.COLUMN_EMERGENCY_CONTACT_PHONE_NUMBER,\n emergencyPhoneString);\n values.put(ClientContract.ClientEntry.COLUMN_HAD_MASSAGE_PREVIOUSLY, massagedPreviouslyInt);\n values.put(ClientContract.ClientEntry.COLUMN_HAD_MASSAGE_PREVIOUSLY_DATE,\n massagedPreviouslyDateString);\n values.put(ClientContract.ClientEntry.COLUMN_PREGNANT, currentlyPregnantInt);\n values.put(ClientContract.ClientEntry.COLUMN_PREGNANT_WEEKS, pregnantWeeksString);\n values.put(ClientContract.ClientEntry.COLUMN_LAST_PREGNANCY_DATE, lastPregnancyDateString);\n values.put(ClientContract.ClientEntry.COLUMN_MEDICATIONS, medicationsString);\n values.put(ClientContract.ClientEntry.COLUMN_GOALS, goalsString);\n values.put(ClientContract.ClientEntry.COLUMN_RECENT_SURGERIES, recentSurgeriesString);\n values.put(ClientContract.ClientEntry.COLUMN_HEALTH_ISSUES, healthIssuesString);\n values.put(ClientContract.ClientEntry.COLUMN_NUMBNESS, numbnessInt);\n values.put(ClientContract.ClientEntry.COLUMN_SWELLING, swellingInt);\n values.put(ClientContract.ClientEntry.COLUMN_HEADACHES, headachesInt);\n values.put(ClientContract.ClientEntry.COLUMN_DEROGATORY_NOTES, derogatoryNotesString);\n values.put(ClientContract.ClientEntry.COLUMN_NOTES, notesString);\n int rowsUpdated = getContentResolver().update(queryUri, values, null, null);\n if (rowsUpdated == 0) {\n // If no rows were updated, then there was an error with the update, show toast.\n Toast.makeText(EditorActivity.this, \"Error with saving client\", Toast.LENGTH_SHORT)\n .show();\n } else {\n // Otherwise the update was successful, show toast and finish activity\n Toast.makeText(EditorActivity.this, \"Client updated\", Toast.LENGTH_SHORT).show();\n setResult(1);\n finish();\n }\n }", "title": "" }, { "docid": "97362a6b7baa967c6726db6c47b9d350", "score": "0.58772564", "text": "@Override\r\n\t\t\tpublic boolean save(Book book) {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "13559dff16beea23416a0b9ed3f24949", "score": "0.5869867", "text": "@Override\n\tpublic void save() {\n\t}", "title": "" }, { "docid": "efc382c4d1758e2bfd85dc2f261137f6", "score": "0.5866198", "text": "public void databaseCheck() {\n try {\n Scanner inputstream = new Scanner(new FileInputStream(aucType + \"/\" + item_ID + \"_\" + item + \".txt\"));\n inputstream.close();\n } catch (FileNotFoundException a) {\n System.out.println(a.getMessage());\n databaseCreate();\n }\n }", "title": "" }, { "docid": "5533780ae59c6a00140959a94edb382d", "score": "0.585577", "text": "@Override\r\n\tpublic void save() {\n\r\n\t}", "title": "" }, { "docid": "4fa650955f6ac1d5df32e9cff0cfe03f", "score": "0.5847044", "text": "void saveData() throws IOException {\n\t\tBufferedWriter f = new BufferedWriter(new FileWriter(file));\n\t\tfor(Student student : studentList)\n\t\t\tf.write(student.toStringStorageFormat()+\"\\n\");\n\t\tf.close();\n\t}", "title": "" }, { "docid": "b4092f366cb2b856d72af0867363dace", "score": "0.58465517", "text": "private void loadSavedData() {\n Log.enter();\n SharedPreferences prefs = getActivity().getPreferences(\n Context.MODE_PRIVATE);\n mVendorId = prefs.getInt(VENDOR, 0);\n mCameraId = prefs.getInt(CAMERA, 0);\n \n mWheelAperture.setCurrentItem(prefs.getInt(APERTURE, 0));\n mWheelFocalLength.setCurrentItem(prefs.getInt(FOCAL_LENGTH, 0));\n mWheelMeasureUnit.setCurrentItem(prefs.getInt(MEASURE_UNIT, 0));\n mWheelSubjectDistance.setCurrentItem(prefs.getInt(SUBJECT_DISTANCE, 0));\n \n mMeasureResultUnit = prefs.getInt(MEASURE_RESULT_UNIT, Constants.METER);\n }", "title": "" }, { "docid": "5e00fa144f9d201edd8269199d1dda07", "score": "0.5842273", "text": "public void save();", "title": "" }, { "docid": "c239d6007780310d9a06b1f7bd683905", "score": "0.5840303", "text": "private void saveData()\n\t\t\t{\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tString jsonString = gson.toJson(conversation);\n\t\t\t\t// ps.print(jsonString);\n\t\t\t\tDbxFile dropboxFile = null;\n\t\t\t\tDbxPath dropboxPath = new DbxPath(filename);\n\t\t\t\tDbxPath dropboxDataPath = new DbxPath(filename + \"_data\");\n\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dbxFS.exists(dropboxPath))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdropboxFile = dbxFS.open(dropboxPath);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdropboxFile = dbxFS.create(dropboxPath);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!dbxFS.exists(dropboxDataPath))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdbxFS.createFolder(dropboxDataPath);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tdropboxFile.writeString(jsonString);\n\t\t\t\t\t}\n\t\t\t\tcatch(InvalidPathException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\tcatch(DbxException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dropboxFile != null)\n\t\t\t\t\t\t\tdropboxFile.close();\n\t\t\t\t\t}\n\t\t\t\t// ps.close();\n\t\t\t\tLog.i(\"TAG\", \"Saved Data: \" + gson.toJson(conversation));\n\t\t\t}", "title": "" }, { "docid": "c4ca16bb7d830be3dc23930b15834768", "score": "0.583861", "text": "public void saveDataToFile() {\n this.storage.saveData(this.list);\n }", "title": "" }, { "docid": "6fdc31ec4d3eb8c10136219068aecbb6", "score": "0.5838437", "text": "public abstract void storeData();", "title": "" }, { "docid": "ba6130b7c8f7a9b2696dfe816f2d344d", "score": "0.58346814", "text": "@Override\n\tpublic void Save() {\n\t\t\n\t}", "title": "" } ]
08b9a21423a18fc1e5307bb83353617f
This method call the player object from the game class. If player class is squire, current fatigue will add 1. Call stepsOnRoad statement. It will print out the statement. Depends on the player class, the player step on trap statement will be vary. Print out currentFatigue / maxFatigue
[ { "docid": "8ee77f9e226904224555f40a3d9b990c", "score": "0.72096735", "text": "@Override\r\n\tpublic void visitTile(Game game) {\r\n\t\tPlayer player = game.getPlayer();\r\n\t\tif(player.getClass().equals(Squire.class))\r\n\t\t\tplayer.setCurrentFatigue(player.getCurrentFatigue() + 1);\r\n\t\tplayer.stepsOnRoad();\r\n\t\tSystem.out.println(\"Player fatigue: \" + player.getCurrentFatigue() + \"/\" + player.getMaxFatigue());\r\n\r\n\r\n\t}", "title": "" } ]
[ { "docid": "dcf1c38ef97ca39493b0231905dfb1a6", "score": "0.5910511", "text": "public void Step() {\n Testing.methodStart(\"Asteroid.Step()\");\n Move();\n Testing.methodEnd(\"Asteroid.Step()\");\n //its logic stuff, please omit this\n //distancetosun+=Movedirection;\n // System.out.println(\"The current distance to sun is:\" +distancetosun);\n }", "title": "" }, { "docid": "e4dfb626b580888437b696ca06f68684", "score": "0.5778302", "text": "private void transition() throws InterruptedException, IOException {\n\t\t// currently in preflop; to enter the flop round\n\n\t\tif (gameRound == -1) {\n\t\t\tresetGone();\n\t\t\tuser.newRoundNotGone();\n\t\t\tloop = 1;\n\t\t\tdeal();\n\t\t} else if (gameRound == 0) {\n\t\t\t// go to the moves for the first round\n\t\t\thighBet = 0;\n\t\t\tcallBet = 0;\n\t\t\tloop = 1;\n\t\t\tplayerHasRaisedOrNewRound();\n\t\t\t// log the round name\n\t\t\tisBlind = false;\n\t\t\tlogWriter.println(\"\\nFlop:\");\n\t\t\tdisplayCenterCards(centerHand, 1);\n\t\t\tcenterHand.addCard(deck.get(cardCount--));\n\t\t\tshowRound();\n\t\t\tbetting();\n\t\t}\n\t\t// to enter the turn round\n\t\telse if (gameRound == 1) {\n\t\t\thighBet = 0;\n\t\t\tcallBet = 0;\n\t\t\tloop = 1;\n\t\t\tplayerHasRaisedOrNewRound();\n\t\t\tlogWriter.println(\"\\nTurn:\");\n\t\t\tdisplayCenterCards(centerHand, 2);\n\t\t\tcenterHand.addCard(deck.get(cardCount--));\n\t\t\tshowRound();\n\t\t\tbetting();\n\t\t}\n\t\t// to enter the river round\n\t\telse if (gameRound == 2) {\n\t\t\thighBet = 0;\n\t\t\tcallBet = 0;\n\t\t\tloop = 1;\n\t\t\tplayerHasRaisedOrNewRound();\n\t\t\tlogWriter.println(\"\\nRiver:\");\n\t\t\tdisplayCenterCards(centerHand, 3);\n\t\t\tif (user.getFold())\n\t\t\t\tlogWriter.println(userName + \" folded\");\n\t\t\tif (user.getFold()) {\n\t\t\t\tfor (int i = 0; i < players.size(); i++) {\n\t\t\t\t\tlogWriter.println(players.get(i).getName() + \" calls\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tshowRound();\n\t\t\tbetting();\n\t\t}\n\t\t// to get the result\n\t\telse if (gameRound == 3) {\n\t\t\thighBet = 0;\n\t\t\tcallBet = 0;\n\t\t\tloop = 1;\n\t\t\tplayerHasRaisedOrNewRound();\n\t\t\tlogWriter.println(\"\\nFinal:\");\n\t\t\tString result = new String();\n\t\t\tgameRound++;\n\t\t\tshowRound();\n\t\t\tbetting();\n\n\t\t\t// disable all the buttons for the user\n\t\t\tboolean tie = false;\n\t\t\tint tieIndex = -1;\n\t\t\t// display the cards\n\n\t\t\tint winnerIndex = -1;\n\t\t\tint maxScore = 0;\n\t\t\t// check the user and AIs' score\n\t\t\tif (!user.getFold()) {\n\t\t\t\tmaxScore = user.getHand().checkScore(centerHand);\n\t\t\t}\n\n\t\t\tint aiHighestScore = 0;\n\t\t\tfor (int i = 0; i < players.size(); i++) {\n\n\t\t\t\tif (!players.get(i).getFold()) {\n\t\t\t\t\taiHighestScore = players.get(i).getHand().checkScore(centerHand);\n\t\t\t\t\tif (aiHighestScore > maxScore) {\n\t\t\t\t\t\tmaxScore = aiHighestScore;\n\t\t\t\t\t\twinnerIndex = i;\n\t\t\t\t\t} else if (aiHighestScore == maxScore) {\n\n\t\t\t\t\t\tint tieBreak = 0;\n\t\t\t\t\t\tif (winnerIndex == -1) {\n\n\t\t\t\t\t\t\ttieBreak = tieBreaker(user, players.get(i));\n\t\t\t\t\t\t\tif (tieBreak == 2) {\n\n\t\t\t\t\t\t\t\tmaxScore = aiHighestScore;\n\t\t\t\t\t\t\t\twinnerIndex = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\ttieBreak = tieBreaker(players.get(winnerIndex), players.get(i));\n\t\t\t\t\t\t\tif (tieBreak == 2) {\n\n\t\t\t\t\t\t\t\tmaxScore = aiHighestScore;\n\t\t\t\t\t\t\t\twinnerIndex = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (tieBreak == 0) {\n\n\t\t\t\t\t\t\ttie = true;\n\t\t\t\t\t\t\ttieIndex = i;\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// display AI cards\n\t\t\tif (numOfAI == 1)\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\telse if (numOfAI == 2) {\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\t\tinitPlayer(northAI2, 1, 1);\n\t\t\t} else if (numOfAI == 3) {\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\t\tinitPlayer(northAI2, 1, 1);\n\t\t\t\tinitPlayer(northAI3, 2, 1);\n\t\t\t} else if (numOfAI == 4) {\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\t\tinitPlayer(northAI2, 1, 1);\n\t\t\t\tinitPlayer(northAI3, 2, 1);\n\t\t\t\tinitPlayer(westAI1, 3, 1);\n\t\t\t} else if (numOfAI == 5) {\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\t\tinitPlayer(northAI2, 1, 1);\n\t\t\t\tinitPlayer(northAI3, 2, 1);\n\t\t\t\tinitPlayer(westAI1, 3, 1);\n\t\t\t\tinitPlayer(westAI2, 4, 1);\n\t\t\t} else if (numOfAI == 6) {\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\t\tinitPlayer(northAI2, 1, 1);\n\t\t\t\tinitPlayer(northAI3, 2, 1);\n\t\t\t\tinitPlayer(westAI1, 3, 1);\n\t\t\t\tinitPlayer(westAI2, 4, 1);\n\t\t\t\tinitPlayer(eastAI1, 5, 1);\n\t\t\t} else {\n\t\t\t\tinitPlayer(northAI1, 0, 1);\n\t\t\t\tinitPlayer(northAI2, 1, 1);\n\t\t\t\tinitPlayer(northAI3, 2, 1);\n\t\t\t\tinitPlayer(westAI1, 3, 1);\n\t\t\t\tinitPlayer(westAI2, 4, 1);\n\t\t\t\tinitPlayer(eastAI1, 5, 1);\n\t\t\t\tinitPlayer(eastAI2, 6, 1);\n\t\t\t}\n\n\t\t\tif (winnerIndex == -1 && tie == false && !user.getFold()) {\n\t\t\t\tuser.setStack(user.getStack() + moneyInPot);\n\t\t\t\tresult = \"\\nYou win with \" + handType(user) + \", and you win $\" + moneyInPot;\n\t\t\t\tlogWriter.println(result);\n\t\t\t\t// move the money in the pot to the user's pocket\n\t\t\t\tuserStack.setText(\"Balance:\" + user.getStack());\n\t\t\t\tuserStack.setForeground(Color.white);\n\t\t\t\tplayer.revalidate();\n\t\t\t} else if (winnerIndex >= 0 && tie == false) {\n\t\t\t\tplayers.get(winnerIndex).setStack(players.get(winnerIndex).getStack() + moneyInPot);\n\t\t\t\tresult = \"The winner is \" + players.get(winnerIndex).getName() + \" with \"\n\t\t\t\t\t\t+ handType(players.get(winnerIndex)) + \", and \" + players.get(winnerIndex).getName() + \" wins $\"\n\t\t\t\t\t\t+ moneyInPot;\n\t\t\t\tlogWriter.println(result);\n\t\t\t} else if (winnerIndex == -1 && tie == true) {\n\t\t\t\tuser.setStack(user.getStack() + moneyInPot / 2);\n\t\t\t\tplayers.get(tieIndex).setStack(players.get(tieIndex).getStack() + moneyInPot / 2);\n\t\t\t\tresult = \"There is a tie between you and \" + players.get(tieIndex).getName() + \" with \"\n\t\t\t\t\t\t+ handType(players.get(tieIndex)) + \", and \" + \"both of you recieve\" + \" wins $\"\n\t\t\t\t\t\t+ moneyInPot / 2;\n\t\t\t\tlogWriter.println(result);\n\t\t\t} else if (winnerIndex >= 0 && tie == true) {\n\t\t\t\tplayers.get(tieIndex).setStack(players.get(tieIndex).getStack() + moneyInPot / 2);\n\t\t\t\tplayers.get(winnerIndex).setStack(players.get(winnerIndex).getStack() + moneyInPot / 2);\n\t\t\t\tresult = \"There is a tie between \" + players.get(tieIndex).getName() + \" and \"\n\t\t\t\t\t\t+ players.get(winnerIndex).getName() + \" with \" + handType(players.get(winnerIndex))\n\t\t\t\t\t\t+ \" ,and both players recieve\" + \" wins $\" + moneyInPot / 2;\n\t\t\t\tlogWriter.println(result);\n\t\t\t} else {\n\t\t\t\tresult = \"\\nYou win with \" + handType(user) + \", and you win $\" + moneyInPot;\n\t\t\t\tlogWriter.println(result);\n\t\t\t\t// move the money in the pot to the user's pocket\n\t\t\t\tuser.setStack(user.getStack() + moneyInPot);\n\t\t\t\tuserStack.setText(\"Balance:\" + user.getStack());\n\t\t\t\tuserStack.setForeground(Color.white);\n\t\t\t\tplayer.revalidate();\n\t\t\t}\n\n\t\t\t// log the end time of the game and close the file writing\n\t\t\t// TODO: Check remaining player number and see if the writer\n\t\t\t// should be closed or not\n\t\t\tif (true) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\tif (tie != true) {\n\t\t\t\tsetPlayerWinningCardsIcon(winnerIndex);\n\t\t\t}\n\n\t\t\tuser.clearHand();\n\t\t\tfor (int j = 0; j < players.size(); j++) {\n\t\t\t\tplayers.get(j).clearHand();\n\t\t\t}\n\n\t\t\tif (timeLimit)\n\t\t\t\ttimer.cancel();\n\t\t\t\n\t\t\tdisableButtons(3);\n\n\t\t\tnew resultFrame(result, user, players, this, logWriter, theme, avatar, timeLimit, winningC1Icon,\n\t\t\t\t\twinningC2Icon, winningC3Icon, winningC4Icon, winningC5Icon);\n\t\t} else\n\t\t\treturn;\n\t}", "title": "" }, { "docid": "cb52d3077f17f78edf96895db88696b5", "score": "0.57315016", "text": "private void playerTurn()\n\t{\n\t\tenemyTurn=false;\n\t\t//FIGHTER'S INFORMATION\n\t\tShortcutMethods.generateSpaces(1);\n\t\t\n\t\tdistanceStatus();\n\t\tfightingStatus();\n\t\tShortcutMethods.generateSpaces(1);\n\t\t\n\t\t//Player's turn\n\t\tSystem.out.print(\"\\nYour Turn\\n\");\n\t\tShortcutMethods.generateSpaces(1);\n\t\t\n\t\tplayerGuarding=false;\n\t\t\n\t\tCommandText();\n\t\tboolean endLoop=false;\n\t\t\n\t\twhile (!endLoop)\n\t\t{\n\t\t\tchoosingNumberBattle=console.nextInt();\n\t\t\tif (choosingNumberBattle==1)\n\t\t\t{\n\t\t\t\tmoveDecisioner(true);\n\t\t\t\tif (player_primaryIsMelee==true)\n\t\t\t\t{\n\t\t\t\t\tif (contestant1.getContestantWeaponType()==1){\n\t\t\t\t\t\tplayerskip=dodgingChance(enemyAgl,enemyTraining_1,playerTraining_1);\t\n\t\t\t\t\t}\n\t\t\t\t\tif (contestant1.getContestantWeaponType()==3){\n\t\t\t\t\t\tplayerskip=dodgingChance(enemyAgl,enemyTraining_3,playerTraining_3);\t\n\t\t\t\t\t}\n\t\t\t\t\tif (contestant1.getContestantWeaponType()==4){\n\t\t\t\t\t\tplayerskip=dodgingChance(enemyAgl,enemyTraining_4,playerTraining_4);\n\t\t\t\t\t}\n\t\t\t\t\tif (contestant1.getContestantWeaponType()==5){\n\t\t\t\t\t\tplayerskip=dodgingChance(enemyAgl,enemyTraining_5,playerTraining_5);\t\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\t//note that the player's training determines his ability to control with his weapon\n\t\t\t\telse if (player_primaryIsRanged==true)\n\t\t\t\t{\n\t\t\t\t\tplayerskip=dodgingChance(enemyAgl, enemyTraining_2,playerTraining_2);\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//note that the player's training determines his ability to control with his weapon\n\t\t\t\t//the attack and Stamina reducer here\n\t\t\t\tplayerStamina=makingAttack(playerStamina, 15, enemyTurn, \"Your\", \"you\");\n\t\t\t\tSystem.out.print(\"TURN ENDS\");endLoop=true;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (choosingNumberBattle==2){\n\t\t\t\tif (playerStamina>0){//when doing different moves I will use the if statement according to what move\n\t\t\t\t\tplayerTurn_Guard();\n\t\t\t\t\t\tplayerStamina-=5;\n\t\t\t\t\t\tif (playerStamina<0)\n\t\t\t\t\t\t{playerStamina=0;}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{System.out.print(\"Your Stamina is too low, so you failed, while humiliating yourself\");}\n\t\t\t\tSystem.out.print(\"TURN ENDS\");endLoop=true;\n\t\t\t}\n\t\t\telse if (choosingNumberBattle==3){\n\t\t\t\tif (distance>0){\n\t\t\t\t\tif (playerStamina>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayerStamina-=playerSpd/2;\n\t\t\t\t\t\tif (playerStamina<0){playerStamina=0;}\n\t\t\t\t\t\tfightActionText(\"You charged\");distance-=playerSpd;if (distance<0){distance=0;}\n\t\t\t\t\t\tSystem.out.print(\"TURN ENDS\");endLoop=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"Your Stamina is too low, so you failed, while humiliating yourself\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {System.out.print(\"You guys are too close to be advancing! continue your choice..\");CommandText();}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (choosingNumberBattle==4){\n\t\t\t\tif (distance<(1000-(playerSpd/2))){\n\t\t\t\t\tplayerStamina-=playerSpd/8;if (playerStamina<0){playerStamina=0;}\n\t\t\t\tfightActionText(\"You backed based on your speed\");distance+=playerSpd/4;if (distance<0){distance=0;}\n\t\t\t\tSystem.out.print(\"TURN ENDS\");endLoop=true;\n\t\t\t\t}\n\t\t\t\telse {System.out.print(\"Dude, stop being a chicken!!! continue your choice..\");CommandText();}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (choosingNumberBattle==5){\n\t\t\t\tdisplayMoreFightingStatus=true;\n\t\t\t\tfightingStatus();\n\t\t\t\tdisplayMoreFightingStatus=false;\n\t\t\t\t\n\t\t\t\tSystem.out.print(\"TURN ENDS\");\n\t\t\t\tendLoop=true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tShortcutMethods.generateSpaces(2);\n\t\t\t\tSystem.out.print(\"You hold position, may have recovered some Stamina\\n\");\n\t\t\t\tif (playerStamina<300)\n\t\t\t\t{\n\t\t\t\t\tplayerStamina+=30;\n\t\t\t\t\tif (playerStamina>300){playerStamina=300;\n\t\t\t\t\tSystem.out.println(\"\\nStamina can only be added to a maxinum of 300\\n\");CommandText();}\n\t\t\t\t\tendLoop=true;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tShortcutMethods.generateSpaces(1);\n\t\t\n\t\tdistanceStatus();\n\t\tfightingStatus();\n\t\tif (exitSwitch==false){\n\t\t\tShortcutMethods.generateSpaces(1);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fad7f33a61984f156faddbdf246ce0b6", "score": "0.5690874", "text": "protected void lookAround()\n {\n getPlayer().turn(45);\n }", "title": "" }, { "docid": "b77423e30a704bd89f91da081164d113", "score": "0.56604964", "text": "public boolean simDay() {\n luck = Math.random();\n //Personal personal = new Personal();\n //personal.date(player, crush);\n //System.out.println(player.average);\n //Lunch lunch = new Lunch();\n //Events event = new Events();\n //event.impressCrush(player);\n //lunch.play(player);\n //FindClass run = new FindClass();\n //run.runToClass(player);\n //System.out.println(player.average);\n\n if(!player.isDead()){\n System.out.println(luck);\n System.out.println(\"Good Morning \" + player.name + \"!\");\n System.out.println(\"Please select one of the following:\");\n\n int ans = 0;\n String s = \"\";\n s += \"\\t1: Show Your Status\\n\";\n s += \"\\t2: Fortune Me! \\n\";\n s += \"\\t3: INTO THE FRAY! \\n\";\n s += \"Selection: \";\n System.out.println(s);\n\n\n try {\n ans = Integer.parseInt( in.readLine() );\n String let;\n if (ans == 1){\n System.out.println(player);\n System.out.println(\"Would you like a fortune? (Y/N)\");\n let = in.readLine();\n if(let.equals(\"Y\")){\n System.out.println(\"Fortune: \");\n System.out.print(FORTUNES[(int)(Math.random() * 17)]);\n System.out.println(\"\\n\");\n }\n\n }\n else if (ans == 2){\n System.out.println(\"Fortune: \");\n System.out.print(FORTUNES[(int)(Math.random() * 17)]);\n System.out.println(\"\\n\");\n }\n else\n System.out.println(\"Packing your turtle shell...\");\n }\n catch ( IOException e ) { }\n\n System.out.println(\"OK HERE WE GO \\n\");\n //Starting school\n int eNum = 0;\n while(eNum <= maxE){\n if (luck < 0.2){\n System.out.println(\"Nothing Special Happens...\");\n System.out.println(\"***\");\n //No events\n break;\n }\n else if (luck < 0.4){\n System.out.println(\"Academic Event\");\n //Academic\n if(luck < 0.25)\n Academic.test(player);\n else if (luck < 0.3)\n Academic.quiz(player);\n else if (luck < 0.35)\n Academic.project(player);\n else\n Academic.sleep(player);\n System.out.println(\"***\");\n }\n\n else if (luck < 0.6){\n System.out.println(\"Social Event\");\n //Social\n //friend // eatOut // brithday // rumors\n if(luck < 0.45)\n Social.friend(player);\n else if (luck < 0.5)\n Social.eatOut(player);\n else if (luck < 0.55)\n Social.birthday();\n else\n Social.rumors(player);\n System.out.println(\"***\");\n }\n\n\n else if (luck < 0.8){\n System.out.println(\"Personal Event!\");\n //Personal\n if(luck < 0.65)\n Personal.netflix(player, crush);\n else if (luck < 0.7)\n Personal.date(player, crush);\n else if (luck < 0.75)\n Personal.sick(player,friend1,friend2,friend3);\n else\n Personal.nap(player);\n\n System.out.println(\"***\");\n }\n else{\n System.out.println(\"Special OTHER Event!\");\n //Other\n if(luck < 0.85)\n Other.MTA(player);\n else if (luck < 0.9)\n Other.allNighter(player);\n else if (luck < 0.95)\n Other.soulCycle(player);\n else\n Other.hqtrivia(player);\n System.out.println(\"***\");\n }\n\n eNum+= 1;\n luck = Math.random();\n }\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c6f8b1fd624e055863d78b817b3d0af9", "score": "0.5638198", "text": "public void manageTurn(){\n calculateGasAssignment();\n lungs.breathe();\n heart.pumpBlood(); // Diffusion currently happens here\n\n }", "title": "" }, { "docid": "fd445aeeedc9e0a1d3217fe88791cafd", "score": "0.56373227", "text": "@Override\n public void playNextTurn() {\n // Ensure we don't take any action if we are in a completed state\n if(finished) {\n return;\n }\n\n // If current is a Monster, execute an attack move\n if(current instanceof Monster) {\n List<Hero> attackedHeroes = pairing.getHeroesForMonster((Monster)current);\n List<Legend> asLegends = new ArrayList<>(attackedHeroes);\n FightMove attack = new Attack(current, asLegends);\n try {\n displayMonstersStatus();\n attack.execute();\n } catch (InvalidFightMoveException e) {\n e.printStackTrace();\n // Shouldn't happen\n }\n } else {\n // If current is a Hero, prompt the user for their desired move, then execute it.\n List<Monster> facedMonsters = pairing.getMonstersForHero((Hero)current);\n boolean madeSuccessfulMove = false;\n while(!madeSuccessfulMove) {\n displayHeroStatus();\n move = new GetUserFightMove((Hero)current, facedMonsters).run();\n try {\n move.execute();\n madeSuccessfulMove = true;\n } catch (InvalidFightMoveException e) {\n System.out.println(\"Error! Something went wrong with the previous move. Please try again\");\n }\n }\n }\n Output.printSeparator();\n }", "title": "" }, { "docid": "791b458f9b83dc4a1bf0ebbe3efa33a1", "score": "0.5588151", "text": "public void Step() {\n //Logger.getInstance().printCommandCall(this);\n\n Random rand = new Random();\n int rand_int = rand.nextInt(2);\n switch(rand_int){\n case 0 : {\n Drill();\n break;\n }\n case 1 : {\n int id = asteroid.GetRandNeighbour();\n Move(id);\n break;\n }\n }\n\n //Logger.getInstance().printReturnCommand();\n }", "title": "" }, { "docid": "7e410bad861f3a729db4a3506be33075", "score": "0.5579258", "text": "public void act() \n { \n //solution for exer 3.31\n \n move(5);\n\n //solution for exer 3.32 \n\n if(Greenfoot.getMicLevel() > 5)\n {\n move(3);\n }\n\n //solution for exer 3.34\n \n moveLeftIfNoise();\n \n //solution for exer 3.35\n \n gameOver();\n }", "title": "" }, { "docid": "bef7d8e9a4ec70508bc719252d1cd2b5", "score": "0.5560846", "text": "public void getPlayerLuckier() {\r\n\t\tteam1.getPlayerLuckier(managerShot).addShot(managerShot);\r\n\t\tteam2.getPlayerLuckier(managerShot).addShot(managerShot);\r\n\t\tSystem.out.println(\"tiro suerte para los jugadores \" + \r\n\t\t\t\tteam1.getPlayerLuckier(managerShot).getName()+ \" y \" +\r\n\t\t\t\tteam2.getPlayerLuckier(managerShot).getName()\r\n\t\t\t\t);\r\n\t}", "title": "" }, { "docid": "8b584ddd557c2261cef9c9f80cdb1e37", "score": "0.55578405", "text": "public static void nextTurn() {\r\n\t\tcounter++;\r\n\t\t\r\n\t\t/*\r\n\t\t * \tBorder check: If there are 50 turns, or one of the player wins\r\n\t\t */\r\n\t\tif (counter >= 50){\r\n\t\t\tendGame();\r\n\t\t}\r\n\t\t\r\n\t\tif (playerSank >= 5 || computerSank >= 5){\r\n\t\t\tendGame();\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Update the game status label\r\n\t\t */\r\n\t\t\r\n\t\tString status = \"<html><h1>Single Player</h1><br><h2>Round #\" + (counter + 1) + \"</h2>\";\r\n\t\tstatus += \"<b>AI has: </b>\" + computerHit + \" hits<br>\";\r\n\t\tstatus += \"<b>AI has: </b>\" + computerSank + \" sanks<br><br>\";\r\n\t\t\r\n\t\tstatus += \"<b>Player has: </b>\" + playerHit + \" hits<br>\";\r\n\t\tstatus += \"<b>Player has: </b>\" + playerSank + \" sanks<br>\";\r\n\t\t\r\n\t\tstatusLabel.setText(status);\r\n\t\t\r\n\t\t\r\n\t\tint maxLocationX = -1;\r\n\t\tint maxLocationY = -1;\r\n\t\t\r\n\t\t/*\r\n\t\t * \tThere are 2 modes, kill mode and hunt mode.\r\n\t\t * \r\n\t\t * \tHunt mode is used when the computer is UNCERTAIN about the user's placement, \r\n\t\t * \tand when it is guessing for the most probable user positions.\r\n\t\t * \r\n\t\t * \tKill mode is used when the computer is SOMEWHAT CERTAIN about the user's \r\n\t\t * \tplacement, and it tries the locations around the most probable locations. \r\n\t\t */\r\n\t\t\r\n\t\tif (killModeEngaged) {\r\n\t\t\tSystem.out.println(\"[INFO]\\t***KILL MODE ENGAGED***\");\r\n\r\n\t\t\tKillAlgorithm.recalculate();\r\n\r\n\t\t\t/*\r\n\t\t\t * Calculates the most probable location, and returns\r\n\t\t\t * to user\r\n\t\t\t */\r\n\t\t\tdouble maxProb = -1.0D;\r\n\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\tfor (int j = 0; j < 10; j++) {\r\n\t\t\t\t\tif ((gridProbability[i][j] > maxProb)\r\n\t\t\t\t\t\t\t&& (gridState[i][j] == 0)) {\r\n\t\t\t\t\t\tmaxProb = gridProbability[i][j];\r\n\t\t\t\t\t\tmaxLocationX = i;\r\n\t\t\t\t\t\tmaxLocationY = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"[INFO]\\tSuggested Location (\"\r\n\t\t\t\t\t+ (maxLocationX + 1) + \", \" + (maxLocationY + 1) + \") \" + (char)('A' + maxLocationY) + Integer.toString(maxLocationX + 1));\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Suggested Location (\"\r\n\t\t\t\t\t+ (maxLocationX + 1) + \", \" + (maxLocationY + 1) + \") \" + (char)('A' + maxLocationY) + Integer.toString(maxLocationX + 1));\r\n\t\t} else {\r\n\t\t\tHuntAlgorithm.recalculate();\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * \t20% of the time, the computer chooses the least probable location,\r\n\t\t\t * \tto deal with some special placements, where the ships are not on the most probable\r\n\t\t\t * \tlocation. \r\n\t\t\t */\r\n\t\t\tif ((leastProbableCounter ++) % 6 == 0){\r\n\t\t\t\tSystem.out.println(\"leastProbableCounter = \" + leastProbableCounter);\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\t\t\tfor (int j = 0; j < 10; j++)\r\n\t\t\t\t\t\tif (gridProbability[i][j] == 0)\r\n\t\t\t\t\t\t\tgridProbability[i][j] = 0;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tgridProbability[i][j] = 10000 - gridProbability[i][j];\r\n\r\n\t\t\t\tSystem.out.println(\"New Probability Grid: \\n\");\r\n\t\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < 10; j++)\r\n\t\t\t\t\t\tSystem.out.printf(\"%f\\t\", gridProbability[j][i]);\r\n\t\t\t\t\tSystem.out.println();\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\t * Calculates the most probable location, and returns\r\n\t\t\t * to user\r\n\t\t\t */\r\n\r\n\t\t\tdouble maxProb = -1.0D;\r\n\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\tfor (int j = 0; j < 10; j++) {\r\n\t\t\t\t\tif ((gridProbability[i][j] > maxProb)\r\n\t\t\t\t\t\t\t&& (gridState[i][j] == 0)) {\r\n\t\t\t\t\t\tmaxProb = gridProbability[i][j];\r\n\t\t\t\t\t\tmaxLocationX = i;\r\n\t\t\t\t\t\tmaxLocationY = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"[INFO]\\tSuggested Location (\"\r\n\t\t\t\t\t+ (maxLocationX + 1) + \", \" + (maxLocationY + 1) + \") \" + (char)('A' + maxLocationY) + Integer.toString(maxLocationX + 1));\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Suggested Location (\"\r\n\t\t\t\t\t+ (maxLocationX + 1) + \", \" + (maxLocationY + 1) + \") \" + (char)('A' + maxLocationY) + Integer.toString(maxLocationX + 1));\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * \tProgram asks the user about the outcome, and does the corresponding action\r\n\t\t */\r\n\t\tint outcome;\r\n\t\tString s;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\toutcome = JOptionPane.showOptionDialog(null, \"HIT or MISS\",\r\n\t\t\t\t\t\"Outcome\",\r\n\t\t\t\t\tJOptionPane.YES_OPTION,\r\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE,\r\n\t\t\t\t\tnull,\r\n\t\t\t\t\toutcomes,\r\n\t\t\t\t\toutcomes[0]);\r\n\t\t\t\r\n\t\t\ts = outcomes[outcome];\r\n\t\t\t\r\n\t\t\tint response = JOptionPane.showOptionDialog(null, \"Are you sure?\",\r\n\t\t\t\t\t\"Confirmation\",\r\n\t\t\t\t\tJOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE,\r\n\t\t\t\t\tnull,\r\n\t\t\t\t\tnew String[]{\"Yes\", \"No\"},\r\n\t\t\t\t\t\"No\");\r\n\t\t\t\r\n\t\t\tif (response == 0) break;\r\n\t\t\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif (killModeEngaged) {\r\n\t\t\tif (s.equals(\"Sank\")) {\r\n\t\t\t\tgridState[maxLocationX][maxLocationY] = 1;\r\n\t\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < 10; j++) {\r\n\t\t\t\t\t\tif (gridState[i][j] == 1 && \r\n\t\t\t\t\t\t\t\toriginalPlacement[i][j] == originalPlacement[maxLocationX][maxLocationY]) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Makes sure that only the current ship get to be set visited, not all hit ships\r\n\t\t\t\t\t\t\tgridState[i][j] = 2;\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\t\t/*\r\n\t\t\t\t * \tUpdating the counters\r\n\t\t\t\t */\r\n\t\t\t\tcomputerSank ++;\r\n\t\t\t\tcomputerHit++;\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * \tReasks the user when the user clicks \"cancel\"\r\n\t\t\t\t */\r\n\t\t\t\tString ship;\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tship = (String) JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\t\t\"Which ship is sunk?\", \"\",\r\n\t\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, null,\r\n\t\t\t\t\t\t\t\tactiveShipNames.toArray(), \"\");\r\n\t\t\t\t\t} while (ship == null);\r\n\t\t\t\t\tif (JOptionPane.showOptionDialog(null, \"Are you sure?\",\r\n\t\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new String[] {\r\n\t\t\t\t\t\t\t\t\t\"Yes\", \"No\" }, \"No\") == 0) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint shipID = -1;\r\n\t\t\t\tfor (int i = 0; i < 5; i++)\r\n\t\t\t\t\tif (shipNames[i].equals(ship))\r\n\t\t\t\t\t\tshipID = i;\r\n\t\t\t\t\r\n\t\t\t\t//activeShipNames.remove(shipID);\r\n\t\t\t\t//activeShipNames.remove(activeShipNames.indexOf(ship));\r\n\r\n\t\t\t\tshipState[shipID] = 2;\r\n\r\n\t\t\t\tkillModeEngaged = false;\r\n\t\t\t\tfor (int i = 0; i < 5; i++)\r\n\t\t\t\t\tif (shipState[i] == 1)\r\n\t\t\t\t\t\tkillModeEngaged = true;\r\n\t\t\t} else if (s.equals(\"Hit\")) {\r\n\t\t\t\tgridState[maxLocationX][maxLocationY] = 1;\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * \tReasks the user when the user clicks \"cancel\"\r\n\t\t\t\t */\r\n\t\t\t\tString ship;\r\n\t\t\t\t\r\n\t\t\t\twhile(true){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t\tship = (String) JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\t\t\"Which ship is hit?\", \"\", JOptionPane.QUESTION_MESSAGE,\r\n\t\t\t\t\t\t\tnull, activeShipNames.toArray(), \"\");\r\n\t\t\t\t\t} while(ship == null);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (JOptionPane.showOptionDialog(null, \"Are you sure?\",\r\n\t\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new String[] {\r\n\t\t\t\t\t\t\t\t\t\"Yes\", \"No\" }, \"No\") == 0) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tint shipID = -1;\r\n\t\t\t\tfor (int i = 0; i < 5; i++)\r\n\t\t\t\t\tif (shipNames[i].equals(ship))\r\n\t\t\t\t\t\tshipID = i;\r\n\t\t\t\t\r\n\t\t\t\tcomputerHit ++;\r\n\r\n\t\t\t\tshipState[shipID] = 1;\r\n\t\t\t\tkillModeEngaged = true;\r\n\r\n\t\t\t} else if (s.equals(\"Miss\")) {\r\n\t\t\t\tgridState[maxLocationX][maxLocationY] = 3;\r\n\t\t\t}\r\n\t\t} else if (s.equals(\"Hit\")) {\r\n\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\tfor (int j = 0; j < 10; j++) {\r\n\t\t\t\t\tif (gridState[i][j] == 1) {\r\n\t\t\t\t\t\tgridState[i][j] = 2;\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\tcomputerHit++;\r\n\t\t\tgridState[maxLocationX][maxLocationY] = 1;\r\n\t\t\tString ship;\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tship = (String) JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\t\"Which ship is hit?\", \"\",\r\n\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, null,\r\n\t\t\t\t\t\t\tactiveShipNames.toArray(), \"\");\r\n\t\t\t\t} while (ship == null);\r\n\t\t\t\tif (JOptionPane.showOptionDialog(null, \"Are you sure?\",\r\n\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new String[] { \"Yes\",\r\n\t\t\t\t\t\t\t\t\"No\" }, \"No\") == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint shipID = -1;\r\n\t\t\tfor (int i = 0; i < 5; i++)\r\n\t\t\t\tif (shipNames[i].equals(ship))\r\n\t\t\t\t\tshipID = i;\r\n\r\n\t\t\tshipState[shipID] = 1;\r\n\t\t\tkillModeEngaged = true;\r\n\t\t} else {\r\n\t\t\tgridState[maxLocationX][maxLocationY] = 3;\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * \tRe-enable the buttons, except those have been hit, and missed\r\n\t\t */\r\n\t\tfor (int i=0; i<10; i++)\r\n\t\t\tfor (int j=0; j<10; j++)\r\n\t\t\t\tif (buttonGrid[i][j].getBackground() == Color.BLUE ||\r\n\t\t\t\t\t\tbuttonGrid[i][j].getBackground() == Color.RED){\r\n\t\t\t\t\tbuttonGrid[i][j].setEnabled(false);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbuttonGrid[i][j].setEnabled(true);\r\n\t\t\t\t}\r\n\t}", "title": "" }, { "docid": "7c567b6118bc099b8db436a1630f6363", "score": "0.5539851", "text": "private void cS5() {\n\t\tfinal String opt[] = {\"Fire\",\"Nice\"};\n\t\tPlayer local = ctx.players.local();\n\t//\tSceneObject door = SceneEntities.getNearest(45539);\n\t\tif (new Tile(3207, 3153, 0).distanceTo(local.tile()) < 7) {\n\t\t\tif (fireValid()) {\n\t\t\t\tif (Method.objIsNotNull(45539) && !FatherDoor.contains(Method.getObject(45539).tile()) || !Method.objIsNotNull(45539)) {\n\t\t\t\t\tif (ctx.varpbits.varpbit(2086) == 1) {\n\t\t\t\t\t\tMethod.npcInteract(458, \"Pick\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile(ctx.widgets.component(1186,0).visible()){\n\t\t\t\t\t\t\tMethod.pressContinue();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!Method.findOption(opt)){Vars.DYNAMICV = false;\n\t\t\t\t\t\t\tif(!Method.isChatting(\"Old priest\")){\n\t\t\t\t\t\t\t\tMethod.speakTo(458, \"Priest\");\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} else\n\t\t\t\t\tMethod.interactO(45539, \"Open\",\"Door\");\n\t\t\t} else {\n\t\t\t\tMethod.state(\"Attempting to start fire\");\n\t\t\t\tif (local.tile().equals(new Tile(3211, 3150, 0))) {//location to light fire\n\t\t\t\t\tif (local.animation() == -1){\n\t\t\t\t\t\tif(Method.inventoryContains(1511)){\n\t\t\t\t\t\tMethod.interactInventory(1511, \"Light\",\"Logs\");\n\t\t\t\t\t\t}else if(Method.gItemIsNotNull(1511)&&Method.getGroundItem(1511).inViewport()){\n\t\t\t\t\t\t\tMethod.interactG(1511, \"Light\", \"Log\");\n\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\tVars.DYNAMICV = false;\n\t\t\t\t\t\t\tVars.DYNAMICV2 = false;\n\t\t\t\t\t\t\tDeltaQuester.GEFeature = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (new Tile(3211, 3150, 0).matrix(ctx).inViewport()) {\n\t\t\t\t\t\tnew Tile(3211, 3150, 0).matrix(ctx).click(true);\n\t\t\t\t\t\tMethod.sleep(Random.nextInt(300, 600)); \n\t\t\t\t\t} else\n\t\t\t\t\t\tctx.camera.turnTo(new Tile(3211, 3150, 0));\n\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (Vars.DYNAMICV) {\n\t\t\tMethod.walking(pathToFather, \"Walking to priest\",false);\n\t\t} else if (TeleportLode.LUMMBRIDGE.getTile().distanceTo(local.tile())<10) {\n\t\t\tVars.DYNAMICV = true;\n\t\t} else\n\t\t\tMethod.teleportTo(TeleportType.LUMBRIDGE.getTeleport(),TeleportType.LUMBRIDGE.getName());\n\n\t}", "title": "" }, { "docid": "fc459a4112f8e8e207653c2a4a9edb4a", "score": "0.55121756", "text": "public static void main(String[] args) {\n\t\tTruck myTruck;\n\t\tmyTruck = new Truck();\n\t\tmyTruck.speedUp(300);\n\t\t\n//\t\tTruck suc = (Truck)myTruck;\n//\t\tmyTruck.speedUp(200);\n\t\tSystem.out.println(\"Truck speed is \" + myTruck.getTruckSpd());\n\t\t//System.out.printf(\"Truck speed is %d\", myTruck.getTruckSpd());\n\t\tSystem.out.println(\"Car class의 spd 멤버변수의 값 : \" + myTruck.spd);\n\t\tSystem.out.println(\"Car speed의 spd 멤버변수의 값 : \" + myTruck.getCarSpd());\n\t\t\n\t}", "title": "" }, { "docid": "9bf814455744af521caa9a9326b83c3c", "score": "0.5504624", "text": "public static void main(String[] args) {\n Weapon weapon1 = new Weapon(\"Atomic Fire Breath\", 100);\n Weapon weapon2 = new Weapon(\"Thunderbolt\", 50);\n // instantiate 2 Monster objects\n Monster monster1 = new Monster(\"Godzilla\", 100, weapon1);\n Monster monster2 = new Monster(\"Pikachu\", 200, weapon2);\n // we start with round 1 of the fight\n int round = 1;\n // battle continues in rounds until one (or both ) monster have a health the is <= 0\n while (monster1.getHealthScore() > 0 && monster2.getHealthScore() > 0) {\n int damage1 = monster1.attack(monster2); // first monster attacks second monster\n int damage2 = monster2.attack(monster1); // second monster attacks first monster\n // report the results for this round\n System.out.println(\"========================================\");\n System.out.println(\"Round #\" + round);\n System.out.println(\"----------------------------------------\");\n\n System.out.println(monster1.getName() + \" attacks \" + monster2.getName() +\n \" with \" + monster1.getWeaponName() +\n \", doing \" + damage1 + \" points of damage.\");\n\n System.out.println(monster2.getName() + \" attacks \" + monster1.getName() +\n \" with \" + monster2.getWeaponName() +\n \", doing \" + damage2 + \" points of damage.\");\n System.out.println(\"----------------------------------------\");\n System.out.println(monster1.getName() + \" Health = \" + monster1.getHealthScore());\n System.out.println(monster2.getName() + \" Health = \" + monster2.getHealthScore());\n // pause before advancing to the next round\n System.out.print(\"\\nPress ENTER to continue...\");\n scnr.nextLine();\n // advance to the next round\n round += 1;\n }\n // we made it out of the loop because one (or both ) monster have a health the is <= 0\n // now we must determine the winner (if there is one)\n String winner = \"No Monster\";\n\n if (monster1.getHealthScore() > 0) {\n winner = monster1.getName();\n }\n if (monster2.getHealthScore() > 0) {\n winner = monster2.getName();\n }\n // report the winner\n System.out.println(\"The winner is \" + winner + \"!\");\n }", "title": "" }, { "docid": "2ba3dc8413653e8bc8e8459342f00926", "score": "0.5503527", "text": "public void bonusMove() {\n\t\tif (good != null)\n\t\t\tgood.move(0, 4);\n\t\tif (bad != null)\n\t\t\tbad.move(0, 4);\n\t\tif (standart != null)\n\t\t\tstandart.move(0, 4);\n\t\tif (speed1 != null)\n\t\t\tspeed1.move(0, 4);\n\t\tif (speed2 != null)\n\t\t\tspeed2.move(0, 4);\n\t\tif (speed3 != null)\n\t\t\tspeed3.move(0, 4);\n\t\tif (coin != null)\n\t\t\tcoin.move(0, 4);\n\t}", "title": "" }, { "docid": "8fad90be2525f0ccf72ef5a3cea0b549", "score": "0.55021775", "text": "@Override\n public void execute() {\n double rawSpeed = speed.getAsDouble();\n if (rawSpeed > 0.5 || rawSpeed < -0.5) {\n if (DriverStation.getInstance().getMatchTime() > 30) {\n elevator.runWinch(rawSpeed * 0.75);\n } else {\n elevator.runWinch(rawSpeed);\n }\n return;\n }\n elevator.runWinch(0);\n }", "title": "" }, { "docid": "2e3cc5d9b85eb7c0a42776b58a3af5df", "score": "0.549194", "text": "private void _shoot(double speedMultiplier) {\r\n\t\t\r\n\t\ttalonR.changeControlMode(TalonControlMode.Speed);\r\n\t\ttalonL.changeControlMode(TalonControlMode.Speed);\r\n\t\t\t\t\r\n\t\tboolean full_speed = false;\r\n\t\t\r\n\t\t//Direction of motor to be found out\r\n\t\t//P, I, D, F---> 0.02, 0, 1.65, 0\r\n//\t\ttalonR.set(0.1 * StrongholdConstants.SHOOTER_MAX_SPEED); //* StrongholdConstants.VEL_PER_10MS\r\n//\t\ttalonL.set(-0.1 * StrongholdConstants.SHOOTER_MAX_SPEED); //8465\r\n//\t\t\r\n//\t\tTimer.delay(0.2);\r\n//\t\t\r\n//\t\tstop();\r\n//\t\t\r\n//\t\tTimer.delay(0.5);\r\n\t\t\r\n//\t\ttalonR.set(-StrongholdConstants.SHOOTER_MAX_SPEED * 0.25 * speedMultiplier); //* StrongholdConstants.VEL_PER_10MS\r\n//\t\ttalonL.set(StrongholdConstants.SHOOTER_MAX_SPEED * 0.25 * speedMultiplier); //8465\r\n//\t\ttalonR.set(-StrongholdConstants.SHOOTER_MAX_SPEED * speedMultiplier); //* StrongholdConstants.VEL_PER_10MS\r\n//\t\ttalonL.set(StrongholdConstants.SHOOTER_MAX_SPEED * speedMultiplier); //8465\r\n\t\t\r\n\t\tSystem.out.println(\"Shooter TalonR/L Set VElocity : \" + 10* StrongholdConstants.SHOOTER_MAX_SPEED * speedMultiplier);\r\n\r\n\t\tdouble timer = Timer.getFPGATimestamp();\r\n\r\n\t\twhile (full_speed == false && (Timer.getFPGATimestamp() - timer) <= 3) {\t\t\r\n\t\t\tif (Math.abs(talonR.getEncVelocity()) >= 10 * 0.95 * StrongholdConstants.SHOOTER_MAX_SPEED * speedMultiplier && \r\n\t\t\t\t\tMath.abs(talonL.getEncVelocity()) >= 10 * 0.95 * StrongholdConstants.SHOOTER_MAX_SPEED * speedMultiplier) {\r\n\t\t\t\tfull_speed = true;\r\n//\t\t\t\tSystem.out.println(\"Shooter Current FULL SPEED Velocity \" + \" R: \" + talonR.getEncVelocity() + \" L: \" + talonL.getEncVelocity());\r\n\t\t\t} else {\r\n//\t\t\t\tSystem.out.println(\"Shooter Current Velocity \" + \" R: \" + talonR.getEncVelocity() + \" L: \" + talonL.getEncVelocity());\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t\tSmartDashboard.putNumber(\"Enc1 vel: \", talonR.getEncVelocity());\r\n\t\tSmartDashboard.putNumber(\"Enc2 vel: \", talonL.getEncVelocity());\r\n\t\t\r\n\t\trelay.set(Relay.Value.kForward);\r\n\t\t\r\n\t\tTimer.delay(StrongholdConstants.SHOOT_DELAY2);\r\n\t\tstop();\r\n\t\trelay.set(Relay.Value.kOff);\r\n\t\tDSIO.shooterRunning = false;\r\n\t\tStrongholdRobot.shootCount ++;\r\n\r\n\t}", "title": "" }, { "docid": "d15238614c1ff671976c7cb950d2dc34", "score": "0.5485384", "text": "private void playerTurn_Attack()\n\t{\n\t\t//ATK\t\t\t\t\n\t\tShortcutMethods.generateSpaces(2);\n\t\tfightActionText(\"The player attempts to attack\\nWait for next round to see the effect\\n\");\n\t\t\n\t\tif (playerWeaponSpdValue==10)\n\t\t{\n\t\t\tplayerWeaponSpdValue=10-playerWeaponSpd;\n\t\t}//reset\n\t\tif (distance<=playerWeaponRgn)\n\t\t{\n\t\t\t\tif (playerWeaponSpdValue==9)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\tif (playerskip==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (enemyGuarding==true)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tenemyDefence+=enemyGrd;\n\t\t\t\t\t\t\tif (enemyDefence<(playerStr+playerMve)){\n\t\t\t\t\t\t\t\tenemyHp=blockDefendAbsorb(enemyHp,(playerStr+playerMve), enemyDefence, \"Defence nulled the attack\",\"The enemy's Guard did not guard completely\\n\");\n\t\t\t\t\t\t\t\tenemyDefence-=enemyGrd;}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tenemyHp=blockDefendAbsorb(enemyHp, (playerStr+playerMve), enemyDefence, \"Defence nulled the attack\",\"The enemy's Guard guarded completely\\n\");\n\t\t\t\t\t\t\t\tenemyDefence-=enemyGrd;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tenemyHp=blockDefendAbsorb(enemyHp,(playerStr+playerMve), enemyDefence, \"Defence nulled the attack\",\"\");\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\telse {fightActionText(\"The enemy dodges\\n\");}\n\t\t\t\t}\t\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tif \t(player_primaryIsMelee==true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nYour melee weapon is so heavy, that you are still in the progress of using the weapon!\\nRound ends\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\telse if (player_primaryIsRanged==true)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (playerWeaponSpdValue==4)\n\t\t\t\t\t\t\t{System.out.print(\"You put down your weapon\");}//crossbow \n\t\t\t\t\t\tif (playerWeaponSpdValue==5)\n\t\t\t\t\t\t\t{System.out.print(\"You cock your weapon\");}//crossbow\n\t\t\t\t\t\tif (playerWeaponSpdValue==6)\n\t\t\t\t\t\t\t{System.out.print(\"You raise your weapon\");}//crossbow\n\t\t\t\t\t\tif (playerWeaponSpdValue==7)\n\t\t\t\t\t\t\t{System.out.print(\"You load an shaft on your ranged equipment\");}//crossbow&bow\n\t\t\t\t\t\tif (playerWeaponSpdValue==8)\n\t\t\t\t\t\t\t{System.out.print(\"You take aim\");}//crossbow&bow\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tplayerWeaponSpdValue+=1;System.out.print(\"\\n\");\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplayerStamina-=playerSpd/4;\n\t\t\tfightActionText(\"You can't hit him yet, too far away, so you advanced\");\n\t\t\tdistance-=playerSpd/2;\n\t\t\tif (distance<0)\n\t\t\t{\n\t\t\t\tdistance=0;\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "5b23223f67cf7e777b4c18962f0f50a0", "score": "0.5482686", "text": "private void moveDecisioner(boolean myTurn)\n\t{\t\n\t\tplayerMve=0;\n\t\tenemyMve=0;\n\t\tplayerDefence=0;\n\t\tenemyDefence=0;\n\t\t//This is for player\n\t\tif (myTurn==true)\n\t\t{\n\t\t\tboolean endLoop=false;\n\t\t\twhile (!endLoop)\n\t\t\t{\t\n\t\t\t\tAtkCommandText();\n\t\t\t\tchoosingNumberBattle=console.nextInt();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (choosingNumberBattle==1&&player_primaryIsMelee==true&&player_primaryIsRanged==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayerMve=playerMve_Slash;\n\t\t\t\t\t\tplayerDefence=playerDefence_Slash+playerArmourDefence_Slash;\n\t\t\t\t\t\tenemyDefence=enemyDefence_Slash+enemyArmourDefence_Slash;\n\t\t\t\t\t\tendLoop=true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (choosingNumberBattle==2&&player_primaryIsMelee==true&&player_primaryIsRanged==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayerMve=playerMve_Piercing;\n\t\t\t\t\t\tplayerDefence=playerDefence_Piercing+playerArmourDefence_Piercing;\n\t\t\t\t\t\tenemyDefence=enemyDefence_Piercing+enemyArmourDefence_Piercing;\n\t\t\t\t\t\tendLoop=true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (choosingNumberBattle==3&&player_primaryIsMelee==true&&player_primaryIsRanged==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayerMve=playerMve_Crush;\n\t\t\t\t\t\tplayerDefence=playerDefence_Crush+playerArmourDefence_Crush;\n\t\t\t\t\t\tenemyDefence=enemyDefence_Crush+enemyArmourDefence_Crush;\n\t\t\t\t\t\tendLoop=true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (choosingNumberBattle==4&&player_primaryIsMelee==false&&player_primaryIsRanged==true)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayerMve=playerMve_Shoot;\n\t\t\t\t\t\tplayerDefence=playerDefence_Piercing+playerArmourDefence_Piercing;\n\t\t\t\t\t\tenemyDefence=enemyDefence_Piercing+enemyArmourDefence_Piercing;\n\t\t\t\t\t\tendLoop=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid option, your weapon is not suitable for that attack!\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"INVALID\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//this is for the computer\n\t\telse{\n\t\t\tint randomNumber2=ShortcutMethods.randomNumberGeneratorMethod(3);\n\t\t\tif (randomNumber2==1)\n\t\t\t{\n\t\t\t\tif(enemy_primaryIsMelee==true&&enemy_primaryIsRanged==false)\n\t\t\t\t{\n\t\t\t\t\tenemyMve=enemyMve_Slash;\n\t\t\t\t\tenemyDefence=enemyDefence_Slash+enemyArmourDefence_Slash;\n\t\t\t\t\tplayerDefence=playerDefence_Slash+playerArmourDefence_Slash;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tenemyMve=enemyMve_Shoot;\n\t\t\t\t\tenemyDefence=enemyDefence_Piercing+enemyArmourDefence_Piercing;\n\t\t\t\t\tplayerDefence=playerDefence_Piercing+playerArmourDefence_Piercing;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\telse if (randomNumber2==2)\n\t\t\t{\n\t\t\t\tif(enemy_primaryIsMelee==true&&enemy_primaryIsRanged==false)\n\t\t\t\t{\n\t\t\t\t\tenemyMve=enemyMve_Piercing;\n\t\t\t\t\tenemyDefence=enemyDefence_Piercing+enemyArmourDefence_Piercing;\n\t\t\t\t\tplayerDefence=playerDefence_Piercing+playerArmourDefence_Piercing;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tenemyMve=enemyMve_Shoot;\n\t\t\t\t\tenemyDefence=enemyDefence_Piercing+enemyArmourDefence_Piercing;\n\t\t\t\t\tplayerDefence=playerDefence_Piercing+playerArmourDefence_Piercing;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (randomNumber2==3)\n\t\t\t{\n\t\t\t\tif(enemy_primaryIsMelee==true&&enemy_primaryIsRanged==false)\n\t\t\t\t{\n\t\t\t\t\tenemyMve=enemyMve_Crush;\n\t\t\t\t\tenemyDefence=enemyDefence_Crush+enemyArmourDefence_Crush;\n\t\t\t\t\tplayerDefence=playerDefence_Crush+playerArmourDefence_Crush;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tenemyMve=enemyMve_Shoot;\n\t\t\t\t\tenemyDefence=enemyDefence_Piercing+enemyArmourDefence_Piercing;\n\t\t\t\t\tplayerDefence=playerDefence_Piercing+playerArmourDefence_Piercing;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nThe enemy is fighting without a weapon\\n\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2c800a1b349910b325bf058388ddf976", "score": "0.5481679", "text": "private Personnage fight (){\n\n // variable contennant le vainqueur du combat\n Personnage vainqueur;\n // variable contennant le perdant du combat\n Personnage perdant;\n // variable definissant le gain d' xp au terme du combat\n int gainXp;\n // variable prenant la valeur retourné par la methode round --> sert a savoir si le combat continue\n boolean nextRound ;\n\n // alterne les round entre deux personnage tant que l'un d'entre eux est vivant\n if (!fuiteCombat){\n do{\n nextRound = round(perso,ennemi);\n if(!fuiteCombat) {\n if (nextRound) {\n nextRound = round(ennemi, perso);\n }\n }\n }while (nextRound && !fuiteCombat);\n }\n\n\n System.out.println(\"Fin du combat\");\n if (perso.isVivant()) {\n vainqueur = perso;\n perdant = ennemi;\n }\n else {\n vainqueur = ennemi;\n perdant = perso;\n }\n\n System.out.println(vainqueur.getNom()+\" a remporter le combat !!\");\n System.out.println(perdant.getNom()+\" s'est fait défoncer...\");\n\n if (vainqueur.getMetier().getNiveau()<perdant.getMetier().getNiveau())\n gainXp = 10;\n else\n gainXp = 5;\n\n vainqueur.getMetier().gainXp(gainXp);\n System.out.println(vainqueur);\n\n // A la fin du combat si c'est le hero qui gagne ses points d'attaque et de defence naturel sont re setter\n // ceci pour pouvoir enchainer les combats et rendre le jeu un peu plus facile\n if (perso.isVivant()){\n\n System.out.println(\"Vous regagnez vos points de defence et d'attaque\");\n System.out.println(\"Non non pas les points de vie ...\");\n perso.setAttaque(attaquePerso);\n perso.setDefense(defencePerso);\n\n }\n\n return vainqueur;\n }", "title": "" }, { "docid": "c16107b5be08be15a115c1f1f0bc7f69", "score": "0.5459683", "text": "public void startGame() {\n deck.deal(dealer);\n dealer.getHand().get(0).setIsVisible(false);\n deck.deal(dealer);\n deck.deal(player);\n deck.deal(player);\n printTable(false);\n\n if ((dealer.getHandValue() == WIN_SCORE) && (player.getHandValue() == WIN_SCORE)) {\n endGame();\n } else if ((dealer.getHandValue() == WIN_SCORE) || (player.getHandValue() == WIN_SCORE)) {\n endGame();\n } else {\n playerTurn();\n }\n\n }", "title": "" }, { "docid": "db92c6b93bdba45aeef73130aa971f3b", "score": "0.5450901", "text": "void TakePlayerTurn()\n\t{\n\t\tif (throwGesture_.wasPerformed())\n\t\t{\n\t\t\tGameObject g;\n\t\t\t\n\t\t\tif (Gdx.input.isKeyPressed(Input.Keys.A))\n\t\t\t{\n\t\t\t\tThrowableObj newItem = new ThrowableObj( new Pixels(throwGesture_.getDownPosition().x), new Pixels(throwGesture_.getDownPosition().y), R.Materials.block, world_,R.Textures.circle, \"circle\", gameObjects_, spriteList_);\n\t\t\t\tg = newItem;\n\t\t\t}\n\t\t\telse if (Gdx.input.isKeyPressed(Input.Keys.S))\n\t\t\t{\n\t\t\t\tThrowableObj newItem = new ThrowableObj( new Pixels(throwGesture_.getDownPosition().x), new Pixels(throwGesture_.getDownPosition().y), R.Materials.block, world_,R.Textures.heart, \"heart\", gameObjects_, spriteList_);\n\t\t\t\tg = newItem;\n\t\t\t}\n\t\t\telse if (Gdx.input.isKeyPressed(Input.Keys.D))\n\t\t\t{\n\t\t\t\tThrowableObj newItem = new ThrowableObj( new Pixels(throwGesture_.getDownPosition().x), new Pixels(throwGesture_.getDownPosition().y), R.Materials.block, world_,R.Textures.tick, \"tick\", gameObjects_, spriteList_);\n\t\t\t\tg = newItem;\n\t\t\t}\n\t\t\telse if (Gdx.input.isKeyPressed(Input.Keys.F))\n\t\t\t{\n\t\t\t\tThrowableObj newItem = new ThrowableObj( new Pixels(throwGesture_.getDownPosition().x), new Pixels(throwGesture_.getDownPosition().y), R.Materials.block, world_,R.Textures.pentagon, \"pentagon\", gameObjects_, spriteList_);\n\t\t\t\tg = newItem;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tThrowableObj moon = new ThrowableObj(new Pixels(throwGesture_.getDownPosition().x), new Pixels(throwGesture_.getDownPosition().y), R.Materials.block, world_, R.Textures.square, \"square\",gameObjects_, spriteList_);\n\t\t\t\tg = moon;\n\t\t\t}\n\t\t\t\n\t\t\tg._body.applyForceToCenter( throwGesture_.getThrow(new Meters(10).value()) );\n\t\t}\n\t}", "title": "" }, { "docid": "efbef3a46f26986bb470a43dd967557e", "score": "0.5449418", "text": "public void movePlayerForward()\n {\n if (has_not_been_drawn)\n {\n //going thru blue\n if ((getSteps_moved()>=0)&&(getSteps_moved()<=5))\n {\n movePlayerLeftSideWays();\n incrementSteps();\n }\n //going to red\n else if (getSteps_moved()==6)\n {\n x_cordinate-=getWidth_of_box();\n y_cordinate+=getWidth_of_box();\n incrementSteps();\n }\n else if ((getSteps_moved()>=7)&&(getSteps_moved()<=11))\n {\n movePlayerDownWards();\n incrementSteps();\n }\n else if ((getSteps_moved()>11&&getSteps_moved()<14))\n {\n movePlayerLeftSideWays();\n incrementSteps();\n }\n //at red\n \n //go to green\n else if (getSteps_moved()>=14&&getSteps_moved()<=18)\n {\n movePlayerUpwards();\n incrementSteps();\n }\n else if (getSteps_moved()==19)\n {\n x_cordinate-=(getWidth_of_box());\n y_cordinate-=(getWidth_of_box());\n incrementSteps();\n }\n else if (getSteps_moved()>19&&getSteps_moved()<=24)\n {\n movePlayerLeftSideWays();\n incrementSteps();\n }\n else if (getSteps_moved()>=25&&getSteps_moved()<=26)\n {\n movePlayerUpwards();\n incrementSteps();\n }\n //move thru green\n else if (getSteps_moved()==27)\n {\n movePlayerRightSideWays();\n incrementSteps();\n }\n else if (getSteps_moved()>27&&getSteps_moved()<=31)\n {\n movePlayerRightSideWays();\n incrementSteps();\n }\n //go to yellow\n else if (getSteps_moved()==32)\n {\n x_cordinate+=(getWidth_of_box());\n y_cordinate-=(getWidth_of_box());\n incrementSteps();\n }\n else if (getSteps_moved()>32&&getSteps_moved()<=37)\n {\n movePlayerUpwards();\n incrementSteps();\n }\n else if (getSteps_moved()>=38&&getSteps_moved()<=39)\n {\n movePlayerRightSideWays();\n incrementSteps();\n }\n //move thru yellow\n else if (getSteps_moved()>=40&&getSteps_moved()<=44)\n {\n movePlayerDownWards();\n incrementSteps();\n }\n //go to blue\n else if (getSteps_moved()==45)\n {\n x_cordinate+=(getWidth_of_box());\n y_cordinate+=getWidth_of_box();\n incrementSteps();\n }\n else if (getSteps_moved()>=46&&getSteps_moved()<=50)\n {\n movePlayerRightSideWays();\n incrementSteps();\n }\n else if (getSteps_moved()>=51&&getSteps_moved()<52)\n {\n movePlayerDownWards();\n incrementSteps();\n }\n else if (getSteps_moved()>=52&&getSteps_moved()<=57)\n {\n movePlayerLeftSideWays();\n incrementSteps();\n if (getSteps_moved()==58)\n {\n decrementNumberOfAllowedPlayers();\n determineIfGreenHasFinished();\n }\n }\n }\n }", "title": "" }, { "docid": "a6d9f3be00efbd7a875627a2e8a1856d", "score": "0.5444174", "text": "private void step() {\n if (ended) return;\n log(\"New step. Player \"+(turn ? \"A\" : \"B\")+\" is first.\");\n Player p1 = turn ? playerA : playerB;\n Player p2 = turn ? playerB : playerA;\n\n Card c1 = p1.play(p2.getPointsDeck(), null, tableCard);\n log(\"Player \"+(p1 == playerA ? \"A\" : \"B\")+\" played \"+c1);\n Card c2 = p2.play(p1.getPointsDeck(), c1, tableCard);\n log(\"Player \"+(p1 == playerB ? \"A\" : \"B\")+\" played \"+c2);\n\n ArrayList<Card> hand = new ArrayList<>();\n hand.add(c1);\n hand.add(c2);\n\n boolean firstWins = Rules.doesFirstCardWin(c1, c2, tableCard.getSuit());\n Player winner = firstWins ? p1 : p2;\n Player loser = firstWins ? p2 : p1;\n log(\"Player \"+(winner == playerA ? \"A\" : \"B\")+\" won the hand.\");\n\n winner.take(hand);\n if (!deck.isEmpty()) winner.draw(deck.draw());\n if (!deck.isEmpty()) loser.draw(deck.draw());\n\n turn = winner == playerA;\n\n if (!playerA.hasCardsInHand() || !playerA.hasCardsInHand()) ended = true;\n }", "title": "" }, { "docid": "c94ffe9f111eefcf0e5dd4adb7e65cb0", "score": "0.54413134", "text": "public void where() {\n\t int temp = 0;\n\tSystem.out.print(\"in \" + current_player.getPosition().getName()); \n\tSystem.out.println();\n\t\n\tif (current_player.getRole() != null) {\n\t\tSystem.out.print(\" shooting \" + current_player.getRole().getName() + \" scene \" + ((Stage) current_player.getPosition()).getCard().getScene());\n\t\tSystem.out.println();\n\t} \n if (current_player.getPosition().getName().equals(\"office\") || current_player.getPosition().getName().equals(\"trailer\")) {\n \tSystem.out.println();\n \tSystem.out.println(\"You can move here to try to work: \");\n\t\tfor (int k = 0; k < current_player.getPosition().getNeighbor().size(); k++) {\n\t\t\tSystem.out.println(current_player.getPosition().getNeighbor().get(k));\n\t\t}\n\t\tSystem.out.println();\n } else {\n \tStage stage = (Stage) current_player.getPosition(); \n \tSystem.out.println();\n \tSystem.out.println(\"You can move here to try to work: \");\n\t\tfor (int k = 0; k < stage.getNeighbor().size(); k++) {\n\t\t\tSystem.out.println(stage.getNeighbor().get(k));\n\t\t}\n\t\tSystem.out.println();\n \tif (stage.isClose()) {\n \t\tSystem.out.println(\"Room is closed! No work available!\");\n \t\tSystem.out.println();\n \t} else {\n\t \tArrayList<Role> extras = stage.getExtraRole();\n\t \tArrayList<Role> mains = stage.getCard().getMainRoles();\n\t \tSystem.out.println(\"Extra Roles are: \");\n\t \tfor (int i = 0; i < extras.size(); i++) {\n\t \t\tSystem.out.println(extras.get(i).getName() + \" \" + extras.get(i).getRank());\n\t \t}\n\t \tSystem.out.println();\n\t \tSystem.out.println(\"Card is in this game is: \" + stage.getCard().getName());\n\t \tSystem.out.println();\n\t \tSystem.out.println(\"Main Roles Available are: \");\n\t \tfor (int j = 0; j < mains.size(); j++) {\n\t \t\tSystem.out.println(mains.get(j).getName() + \" \" + mains.get(j).getRank());\n\t \t}\n\t \tSystem.out.println();\n \t}\t\n }\n }", "title": "" }, { "docid": "0cc323b6962d3fc5d0998904978f8e51", "score": "0.54403275", "text": "public void act() {\n\t\t//先判断游戏是否结束\n\t\tisEnd = isReachEnd();\n\t\tboolean willMove = canMove();\n\t\t//初始化,先预测一个方向\n\t\tif(stepCount==0){\n\t\t\tdirPredic();\n\t\t\t//加入栈中\n\t\t\tArrayList<Location> first = new ArrayList<Location>();\n\t\t\tLocation loc = getLocation();\n\t\t\tfirst.add(loc);\n\t\t\tcrossLocation.add(first);\n\t\t}\n\t\tif (isEnd == true) {\n\t\t//to show step count when reach the goal\t\t\n\t\t\tif (hasShown == false) {\n\t\t\t\tstepCount++;\n\t\t\t\tString msg = stepCount.toString() + \" steps\";\n\t\t\t\tJOptionPane.showMessageDialog(null, msg);\n\t\t\t\thasShown = true;\n\t\t\t}\n\t\t}\n\t\t//有空余位置可走\n\t\telse if (willMove) {\n\t\t\tmove();\n\t\t\t//increase step count when move \n\t\t\tstepCount++;\n\t\t} \n\t\t//没有空余位置可走\n\t\telse{\n\t\t\treturnLastPos();\n\t\t\t//increase step count when return \n\t\t\tstepCount++;\n\t\t}\n\t\t//test for dir_count\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tSystem.out.print(dir_count[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "title": "" }, { "docid": "83ba5dde930931a4f226d806666fdc4c", "score": "0.5404458", "text": "public void playerStand() {\n\t\tdealercards.get(0).setFaceUp();\r\n\r\n\t\tif(getdeelrTotal() == 21&& dealercards.size()==2) {\r\n\t\t\tgameStatus = DEALER_WON;\r\n\t\t}else {\r\n\t\t\tdo {\r\n\t\t\t\tdealercards.add(deck.remove(0));\r\n\t\t\t}while(getdeelrTotal() <16);\r\n\r\n\t\t\tif(getdeelrTotal() > getPlyrTotal() && getdeelrTotal() < 21) {\r\n\t\t\t\tgameStatus = DEALER_WON;\r\n\r\n\t\t\t}else if(getPlyrTotal() > getdeelrTotal()){\r\n\t\t\t\tgameStatus = PLAYER_WON;\r\n\t\t\t\tplayersact += (initialbt*2);\r\n\t\t\t}\t\r\n\t\t\telse if((getdeelrTotal() > 21 && getPlayerCardsEvaluation() != BUST ) ||getPlyrTotal() ==21) {\r\n\t\t\t\tgameStatus = PLAYER_WON;\r\n\t\t\t\tplayersact += (initialbt*2);\r\n\t\t\t}else if(getPlyrTotal() == getdeelrTotal() ){\r\n\t\t\t\tgameStatus = DRAW;\r\n\t\t\t\tplayersact += initialbt;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tgameStatus = GAME_IN_PROGRESS;\r\n\t\t\t\tplayersact += initialbt;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "367f3c55e3dafe252f38dcb4141152fe", "score": "0.5389225", "text": "private void protagonistActions() {\n\t\tif(keyKeeper.getOrDefault(KeyCode.SPACE, false)) {\n\t\t\tsoldierAttack();\n\t\t}\n\t\tif(keyKeeper.getOrDefault(KeyCode.D, false) && keyKeeper.getOrDefault(KeyCode.A, false)) {\n\t\t\tsoldier.movingAnimationRight.stop();\n\t\t\tsoldier.movingAnimationLeft.stop();\n\t\t\tif(soldier.direction == 0) soldier.sprite.setViewport(new Rectangle2D(0, 300, soldier.width, soldier.height));\n\t\t\telse soldier.sprite.setViewport(new Rectangle2D(0, 200, soldier.width, soldier.height));\n\t\t\tif(soldier.gravity < 10) soldier.gravity += 1;\n\t\t\tif(soldier.gravity > 0) soldier.moveDown();\n\t\t\telse soldier.moveUp();\n\t\t\treturn;\n\t\t}\n\t\tif(keyKeeper.getOrDefault(KeyCode.W, false)) {\n\t\t\tsoldier.jump();\n\t\t}\n\t\tif(keyKeeper.getOrDefault(KeyCode.D, false) && soldier.getTranslateX() + soldier.width < level.width - 100) {\n\t\t\tsoldier.movingAnimationRight.play();\n\t\t\tsoldier.moveRight();\n\t\t\tsoldier.direction = 1;\n\t\t} else if(keyKeeper.getOrDefault(KeyCode.A, false) && soldier.getTranslateX() > 100) {\n\t\t\tsoldier.movingAnimationLeft.play();\n\t\t\tsoldier.moveLeft();\n\t\t\tsoldier.direction = 0;\n\t\t} else {\n\t\t\tsoldier.movingAnimationRight.stop();\n\t\t\tsoldier.movingAnimationLeft.stop();\n\t\t\tif(soldier.direction == 0) soldier.sprite.setViewport(new Rectangle2D(0, 300, soldier.width, soldier.height));\n\t\t\telse soldier.sprite.setViewport(new Rectangle2D(0, 200, soldier.width, soldier.height));\n\t\t}\n\t\t\n\t\tif(soldier.gravity < 10) soldier.gravity += 1;\n\t\tif(soldier.gravity > 0) soldier.moveDown();\n\t\telse soldier.moveUp();\n\t}", "title": "" }, { "docid": "7263d92934a28caed95a2e8f760e9df5", "score": "0.53784937", "text": "public void run(){\n\t\tint diceOrAcc = 0; // indicator int for rolling dice or making accusation\n\t\tint numPlayers;\n\t\tString roomNear; // the room this player is near and able to enter\n\n\t\t\n\t\tnumPlayers=UI.howManyPlayers();\n\t\tnplayers = numPlayers;\n\t\twhile(numPlayers>0){\n\t\t\tif(buildControlled(UI.askWhichPlayer(numPlayers))){ //builds arraylist of players who are controlled (human)\n\t\t\tnumPlayers--;\n\t\t\t}\n\t\t}\n\t\tmakeSolution();\n\t\tdealCards(nplayers); //deals all the cards to the controlled players (humans)\n\t\twhile(nplayers>1){ //when size = 1 we have a winner\n\t\t\tfor(Player p:controlledPlayers){ // each players turn pretty much\n\t\t\t\tSystem.out.println(\"It is now \"+p.getName()+\"'s turn\");\n\t\t\t\tdiceOrAcc = UI.rollDiceOrAccusation(); \n\t\t\t\tif(diceOrAcc == 1){\n\t\t\t\t\tsteps = UI.rollDice();\n\t\t\t\t}else if(diceOrAcc == 2){\n\t\t\t\t\tif(accusation()){\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsteploop:\n\t\t\t\twhile(steps>0){ //if steps = 0 it is the next players turn\n\t\t\t\t\tboard.draw();\n\t\t\t\t\tif(board.inRoom(p)){\n\t\t\t\t\t\tSystem.out.println(p.getBoardLoc());\n\t\t\t\t\t\tboard.exitRoom(p);\n\t\t\t\t\t\t//board.draw();\n\t\t\t\t\t\t//work out what exit, call board.exitRoom() or someting liek this\n\t\t\t\t\t}\n\t\t\t\t\t//need to work out if inRoom(), if true then ask what exit to leave\n\t\t\t\t\t//if false then continue as usual like below\n\t\t\t\t\tmove(p);\n\t\t\t\t\tboard.draw();\n\t\t\t\t\troomNear = board.roomAdjacentTo(p);\n\t\t\t\t\tif(roomNear != null){\n\t\t\t\t\t\tif(UI.askEnterRoom()){//ask if player would like to enter the room they are next to a door\n\t\t\t\t\t\t\tsteps = 0;\n\t\t\t\t\t\t\tboard.movePlayerToRoom(p, roomNear);\n\t\t\t\t\t\t\tboard.draw();\n\t\t\t\t\t\t\tif(UI.askMakeSuggestion()){\n\t\t\t\t\t\t\t\tplayerSuggest = UI.getInQuestion()[0]; //player in question\n\t\t\t\t\t\t\t\tweaponSuggest = UI.getInQuestion()[1]; //weapon in question\n\t\t\t\t\t\t\t\troomSuggest = roomNear;//UI.getInQuestion()[2]; //room in question\n\t\t\t\t\t\t\t\tmoveWeapon(weaponSuggest, roomNear); // move weapon to room\n\t\t\t\t\t\t\t\tmovePlayer(playerSuggest, roomNear);// move player as well.\n\t\t\t\t\t\t\t\tp.makeSuggestion(playerSuggest, weaponSuggest, roomSuggest);\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have suggested \"+playerSuggest+ \" in the \"+ roomSuggest+ \" with the \"+weaponSuggest+\".\");\n\t\t\t\t\t\t\t\tif(checkSuggestion(p.getName(),playerSuggest, weaponSuggest,roomSuggest)){\n\t\t\t\t\t\t\t\t\tif(accusation()){\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tbreak steploop;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Your suggestion was incorrect\");\n\t\t\t\t\t\t\t\t\t//this should really print the first thing that denied the suggestion\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t//if still have steps will start loop again..\n\t\t\t\t}\n//\t\t\t\tif(UI.askEndTurnOrAccusation()){ tbh dont think we need this, moving your steps shouldnt change\n\t\t\t\t//mind whther you wanna make an accy or not.. ya know\n//\t\t\t\t\taccusation();\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The remaining player wins!!\"); //all players have been removed so this player wins!\n\t}", "title": "" }, { "docid": "7815c13433791fb83462fc581e56b5b7", "score": "0.5368555", "text": "@Override\r\n\tpublic void vFuel() {\n\t\tSystem.out.println(\"Petrol\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cd6096f0c8ee751333cd7651f94b00eb", "score": "0.536768", "text": "public void doItsThing()\n {\n Scanner sc = new Scanner(System.in);\n \n if (getName().equals(\"Chance\")) {i = referenceChance.get(0);}\n else {i = referenceChest.get(0);} \n int currentToll = cardTolls.get(i);\n String line3 = \"\";\n \n if(currentToll > 0) \n {\n Player.getPList().get(getTurn()).deposit(currentToll);\n line3 = \"Receive $\"+currentToll+\".\";\n }\n else if (currentToll < 0)\n {\n Player.getPList().get(getTurn()).withdraw((-1*currentToll), true);\n line3 = \"You pay $\"+(-1*currentToll)+\".\";\n } \n \n String in = \"a\";\n while (in.length() != 0)\n {\n UIPrintBoard(cardNames.get(i),cardLores.get(i),line3);\n in = sc.nextLine();\n }\n \n //If currentToll = 0, the card doesn't directly relate to monetary gain/loss, but instead something else specific.\n //This series of if statements finds the correct index of the card, and does what it's supposed to do.\n //A few examples are labelled.\n if(i == 1 || i == 16) \n {\n Player.getPList().get(getTurn()).move(0);\n Board.getGrid()[0].doItsThing(); //Advance to Go.\n }\n else if(i == 2)\n {\n if(Player.getPList().get(getTurn()).getLocation() > 23)\n { //If past location it will wrap around so he must hit go.\n Board.getGrid()[0].doItsThing();\n }\n Player.getPList().get(getTurn()).move(24);\n Board.getGrid()[24].doItsThing();\n }\n else if(i == 3)\n {\n if(Player.getPList().get(getTurn()).getLocation() > 10)\n { //If past location it will wrap around so he must hit go.\n Board.getGrid()[0].doItsThing();\n }\n Player.getPList().get(getTurn()).move(11);\n Board.getGrid()[11].doItsThing();\n }\n else if(i == 4) //Advance to the nearest utility.\n {\n if(Player.getPList().get(getTurn()).getLocation() < 12)\n {\n Player.getPList().get(getTurn()).move(12);\n }\n else if(Player.getPList().get(getTurn()).getLocation() > 26)\n {\n Board.getGrid()[0].doItsThing();\n Player.getPList().get(getTurn()).move(12);\n }\n else{\n Player.getPList().get(getTurn()).move(27);\n }\n Board.getGrid()[getPList().get(getTurn()).getLocation()].doItsThing();\n }\n else if(i == 5)\n {\n if(Player.getPList().get(getTurn()).getLocation() < 5)\n {\n Player.getPList().get(getTurn()).move(5);\n }\n else if(Player.getPList().get(getTurn()).getLocation() > 34)\n {\n getBoard()[0].doItsThing();\n Player.getPList().get(getTurn()).move(5);\n }\n else if(Player.getPList().get(getTurn()).getLocation() < 15)\n {\n getPList().get(getTurn()).move(15);\n }\n else if(Player.getPList().get(getTurn()).getLocation() < 25)\n {\n getPList().get(getTurn()).move(25);\n }\n else\n {\n getPList().get(getTurn()).move(35);\n }\n Board.getGrid()[getPList().get(getTurn()).getLocation()].doItsThing();\n }\n else if(i == 8) //Move back 3 spaces\n {\n Player.getPList().get(getTurn()).move(Player.getPList().get(getTurn()).getLocation() - 3);\n getBoard()[getPList().get(getTurn()).getLocation()].doItsThing();\n }\n else if(i == 9 || i == 21) //Go to jail\n {\n Player.getPList().get(getTurn()).toggleImprison(true);\n Player.getPList().get(getTurn()).move(10);\n }\n else if(i == 10)\n {\n Player.getPList().get(getTurn()).withdraw(Player.getPList().get(getTurn()).getHousesBuilt() *25, true);\n Player.getPList().get(getTurn()).withdraw(Player.getPList().get(getTurn()).getHotelsBuilt() *100, true);\n }\n else if(i == 12)\n {\n if(Player.getPList().get(getTurn()).getLocation() > 5)\n { //If past location it will wrap around so he must hit go.\n Board.getGrid()[0].doItsThing();\n }\n Player.getPList().get(getTurn()).move(5);\n Board.getGrid()[5].doItsThing();\n }\n else if(i == 13)\n {\n if(Player.getPList().get(getTurn()).getLocation() > 38)\n { //If past location it will wrap around so he must hit go.\n Board.getGrid()[0].doItsThing();\n }\n Player.getPList().get(getTurn()).move(39);\n Board.getGrid()[39].doItsThing();\n }\n else if(i == 14)\n {\n for(int j = 0; j < Board.getPlayerAmount(); j ++)\n {\n if(j != getTurn())\n {\n Player.getPList().get(getTurn()).transfer(50,Player.getPList().get(j), true);\n }\n }\n }\n else if(i == 22)\n {\n for(int j = 0; i < Board.getPlayerAmount(); j ++)\n {\n if(j != getTurn())\n {\n Player.getPList().get(j).transfer(50, Player.getPList().get(getTurn()), true);\n }\n }\n }\n else if(i == 28)\n {\n Player.getPList().get(getTurn()).withdraw(Player.getPList().get(getTurn()).getHousesBuilt() * 40, true);\n Player.getPList().get(getTurn()).withdraw(Player.getPList().get(getTurn()).getHotelsBuilt() * 115, true);\n }\n else if(i == 7 || i == 20) //Get a Get Out of Detention Free Card\n {\n Player.getPList().get(getTurn()).addFreeCard();\n }\n \n //\"Take the top card and put it at the bottom of the deck\"\n if (getName().equals(\"Chance\"))\n {\n referenceChance.add(referenceChance.get(0));\n referenceChance.remove(0);\n }\n else if (getName().equals(\"Chest\"))\n {\n referenceChest.add(referenceChest.get(0));\n referenceChest.remove(0);\n }\n }", "title": "" }, { "docid": "33827bbe57e45a5c4be82450db3c6c79", "score": "0.5363915", "text": "private void progresLvl() {\n switch (this.level) {\n case 3:\n switch (this.fase) {\n case 1:\n //MONSTEREASY, SHOOTER, METEORITOS, WIFI, BOMB, shooter v2.\n init_monsters(5, 0, 0, 3, 2, 1);\n break;\n case 2:\n init_monsters(3, 0, 0, 2, 2, 1);\n break;\n case 3:\n init_monsters(0, 0, 0, 8, 1, 2);\n break;\n case 4:\n init_monsters(15, 0, 0, 0, 1, 2);\n break;\n case 5:\n init_monsters(0, 0, 0, 15, 1, 1);\n break;\n case 6:\n init_monsters(20, 0, 0, 15, 1, 1);\n this.isFinalProgress = true;\n break;\n }\n break;\n case 4:\n //FUTUROS LVLS\n break;\n }\n }", "title": "" }, { "docid": "203ea62886bcc5815049b3d751d81483", "score": "0.5361897", "text": "private void fightingStatus(){\n\t\t\n\t\tSystem.out.print(\"\\n~*~~*~~*~~*Status~*~~*~~*~~*~\\n\");\n\t\t\n\t\tSystem.out.print(\"\\n~*~~*~~*~~*MAIN~*~~*~~*~~*~\\n\");\n\t\tSystem.out.print(\"\\n | You:\"+playerName);\n\t\tSystem.out.print(\"\\n | The enemy:\"+enemyName+\"\\n\");\n\t\tSystem.out.print(\" | Your health: \"+playerHp+\"\\n\");\n\t\tSystem.out.print(\" | Your Stamina: \"+playerStamina+\"\\n\");//CANNOT BE OVER 300\n\t\tSystem.out.print(\" | Your weapon: \"+playerWeapon+\"\\n\");\n\t\tSystem.out.print(\" | Your strength: \"+playerStr+\"\\n\");\n\t \tSystem.out.print(\" | Your Armour Name: \"+playerArmour+\"\\n\");\t\n\t\tSystem.out.print(\" | The enemy's health: \"+enemyHp+\"\\n\");\n\t\tSystem.out.print(\" | The enemy's Stamina: \"+enemyStamina+\"\\n\");\n\t\tSystem.out.print(\" | The enemy's weapon: \"+enemyWeapon+\"\\n\");\n\t\tSystem.out.print(\" | The enemy's strength: \"+enemyStr+\"\\n\");\t\n\t \tSystem.out.print(\" | The enemy's Armour Name: \"+enemyArmour+\"\\n\");\n\t\tSystem.out.print(\" THE REST OF THE DATA IS AVAILABLE if you can see the enemy in detail\\n\");\n\t\tSystem.out.print(\"\\n~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~\\n\");\n\t\t\n\t\tif (displayMoreFightingStatus==true && (distance<playerAgl*(enemySpd*10/100)))\n\t\t{\n\t\t\t\tSystem.out.print(\"\\n~*~~*~~*~~*OTHER INFO~*~~*~~*~~*~\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's guard: \"+enemyGrd+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Enemy's enemy Defence_Piercing: \"+enemyDefence_Piercing+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Enemy's enemy Defence_Slash: \"+enemyDefence_Slash+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Enemy's enemy Defence_Crush: \"+enemyDefence_Crush+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's speed: \"+enemySpd+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's agility: \"+enemyAgl+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's endurance: \"+enemyEdc+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy'sweight: \"+enemyWgt+\"\\n\\n\");\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" | Your guard: \"+playerGrd+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your player Defence_Piercing: \"+playerDefence_Piercing+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your player Defence_Slash: \"+playerDefence_Slash+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your player Defence_Crush: \"+playerDefence_Crush+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your speed: \"+playerSpd+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your agility: \"+playerAgl+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your endurance: \"+playerEdc+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your weight: \"+playerWgt+\"\\n\");\n\t\t\t\tSystem.out.print(\"\\n~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~\\n\");\n\t\t\t\tSystem.out.print(\"\\n~*~~*~~*~~*Weapons~~*~~*~~*~~*~~*~~*~~*~\\n\\n\");\n\t\t\t\tSystem.out.print(\" | Your weapon Range: \"+playerWeaponRgn+\"\\n\");\n\t\t\t\t\n\t\t\t\tif (player_primaryIsMelee==true )\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" | Your slash attack: \"+playerMve_Slash+\"\\n\");\n\t\t\t\t\tSystem.out.print(\" | Your Piercing attack: \"+playerMve_Piercing+\"\\n\");\n\t\t\t\t\tSystem.out.print(\" | Your crush attack: \"+playerMve_Crush+\"\\n\");\n\t\t\t\t}\n\t\t\t\tif (player_primaryIsRanged==true )\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" | Your shoot attack: \"+playerMve_Shoot+\"\\n\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" | Your Atk Spd with prm Weapon: \"+playerWeaponSpd+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Enemy's Atk Spd with prm Weapon: \"+enemyWeaponSpd+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy'sweapon Range: \"+enemyWeaponRgn+\"\\n\");\n\t\t\t\t\n\t\t\t\tif (enemy_primaryIsMelee==true )\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" | The enemy's slash attack: \"+enemyMve_Slash+\"\\n\");\n\t\t\t\t\tSystem.out.print(\" | The enemy's Piercing attack: \"+enemyMve_Piercing+\"\\n\");\n\t\t\t\t\tSystem.out.print(\" | The enemy's crush attack: \"+enemyMve_Crush+\"\\n\");\n\t\t\t\t}\n\t\t\t\tif (enemy_primaryIsRanged==true )\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" | The enemy'sshoot attack: \"+enemyMve_Shoot+\"\\n\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tweaponTypeDealer(contestant1.getContestantWeaponType(),true);\n\t\t\t \tweaponTypeDealer(contestant2.getContestantWeaponType(),false);\t\n\t\t\t \t\n\t\t\t \tSystem.out.print(\"\\n~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~\\n\\n\");\n\t\t\t \tSystem.out.print(\"\\n~*~~*~~*~~*Armour~~*~~*~~*~~*~~*~~*~~*~\\n\\n\");\n\t\t\t \tSystem.out.print(\" | Your Armour slash Defence: \"+playerArmourDefence_Slash+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Armour piercing Defence: \"+playerArmourDefence_Piercing+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Armour crush Defence: \"+playerArmourDefence_Crush+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Armour Type: \"+contestant1.getContestantArmourType()+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Armour Weight: \"+contestant1.getContestantArmourWeight()+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Armour Guard Boost: \"+contestant1.getContestantArmourGuardBooster()+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Armour Speed Boost: \"+contestant1.getContestantArmourSpeedBooster()+\"\\n\");\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" | The enemy's Armour slash Defence: \"+enemyArmourDefence_Slash+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Armour piercing Defence: \"+enemyArmourDefence_Piercing+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Armour crush Defence: \"+enemyArmourDefence_Crush+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Armour Type: \"+contestant2.getContestantArmourType()+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Armour Weight: \"+contestant2.getContestantArmourWeight()+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Armour Guard Boost: \"+contestant2.getContestantArmourGuardBooster()+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Armour Speed Boost: \"+contestant2.getContestantArmourSpeedBooster()+\"\\n\");\n\t\t\t \tSystem.out.print(\"\\n~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~\\n\\n\");\n\t\t\t\tSystem.out.print(\"\\n~*~~*~~*~TRAINING*~~*~~*~~*~\\n\");\n\t\t\t\tSystem.out.print(\" | Your Training in moderate melee: \"+playerTraining_1+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Training in heavy melee: \"+playerTraining_3+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Training in light melee: \"+playerTraining_4+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Training in pole arms: \"+playerTraining_5+\"\\n\");\n\t\t\t\tSystem.out.print(\" | Your Training in ranged: \"+playerTraining_2+\"\\n\");\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" \");\n\t\t\t\t\n\t\t\t\tSystem.out.print(\" | The enemy's Training in moderate melee: \"+enemyTraining_1+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Training in heavy melee: \"+enemyTraining_3+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Training in light melee: \"+enemyTraining_4+\"\\n\");\n\t\t\t\tSystem.out.print(\" | The enemy's Training in pole arms: \"+enemyTraining_5+\"\\n\");\n\n\t\t\t\tSystem.out.print(\" | The enemy's Training in ranged: \"+enemyTraining_2+\"\\n\");\n\t\t\t\tSystem.out.print(\"\\n~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~\\n\");\n\t\t\t\tCommandText();\n\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "cc13faa67f0c540abd651cb305e8508a", "score": "0.535737", "text": "protected void execute() {\n \tSystem.out.print(\"Left: \");\n \tSystem.out.print(pixyDuino.getTurnLeft());\n \tSystem.out.print(\", Right: \");\n \tSystem.out.println(pixyDuino.getTurnRight());\n \tif (pixyDuino.getTurnLeft() && pixyDuino.getTurnRight()){\n \t\tdirection = \"straight\";\n \t} else if (pixyDuino.getTurnLeft()){\n \t\tdirection = \"left\";\n \t} else if (pixyDuino.getTurnRight()){\n \t\tdirection = \"right\";\n \t} else {\n \t\tdirection = \"none\";\n \t\t\n \t}\n }", "title": "" }, { "docid": "9ad27980484e71ab5dff9281dd5b0e62", "score": "0.5353669", "text": "private void startTurn() {\n\t\t\n\t\t\n\t\t// Select current turns player\n\t\tPlayer currentPlayer = playerCollection.get(playerIndex);\n\t\t\n\t\tif(currentPlayer.isActive()) {\n\t\t\tcurrentPlayer.setHypMade(false);\n\t\t\tint whoseGo = currentPlayer.playerNumber();\n\t\t\t\n\n\t\t\t// Inform players who's turn it is\n\t\t\tSystem.out.println(\"Okay player \" + (whoseGo) + \". It's your turn!\");\n\t\t\tSystem.out.println(\"Press return to roll the dice\");\n\t\t\tsc.nextLine();\n\t\t\t\n\t\t\t// Randomly assign number of moves\n\t\t\tint numMovesRemaining = currentPlayer.rollDice();\n\t\t\t\n\t\t\t// Inform player of their moves and location\n\t\t\tSystem.out.println(\"You have \" + numMovesRemaining + \" moves.\");\n\t\t\t\n\t\t\t\n\t\t\t// Begin action loop where the player makes his decisions for their turn\n\t\t\tboolean playerTurnOver = false;\n\t\t\twhile(!playerTurnOver && currentPlayer.isActive()) {\n\t\t\t\t\n\t\t\t\t// Print the gameboard for users convenience\n\t\t\t\tgameBoard.printBoard(playerIndex, playerCollection, weaponPawns);\n\t\t\t\t\n\t\t\t\t// Ask user which action they would like to perform\n\t\t\t\tSystem.out.println(\"Would you like to:\\n\" + \"Enter move mode (M)\\n\" + \"Check your notebook (N)\\n\" + \"Make a hypothesis (H)\\n\" + \"Make an accusation (A)\\n\" + \"Check Cards (C)\\n\" + \"End your turn (E)\");\n\t\t\t\tString str = sc.nextLine();\n\t\t\t\tswitch(Character.toUpperCase(str.charAt(0))) {\n\t\t\t\tcase('M'):\n\t\t\t\t\tnew MoveManager(currentPlayer, gameBoard, playerCollection, weaponPawns).moveMode(playerIndex, sc);;\n\t\t\t\t\tbreak;\n\t\t\t\tcase('N'):\n\t\t\t\t\tnew NotebookManager(currentPlayer.getNotebook(), sc).openNotebook(sc);\n\t\t\t\t\tbreak;\n\t\t\t\tcase('H'):\n\t\t\t\t\tHypothesisManager HM = new HypothesisManager(gameBoard, playerCollection, weaponPawns, playerIndex, sc);\n\t\t\t\t\tif(HM.checkEligible()) {\n\t\t\t\t\t\tHM.makeHypothesis();\n\t\t\t\t\t\tHM.checkHypothesis();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase('C'):\n\t\t\t\t\tSystem.out.println(currentPlayer.lookAtHand());\n\t\t\t\t\tSystem.out.println(\"Press return to continue\");\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tbreak;\n\t\t\t\tcase('A'):\n\t\t\t\t\tAccusationManager AM = new AccusationManager(currentPlayer, playerCollection, playerIndex, murdererCards, sc);\n\t\t\t\t\tAM.makeAccusation();\n\t\t\t\t\tAM.checkAccusation();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase('E'):\n\t\t\t\t\t\n\t\t\t\t\tplayerTurnOver = true;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Unexpected input, try again\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f6ebe6170681db52577196636cd65719", "score": "0.5350436", "text": "public void sequence() {\n\t\tplayer.getCombatBuilder().process();\n\n\t\tif (player.getLocation() == Location.WILDERNESS) {\n\t\t\tboolean continue_method = true;\n\t\t\tboolean continue_lower_stats = false;\n\t\t\tif (player.getStaffRights().isManagement()) {\n\t\t\t\tcontinue_method = false;\n\t\t\t}\n\t\t\tif (continue_method) {\n\t\t\t\tif (player.getSkillManager().getCurrentLevel(Skill.ATTACK) > 118) {\n\t\t\t\t\tplayer.getSkillManager().setCurrentLevel(Skill.ATTACK, 118);\n\t\t\t\t\tcontinue_lower_stats = true;\n\t\t\t\t}\n\t\t\t\tif (player.getSkillManager().getCurrentLevel(Skill.STRENGTH) > 118) {\n\t\t\t\t\tplayer.getSkillManager().setCurrentLevel(Skill.STRENGTH, 118);\n\t\t\t\t\tcontinue_lower_stats = true;\n\t\t\t\t}\n\t\t\t\tif (player.getSkillManager().getCurrentLevel(Skill.DEFENCE) > 118) {\n\t\t\t\t\tplayer.getSkillManager().setCurrentLevel(Skill.DEFENCE, 118);\n\t\t\t\t\tcontinue_lower_stats = true;\n\t\t\t\t}\n\t\t\t\tif (continue_lower_stats) {\n\t\t\t\t\tplayer.getPacketSender().sendMessage(\"Your stats have been lowered for entering the wilderness.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/** MISC **/\n\n\t\tUpdate.update(player);\n\n\t\tif (previousHeight != player.getPosition().getZ()) {\n\t\t\tGroundItemManager.handleRegionChange(player);\n\t\t\tpreviousHeight = player.getPosition().getZ();\n\t\t}\n\n\t\tif (player.getRunEnergy() < 100) {\n\t\t\tplayer.setRunEnergy(player.getRunEnergy() + 0.25F);\n\t\t}\n\t\tif (player.getRunEnergy() <= 96 && player.isResting()) {\n\t\t\tplayer.setRunEnergy(player.getRunEnergy() + 2);\n\t\t}\n\n\t\tif (!player.isInActive()) {\n\t\t\tif (loyaltyTick >= 6) {\n\t\t\t\tLoyaltyProgramme.incrementPoints(player);\n\t\t\t\tloyaltyTick = 0;\n\t\t\t}\n\t\t\tloyaltyTick++;\n\t\t}\n\n\t\tif(player.getDoubleXP() > 0) {\n\t\t\tif (!player.isInActive() && !GameSettings.DOUBLE_EXP) {\n\t\t\t\tif (doubleXPTick >= 2) {\n\t\t\t\t\tplayer.decrementDoubleXP(1);\n\t\t\t\t\tdoubleXPTick = 0;\n\t\t\t\t}\n\t\t\t\tdoubleXPTick++;\n\t\t\t}\n\t\t}\n\n\t\tif (timerTick >= 1) {\n\t\t\tplayer.getPacketSender().sendString(55067, \" Server Time: \" + Misc.getCurrentServerTime());\n\t\t\tplayer.getPacketSender().sendString(55073, \" >- Players online: @cha@\"+ (World.getPlayers().size() + GameSettings.fakePlayerCount));\n\t\t\tplayer.getPacketSender().sendString(55074, \" >- Staff online: @cha@\"+ World.staffOnline());\n\t\t\tplayer.getPacketSender().sendString(55075, \" >- Wilderness: @cha@\"+ Locations.PLAYERS_IN_WILD);\n\t\t\tplayer.getPacketSender().sendString(55078, \" >- Play Time: @cha@\" + Misc.getTimePlayed(player.getTotalPlayTime() + (player.getRecordedLogin().elapsed())) + \"\");\n\t\t\ttimerTick = 0;\n\t\t}\n\t\ttimerTick++;\n\n\t\tplayer.getPlayerTimers().process();\n\n\t\tBountyHunter.sequence(player);\n\n\t\t/*\n\t\t * if (player.getRegionInstance() != null &&\n\t\t * (player.getRegionInstance().getType() ==\n\t\t * RegionInstanceType.CONSTRUCTION_HOUSE ||\n\t\t * player.getRegionInstance().getType() ==\n\t\t * RegionInstanceType.CONSTRUCTION_DUNGEON)) { ((House)\n\t\t * player.getRegionInstance()).process(); }\n\t\t */\n\t}", "title": "" }, { "docid": "c6fdd954e7deed8c897b79a407c645ad", "score": "0.53472936", "text": "public void howsItGoingMate() {\n\n if (this.isAlive) {\n if (this.intoxicationLevel <= 4) {\n System.out.println(\"Pour me anudder!\");\n } else {\n System.out.println(\"Arghh, I'ma Pirate. How d'ya d'ink its goin?\");\n this.passOut();\n }\n } else {\n System.out.println(\"he's dead\");\n }\n }", "title": "" }, { "docid": "203be3df166fa74aaf23e3ce560189f3", "score": "0.5342857", "text": "public void move()\r\n\t{\r\n\t\tSystem.out.println(\"Walking Gleefully\");\r\n\t}", "title": "" }, { "docid": "f8e027730d9cf0d53d7d4451c6321e89", "score": "0.534126", "text": "private void move() {\t\t\n\t\t/* How can you modify your code to have a max speed? For example a car that can at max got 10 m/s */\n\t\t\n\t\t\n\t\t/* These variables can be used because all of these variables are global variables */\n\t\t//System.out.println(x); //This does not work as x would be not in scope.\n\t\tcarVelocity = carVelocity + carAcceleration;\n\t\tcarPosition = carPosition + carVelocity;\n\t\tSystem.out.println(\"Vroom! Car is at position \" + carPosition + \" and traveling at \" + carVelocity + \" m/s!\");\n\t}", "title": "" }, { "docid": "36ebe096ad757c44576b9288a3c71078", "score": "0.53322566", "text": "public void attack(Player monster, Player opponent, int moveOption){\r\n Random random = new Random();\r\n float randNum = random.nextFloat() * (1.0f - 0.0f) + 0.0f;\r\n if (moveOption == 1){\r\n System.out.println(this.monster.getName() + \" uses \" + this.monster.getMove1().getName() + \".\");\r\n if (randNum > this.monster.getMove1().getAccuracy()){\r\n System.out.println(this.monster.getName() + \" misses and no damage is done!\");\r\n }\r\n else{\r\n int damageDealt = this.monster.getAttack() + this.monster.getMove1().getPower() - monster.getMonster().getDefense();\r\n monster.getMonster().calculateHP(damageDealt);\r\n System.out.println(this.monster.getName() + \" hits for \" + damageDealt + \" points of damage.\"); \r\n }\r\n }\r\n else if (moveOption == 2){\r\n System.out.println(this.monster.getName() + \" uses \" + this.monster.getMove2().getName() + \".\");\r\n if (randNum > this.monster.getMove2().getAccuracy()){\r\n System.out.println(this.monster.getName() + \" misses and no damage is done!\");\r\n }\r\n else{\r\n int damageDealt = this.monster.getAttack() + this.monster.getMove2().getPower() - monster.getMonster().getDefense();\r\n monster.getMonster().calculateHP(damageDealt);\r\n System.out.println(this.monster.getName() + \" hits for \" + damageDealt + \" points of damage.\"); \r\n } \r\n }\r\n else if (moveOption == 3){\r\n System.out.println(this.monster.getName() + \" uses \" + this.monster.getMove3().getName() + \".\");\r\n if (randNum > this.monster.getMove3().getAccuracy()){\r\n System.out.println(this.monster.getName() + \" misses and no damage is done!\");\r\n }\r\n else{\r\n int damageDealt = this.monster.getAttack() + this.monster.getMove3().getPower() - monster.getMonster().getDefense();\r\n monster.getMonster().calculateHP(damageDealt);\r\n System.out.println(this.monster.getName() + \" hits for \" + damageDealt + \" points of damage.\"); \r\n }\r\n }\r\n else{\r\n System.out.println(this.monster.getName() + \" uses \" + this.monster.getMove4().getName() + \".\");\r\n if (randNum > this.monster.getMove4().getAccuracy()){\r\n System.out.println(this.monster.getName() + \" misses and no damage is done!\");\r\n }\r\n else{\r\n int damageDealt = this.monster.getAttack() + this.monster.getMove4().getPower() - monster.getMonster().getDefense();\r\n monster.getMonster().calculateHP(damageDealt);\r\n System.out.println(this.monster.getName() + \" hits for \" + damageDealt + \" points of damage.\"); \r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "df81488197ef476e7c8384ded462b140", "score": "0.53130955", "text": "private void showPlayer(){\n //Create the player\n player = new Fighter(playerTexture);\n //Set the players stats\n player.setStats(5,5,30,5,120,30);\n //Places the player on the left side of the screen\n player.setPosition(120 - player.getWidth(),120);\n //Give the player a sprite sheet to use\n player.setTexture(spriteSheetTexture);\n\n //Sets up the three attacks\n setUpAttack(fireHitTexture, \"Fire Ball\", 5, 10, 10, player.getX()+player.getWidth(),\n player.getY()+player.getHeight()/2, 60, 60, player);\n setUpAttack(bulletHitTexture, \"Cheating Gun\", 15, 1, 15,player.getX()+player.getWidth(),\n player.getY()+player.getHeight()/2, 10, 10 , player);\n setUpAttack(fistHitTexture, \"Fist\", 20, 15, 20, player.getX()+player.getWidth(),\n player.getY()+player.getHeight()/2, 30, 30, player);\n }", "title": "" }, { "docid": "767cd467f390a585990c6ae57fe2e831", "score": "0.5311626", "text": "public int useMove(int strength,int ATT,int DEF){\n\n int damage = ((2*this.level/5+2)*strength*(ATT/DEF))/40; //calculates the damage that the move does\n\n switch(this.type.toUpperCase()){ //checks the 'type' variable of the Pokemon object\n //outputs different things depending on the 'type' of the Pokemon object\n case \"WATER\": System.out.println(name + \" used Water Gun!\");break;\n\n case \"GRASS\": System.out.println(name + \" used Vine Wip!\");break;\n\n case \"FIRE\": System.out.println(name + \" used Ember!\");break;\n\n case \"ELECTRIC\": System.out.println(name + \" used Thunderbolt!\");break;\n\n case \"DANG\": System.out.println(name + \" used Sarcasm!\");System.out.println(\"...it's not very effective\");break;\n\n default: System.out.println(name + \" used Tackle!\");break;\n }\n if(this.type.equals(\"Dang\")){ //Jimmy Dang\n return 1;\n }\n return damage; //returns the damage\n }", "title": "" }, { "docid": "0ed41c056875b3e9edbbd5be3d3bfac7", "score": "0.5298396", "text": "public boolean doActionMove(String choice){\n \n choice = choice.toUpperCase(); //convert choice to upper case\n FightView fightView = new FightView(); \n\n //int xCoord = 0;\n //int yCoord = 0; \n MoveControl moveControl = new MoveControl();\n \n MainCharacter xCoordinate = new MainCharacter();\n MainCharacter yCoordinate = new MainCharacter();\n\n int xCoord = xCoordinate.getXCoordinate();\n int yCoord = yCoordinate.getYCoordinate(); \n\n switch (choice){\n \n case \"R\"://right\n int result[] = moveControl.movePlayerRight(xCoord, yCoord);\n \n System.out.println(\"\\nPlayer location is \" + result[0] + \",\" + result[1]);\n System.out.println(\"\\nYou have moved to the right\");\n \n fightView.getFightResult();\n break;\n \n case \"L\"://Left\n\n\n \n int resultL[] = moveControl.movePlayerLeft(xCoord, yCoord);\n \n System.out.println(\"\\nPlayer location is \" + resultL[0] + \",\" + resultL[1]);\n System.out.println(\"\\nYou have moved to the left\");\n\n //xCoordinate.setXCoordinate(resultL[0]);\n //yCoordinate.setYCoordinate(resultL[1]); \n \n fightView.getFightResult();\n break;\n \n case \"F\"://Forward\n\n int resultF[] = moveControl.movePlayerForward(xCoord, yCoord);\n \n System.out.println(\"\\nPlayer location is \" + resultF[0] + \",\" + resultF[1]);\n System.out.println(\"\\nYou have moved forward\");\n\n //xCoordinate.setXCoordinate(resultF[0]);\n //yCoordinate.setYCoordinate(resultF[1]); \n\n fightView.getFightResult();\n break;\n \n case \"B\"://Back\n\n int resultB[] = moveControl.movePlayerBack(xCoord, yCoord);\n \n System.out.println(\"\\nPlayer location is \" + resultB[0] + \",\" + resultB[1]);\n System.out.println(\"\\nYou have moved backward\");\n\n //xCoordinate.setXCoordinate(resultB[0]);\n //yCoordinate.setYCoordinate(resultB[1]); \n \n fightView.getFightResult();\n break;\n \n default:\n System.out.println(\"\\nInvalid selection. Try again\");\n break;\n \n \n }\n return false;\n \n }", "title": "" }, { "docid": "91af106aac446cdec236f3648ce59512", "score": "0.52969426", "text": "public int TakeStep()\n {\n // things to calculate:\n // - Who on my team is closest to the ball\n // - Who on their team is closest to the ball\n // - match up each of my remaining guys to the closest of the\n // opponent's remaining guys\n\n // get the current time for timestamps\n long\tcurr_time = abstract_robot.getTime();\n\n Vec2 me_abs = abstract_robot.getPosition(curr_time);\n\n Vec2 ball_abs = abstract_robot.getBall(curr_time);\n ball_abs.add(me_abs);\n\n Vec2 goal_abs = abstract_robot.getOurGoal(curr_time);\n goal_abs.add(me_abs);\n\n double goal_dir = (abstract_robot.getOpponentsGoal(curr_time).x > 0) ?\n 1 : -1;\n\n Vec2[] teammates = abstract_robot.getTeammates(curr_time);\n Vec2[] teammates_abs = new Vec2[teammates.length];\n for(int i = 0; i < teammates_abs.length; i++) {\n teammates_abs[i] = new Vec2(teammates[i]);\n teammates_abs[i].add(me_abs);\n }\n\n Vec2[] opponents = abstract_robot.getOpponents(curr_time);\n Vec2[] opponents_abs = new Vec2[opponents.length];\n for(int i = 0; i < opponents_abs.length; i++) {\n opponents_abs[i] = new Vec2(opponents[i]);\n opponents_abs[i].add(me_abs);\n }\n\n // find who on our team is closest to the ball\n Vec2 min_us_vec_to_ball = vec_diff(ball_abs, me_abs);\n double my_dist = min_us_vec_to_ball.r;\n int closest_teammate_to_ball = -1; // -1 meaning me\n for(int i = 0; i < teammates_abs.length; i++) {\n Vec2 vec_to_ball = vec_diff(ball_abs, teammates_abs[i]);\n if(vec_to_ball.r < min_us_vec_to_ball.r) {\n min_us_vec_to_ball = vec_to_ball;\n closest_teammate_to_ball = i;\n }\n }\n\n // handle offender\n if(abstract_robot.getPlayerNumber(-1) == 3) {\n Vec2 opponents_goal_abs = abstract_robot.getOpponentsGoal(curr_time);\n opponents_goal_abs.add(me_abs);\n \n // find the goal in terms of the ball\n Vec2 dest = vec_diff(opponents_goal_abs, ball_abs);\n\n double goal_kick_angle = dest.t + 3.141 / 4;\n\n // find the robot destination, in terms of the ball: (i.e. get\n // behind the ball, facing towards the goal.)\n dest.setr(-abstract_robot.RADIUS * .9\n /* - abstract_robot.KICKER_SPOT_RADIUS / 2*/);\n\n // find destination in terms of field:\n dest.add(ball_abs);\n\n // find destination in terms of me:\n dest = vec_diff(dest, me_abs);\n\n if(dest.x * goal_dir < 0) {\n // we are behind the ball facing our goal, so go around the\n // ball a bit.\n if(dest.y < 0)\n dest.sety(dest.y + abstract_robot.RADIUS);\n else\n dest.sety(dest.y - abstract_robot.RADIUS);\n }\n\n // if we are close enough to the ball, turn to kick it.\n if(dest.r < abstract_robot.KICKER_SPOT_RADIUS / 2) {\n\n if(abstract_robot.canKick(curr_time)) {\n abstract_robot.setDisplayString(\"kick\");\n\n abstract_robot.kick(curr_time);\n }\n else {\n abstract_robot.setDisplayString(\"turn to kick\");\n \n abstract_robot.setSteerHeading(curr_time, goal_kick_angle);\n abstract_robot.setSpeed(curr_time, 0);\n }\n }\n else {\n abstract_robot.setDisplayString(\"go to, d=\" + dispdub(my_dist));\n\n abstract_robot.setSteerHeading(curr_time, dest.t);\n if(dest.r < abstract_robot.RADIUS &&\n (me_abs.x - goal_abs.x) * goal_dir < abstract_robot.RADIUS * 2) {\n abstract_robot.setSpeed(curr_time, dest.r / abstract_robot.RADIUS);\n }\n else {\n abstract_robot.setSpeed(curr_time, 1.0);\n }\n }\n\n return(CSSTAT_OK);\n }\n else { // else we are not the offender\n\n // us_taken records which teammates are allocated already\n boolean[] us_taken = new boolean[opponents_abs.length];\n for(int i = 0; i < teammates_abs.length; i++)\n us_taken[i] = false;\n int num_us_taken = 0;\n\n // assume the offender is the closest to the ball.\n if(closest_teammate_to_ball != -1) {\n us_taken[closest_teammate_to_ball] = true;\n num_us_taken++;\n }\n\n // find who on our team is closest to the goal\n Vec2 min_us_vec_to_goal = abstract_robot.getOurGoal(curr_time);\n int closest_teammate_to_goal = -1; // -1 meaning me\n for(int i = 0; i < teammates_abs.length; i++) {\n Vec2 vec_to_goal = vec_diff(goal_abs, teammates_abs[i]);\n if(vec_to_goal.r < min_us_vec_to_goal.r) {\n min_us_vec_to_goal = vec_to_goal;\n closest_teammate_to_goal = i;\n }\n }\n\n if(abstract_robot.getPlayerNumber(-1) == 0) { // I am the goalie.\n Vec2 target_pos = new Vec2(0, 0);\n if(goal_abs.x < 0)\n target_pos.setx(goal_abs.x + abstract_robot.RADIUS);\n else\n target_pos.setx(goal_abs.x - abstract_robot.RADIUS);\n\n double goal_y = Math.min(Math.max(ball_abs.y, -.27), .27);\n target_pos.sety(goal_y);\n \n target_pos.sub(me_abs);\n\n abstract_robot.setDisplayString(\"goalie-ing \" + dispdub(goal_y));\n \n abstract_robot.setSteerHeading(curr_time, target_pos.t);\n abstract_robot.setSpeed(curr_time, 1.0);\n\n return(CSSTAT_OK);\n }\n else {\n // I am not the goalie. Assume the closest robot to the\n // goal is the goalie.\n if(closest_teammate_to_goal != -1) {\n us_taken[closest_teammate_to_goal] = true;\n num_us_taken++;\n }\n }\n\n ////////////////////////////////////\n // allocate defenders to opponents\n\n boolean[] them_handled = new boolean[opponents_abs.length];\n for(int i = 0; i < opponents_abs.length; i++)\n them_handled[i] = false;\n int num_them_handled = 0;\n\n while(num_them_handled < opponents_abs.length &&\n num_us_taken < teammates_abs.length + 1) {\n \n // find who on their team is next closest to the ball\n Vec2 min_them_vec_to_ball = new Vec2(100000, 0);\n int closest_opponent_to_ball = -1;\n for(int i = 0; i < opponents_abs.length; i++) {\n if(!them_handled[i]) {\n Vec2 vec_to_ball = vec_diff(ball_abs, opponents_abs[i]);\n if(vec_to_ball.r < min_them_vec_to_ball.r) {\n min_them_vec_to_ball = vec_to_ball;\n closest_opponent_to_ball = i;\n }\n }\n }\n if(closest_opponent_to_ball != -1) {\n them_handled[closest_opponent_to_ball] = true;\n num_them_handled++;\n }\n else {\n System.out.println(\"ERROR! with \" + num_them_handled +\n \" opponents handled,\" +\n \" none are closest to the ball.\");\n }\n\n Vec2 min_us_vec_to_them =\n vec_diff(opponents_abs[closest_opponent_to_ball], me_abs);\n int closest_us_to_them = -1;\n for(int i = 0; i < teammates_abs.length; i++) {\n if(!us_taken[i]) {\n Vec2 vec_to_them =\n vec_diff(opponents_abs[closest_opponent_to_ball],\n teammates_abs[i]);\n if(vec_to_them.r < min_us_vec_to_them.r) {\n min_us_vec_to_them = vec_to_them;\n closest_us_to_them = i;\n }\n }\n }\n \n if(closest_us_to_them == -1) {\n // I am closest to this opponent\n \n Vec2 goal_pos = vec_diff(opponents_abs[closest_opponent_to_ball],\n me_abs);\n min_them_vec_to_ball.setr(abstract_robot.RADIUS * 1.9);\n goal_pos.add(min_them_vec_to_ball);\n\n // calculate a force pushing this player away from its\n // teammates.\n Vec2 force_sum = new Vec2(0, 0);\n for(int i = 0; i < teammates_abs.length; i++) {\n Vec2 force = new Vec2(teammates[i]);\n force.setr(-abstract_robot.RADIUS * 3 / force.r);\n force_sum.add(force);\n }\n // add in a force pushing this player away from its\n // opponents.\n for(int i = 0; i < opponents_abs.length; i++) {\n Vec2 force = new Vec2(opponents[i]);\n force.setr(-abstract_robot.RADIUS / force.r);\n force_sum.add(force);\n }\n force_sum.setr(force_sum.r * abstract_robot.RADIUS * 2);\n\n goal_pos.add(force_sum);\n\n abstract_robot.setDisplayString(\"blocking\");\n\n abstract_robot.setSteerHeading(curr_time, goal_pos.t);\n abstract_robot.setSpeed(curr_time, 1.0);\n\n return(CSSTAT_OK);\n }\n else {\n us_taken[closest_us_to_them] = true;\n num_us_taken++;\n }\n }\n }\n\n // No robot should get to here in the code! So wander around.\n\n abstract_robot.setDisplayString(\"unemployed\");\n\n abstract_robot.setSteerHeading(curr_time, Math.random() * 2 * 3.141);\n abstract_robot.setSpeed(curr_time, 1.0);\n\n return(CSSTAT_OK);\n }", "title": "" }, { "docid": "d557bc8dda346edb3549879a03b58268", "score": "0.5284784", "text": "public void Move() {\n Testing.methodStart(\"Asteroid.Move()\");\n //its logic stuff, please omit this\n //if(distancetosun<period){\n // Movedirection=1;\n // Step();\n // }\n //if(distancetosun==period){\n // Movedirection=-1;\n // Step();\n // } \n //if(distancetosun==0){\n // Movedirection=1;\n // Step();\n // } \n }", "title": "" }, { "docid": "6c3c01ca47cfc0d1624fff7bc255ec77", "score": "0.52820724", "text": "public static int MvH(){\n /* Medium VS HardMode */\n /* Initialisation nouvelle partie */\n boolean turn = false;\n Player player1,player2;\n boolean []stateArray=new boolean[3];\n stateArray[0]=false;\n stateArray[1]=false;\n stateArray[2]=false;\n player1 = new Player(\"Medium\");\n player2 = new Player(\"Hard\");\n /* Placement des bateaux */\n player1.placingIAShips();\n player2.placingIAShips();\n do{\n turn=!(turn);\n if(turn){ //player1\n player1.shootMedium(player2);\n }else if(!turn){ //player2\n player2.shootHard(player1, stateArray);\n }\n }while(!(player1.endGame())&&!(player2.endGame())); //A vérifier au cas ou\n /* Fin du jeu */\n if(player1.endGame()){\n System.out.println(\"Hard win!\");\n return 1;\n }else{\n System.out.println(\"Medium win!\");\n return 0;\n }\n }", "title": "" }, { "docid": "e25dab2e4b727ac2225b4554d275fe57", "score": "0.5263259", "text": "public void step()\r\n\t{\r\n\t\tthis.removeCollisions();\r\n\t\tthis.moveCars();\r\n\t\tthis.emitCars();\r\n\t\tthis.codify();\r\n\t\t\r\n\t\tfor(Car car : this.travelingCars)\r\n\t\t\tcar.perceiveAndReason();\r\n\t}", "title": "" }, { "docid": "49e7a5c9a3611442caa2860c9583bde8", "score": "0.5256046", "text": "private void FunRideEnshar4(Player player) {\n\t\tplayer.setState(CreatureState.FLIGHT_TELEPORT);\n\t\tplayer.unsetState(CreatureState.ACTIVE);\n\t\tplayer.setFlightTeleportId(285001);\n\t\tPacketSendUtility.sendPacket(player, new SM_EMOTION(player, EmotionType.START_FLYTELEPORT, 285001, 0));\n\t}", "title": "" }, { "docid": "a8b40ba0549be5a4ef231ffe4d407406", "score": "0.5241748", "text": "public static void Difficulty(){\r\n\t\tdouble level = (HUD.score)/1000; \r\n\t\tfor (int i=1; i<=100; i++){\r\n\t\t\tif (level==i){\r\n\t\t\t\tr = (i*(0.624));\r\n\t\t\t\tsetXSpeed(1, r);\r\n\t\t\t\tsetYSpeed(1, r);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8c9d1fe8b45ce81f08f24f48d7329e40", "score": "0.5239601", "text": "@Override\n public boolean fight(String oponent) {\n\n numSteps++;\n walk(dir);\n return false;\n }", "title": "" }, { "docid": "4fc6c8968fe34fcbb8b3e25760731b0a", "score": "0.5236011", "text": "public boolean step() {\r\n if (gameover) {\r\n return true;\r\n }\r\n Player player = getCurrentPlayer();\r\n Turn turn = player.turn();\r\n ScoreLaydown scoreLog = turn.execute(this, player);\r\n gameLog.addLaydown(scoreLog);\r\n if (passCount == players.size()) {\r\n System.out.println(\"Everyone passed. Game over.\");\r\n gameover = true;\r\n }\r\n // Fail safe to prevent getting stuck in a loop.\r\n if (isEndOfRound() && getRound() == 50) {\r\n gameover = true;\r\n }\r\n currentPlayer++;\r\n return gameover;\r\n }", "title": "" }, { "docid": "12ad1da480da253da9c8a970b5e946cd", "score": "0.5235817", "text": "public void go()\r\n {\r\n if(findWinner()!=null){\r\n over=true;\r\n addText(findWinner()+\" has won\");\r\n addResults(findWinner()+ \" has won\");\r\n }\r\n else{\r\n \r\n goCars();\r\n }\r\n }", "title": "" }, { "docid": "7e3dbd3e8d022c77608b90e5874c0a5d", "score": "0.52287376", "text": "public void takeTurn(Player thePlayer) {\n System.out.println(\"Valkyrie attacks you!\" + \"\\n\");\n attack(thePlayer);\n }", "title": "" }, { "docid": "d5e02e02df51746f167ae162c5f35006", "score": "0.52158517", "text": "@Override\n\tpublic void move(){\n\t\tSystem.out.println(\"Cars move with four wheels.\");\n\t}", "title": "" }, { "docid": "9b54f558e01528207d051573d8d716fa", "score": "0.5199239", "text": "public static void step(){\r\n\t\tShape s;\r\n\t\tfor(int i = 0;i<sim_shapes.size();i++){\r\n\t\t\ts = sim_shapes.get(i);\r\n\t\t\tif(s instanceof Fish)\r\n\t\t\t\t((Fish)s).fishStep();\r\n\t\t\telse if(s instanceof FishFood)\r\n\t\t\t\t((FishFood)s).step();\r\n\t\t}\r\n\r\n\t\tcam.step();\r\n\t}", "title": "" }, { "docid": "d038e8b586c7547ddab9fc4dc462bb18", "score": "0.5194836", "text": "public void moveAlongPath(double speed, Player player) {\r\n // physics of critter movement\r\n\r\n if (walkFrame >= 11 - speed) {\r\n if(isSlowed){\r\n\t \tif (direction == right) {\r\n\t screenXPos++;\r\n\t } else if (direction == left) {\r\n\t screenXPos--;\r\n\t } else if (direction == up) {\r\n\t screenYPos--;\r\n\t } else if (direction == down) {\r\n\t screenYPos++;\r\n\t }\r\n\t\r\n\t screenDistanceMoved++;\r\n\t distanceMovedWhileSlowed++;\r\n\t \r\n\t if (screenDistanceMoved == Constants.MAP_CELL_SIZE) {\r\n\t if (direction == right) {\r\n\t xPos++;\r\n\t hasMovedRight = true;\r\n\t } else if (direction == left) {\r\n\t xPos--;\r\n\t hasMovedLeft = true;\r\n\t } else if (direction == up) {\r\n\t yPos--;\r\n\t hasMovedUp = true;\r\n\t } else if (direction == down) {\r\n\t yPos++;\r\n\t hasMovedDown = true;\r\n\t }\r\n\t\r\n\t if (!hasMovedLeft) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos + 1, yPos).isScenery()) {\r\n\t direction = right;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t\r\n\t if (!hasMovedRight) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos - 1, yPos).isScenery()) {\r\n\t direction = left;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t\r\n\t if (!hasMovedDown) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos, yPos - 1).isScenery()) {\r\n\t direction = up;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t\r\n\t if (!hasMovedUp) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos, yPos + 1).isScenery()) {\r\n\t direction = down;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t try {\r\n\t if (Screen.map.getCell(xPos, yPos).isExit()) {\r\n\t reachedExit = true;\r\n\t removeCritter();\r\n\t loseLife(player);\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t\r\n\t hasMovedUp = false;\r\n\t hasMovedDown = false;\r\n\t hasMovedRight = false;\r\n\t hasMovedLeft = false;\r\n\t screenDistanceMoved = 0;\r\n\t \r\n\t }\r\n\t \r\n\t if(distanceMovedWhileSlowed == 2*Constants.MAP_CELL_SIZE){\r\n\t \tsetSlowed(false);\r\n\t \tsetSpeed(initialSpeed);\r\n\t \tdistanceMovedWhileSlowed = 0;\r\n\t }\r\n }\r\n else{\r\n \tif (direction == right) {\r\n\t screenXPos++;\r\n\t } else if (direction == left) {\r\n\t screenXPos--;\r\n\t } else if (direction == up) {\r\n\t screenYPos--;\r\n\t } else if (direction == down) {\r\n\t screenYPos++;\r\n\t }\r\n\t\r\n\t screenDistanceMoved++;\r\n\t \r\n\t if (screenDistanceMoved == Constants.MAP_CELL_SIZE) {\r\n\t if (direction == right) {\r\n\t xPos++;\r\n\t hasMovedRight = true;\r\n\t } else if (direction == left) {\r\n\t xPos--;\r\n\t hasMovedLeft = true;\r\n\t } else if (direction == up) {\r\n\t yPos--;\r\n\t hasMovedUp = true;\r\n\t } else if (direction == down) {\r\n\t yPos++;\r\n\t hasMovedDown = true;\r\n\t }\r\n\t\r\n\t if (!hasMovedLeft) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos + 1, yPos).isScenery()) {\r\n\t direction = right;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t\r\n\t if (!hasMovedRight) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos - 1, yPos).isScenery()) {\r\n\t direction = left;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t\r\n\t if (!hasMovedDown) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos, yPos - 1).isScenery()) {\r\n\t direction = up;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t\r\n\t if (!hasMovedUp) {\r\n\t try {\r\n\t if (!Screen.map.getCell(xPos, yPos + 1).isScenery()) {\r\n\t direction = down;\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t }\r\n\t try {\r\n\t if (Screen.map.getCell(xPos, yPos).isExit()) {\r\n\t reachedExit = true;\r\n\t removeCritter();\r\n\t loseLife(player);\r\n\t }\r\n\t } catch (Exception e) {\r\n\t }\r\n\t\r\n\t hasMovedUp = false;\r\n\t hasMovedDown = false;\r\n\t hasMovedRight = false;\r\n\t hasMovedLeft = false;\r\n\t screenDistanceMoved = 0;\r\n\t }\r\n }\r\n\r\n walkFrame = 0;\r\n } else {\r\n walkFrame++;\r\n }\r\n }", "title": "" }, { "docid": "bcf2812f752b72e59c31921838492ea9", "score": "0.51937896", "text": "public void act()\n {\n if(steps == 0)\n {\n start = getLocation();\n moveTo(new Location(start.getRow(), start.getCol() + 9));\n }\n else if(0 < steps && steps < 7)\n {\n move();\n }\n else if(steps == 7)\n {\n turn();\n }\n else if(7 < steps && steps < 11)\n {\n move();\n }\n else if(steps == 11)\n {\n turn();\n }\n else if(11 < steps && steps < 15)\n {\n move();\n }\n else if(steps == 15)\n {\n turn();\n }\n else if(15 < steps && steps < 19)\n {\n move();\n }\n else\n {\n turn();\n }\n steps++;\n }", "title": "" }, { "docid": "3c2d93c250a814f9bc0f4edee65ea4b3", "score": "0.51917946", "text": "public void levelAdvance()\n {\n if(getObjects(Rubies.class).size()==0)\n {\n Greenfoot.delay(2);\n Greenfoot.setWorld(new Level5(player1, player2, numPlyrs));\n }\n }", "title": "" }, { "docid": "41861b7e17cc78a4470ef658920cf23f", "score": "0.51825064", "text": "public void timePassed() {\n this.moveOneStep();\n }", "title": "" }, { "docid": "325763568ec01c178d76e1fbc5eeaceb", "score": "0.51814985", "text": "@Override\r\n public void start(){\r\n\r\n // Getting player 1's name\r\n System.out.print(\"Enter Player 1 Name> \");\r\n player1 = input.nextLine();\r\n\r\n // Getting player 2's name\r\n System.out.print(\"Enter Player 2 Name> \");\r\n player2 = input.nextLine();\r\n\r\n\r\n\r\n // print welcome to players\r\n System.out.println(\"\\nHello [\"+player1+\"] and [\"+player2+\"]\");\r\n System.out.println(\"Let's Play!\");\r\n\r\n\r\n // Showing game guidelines to the players\r\n System.out.println(\"\\n......Guidelines......\\n\");\r\n System.out.println(\"Valid Moves: \\n1, 2, 3\\n4, 5, 6\\n7, 8, 9\");\r\n System.out.println(\"\\nEnter any number which is empty.\");\r\n System.out.println(\"If entered number is filled, you have to enter again.\\n\");\r\n\r\n System.out.println(\"X is for \"+player1+\" (Player 1)\");\r\n System.out.println(\"O is for \"+player2+\" (Player 2)\");\r\n\r\n\r\n\r\n // printing the current game status\r\n System.out.println(\"\\n......Game Status......\\n\");\r\n\r\n // this loop will print all the values of game status table\r\n for (int i = 0; i < getTable().length; i++) {\r\n for (int j = 0; j < getTable()[i].length; j++) {\r\n System.out.print(getTable()[i][j]+\", \\t\");\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n\r\n\r\n\r\n // ..................................Game Logic following.........................................\r\n\r\n\r\n // initial turn will be player 1's\r\n turn = 1;\r\n\r\n // move store the value where the player wants to mark\r\n int move = 0;\r\n\r\n // moveType stores the mark i.e. either X or O depending on the player\r\n Value moveType = Value.EMPTY;\r\n\r\n //validity tells if the move entered by player is valid or not\r\n boolean validity = true;\r\n\r\n\r\n\r\n // loop runs until the game is finished\r\n while(validity){\r\n\r\n if(turn == 1){\r\n\r\n System.out.println(player1+\" make your move> \");\r\n move = input.nextInt();\r\n moveType = Value.X;\r\n\r\n }else if(turn == 2){\r\n\r\n System.out.println(player2+\" make your move> \");\r\n move = input.nextInt();\r\n moveType = Value.O;\r\n\r\n }\r\n\r\n\r\n int row = 0, col = 0;\r\n\r\n /*\r\n * changing the row and column value so that they correspond the move_position entered by player.\r\n * 1 -> (0,0) | 2 -> (0,1) | 3 -> (0,2)\r\n * ____________________________________\r\n * 4 -> (1,0) | 5 -> (1,1) | 6 -> (1,2)\r\n * ____________________________________\r\n * 7 -> (2,0) | 8 -> (2,1) | 9 -> (2,2)\r\n */\r\n\r\n switch(move){\r\n case 1:\r\n row=0;\r\n col=0;\r\n break;\r\n case 2:\r\n row=0;\r\n col=1;\r\n break;\r\n case 3:\r\n row=0;\r\n col=2;\r\n break;\r\n case 4:\r\n row=1;\r\n col=0;\r\n break;\r\n case 5:\r\n row=1;\r\n col=1;\r\n break;\r\n case 6:\r\n row=1;\r\n col=2;\r\n break;\r\n case 7:\r\n row=2;\r\n col=0;\r\n break;\r\n case 8:\r\n row=2;\r\n col=1;\r\n break;\r\n case 9:\r\n row=2;\r\n col=2;\r\n break;\r\n default:\r\n System.out.println();\r\n break;\r\n }\r\n\r\n\r\n // validity tells if the move value entered was EMPTY or not\r\n validity = checkMoveValidity(getTable(), row, col);\r\n\r\n\r\n if(validity == false){\r\n System.out.println(\"Not Valid Move, try again...\");\r\n System.out.println();\r\n\r\n validity = true;\r\n continue;\r\n }\r\n\r\n // updating the table of game status with the value associated with the player whose turn it was.\r\n // X for Player 1 AND O for Player 2\r\n table[row][col] = moveType;\r\n\r\n // setting and increasing the moveCounter with every loop iteration\r\n moveCounter++;\r\n\r\n // printing the current game status\r\n System.out.println(\"\\n......Game Status......\\n\");\r\n\r\n // this loop will print all the values of game status table\r\n for (int i = 0; i < getTable().length; i++) {\r\n for (int j = 0; j < getTable()[i].length; j++) {\r\n System.out.print(getTable()[i][j]+\", \\t\");\r\n }\r\n System.out.printf(\"\\n\");\r\n }\r\n System.out.println();\r\n\r\n\r\n\r\n // HER WE WILL CHECK IF A PLAYER HAS WON THE GAME------------------------------\r\n int stopCondition;\r\n\r\n // current game status (table) along with current moves counter is passed.\r\n // stop() returns 1 if player 1 has won\r\n // stop() returns 2 if player 2 has won\r\n // stop() returns 3 if game has been drawn\r\n // stop() returns 0 if game can be player further\r\n stopCondition = stop(table, moveCounter);\r\n\r\n if(stopCondition == 1){\r\n System.out.println(\"................CONGRATULATIONS \"+player1+\"! YOU HAVE WON................\");\r\n break;\r\n }\r\n\r\n if(stopCondition == 2){\r\n System.out.println(\"................CONGRATULATIONS \"+player2+\"! YOU HAVE WON................\");\r\n break;\r\n }\r\n\r\n if(stopCondition == 3){\r\n System.out.println(\"................GAME HAS BEEN DRAWN................\");\r\n break;\r\n }\r\n\r\n\r\n\r\n // if current turn was of player 1 then next turn should be of player 2 and vice versa.\r\n if(turn == 1){\r\n turn = 2;\r\n }else if(turn == 2) {\r\n turn = 1;\r\n }\r\n }\r\n\r\n // calling restart() to ask if player wants restart or exit the game.\r\n restart();\r\n }", "title": "" }, { "docid": "9b4c371fec72411f7d691464f4e45587", "score": "0.51792055", "text": "public static int EvM(){\n /* Medium VS HardMode */\n /* Initialisation nouvelle partie */\n boolean turn = false;\n Player player1,player2;\n player1 = new Player(\"Easy\");\n player2 = new Player(\"Medium\");\n /* Placement des bateaux */\n player1.placingIAShips();\n player2.placingIAShips();\n do{\n turn=!(turn);\n if(turn){ //player1\n player1.shootEasy(player2);\n }else if(!turn){ //player2\n player2.shootMedium(player1);\n }\n }while(!(player1.endGame())&&!(player2.endGame())); //A vérifier au cas ou\n /* Fin du jeu */\n if(player1.endGame()){\n System.out.println(\"Medium win!\");\n return 1;\n }else{\n System.out.println(\"Easy win!\");\n return 0;\n }\n }", "title": "" }, { "docid": "3f26e25ff43046abdbad06c6917cf499", "score": "0.517875", "text": "public void flyUp() {\n System.out.println(\"Bird is flying up\");\n }", "title": "" }, { "docid": "c8765888aeb0890053741338dcc2a18d", "score": "0.51780206", "text": "@Override\n public int specialFunction(Player currentPlayer, Player targetPlayer1, Player targetPlayer2, Player targetPlayer3, int length, Card[] deck) {\n\n while(true)\n {\n System.out.println(\"Current player: \" + currentPlayer.getPlayerName());\n System.out.println(\"You can target:\");\n if(targetPlayer1.getIsPlaying() && !targetPlayer1.isPlayedHandmaid()){\n System.out.println(targetPlayer1.getPlayerName());\n }\n if(targetPlayer2.getIsPlaying() && !targetPlayer2.isPlayedHandmaid()){\n System.out.println(targetPlayer2.getPlayerName());\n }\n if(targetPlayer3.getIsPlaying() && !targetPlayer3.isPlayedHandmaid()){\n System.out.println(targetPlayer3.getPlayerName());\n }\n if((!targetPlayer1.getIsPlaying() || targetPlayer1.isPlayedHandmaid()) && (!targetPlayer2.getIsPlaying() || targetPlayer2.isPlayedHandmaid()) && (!targetPlayer3.getIsPlaying() || targetPlayer3.isPlayedHandmaid())){\n System.out.println(\"No player can be targeted this round\\nYour card is discarded and your turn is over\");\n break;\n }\n\n System.out.println(\"Choose a player\");\n String playerChoice = sc.nextLine();\n playerChoice = playerChoice.toLowerCase();\n //System.out.println(playerChoice);\n\n\n\n //deal with exceptional input\n if(playerChoice.equals(currentPlayer.getPlayerName()))\n {\n System.out.println(\"DON'T BE A FOOL - CHOOSE ANOTHER PLAYER\");\n }\n\n\n\n\n //check to see if targetPlayer1 is still in the round and do targetPlayer1 stuff\n else if(playerChoice.equals(targetPlayer1.getPlayerName()))\n {\n\n if(!targetPlayer1.getIsPlaying())\n {\n System.out.println(\"This player is already out of the round\");\n\n }\n else if(targetPlayer1.isPlayedHandmaid()){\n System.out.println(\"This player has played the handmaid and is immune until their next turn\");\n }\n else\n {\n while(true)\n {\n System.out.println(\"Name a card to guess\");\n String cardChoice = sc.nextLine();\n cardChoice = cardChoice.toLowerCase();\n\n if(cardChoice.equals(this.cardName))\n {\n System.out.println(\"You cannot choose the guard card.\");\n }\n\n else if(cardChoice.equals(targetPlayer1.getCard1().getCardName()))\n {\n System.out.println(\"You've guessed correctly! Player \" + targetPlayer1.getPlayerName() + \" is out of the round!\");\n targetPlayer1.setPlaying(false);\n //System.out.println(targetPlayer1.getPlayerName() + \"'s isPlaying variable is set to \" + targetPlayer1.getIsPlaying());\n break;\n }\n\n\n else if((cardChoice.equals(\"priest\") || cardChoice.equals(\"baron\") || cardChoice.equals(\"handmaid\") || cardChoice.equals(\"prince\") || cardChoice.equals(\"king\") || cardChoice.equals(\"countess\") || cardChoice.equals(\"princess\") ))\n {\n System.out.println(\"Player \" + targetPlayer1.getPlayerName() + \" does not have that card.\");\n break;\n }\n\n else\n {\n System.out.println(\"Sorry, please chose your card again\");\n }\n\n }\n break;\n }\n\n\n\n }\n\n //check to see if targetPlayer2 is still in the round and do targetPlayer2 stuff\n else if(playerChoice.equals(targetPlayer2.getPlayerName()))\n {\n\n if(!targetPlayer2.getIsPlaying())\n {\n System.out.println(\"This player is already out of the round\");\n\n }\n else if(targetPlayer2.isPlayedHandmaid()){\n System.out.println(\"This player has played the handmaid and is immune until their next turn\");\n }\n else\n {\n while(true)\n {\n System.out.println(\"Name a card to guess\");\n String cardChoice = sc.nextLine();\n cardChoice = cardChoice.toLowerCase();\n\n if(cardChoice.equals(this.cardName))\n {\n System.out.println(\"You cannot chose the guard card.\");\n }\n\n else if(cardChoice.equals(targetPlayer2.getCard1().getCardName()))\n {\n System.out.println(\"You've guessed correctly! Player \" + targetPlayer2.getPlayerName() + \" is out of the round!\");\n targetPlayer2.setPlaying(false);\n //System.out.println(targetPlayer2.getPlayerName() + \"'s isPlaying variable is set to \" + targetPlayer2.getIsPlaying());\n break;\n }\n\n\n else if((cardChoice.equals(\"priest\") || cardChoice.equals(\"baron\") || cardChoice.equals(\"handmaid\") || cardChoice.equals(\"prince\") || cardChoice.equals(\"king\") || cardChoice.equals(\"countess\") || cardChoice.equals(\"princess\") ))\n {\n System.out.println(\"Player \" + targetPlayer2.getPlayerName() + \" does not have that card.\");\n break;\n }\n\n else\n {\n System.out.println(\"Sorry, please chose your card again\");\n }\n\n }\n break;\n }\n\n\n\n }\n\n //check to see if targetPlayer3 is still in the round and do targetPlayer3 stuff\n else if(playerChoice.equals(targetPlayer3.getPlayerName()))\n {\n\n if(!targetPlayer3.getIsPlaying())\n {\n System.out.println(\"This player is already out of the round\");\n\n }\n else if(targetPlayer3.isPlayedHandmaid()){\n System.out.println(\"This player has played the handmaid and is immune until their next turn\");\n }\n else\n {\n while(true)\n {\n System.out.println(\"Name a card to guess\");\n String cardChoice = sc.nextLine();\n cardChoice = cardChoice.toLowerCase();\n\n if(cardChoice.equals(this.cardName))\n {\n System.out.println(\"You cannot chose the guard card.\");\n }\n\n else if(cardChoice.equals(targetPlayer3.getCard1().getCardName()))\n {\n System.out.println(\"You've guessed correctly! Player \" + targetPlayer3.getPlayerName() + \" is out of the round!\");\n targetPlayer3.setPlaying(false);\n //System.out.println(targetPlayer3.getPlayerName() + \"'s isPlaying variable is set to \" + targetPlayer3.getIsPlaying());\n break;\n }\n\n\n else if((cardChoice.equals(\"priest\") || cardChoice.equals(\"baron\") || cardChoice.equals(\"handmaid\") || cardChoice.equals(\"prince\") || cardChoice.equals(\"king\") || cardChoice.equals(\"countess\") || cardChoice.equals(\"princess\") ))\n {\n System.out.println(\"Player \" + targetPlayer3.getPlayerName() + \" does not have that card.\");\n break;\n }\n\n else\n {\n System.out.println(\"Sorry, please chose your card again\");\n }\n\n }\n break;\n }\n\n\n\n }\n\n\n\n\n\n else if(!playerChoice.equals(targetPlayer1.getPlayerName()) || !playerChoice.equals(targetPlayer2.getPlayerName()) || !playerChoice.equals(targetPlayer3.getPlayerName()) || !playerChoice.equals(currentPlayer.getPlayerName()))\n {\n //System.out.println(\"Player choice: \" + playerChoice);\n //System.out.println(\"targetPlayer1: \" + targetPlayer1.getPlayerName());\n //System.out.println(\"targetPlayer2: \" + targetPlayer2.getPlayerName());\n //System.out.println(\"targetPlayer3: \" + targetPlayer3.getPlayerName());\n //System.out.println(\"current player : \" + currentPlayer.getPlayerName());\n //System.out.println(!playerChoice.equals(targetPlayer1.getPlayerName()) || !playerChoice.equals(targetPlayer2.getPlayerName()) || !playerChoice.equals(targetPlayer3.getPlayerName()) || !playerChoice.equals(currentPlayer.getPlayerName()));\n System.out.println(\"What?!\");\n }\n\n\n }\n\n\n\n return length;\n }", "title": "" }, { "docid": "4aa19268786bf61a905efc17b786262e", "score": "0.5177761", "text": "private void doJail(Player theplayer) {\r\n\t\tif (theCup.getEquals()) {\r\n\t\t\tGUIControl.printMessage(msgL.msg(170));\r\n\t\t\tdoMoveVehicle(theplayer);\r\n\t\t\ttheplayer.setJailStatus(false);\r\n\t\t\ti--;\r\n\t\t} else if (theplayer.getJailCounter() == 2) {\r\n\t\t\tGUIControl.printMessage(msgL.msg(171));\r\n\t\t\ttheplayer.withdraw(1000);\r\n\t\t\ttheplayer.setJailStatus(false);\r\n\t\t\tdoMoveVehicle(theplayer);\r\n\t\t} else {\r\n\t\t\tGUIControl.printMessage(msgL.msg(172));\r\n\t\t\ttheplayer.addToJailCounter();\r\n\t\t\t// der sker ikke noget.\r\n\t\t}\r\n\t\tequalEyeCounter = 0;\r\n\t}", "title": "" }, { "docid": "721eaf13e342e8dbc27e19ee331fc21c", "score": "0.5173405", "text": "public void performAttack() {\n System.out.println(currentWeapon);\n if (currentWeapon instanceof Fists) {\n fistAttack((Fists) currentWeapon);\n } else if (currentWeapon instanceof Naginata) {\n Naginata curr = (Naginata) currentWeapon;\n System.out.println(\n \"I raise my mighty \" + curr.getName() + \" and deal \" + curr.attack() + \" damage!\");\n } else if (currentWeapon instanceof Flowers) {\n System.out.println(\"I have taken away the anger from your heart, join me in the zen\");\n } else {\n System.out.println(\"Weird weapon, dunno how to use it ¯\\\\_(ツ)_/¯\");\n }\n }", "title": "" }, { "docid": "34f4fa5363ed6057a567f74e99155538", "score": "0.5165389", "text": "private int turn()\n\t{\n\t\tclient.drawBoard(this.board);\n\t\t\n\t\t/* Get player's move */\n\t\tint move = client.getMove();\n\t\t\n\t\t/* Check if player won */\n\t\t\n\t\t\n\t\t/* Check for tie */\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "5eed24e021972f74c428388c79017af2", "score": "0.51650256", "text": "private void FunRideCygnea4(Player player) {\n\t\tplayer.setState(CreatureState.FLIGHT_TELEPORT);\n\t\tplayer.unsetState(CreatureState.ACTIVE);\n\t\tplayer.setFlightTeleportId(282001);\n\t\tPacketSendUtility.sendPacket(player, new SM_EMOTION(player, EmotionType.START_FLYTELEPORT, 282001, 0));\n\t}", "title": "" }, { "docid": "a8bd55d78d4259fb0db8945ec8acde20", "score": "0.5163584", "text": "private void simulateRound() {\n Action action;\n Player actor;\n int id;\n\n // initialise on first simulation\n if (firstAction) {\n initSim();\n firstAction = false;\n return;\n }\n\n // apply moves since last agent action\n for (int move = 0; move < numPlayers; move++) {\n id = (self.id + move) % numPlayers;\n actor = players[id];\n action = currentState.getPreviousAction(actor.id);\n try {\n applyAction(action, actor);\n } catch (IllegalActionException e) {\n System.err.println(e);\n }\n }\n }", "title": "" }, { "docid": "273039cf863505309f2c94f84185a026", "score": "0.5161476", "text": "@Override\r\n\tpublic String executeStrategy(GameMap gm, PlayersList pl, Player player) {\r\n\r\n\t\treinforce(gm, pl, player);\r\n\t\tString attackResult = attack(gm, pl, player);\r\n\t\tif (attackResult.equals(\"Won\")) {\r\n\t\t\treturn \"Won\";\r\n\t\t}\r\n\t\tfortify(gm, pl, player);\r\n\t\treturn \"Success\";\r\n\t}", "title": "" }, { "docid": "45a35ee73d38b9a87de6b62da17283b3", "score": "0.5156287", "text": "public void drive(double miles)\n{\n double gallonsBurned = miles / this.fuelEfficiency;\n this.fuelInTank = this.fuelInTank - gallonsBurned;\n}", "title": "" }, { "docid": "f0f7fdf459196600865e4e30ad15d3b0", "score": "0.51524186", "text": "private void playGame(Athlete athlete) {\n athlete.play();\n if (athlete.getHunger() <= 15) {\n System.out.println(athlete.getName() + \" won!\");\n } else {\n System.out.println(athlete.getName() + \" lost!\");\n }\n }", "title": "" }, { "docid": "20634f5d03ed14aa213dfe09bc4831c7", "score": "0.5151914", "text": "public void playSoldier() {\n\n }", "title": "" }, { "docid": "fed057a7dfccca1da695b7b17ba832a2", "score": "0.5149671", "text": "private void FunRideEnshar3(Player player) {\n\t\tplayer.setState(CreatureState.FLIGHT_TELEPORT);\n\t\tplayer.unsetState(CreatureState.ACTIVE);\n\t\tplayer.setFlightTeleportId(283001);\n\t\tPacketSendUtility.sendPacket(player, new SM_EMOTION(player, EmotionType.START_FLYTELEPORT, 283001, 0));\n\t}", "title": "" }, { "docid": "1ad6fa1d282c9e6127c76bedc2b324c8", "score": "0.51495796", "text": "private void cS1() {\n\t\tPlayer local = ctx.players.local();\n\t\tfinal String opt[] = {\"Alright.\",\"No, I\",\"Yes\",\"Skip speech\"};\n\t\tif (Method.objIsNotNull(52289)) {//Basement area\n\t\t\t//NPC dar = NPCs.getNearest(11273);\n\t\t\tMethod.skipPics();\n\t\t\tif (Method.npcIsNotNull(11273) && Method.getNPC(11273).tile().distanceTo(local.tile()) < 5) {\n\t\t\t\tif (pickPocket) {\n\t\t\t\t\tif (ctx.skills.level(17) >= 5) {//17 is constant for theiving skill\n\t\t\t\t\t\tif (new Tile(4661, 5903, 0).distanceTo(local.tile()) < 2) {\n\t\t\t\t\t\t\tpickPocket = false;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tnew Tile(4661, 5903, 0).matrix(ctx).click(true);\n\t\t\t\t\t} else Method.interactO(52316, \"Pickpocket\",\"Dummy\");\n\t\t\t\t\t\n\t\t\t\t} else if(ctx.widgets.component(1184,0).visible() && ctx.widgets.component(1184,13).text().contains(\"Just keep picking that\")){\n\t\t\t\t\tpickPocket = true;\n\t\t\t\t}else{\n\t\t\t\t\tif (!Method.startQuestOpen()) {Vars.DYNAMICV = false;\n\t\t\t\t\t\tif (!Method.findOption(opt)) {\n\t\t\t\t\t\t\tif (!Method.isChatting(\"Head Thief\")) {\n\t\t\t\t\t\t\t\tif ((!local.inMotion())) {\n\t\t\t\t\t\t\t\t\tif (local.tile().equals(new Tile(4664, 5903, 0))) {\n\t\t\t\t\t\t\t\t\t\tif(local.orientation()!=0){\n\t\t\t\t\t\t\t\t\t\t\tMethod.state(\"Temp-sleep\");\n\t\t\t\t\t\t\t\t\t\t\tMethod.sleep(2000);\n\t\t\t\t\t\t\t\t\t\t\tif(!ctx.widgets.component(1184,0).visible())\n\t\t\t\t\t\t\t\t\t\t\t\tMethod.speakTo(11273, \"Head Thief\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else Method.speakTo(11273, \"Head Thief\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(Method.npcIsNotNull(11273)){\n\t\t\t\tMethod.state(\"Walking to Head Thief\");\n\t\t\t\tMethod.clickOnMap(Method.getNPC(11273).tile());\n\t\t\t}\n\t\t} else if (Vars.DYNAMICV) {\n\t\t\tif (new Tile(3221, 3269, 0).distanceTo(local.tile()) < 3) {\n\t\t\t\tMethod.interactO(52309, \"Enter\",\"Trap door\");\n\t\t\t} else Method.walking(pathToCellar, \"Walking to Cellar.\",false);\n\t\t} else if (TeleportLode.LUMMBRIDGE.getTile().distanceTo(local.tile())<10) {\n\t\t\tVars.DYNAMICV = true;\n\t\t} else Method.teleportTo(TeleportType.LUMBRIDGE.getTeleport(),TeleportType.LUMBRIDGE.getName());\n\t}", "title": "" }, { "docid": "ee6d41a7148093d29201b324b490c409", "score": "0.51475143", "text": "public void runGame() {\n\t\troundNumber++;\n\n\t\t// Create a list to store all the competitors times, which will be\n\t\t// generated by compete()\n\t\tArrayList<Float> competitorsTimes = new ArrayList<Float>();\n\n\t\tfor (Athlete athlete : getCompetitors()) {\n\t\t\tfloat time = athlete.compete();\n\t\t\tathlete.setLastTimeRecorded(time);\n\t\t\tcompetitorsTimes.add(time);\n\t\t}\n\n\t\t//Sort the competitors by their times recorded, making an ordered list from best to worst times.\n\t\tgetCompetitors().sort(new Comparator<Athlete>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Athlete athlete1, Athlete athlete2) {\n\n\t\t\t\tif (athlete1.getLastTimeRecorded() > athlete2.getLastTimeRecorded())\n\t\t\t\t\treturn 1;\n\t\t\t\tif (athlete1.getLastTimeRecorded() < athlete2.getLastTimeRecorded())\n\t\t\t\t\treturn -1;\n\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\n\t\t//Now that we have an ordered list, the first three in the list are the players who recieve points.\n\t\tfirstPlaceWinner = getCompetitors().get(0);\n\t\tsecondPlaceWinner = getCompetitors().get(1);\n\t\tthirdPlaceWinner = getCompetitors().get(2);\n\n\n\t\t// The referee returns the game result and assigns the three first\n\t\t// places with appropriate points\n\t\tgameResult = referee.confirmGameResults(getGameName(), roundNumber, firstPlaceWinner, secondPlaceWinner,\n\t\t\t\tthirdPlaceWinner, this);\n\n\t}", "title": "" }, { "docid": "31a867cbb21469a6bb20be097f2e28d3", "score": "0.51467884", "text": "public void act() \n {\n if(runner == null)\n {\n mouse = Greenfoot.getMouseInfo();\n if(mouse != null)\n {\n setLocation(mouse.getX(), mouse.getY());\n }\n if(getOneIntersectingObject(Runner.class) != null)\n {\n runner = (Runner) getOneIntersectingObject(Runner.class);\n }\n }\n else\n {\n if(runner.getPosition()>-1)//Has the runner reached the finish line?\n {\n if(runner.getPosition()==1) //We register a win! YAY!\n {\n player.setCash(player.getCash() + betSize * runner.getOdds());\n }\n getWorld().removeObject(this); //The bet is over\n }\n }\n }", "title": "" }, { "docid": "b7a0bd5e072a986cd6f4f257499d5ad5", "score": "0.5146216", "text": "public void move (long startTime) {\n \n // This variable stores the total time spent in frightened mode.\n long timeOffset = getTimeOffset ();\n\n // We subtract the offset from the current time, because the time spent in \n // frightened mode is not counted when selecting the ghost mode- scatter, \n // or chase.\n time = System.currentTimeMillis () / 1000 - timeOffset;\n\n // It tells how much time has passed since game started, or the game has been \n // running since how long.\n timeDifference = time - startTime;\n int n = 0;\n\n while (true) {\n \n // Finding which round of mode lengths are we on. Here round means \n // how many times have we traversed the whole mode lengths list, \n // and have restarted.\n if (timeDifference >= n * length && timeDifference < (n + 1) * length) {\n roundNumber = n;\n break;\n }\n n += 1;\n\n }\n\n ArrayList<Long> modeLengths = modeLengthAdjuster (modeLength);\n \n // Finding the ghost mode, and calling those particular methods.\n for (int i = 0; i < modeLengths.size () - 1; i++) {\n \n if (timeDifference > (roundNumber) * length + modeLengths.get (i) \n && timeDifference <= (roundNumber) * length + modeLengths.get (i + 1)) {\n \n if (i % 2 == 0 ) {\n\n // Caliing scatter method for all ghosts to find their \n // target.\n scatterAmbusher ();\n scatterChaser ();\n scatterWhim ();\n scatterIgnorant ();\n\n } else {\n\n // Caliing chase method for all ghosts to find their target.\n chaseAmbusher ();\n chaseIgnorant (targetsIgnorant);\n chaseWhim ();\n chaseChaser ();\n\n } \n\n }\n\n if (timeDifference == 0) {\n\n // Caliing scatter method for all ghosts to find their target.\n scatterAmbusher ();\n scatterChaser ();\n scatterWhim ();\n scatterIgnorant ();\n }\n\n }\n \n // If the ambusher is alive, then we call the isAlive() method to see if the \n // ambusher is colliding with waka or not.\n if (isAmbusherAlive() == true) {\n isAlive (targetsAmbusher, ambusher, \"ambusher\");\n }\n \n // If the chaser is alive, then we call the isAlive() method to see if the \n // chaser is colliding with waka or not.\n if (isChaserAlive() == true) {\n isAlive (targetsChaser, chaser, \"chaser\");\n }\n \n // If the ignorant is alive, then we call the isAlive() method to see if the \n // ignorant is colliding with waka or not.\n if (isIgnorantAlive() == true) {\n isAlive (targetsIgnorant, ignorant, \"ignorant\");\n }\n \n // If the whim is alive, then we call the isAlive() method to see if the \n // whim is colliding with waka or not.\n if (isWhimAlive() == true) {\n isAlive (targetsWhim, whim, \"whim\");\n }\n\n}", "title": "" }, { "docid": "3ec86e237a5f39cddd69dc9bfb256c1a", "score": "0.5145103", "text": "private void cS0() {\n\t\t \n\t\t final String opt[] = {\"What are you\",\"And what\",\"Alirght.\",\"Skip speech\"};\n\t\t Player local = ctx.players.local();\n\t\t//SceneObject check = SceneEntities.getNearest(52289);\n\t\tif (Method.objIsNotNull(52289)) {//basement area\n\t\t\tif (new Tile(4664, 5902, 0).distanceTo(local.tile()) < 5) {//people location\n\t\t\t\tif(!Method.startQuestOpen())\n\t\t\t\tif(!Method.findOption(opt))\n\t\t\t\t\tif(!Method.isChatting(\"Head Thief\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ((!local.inMotion())) {\n\t\t\t\t\t\t\tif (local.tile().equals(new Tile(4664, 5903, 0))) {\n\t\t\t\t\t\t\t\tif(local.orientation()!=0){\n\t\t\t\t\t\t\t\t\tMethod.state(\"Temp-sleep\");\n\t\t\t\t\t\t\t\t\tMethod.sleep(2000);\n\t\t\t\t\t\t\t\t\tif(!ctx.widgets.component(1184,0).visible())\n\t\t\t\t\t\t\t\t\t\tMethod.speakTo(11273, \"Head Thief\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else Method.speakTo(11273, \"Head Thief\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t} else Method.clickOnMap(new Tile(4664, 5902, 0));\n\t\t} else if (Vars.DYNAMICV) {\n\t\t\tif (new Tile(3221, 3269, 0).distanceTo(local.tile()) < 3) {\n\t\t\t\tMethod.interactO(52309, \"Enter\",\"Trap door\");\n\t\t\t} else Method.walking(pathToCellar,\"Walking to Cellar.\",false);\n\t\t} else if (TeleportLode.LUMMBRIDGE.getTile().distanceTo(local.tile())<10) {\n\t\t\tVars.DYNAMICV = true;\n\t\t} else\n\t\t\tMethod.teleportTo(TeleportType.LUMBRIDGE.getTeleport(),TeleportType.LUMBRIDGE.getName());\n\n\t}", "title": "" }, { "docid": "a911f3b8e5b42087d6dd3577cf5d6acc", "score": "0.51427644", "text": "public void act()\n {\n if (steps < sideLength && getDirection() == 270 && canMove() && count < 18)\n {\n move();\n steps++;\n count++;\n }\n else if(steps == sideLength && getDirection() == 270 && count < 18){\n \tturn();\n \tturn();\n \tsteps = 0;\n \tcount++;\n\t\t}\n\t\telse if(steps < sideLength && getDirection() == 0 && canMove() && count < 18){\n\t\t\tmove();\n\t\t\tsteps++;\n\t\t\tcount++;\n\t\t}\n\t\telse if(steps == sideLength && getDirection() == 0 && count < 18){\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t\tcount++;\n\t\t}\n\t\telse if(steps < sideLength && getDirection() == 90 && count < 18){\n\t\t\tmove();\n\t\t\tsteps++;\n\t\t\tcount++;\n\t\t}\n\t\telse if(steps == sideLength && getDirection() == 90 && count < 18){\n\t\t\tsetDirection(270);\n\t\t\tsteps = 0;\n\t\t\tcount++;\n\t\t}\n else\n {\n steps = sideLength + 1;\n }\n }", "title": "" }, { "docid": "5c2480ec8112b531dc4bb565c3152f9b", "score": "0.5140996", "text": "@Override\n\tpublic void think(Game game) {\n\t\tif( NEXTTHINK > System.currentTimeMillis() ){\n\t\t\treturn;\n\t\t}\n\n\n\t\t// Turn off charge\n\t\tif( avatar.getCell().isCharging() ){\n\t\t\tavatar.moveTo(new Move(getPlayer(), \"O\", \"Stop\"), game);\n\t\t}\n\t\t// Check for target\n\t\telse if( hasTarget() ){\n\t\t\tSystem.out.println(\"Enemy: (\" + target.getTile().getxPos() + \",\" + target.getTile().getyPos() + \")\");\n\t\t\tSystem.out.println(\"Avatar: (\" + avatar.getTile().getxPos() + \",\" + avatar.getTile().getyPos() + \")\");\n\n\n\t\t\tif( !canSeeTarget(target) ){\n\t\t\t\tSystem.out.println(\"Can't see him???\");\n\n\t\t\t\tif( !isDirectionTarget(target) ){\n\t\t\t\t\tSystem.out.println(\"\tDirection target\");\n\t\t\t\t\tfaceAvatar(target);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"\tLOST TARGET\");\n\t\t\t\t\ttarget = null;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if( getNextTile() == target.getTile() ){\n\t\t\t\tSystem.out.println(\"ATTACKING\");\n\n\t\t\t\t//Turn on charge\n\t\t\t\tavatar.moveTo(new Move(getPlayer(), \"O\", \"Start\"), game);\n\t\t\t}\n\t\t\telse if( moveTowardsTarget(game) ){\n\t\t\t\tSystem.out.println(\"\tMOVED!\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\tDid not move\");\n\t\t\t}\n\n\t\t}\n\t\telse{\n\t\t\tif( foundTarget() ){\n\t\t\t\tfaceAvatar(target);\n\t\t\t\tSystem.out.println(\"FOUND TARGET: \" + target.getPlayerName());\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmoveInRandomDirection(game);\n\t\t\t}\n\t\t}\n\n\t\t// Remember when we need to think next\n\t\tNEXTTHINK = System.currentTimeMillis() + THINKDELAY;\n\t}", "title": "" }, { "docid": "b4d1d440cdae3ba02457eb3487a436a9", "score": "0.5139632", "text": "public void nextTurn() {\n System.out.println(\"Next Turn\");\n }", "title": "" }, { "docid": "ef2f334f1bbf78d4fb0b79a9af77c5db", "score": "0.5131822", "text": "public void stand() {\n\t\tdealerAI();\n\t\tcheckWhoWon();\n\t}", "title": "" }, { "docid": "b87b715aa2fbbd0ca33ce169cdc69bf1", "score": "0.51302874", "text": "static void walk() {\r\n\t\tif (pet.equals(\"dog\")) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"dog might wag it's tail when walked\");\r\n\t\t\thappinessLevel+=5;\r\n\t\t} else if (pet.equals(\"cat\")) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"cat will not enjoy walking with a human, and walk by itself\");\r\n\t\t\thappinessLevel -=3;\r\n\t\t} else if (pet.equals(\"bird\")) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"your bird will not enjoy being walked, and fly away\");\r\n\t\t\thappinessLevel -=5;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "363a35876cb7228c5fa77b0763dcb3ed", "score": "0.5125386", "text": "public void act() \n {\n tryToEatLettuce();\n move(8);\n \n if (atWorldEdge())\n {\n turn(15);\n }\n if (Greenfoot.getRandomNumber(100)<10){\n turn(Greenfoot.getRandomNumber(40)-20);\n }\n \n }", "title": "" }, { "docid": "4c7b324cf78dd1133e0921407d31f1f7", "score": "0.51231575", "text": "public void run(){\n\t\tsetBodyColor(Color.green);\n\t\tsetGunColor(Color.green);\n\t\tsetRadarColor(Color.green);\n\t\tsetScanColor(Color.green);\n\t\tsetBulletColor(Color.green);\n\t\t\n\t\tcount = 0;\n\t\tenergyAdv = 0;\n\t\ttrackName = null;\n\t\tsetAdjustGunForRobotTurn(true);\n\t\tgunTurnAmt = 10;\n\t\t\n\t\twhile (true) {\n\t\t\tif (!intBehaviour){\n\t\t\t\tturnGunRight(gunTurnAmt);\n\t\t\t\tcount++;\n\t\t\t\tif (count > 1) gunTurnAmt = -10;\n\t\t\t\tif (count > 2) gunTurnAmt = 10;\n\t\t\t\t//se ao fim de 3 turnos, ainda nao encontrou o alvo, abandona esse alvo\n\t\t\t\tif (count > 3) trackName = null;\n\t\t\t} else turnGunRight(360);\n\t\t\tif (emocaoActiva != null){\n\t\t\t\tdouble intense = getEmotionIntensity(emocaoActiva.getX(), emocaoActiva.getY(), emocaoActiva.getZ());\n\t\t\t\tif (intense > Math.abs(neuroticism-extraversion)) updateEmotion(emocaoActiva, intense, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((int) System.currentTimeMillis()/100)-t);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3f86c07fd41c0e32c181a344a0332315", "score": "0.5122701", "text": "public void startGame()\n {\n initialize();\n deal();\n displayHands();\n determineWinner();\n }", "title": "" }, { "docid": "6fcc59cd7135b455bc5c13003111d20a", "score": "0.51216894", "text": "@Override\r\n public void atTurnStart() {\n if (this.turn == 0) {\r\n // nothing special on turn 1, that was set up before\r\n } else if (this.turn == 1) {\r\n AbstractDungeon.player.energy.energy += 3;\r\n this.flash();\r\n }\r\n ++this.turn;\r\n }", "title": "" }, { "docid": "ae75797e2733f7535fab9e48e1d334ee", "score": "0.51208967", "text": "public void stand() {\n\t \tif (player.isActiveLast()) {\n\t \t\t// set first hand active\n\t \t\tplayer.switchHand();\n\t \t\tendRound();\n\t \t\tstatus = \"round ended\";\n\t \t} else {\n\t \t\tplayer.switchHand();\n\t \t\tstatus = \"next hand is active\";\n\t \t}\n\t \tnotifyObservers();\n\t }", "title": "" }, { "docid": "3ec3b8913315f93934f0813a27f102e7", "score": "0.5119506", "text": "@Override\n public void harvest() {\n System.out.println(\"Carrots have reached 1/2 inch in diameter. Harvesting...\");\n }", "title": "" }, { "docid": "94c530ea7a9e98ac3205863e9cd84100", "score": "0.5117209", "text": "private void computerTurn_Attack()\n\t{\n\t\tSystem.out.print(\"\\nEnemy's Turn\\n\");\n\t\t//when computer ATKs\n\t\tShortcutMethods.generateSpaces(2);\n\t\tfightActionText(\"The computer attempts to attack\\nWait for next round to see the effect\\n\");\n\n\t\tif (enemy_primaryIsMelee==true)//see if the computer is using a melee weapon\n\t\t{\n\t\t\tif (contestant2.getContestantWeaponType()==1)\n\t\t\t{\n\t\t\t\tenemyskip=dodgingChance(playerAgl,playerTraining_1, enemyTraining_1);\n\t\t\t}\n\t\t\n\t\t\tif (contestant2.getContestantWeaponType()==3)\n\t\t\t{\n\t\t\t\tenemyskip=dodgingChance(playerAgl,playerTraining_3, enemyTraining_3);\n\t\t\t}\n\t\t\t\n\t\t\tif (contestant2.getContestantWeaponType()==4)\n\t\t\t{\n\t\t\t\tenemyskip=dodgingChance(playerAgl,playerTraining_4, enemyTraining_4);\n\t\t\t}\n\t\t\t\n\t\t\tif (contestant2.getContestantWeaponType()==5)\n\t\t\t{\n\t\t\t\tenemyskip=dodgingChance(playerAgl,playerTraining_5, enemyTraining_5);//this is for dodgeing\n\t\t\t\t//it returns a boolean\n\t\t\t}\n\t\t}\n\n\t\t\t//note \tthat the enemy's training determines his ability to control with his weapon\n\t\telse if (enemy_primaryIsRanged==true)//see if the computer is using a ranged weapon\n\t\t{\n\t\t\tenemyskip=dodgingChance(playerAgl, playerTraining_2,enemyTraining_2);\n\t\t}\n\t\t\t\n\t\tif (enemyWeaponSpdValue==10)//now its about the weapon spd\n\t\t{\n\t\t\tenemyWeaponSpdValue=10-enemyWeaponSpd;\n\t\t}\n\t\t\t\t//Maximum of 10 rounds to hit once\n\t\tif (distance<=enemyWeaponRgn)//if the weapon is within range\n\t\t{\n\t\t\t//\n\n\t\t\t\tif (enemyWeaponSpdValue==9)//if the spd weapon value is set to 9\n\t\t\t\t{\n\t\t\t\t\tif (enemyskip==false)//if the enemy does not miss\n\n\t\t\t\t\t{\t\n\t\t\t\t\t\tif (playerGuarding==true){\n\t\t\t\t\t\t\tplayerDefence+=playerGrd;\n\t\t\t\t\t\t\tif (playerDefence<(enemyStr+enemyMve)){\n\t\t\t\t\t\t\t\tplayerHp=blockDefendAbsorb(playerHp, (enemyStr+enemyMve), playerDefence, \"Defence nulled the attack\",\"Your Guard did not guard completely\");\n\t\t\t\t\t\t\t\tplayerDefence-=playerGrd;}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tplayerHp=blockDefendAbsorb(playerHp, (enemyStr+enemyMve), playerDefence, \"Defence nulled the attack\",\"Your Guard guarded completely\");\n\t\t\t\t\t\t\t\tplayerDefence-=playerGrd;}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tplayerHp=blockDefendAbsorb(playerHp, (enemyStr+enemyMve), playerDefence, \"Defence nulled the attack\",\"\");}\n\t\t\t\t\t}\n\t\t\t\t\telse {fightActionText(\"The player dodges\");}//if he does miss, then this is outputed\n\t\t\t\t}\n\t\t\t\telse//then that means he is still in progress to perform the attack\n\t\t\t\t{\n\t\t\t\t\tif \t(enemy_primaryIsMelee==true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nThe enemy's melee weapon is so heavy, that he is still in the progress of using the weapon!\\nRound ends\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\telse if (enemy_primaryIsRanged==true)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (enemyWeaponSpdValue==4)//the s for grammar\n\t\t\t\t\t\t\t{System.out.print(\"He puts down his weapon\");}//Crossbow \n\t\t\t\t\t\tif (enemyWeaponSpdValue==5)\n\t\t\t\t\t\t\t{System.out.print(\"He cocks his weapon\");}//Crossbow\n\t\t\t\t\t\tif (enemyWeaponSpdValue==6)\n\t\t\t\t\t\t\t{System.out.print(\"He raises his weapon\");}//Crossbow\n\t\t\t\t\t\tif (enemyWeaponSpdValue==7)\n\t\t\t\t\t\t\t{System.out.print(\"He loads an shaft on his ranged equipment\");}//Crossbow&bow\n\t\t\t\t\t\tif (enemyWeaponSpdValue==8)\n\t\t\t\t\t\t\t{System.out.print(\"He takes aim\");}//Crossbow&bow\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tenemyWeaponSpdValue+=1;System.out.print(\"\\n\");//now we increase the speed value, until its 9, the user can never attack\n\t\t}\n\t\telse//this means that the distance is too far away\n\t\t{\n\t\t\tenemyStamina-=enemySpd/4;\n\t\t\tfightActionText(\"The enemy can't hit you yet, too far away, so he advanced\");\n\t\t\tdistance-=enemySpd/2;\n\t\t\tif (distance<0){distance=0;}\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "ab568b0484f2a6e4d35efe43fc67ef06", "score": "0.51148665", "text": "public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n Tournament tournament = new Tournament();\n\n System.out.println(\"Kumpula ski jumping week\");\n\n System.out.println(\"\\nWrite the names of the participants one at a time; an empty string brings you to the jumping phase.\");\n while (true) {\n System.out.print(\" Participant name: \");\n String jumperName = reader.nextLine();\n if (jumperName.equals(\"\")) {\n break;\n }\n tournament.addParticipant(new Jumper(jumperName));\n }\n\n System.out.println(\"\\nThe tournament begins!\");\n\n int tournamentRoundNumber = 0;\n while (true) {\n System.out.print(\"\\nWrite \\\"jump\\\" to jump; otherwise you quit:\");\n String jumpCommand = reader.nextLine();\n if (!jumpCommand.equals(\"jump\")) {\n break;\n }\n\n tournamentRoundNumber++;\n System.out.println(\"\\nRound \" + tournamentRoundNumber);\n\n if (tournamentRoundNumber > 1) {\n tournament.sortByScore();\n }\n\n System.out.println(\"\\nJumping order:\");\n for (int i = 0; i < tournament.getSize(); i++) {\n int x = (i + 1);\n System.out.println(\" \" + x + \". \" + tournament.getJumper(i));\n }\n\n System.out.println(\"\\nResults of round \" + tournamentRoundNumber);\n\n for (int i = 0; i < tournament.getSize(); i++) {\n System.out.println(\" \" + tournament.getJumper(i).getName());\n System.out.println(\" length: \" + tournament.generateJumpDistance(tournament.getJumper(i)));\n System.out.println(\" judge votes: \" + tournament.generateJudgeScore(tournament.getJumper(i)));\n }\n }\n System.out.println(\"\\nThanks!\");\n\n tournament.sortByScore();\n tournament.reverseOrder();\n\n System.out.println(\"\\nTournament results:\");\n System.out.println(\"Position Name\");\n for (int i = 0; i < tournament.getSize(); i++) {\n int x = (i + 1);\n System.out.println(x + \" \" + tournament.getJumper(i));\n System.out.print(\" jump lengths: \");\n for (int k = 0 ; k < tournament.getJumper(i).getJumps().size() ; k++) {\n System.out.print(tournament.getJumper(i).getJumps().get(k));\n if (k == (tournament.getJumper(i).getJumps().size()-1)) {\n System.out.print(\" m\\n\");\n } else {\n System.out.print(\" m, \");\n } \n }\n \n }\n }", "title": "" }, { "docid": "926e0aad0267b8fd3b24132757e7361b", "score": "0.5114755", "text": "private void FunRideCygnea(Player player) {\t\t\n\t\tplayer.setState(CreatureState.FLIGHT_TELEPORT);\n\t\tplayer.unsetState(CreatureState.ACTIVE);\n\t\tplayer.setFlightTeleportId(279001);\n\t\tPacketSendUtility.sendPacket(player, new SM_EMOTION(player, EmotionType.START_FLYTELEPORT, 279001, 0));\n\t}", "title": "" }, { "docid": "633bbfbadde326a2627132638cd7cd7d", "score": "0.511329", "text": "public void move() {\r\n\t\t\tdirection();\r\n\t\t\tint targetFloor = getNextTargetFloor();\r\n\t\t\tif (currentFloor < targetFloor) {\r\n\t\t\t\tmovingUp = true;\r\n\t\t\t\twhile (doorClosed == true) {\r\n\t\t\t\t\tcurrentFloor++;\r\n\t\t\t\t\tsimulation.addTick();\r\n\t\t\t\t\tSystem.out.println(\"Currently in: \" + currentFloor + \" \" + simulation.getTick());\r\n\t\t\t\t\tif (currentFloor == targetFloor) {\r\n\t\t\t\t\t\thasArrived = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Lift has arrived to the target floor: \" + targetFloor + \", current tick: \"\r\n\t\t\t\t\t\t\t\t+ simulation.getTick());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (currentFloor > targetFloor) {\r\n\t\t\t\tmovingUp = false;\r\n\t\t\t\twhile (doorClosed == true) {\r\n\t\t\t\t\tcurrentFloor--;\r\n\t\t\t\t\tsimulation.addTick();\r\n\t\t\t\t\tSystem.out.println(\"Currently in:\" + currentFloor + \" \" + simulation.getTick());\r\n\t\t\t\t\t;\r\n\t\t\t\t\tif (currentFloor == targetFloor) {\r\n\t\t\t\t\t\thasArrived = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Lift has arrived to the target floor: \" + targetFloor + \", current tick: \"\r\n\t\t\t\t\t\t\t\t+ simulation.getTick());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "47dde4eb19df6379d9110939d4fd09b5", "score": "0.5112702", "text": "protected void execute() {\n \t\n \tdouble rpm = Robot.oi.getElevJoyY()* maxRPM * RobotMap.encoderPPR;\n \tRobot.drive.setSpeed(rpm);\n \tSystem.out.println(\"I set the fucking setpoint\" + rpm);\n }", "title": "" }, { "docid": "ae0f3c67fe1488c021b4efcbdadde6d4", "score": "0.51101416", "text": "private void cS7() {\n\t\tPlayer local = ctx.players.local();\n\t\tif (Method.objIsNotNull(52289)) {\n\t\t\t//SceneObject pole = SceneEntities.getNearest(52424);\n\t\t\tif (Method.objIsNotNull(52424) && Method.getObject(52424).tile().distanceTo(local.tile()) < 8) {\n\t\t\t\tif(ctx.widgets.component(1186,0).visible()){\n\t\t\t\t\tMethod.pressContinue();\n\t\t\t\t}\n\t\t\t\tif(!Method.isChatting(\"Head-thief\")){\n\t\t\t\t\tVars.DYNAMICV = false;\n\t\t\t\t\tif(ctx.hud.opened(Window.BACKPACK)){//If the inventory is open\n\t\t\t\t\tif (ctx.backpack.itemSelected()) {\n\t\t\t\t\t\tMethod.npcInteract(11273, \"Use\");\n\t\t\t\t\t} else Method.interactInventory(18648, \"Use\",\"Trophy\");\n\t\t\t\t}else ctx.hud.open(Window.BACKPACK);//open backpack\n\t\t\t\t}\n\t\t\t} else if(Method.objIsNotNull(52424)){\n\t\t\t\tMethod.state(\"Moving closer.\");\n\t\t\t Method.clickOnMap(Method.getObject(52424).tile());\n\t\t\t}\n\t\t} else if (Vars.DYNAMICV) {\n\t\t\tif (new Tile(3221, 3269, 0).distanceTo(local.tile()) < 3) {\n\t\t\t\tMethod.interactO(52309, \"Enter\",\"Trap door\");\n\t\t\t} else\n\t\t\tMethod.walking(pathToCellar, \"Walking to the Cellar\",false);\n\t\t} else if (TeleportLode.LUMMBRIDGE.getTile().distanceTo(local.tile())<10) {\n\t\t\tVars.DYNAMICV = true;\n\t\t} else\n\t\t\tMethod.teleportTo(TeleportType.LUMBRIDGE.getTeleport(),TeleportType.LUMBRIDGE.getName());\n\n\t}", "title": "" }, { "docid": "9163ec88bdfa059a946aec8352a810e4", "score": "0.51095545", "text": "public void drive() {\n\t\tSystem.out.println(\"Driving a Race car\");\n\t\tthis.setTireWearAndTear(this.getTireWearAndTear() + 30);\n\t}", "title": "" }, { "docid": "473ab171bf4ba0e46316d78441aa4689", "score": "0.51092315", "text": "public void playRound() {\n Coordinates coordinates = this.player1.fireShot();\n ShotResult result = this.player2.processShot(coordinates);\n this.player1.processShotResult(coordinates, result);\n\n if (!player2.hasLost()) //If player 2 already lost, we can't let them take another turn.\n {\n coordinates = player2.fireShot();\n result = player1.processShot(coordinates);\n player2.processShotResult(coordinates, result);\n }\n }", "title": "" }, { "docid": "b9d0d2b0135e565d470ba1c0f0fdd12e", "score": "0.5104935", "text": "public void run() {\n substractServantsSpent();\n placePawn();\n getBonus();\n\n if (isHarvestArea()) {\n player.startHarvest(actionValue);\n }\n if (isProductionArea()) {\n player.startProduction(actionValue);\n }\n\n if (isFightSpot()) {\n FightSpot fightSpot = (FightSpot) actionPlace;\n fightSpot.addServantsSpent(servantsSpent);\n }\n }", "title": "" }, { "docid": "e6e01a34e24bf0c5ee148bc6881e2ee8", "score": "0.5100281", "text": "@Override\n void logTurn(final boolean isFinalTurn) {\n Log.d(FiveKings.APP_TAG, String.format(\"Player %s: Using %s\",this.getName(),this.method.toString()));\n String sValuationOrScore = isFinalTurn ? \"Score=\" : \"Valuation=\";\n Log.d(FiveKings.APP_TAG, \"before...... \" + this.getMeldedString(true) + this.getPartialAndSingles(true) + \" \"\n + sValuationOrScore + this.getHandValueOrScore(isFinalTurn));\n }", "title": "" }, { "docid": "b2bbb455098cf970d5da5765a14fdb75", "score": "0.51000434", "text": "private boolean handleTricksPhase() {\n if (game.getGamePhase().split(\";\")[1].equals(\"TricksPhase\")) {\n System.out.println(\"\\n- - - - Trumpfphase - - - -\");\n System.out.println(\"Welche Karte wollen Sie spielen?\");\n\n int chosenCard = getPlayerCardToPlay();\n\n ArrayList<String> trickPhaseCompleteFull = new ArrayList<>(Arrays.asList(game.doNextStep\n (chosenCard).split(\"\\n\")));\n\n String[] trickPhaseCards = trickPhaseCompleteFull.get(0).split(\";\");\n\n ArrayList<String> formattedTricks = new ArrayList<>();\n\n for (String trickPhaseCard : trickPhaseCards) {\n String[] individualTrick = trickPhaseCard.split(\",\");\n formattedTricks.add(individualTrick[0]);\n formattedTricks.add(tools.getCardString(individualTrick[1]));\n }\n\n System.out.println(tools.convertToCardString(formattedTricks));\n\n System.out.println(\">>>> Gewinner des Trumpfes: \" + trickPhaseCompleteFull.get(1).split(\";\")\n [1] + \"\\n\");\n\n\n if (trickPhaseCompleteFull.contains(\"RoundOver\")) {\n\n ArrayList<String> formattedTricksOver = new ArrayList<>();\n\n for (String trickPhaseCard : trickPhaseCards) {\n String[] individualTrick = trickPhaseCard.split(\",\");\n formattedTricksOver.add(individualTrick[0]);\n formattedTricksOver.add(tools.getCardString(individualTrick[1]));\n }\n\n System.out.println(tools.convertToCardString(formattedTricksOver));\n\n System.out.println(\">>>> Gewinner des Trumpfes: \" + trickPhaseCompleteFull.get(1).split(\";\")\n [1] + \"\\n\");\n\n\n System.out.println(\">>> Punktestand nach Runde: \");\n String[] endOfRoundScore = trickPhaseCompleteFull.get(3).split(\";\");\n for (int i = 1; i < endOfRoundScore.length; i++) {\n String[] individualScore = endOfRoundScore[i].split(\",\");\n System.out.println(individualScore[0] + \" -> \" + individualScore[1]);\n this.scoreBoard.put(individualScore[0], individualScore[1]);\n }\n return true;\n }\n }\n return false;\n }", "title": "" } ]
4a614968dd5a534a5413bec85477f90e
changes scene to add Part View, uses the ActionEvent passed into it to identify the stage
[ { "docid": "c3f6f3ad8ca25e1764f36ed3e5532210", "score": "0.7915383", "text": "@FXML\n public void addPartView(ActionEvent event){\n \n changeScene(\"/View_Controller/AddPart_View.fxml\", event);\n }", "title": "" } ]
[ { "docid": "77b0876985dda73502b2fc1d17599723", "score": "0.73232996", "text": "@FXML\n public void MainPartsAdd(ActionEvent event) throws IOException {\n sceneChange(\"addPart.fxml\", event);\n }", "title": "" }, { "docid": "e2571cc2f8906386d541052c07b573a9", "score": "0.71082103", "text": "@FXML\n protected void onAddClick(){\n //set the scene of the current stage to itemEditor with the title \"Add a new Item\"\n StageManager sm = new StageManager();\n sm.changeScene(1, \"Add a New Item\");\n }", "title": "" }, { "docid": "6b5ea396362d4ceb988344d600d3adbd", "score": "0.68135494", "text": "@FXML\r\n private void openAppointmentAddScreen(ActionEvent event) throws IOException {\r\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AppointmentAdd.fxml\"));\r\n Scene addPartScene = new Scene(addPartParent);\r\n Stage addPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\r\n addPartStage.setScene(addPartScene);\r\n addPartStage.show();\r\n }", "title": "" }, { "docid": "3916d9104ac6d09c86f906592dfd38a0", "score": "0.67610717", "text": "public void addNewPartener(ActionEvent event) throws IOException {\n SceneChanger sc = new SceneChanger();\n sc.changeScenes(event, \"AddPartener.fxml\", \"Adaugare partener in nomenclator\");\n }", "title": "" }, { "docid": "eefded7818ed1fa922e8aa1c94b3300b", "score": "0.6653714", "text": "@FXML\n public void addPartBtn(ActionEvent e) throws IOException {\n\n Main.callForms(e, \"AddPartForm.fxml\");\n }", "title": "" }, { "docid": "3af352d3e1aa7ef3590846a7fafd4080", "score": "0.66136956", "text": "@FXML\n public void modifyPartView(ActionEvent event){\n \n if(partTable.getSelectionModel().getSelectedItem() == null)\n {\n Alert alert = new Alert(AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"You must have a selected part\");\n alert.setContentText(\"in order to modify and item you must select it in the table first\");\n\n alert.showAndWait();\n }\n else{\n \n Passable.setPartId(partTable.getSelectionModel().getSelectedItem());\n \n changeScene(\"/View_Controller/modifyPart_View.fxml\", event);\n }\n }", "title": "" }, { "docid": "4b1e8a622c2f3c3dbcdba538fa1eddf1", "score": "0.6559787", "text": "@FXML\n\tprivate void onClickButtonInfo(Event e) {\n\t\tSceneManager.addStage(getClass().getResource(\"/view/InfoView.fxml\"), e);\n\t}", "title": "" }, { "docid": "31253f0ccddf5384c3e443285d0afd98", "score": "0.6529742", "text": "@FXML\n public void modPartBtn(ActionEvent e) throws IOException {\n Part part = partTbl.getSelectionModel().getSelectedItem();\n Parent parent;\n Stage stage;\n\n if (part == null)\n showMessageDialog(null, \"Please select a part\");\n else {\n\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"ModifyPartForm.fxml\"));\n loader.load();\n ModifyPartForm selected = loader.getController();\n selected.selectedPart(partTbl.getSelectionModel().getSelectedItem());\n parent = loader.getRoot();\n stage = (Stage) ((Node) e.getSource()).getScene().getWindow();\n stage.setScene(new Scene(parent));\n stage.show();\n }\n }", "title": "" }, { "docid": "a5786c983a0ae939f20a554330388d95", "score": "0.6477485", "text": "private void addPartMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addPartMouseClicked\n \n }", "title": "" }, { "docid": "8c85717e441b3c989d7ff74dd8f24302", "score": "0.64628404", "text": "@FXML\r\n private void openAppointmentUpdateScreen(ActionEvent event) throws IOException {\r\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AppointmentUpdate.fxml\"));\r\n Scene addPartScene = new Scene(addPartParent);\r\n Stage addPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\r\n addPartStage.setScene(addPartScene);\r\n addPartStage.show();\r\n }", "title": "" }, { "docid": "a535bea69d6d56540c52110236f7669d", "score": "0.64595217", "text": "@FXML\n public void addProductView(ActionEvent event){\n changeScene(\"/View_Controller/addProduct_View.fxml\", event);\n }", "title": "" }, { "docid": "3750ce04275dabf294c3ef18dfa123dd", "score": "0.642742", "text": "public void addAdmin(ActionEvent actionEvent) throws Exception {\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"AddOutletScreen.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.show();\r\n }", "title": "" }, { "docid": "4985958a3afc91fefc29b7da8808bbae", "score": "0.6351979", "text": "private void changeScene(String path, ActionEvent event){\n try{\n Parent modView = FXMLLoader.load(getClass().getResource(path));\n\n Scene addViewScene = new Scene(modView);\n\n Stage addWindow = (Stage)(((Node)event.getSource()).getScene().getWindow());\n\n addWindow.setScene(addViewScene);\n addWindow.show();\n }\n catch(Exception e)\n {\n Alert error = new Alert(Alert.AlertType.ERROR);\n\n error.setTitle(\"Fatal Error\");\n error.setHeaderText(\"Contact your product vendor at (123)-456-7891, with error code 1234\");\n\n Optional<ButtonType> result = error.showAndWait();\n\n if(result.get() == ButtonType.OK){\n System.exit(0);\n }\n }\n \n }", "title": "" }, { "docid": "49b46378ea1632d833060c0898a5a13b", "score": "0.6305742", "text": "abstract protected void onStageCreated();", "title": "" }, { "docid": "981850f39fdf0612fb824a16f2ad725d", "score": "0.6219985", "text": "public void addStockButtonEvent(ActionEvent event)throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/StockManagement/AddItem.fxml\"));\n Stage scene2 =(Stage)((Node)event.getSource()).getScene().getWindow();\n scene2.setScene(new Scene(root,Config.width,Config.height));\n scene2.show();\n }", "title": "" }, { "docid": "e555594babcc183ace5b06a14e06fe6a", "score": "0.61723334", "text": "@FXML\n public void MainPartsModify(ActionEvent event) throws IOException {\n modifyPart = MainPartsTableView.getSelectionModel().getSelectedItem();\n modifyPartIndex = Inventory.getAllParts().indexOf(modifyPart);\n sceneChange(\"modifyPart.fxml\", event);\n\n }", "title": "" }, { "docid": "56fe1962ed2adb953ccd4220da8fb292", "score": "0.6165205", "text": "@FXML\n void handleAddTopPartBtn(ActionEvent event) {\n Part selectedPart = topPartTbView.getSelectionModel().getSelectedItem();\n //add selected part into associated part collection\n product.addAssociatedPart(selectedPart);\n //display it into bottom part tableview\n bottomPartTbView.setItems(product.getAssociatedParts());\n }", "title": "" }, { "docid": "0f78fe166bdf2faceb2589a59b5f3ccd", "score": "0.6158628", "text": "@FXML\n void addEmployee(ActionEvent event) {\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/new_employee.fxml\"));\n stage.setScene(new Scene(root, 1000, 800));\n } catch (Exception e) {\n e.getStackTrace();\n }\n }", "title": "" }, { "docid": "d894f8d55c4880e28936b53236843b29", "score": "0.6149603", "text": "@FXML\r\n public void openHomeScreen(ActionEvent event) throws IOException {\r\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"HomeScreen.fxml\"));\r\n Scene addPartScene = new Scene(addPartParent);\r\n Stage addPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\r\n addPartStage.setScene(addPartScene);\r\n addPartStage.show();\r\n }", "title": "" }, { "docid": "c641d7ca97544e483f1ab12473811957", "score": "0.6144397", "text": "@FXML\n private void onNewPlaylistClicked(){\n Stage stage = new Stage();\n Parent root;\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/app/views/NewPlaylist.fxml\"));\n root = loader.load();\n\n // need to set CSS for this node as its a new stage\n Main.setTheme(Main.currentTheme, root);\n\n NewPlaylistController controller = loader.getController();\n //pass a reference of 'this' controller into the playlist controller so it can create a new playlist\n controller.setController(this, _model);\n stage.setTitle(\"New Playlist\");\n stage.setScene(new Scene(root));\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8ef7bd41eeb2de38118d57db81c984c3", "score": "0.61397916", "text": "@FXML\n void parcels(ActionEvent event) {\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/parcels.fxml\"));\n stage.setScene(new Scene(root, 1000, 800));\n } catch (Exception e) {\n e.getStackTrace();\n }\n }", "title": "" }, { "docid": "66bffd9dc24ce9d63310ed69dc6fc369", "score": "0.61081994", "text": "@FXML\n private void enterPlanetScreen(ActionEvent event) throws IOException {\n Node node = (Node) event.getSource();\n Stage stage = (Stage) node.getScene().getWindow();\n Parent root = FXMLLoader.load(\n getClass().getResource(\"PlanetScreen.fxml\"));\n Scene scene = new Scene(root);\n stage.setScene(scene);\n stage.show();\n }", "title": "" }, { "docid": "7446704edd097a591cb3e9bfc1477f02", "score": "0.6087225", "text": "@Override\r\n public void handle(ActionEvent event) {\r\n primaryStage.setScene(scene);\r\n }", "title": "" }, { "docid": "d4a4f6765bbee464c4a1b113351275e0", "score": "0.60828334", "text": "@FXML\n public void MainProdAdd(ActionEvent event) throws IOException {\n sceneChange(\"addProduct.fxml\", event);\n\n }", "title": "" }, { "docid": "b857d74c3fd7dc53b1881836162a8eb1", "score": "0.60721356", "text": "public void saveGameButtonAction(ActionEvent actionEvent) {\n\n Game.playMenuSound();\n\n if (turnProgression == -1) {\n\n FXMLLoader loader =\n new FXMLLoader(getClass().getResource(\"SaveMenu.fxml\"));\n Parent SaveMenuFXMLParent = null;\n try {\n SaveMenuFXMLParent = loader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Scene SaveMenuFXMLScene = new Scene(SaveMenuFXMLParent);\n Stage primaryStage = new Stage();\n // This line gets the stage the 'Play' button's action event came from\n primaryStage.setScene(SaveMenuFXMLScene);\n SaveMenuGUI controller = loader.getController();\n controller.setGame(this.game);\n primaryStage.show();\n\n } else {\n\n playerTurnTag.setText(\"Please Finish your turn before you save\");\n\n }\n\n }", "title": "" }, { "docid": "b4fc8c6828f9e85bc7f1fb569385c0e7", "score": "0.60675764", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\tScenario scenario = Starter.getClient().getWorkingScenario();\r\n\t\tif(!Starter.getClient().isInMenus() && scenario != null && scenario.isEditingMode()){\r\n\t\t\tPlant plant = EntityFactory.createPlant();\r\n\t\t\tscenario.addEnvironmentObject(plant);\r\n\t\t\tfloat depthMax = scenario.getEnvironment().getTank().getWorldUnitDepth() - 0.175f;\r\n\t\t\tfloat widthMax = scenario.getEnvironment().getTank().getWorldUnitWidth() - 0.175f;\r\n\t\t\tfloat widthShift = widthMax / 2;\r\n\t\t\tfloat depthShift = depthMax / 2;\r\n\t\t\tfloat x = Main.RNG.nextFloat() * depthMax;\r\n\t\t\tfloat z = Main.RNG.nextFloat() * widthMax;\r\n\t\t\tz -= widthShift;\r\n\t\t\tx -= depthShift;\r\n\t\t\tplant.getObj().setLocalTranslation(x, 0, z);\r\n\t\t\tScenarioBuilderScreenController.unsaved_changes = true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb3b3812845ab5f216e0e997a1dbc7f7", "score": "0.60653186", "text": "public void createVpsButtonPushed(javafx.event.ActionEvent event) throws IOException {\n Parent findVpsParent = FXMLLoader.load(getClass().getResource(\"../views/mainmenuviews/\" +\n \"serveradministration/vps/CreateVpsScene.fxml\"));\n Scene findVpsScene = new Scene(findVpsParent);\n\n // get the Stage information\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n window.setScene(findVpsScene);\n window.show();\n }", "title": "" }, { "docid": "3f74c7acb1b59666801b1e41bc2c25a5", "score": "0.60652715", "text": "@FXML\n private void handleAddNewLocationPressed() {\n mainApplication.displayAddNewLocationScene();\n }", "title": "" }, { "docid": "3d360154107819c38c4bc433b1bf99b5", "score": "0.6064999", "text": "abstract protected void onSceneCreated();", "title": "" }, { "docid": "5e7017e127199b56779d6e02fd3f1f37", "score": "0.6054185", "text": "public void handleitemAddition(ActionEvent event) throws IOException {\n\n Parent addItem_page = FXMLLoader.load(getClass().getResource(\"addItems.fxml\"));\n Scene addItem_scene = new Scene(addItem_page);\n Stage addItem_stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n addItem_stage.setScene(addItem_scene);\n addItem_stage.show();\n System.out.println(\"Displaying information to console: Add Item Button Selected\");\n }", "title": "" }, { "docid": "3abc6068e0970d8663b66ecab3757206", "score": "0.6044241", "text": "private void accessoriesBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_accessoriesBtnActionPerformed\n addPart(\"Accessory\");\n }", "title": "" }, { "docid": "de6c022216b5c0ebaec81d81cc833201", "score": "0.6020158", "text": "@FXML\n\tprivate void onClickButtonSettings(Event e) {\n\t\tSceneManager.addStage(getClass().getResource(\"/view/SettingsView.fxml\"), e);\n\t}", "title": "" }, { "docid": "0076ead7fa0c5b375107824af7152079", "score": "0.5983701", "text": "@FXML\n void handleAddPartSave(ActionEvent event){\n String partName = addPartNameField.getText();\n String partInventory = addPartInventoryField.getText();\n String partPrice = addPartPriceField.getText();\n String partMax = addPartMaxField.getText();\n String partMin = addPartMinField.getText();\n String toggle = addPartInOrOutField.getText();\n if(isInputValid() == true){\n try{\n if(inHouseRadio.isSelected()){\n Inhouse inhouse = new Inhouse();\n\n inhouse.setPartID(partID);\n inhouse.setPartName(partName);\n inhouse.setPartInventory(Integer.parseInt(partInventory));\n inhouse.setPartPrice(Double.parseDouble(partPrice));\n inhouse.setPartMax(Integer.parseInt(partMax));\n inhouse.setPartMin(Integer.parseInt(partMin));\n inhouse.setPartMachineID(Integer.parseInt(toggle));\n \n Inventory.addPart(inhouse);\n } else if(outSourcedRadio.isSelected()){\n Outsourced outsourced = new Outsourced();\n \n outsourced.setPartID(partID);\n outsourced.setPartName(partName);\n outsourced.setPartInventory(Integer.parseInt(partInventory));\n outsourced.setPartPrice(Double.parseDouble(partPrice));\n outsourced.setPartMax(Integer.parseInt(partMax));\n outsourced.setPartMin(Integer.parseInt(partMin));\n outsourced.setCompanyName(toggle);\n \n Inventory.addPart(outsourced);\n }\n Stage stage = (Stage) addPartSaveButton.getScene().getWindow();\n stage.close();\n } catch(Exception e){\n e.printStackTrace();\n }\n } \n }", "title": "" }, { "docid": "d353ec5c30d8f42b1a827ce85406f04a", "score": "0.5964242", "text": "public static void changeScene(ActionEvent event, String viewName, String title, Definition selectedItem) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(new Object(){}.getClass().getResource(viewName));\n Parent root = loader.load();\n Scene scene = new Scene(root);\n scene.getStylesheets().add(\"/Views/styles.css\");\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n // Credit to https://dev.to/devtony101/javafx-3-ways-of-passing-information-between-scenes-1bm8 for intro to setUserData\n stage.setUserData(selectedItem); //Saves data to an accessible location\n stage.setScene(scene);\n stage.setTitle(title);\n stage.getIcons().add(new Image(\"/Resources/A3Logo.png\"));\n stage.show();\n }", "title": "" }, { "docid": "424acfb5a5a09d5818a56ea6b51cf06d", "score": "0.5961968", "text": "public void addNewEntry(ActionEvent event) throws Exception {\n Parent addNewParent = FXMLLoader.load(getClass().getResource(\"addNew.fxml\"));\n Scene addNewScene = new Scene(addNewParent);\n\n Stage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n window.setScene(addNewScene);\n window.show();\n }", "title": "" }, { "docid": "70304e42077e1198ce55aff8202bb87f", "score": "0.59569216", "text": "@FXML\n public void addButtonClicked(ActionEvent event) throws IOException {\n Stage stage;\n Parent root;\n if(event.getSource()==addButton)\n {\n //Open the PopUp window with implementation fields\n stage = new Stage();\n root = FXMLLoader.load(getClass().getResource(\"/rpt/GUI/Tabs/AddDialog.fxml\"));\n stage.setScene(new Scene(root)); \n stage.setTitle(\"Add\");\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initOwner(addButton.getScene().getWindow());\n stage.showAndWait();\n }\n else\n {\n stage=(Stage)removeButton.getScene().getWindow();\n stage.close();\n }\n \n }", "title": "" }, { "docid": "34c7f2edd4352e28d31b0476b7ad2b82", "score": "0.5953016", "text": "private void coolingBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_coolingBtnActionPerformed\n addPart(\"Cooler\");\n }", "title": "" }, { "docid": "b91aed5e3354febcaf6732c20216c2da", "score": "0.5949048", "text": "@FXML\r\n void mainPushed(ActionEvent event) throws IOException {\r\n\r\n Stage stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\r\n Object scene = FXMLLoader.load(getClass().getResource(\"/ViewControllers/MainScreen.fxml\"));\r\n stage.setScene(new Scene((Parent) scene));\r\n stage.show();\r\n\r\n }", "title": "" }, { "docid": "5749d2b4563afc82800a2e9aa5ea8a07", "score": "0.5947941", "text": "private void processAdd() {\n\n final EditorFXScene scene = JFX_APPLICATION.getScene();\n\n final AssetEditorDialog dialog = new FileAssetEditorDialog(this::addTexture);\n dialog.setExtensionFilter(TEXTURE_EXTENSIONS);\n dialog.setActionTester(ACTION_TESTER);\n dialog.show(scene.getWindow());\n }", "title": "" }, { "docid": "b624ad6ad9f84e9abd9b3d4e7036942e", "score": "0.5943893", "text": "public void createNewEvent(ActionEvent actionEvent) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/CreateEventScene.fxml\"));\n Parent nextSceneParent = loader.load();\n EventController eventController = loader.getController();\n eventController.getUsername(obj);\n Scene newScene = new Scene(nextSceneParent);\n Stage stage1 = new Stage();\n stage1.setTitle(\"Event Creation\");\n stage1.setScene(newScene);\n stage1.show();\n }", "title": "" }, { "docid": "7e476d69e75e6d3d4a66f963aec03af5", "score": "0.593217", "text": "private void createRoomSubScene() {\n \troomSubScene = new SpaceWarSubScene();\n mainPane.getChildren().add(roomSubScene);\n createButtonOfRoomSubScene();\n }", "title": "" }, { "docid": "285d67c663ac3bc3e3ce8d36b84be9b6", "score": "0.5908525", "text": "@FXML\n private void handleAddNewDataPointPressed() {\n mainApplication.displayAddNewDataPointScene();\n }", "title": "" }, { "docid": "d7a1920457d7ec65921bed3f7062724b", "score": "0.58695817", "text": "private void setTheScene() {\r\n\t\tcaseStudy = new CaseStudy(\"Case Study\");\r\n\t\tcaseStudyEnvironment = new CaseStudyEnvironment();\r\n\t\tcaseStudy.setCaseStudyEnvironment(caseStudyEnvironment);\r\n\t\tloadCaseStudyComboBox();\r\n\t\tlvTestCase.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n\r\n\t\t @Override\r\n\t\t public void handle(MouseEvent click) {\r\n\t\t \ttry {\r\n\t\t\t if (click.getClickCount() == 2) {\r\n\t\t\t \tString description;\r\n\t\t\t \tdescription = lvTestCase.getSelectionModel().getSelectedItem();\r\n\t\t\t \tif (!lvTestCaseSelected.getItems().contains(description)) {\r\n\t\t\t \t\tlvTestCaseSelected.getItems().add(description);\r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t\t if (click.getClickCount() == 1) {\r\n\t\t\t \tString description, sql;\r\n\t\t\t \tdescription = lvTestCase.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\tsql = caseStudyEnvironment.getCaseStudyQuerys().getSQL(description);\r\n\t\t\t\t\t\ttxaSQL.setText(sql);\r\n\t\t\t }\r\n\t\t \t} catch(Exception ex) {}\r\n\t\t }\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "07f61f098e54cab0c38917bcd14d17cf", "score": "0.58491474", "text": "@FXML\n private void changeScene(ActionEvent event) throws IOException, SQLException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"FXML.fxml\"));\n Parent waitingView = (Parent)loader.load();\n Scene scene = new Scene(waitingView);\n \n // pass information to waitingCustomers scene\n FXMLController controller = loader.getController();\n controller.initData(getCustomerService());\n \n // pass feedback to database\n this.insertFeedback();\n \n \n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\n window.setScene(scene);\n window.show(); \n }", "title": "" }, { "docid": "d4b7118f11bb98a7834d8c939438fd06", "score": "0.5832444", "text": "@FXML\n private void goToAddRecipes(ActionEvent e) throws IOException {\n Scene addR = new Scene(FXMLLoader.load(getClass().getResource(\"../sample/AddRecipe.fxml\")));\n Main.ps.setScene(addR);\n }", "title": "" }, { "docid": "98e1d77c5c661dd9d354b371e0095065", "score": "0.58299625", "text": "public DepartmentCreate(Scene scene) {\r\n\t\tthis.scene = scene;\r\n\t\tthis.createButtons();\r\n\t}", "title": "" }, { "docid": "0eb903e998be9ab0718b58a8a09b9cd7", "score": "0.58217114", "text": "private void createShipChooserSubScene() {\n \tchooseShipSubScene = new SpaceWarSubScene();\n mainPane.getChildren().add(chooseShipSubScene);\n createButtonOfShipChooserSubScene();\n }", "title": "" }, { "docid": "bd464ed08f0afc953682b7c32665d941", "score": "0.58190656", "text": "@FXML\n public void lessonButtonClicked(ActionEvent event) throws IOException {\n\n Parent layout = FXMLLoader.load(getClass().getResource(\"LessonList.fxml\"));\n Scene lessonList = new Scene(layout);\n Stage lessonStage = (Stage) ((Node)event.getSource()).getScene().getWindow();\n lessonStage.setScene(lessonList);\n lessonStage.show();\n }", "title": "" }, { "docid": "f0354b099dab9aa92692be954c644414", "score": "0.58168525", "text": "@FXML\r\n\tpublic void handlePlannerButton(ActionEvent event) {\r\n\r\n\t\ttry {\r\n\t\t\tplannerLoader = FXMLLoader.load(getClass().getResource(\"/applicationView/Planner.fxml\"));\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tStage secondStage = new Stage();\r\n\t\tScene plannerPageScene = new Scene(plannerLoader);\r\n\t\tsecondStage.setScene(plannerPageScene);\r\n\t\tsecondStage.setTitle(\"Planner\");\r\n\t\tsecondStage.show();\r\n\t}", "title": "" }, { "docid": "efc6f4854b25856efc848404b9f09818", "score": "0.5815038", "text": "public void beginCreate() {\n searchScreenUp();\n stage.show();\n }", "title": "" }, { "docid": "3429dbfead9e361e56ba67f4ef5d6a41", "score": "0.5809118", "text": "@FXML\n private void editAction(ActionEvent event) {\t\n\t\tStage stage = new Stage();\n \tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"editcourse.fxml\")); \n\n \tParent root = null;\n\t\ttry {\n\t\t\troot = (Parent)fxmlLoader.load();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t// Sets values so the ResourceEntryController knows which course it contains.\n\t\teditCourseController courseController = fxmlLoader.<editCourseController>getController();\n\t\tcourseController.setCourse(course);\n\t\tcourseController.setList(\"ready\");\n\t\tcourseController.setController(resourceController);\n \t\n\t\tScene scene = new Scene(root); \n \tstage.setScene(scene); \n \tstage.show(); \n\t}", "title": "" }, { "docid": "cee6b7dbc54d6488f86fd5af015cf975", "score": "0.58015394", "text": "public void addNewContactButtonPushed(ActionEvent event) throws IOException {\n SceneChanger sc = new SceneChanger();\n sc.changeScene(event,\"ContactForm.fxml\", \"Add new Contact\");\n }", "title": "" }, { "docid": "13c6d6a7b75b7c7eedec3ac43cc6a760", "score": "0.5796213", "text": "@FXML\n public void changescene_stack(ActionEvent event) throws IOException {\n FXMLLoader FXMLLOADER=new FXMLLoader();\n FXMLLOADER.load(getClass().getResource(\"store_keeper.fxml\").openStream());\n BorderPane bd=FXMLLOADER.getRoot();\n bd.setMaxSize(2500,700);\n hbox.getChildren().clear();\n hbox.getChildren().add(bd);\n// System.out.println(\"you have clicked me\");\n// Parent inner = FXMLLoader.load(getClass().getResource(\"store_keeper.fxml\"));\n// Scene innerscene = new Scene(inner);\n// Stage innerStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n// innerscene.getStylesheets().add(getClass().getResource(\"new.css\").toExternalForm());\n// innerStage.setScene(innerscene);\n// innerStage.show();\n\n\n }", "title": "" }, { "docid": "419f48f46992833edb7f7911294f609d", "score": "0.5795577", "text": "@FXML\n\tprivate void displayNextLevel(ActionEvent event) {\n\t\t\n\t\t\n\t\t//Gets the current stage where the event is triggered. \n\t\tStage currStage =(Stage)((Node)event.getSource()).getScene().getWindow();\n\t\n\t\tbackground.setMyStage(new MyStage());\n\t\tlvl++;\n\t\tbackground.runGameBackground();\n\t\tbackground.runLevel(lvl);\n\t\tBackground.setLevel(lvl);\n\t\t\n\t\tScene gameScene = new Scene(background.getMyStage(), 565, 798);\n\t\tmainStage.setScene(gameScene);\n\t\tmainStage.show();\n\t\t\n\t\tcurrStage.close();\n\t\thighscoreStage.close();\n\t}", "title": "" }, { "docid": "e23261a6dd0de752ecbd2090607282ad", "score": "0.57937586", "text": "private void motherboardBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_motherboardBtnActionPerformed\n addPart(\"Motherboard\");\n }", "title": "" }, { "docid": "778dd9141cec3eb8f83d873f5194bf44", "score": "0.57921356", "text": "public void butonEditarePartDinNomenclator(ActionEvent event) throws IOException {\n\n SceneChanger sc = new SceneChanger();\n Partener partenerSelectat = this.tabelParteneriTV.getSelectionModel().getSelectedItem();\n\n AddPartenerController newAddPartenerController = new AddPartenerController();\n sc.changeScenes(event, \"AddPartener.fxml\", \"Editare detalii partener\", partenerSelectat, newAddPartenerController);\n }", "title": "" }, { "docid": "3a2004a386381895ae86856b5ca657a5", "score": "0.5790767", "text": "@FXML\r\n private void addCustomerHandler(ActionEvent event) throws IOException {\r\n Stage stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n Object scene = FXMLLoader.load(getClass().getResource(\"/View/AddCustomer.fxml\"));\r\n stage.setScene(new Scene((Parent) scene));\r\n stage.show();\r\n }", "title": "" }, { "docid": "2d64b34958ac2bdd1b9a50f9defd3542", "score": "0.5788283", "text": "private void supplyBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_supplyBtnActionPerformed\n addPart(\"PSU\");\n }", "title": "" }, { "docid": "5606f4cf8e12d6480fc1bea982dc211c", "score": "0.5784041", "text": "@FXML\r\n private void addInItem(ActionEvent event) {\r\n \r\n }", "title": "" }, { "docid": "8b790e135d1095691006aa151c788ca1", "score": "0.57829165", "text": "void setNewScene(Event event, String fxmlName, String title) throws Exception {\n Parent parent = FXMLLoader.load(getClass().getResource(fxmlName + \".fxml\"));\n Scene scene = new Scene(parent);\n Stage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n window.setScene(scene);\n window.setTitle(title);\n window.show();\n }", "title": "" }, { "docid": "6fe6282979c30ff4fbba2461b2027e43", "score": "0.5778996", "text": "@FXML\n void machines(ActionEvent event) {\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/machines.fxml\"));\n stage.setScene(new Scene(root, 1000, 800));\n } catch (Exception e) {\n e.getStackTrace();\n }\n }", "title": "" }, { "docid": "a271048e0636dc0b4af7f12be709ab5b", "score": "0.57741505", "text": "@FXML\r\n void addNewSub(ActionEvent event) {\r\n \r\n model.addNewCourse(txtCourseSub.getText().toUpperCase(),\r\n \t\t\tInteger.valueOf(txtGrade.getText()),\r\n \t\t\tmapHSubject);\t\r\n \t\r\n \tLauncher.openTabCourse();\r\n }", "title": "" }, { "docid": "b81ab7eb3cffd173e7c48275440e055e", "score": "0.5763803", "text": "public void onPractiseModePushed(ActionEvent event) {\n\n\t\ttry {\n\t\t\tParent viewParent = FXMLLoader.load(getClass().getResource(\"/view/PractiseStart.fxml\"));\n\t\t\tScene viewScene = new Scene(viewParent);\n\t\t\tStage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\t\t\twindow.setScene(viewScene);\n\t\t\twindow.setResizable(false);\n\t\t\twindow.show();\n\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\ta.setAlertType(AlertType.ERROR); \n\t\t\ta.show(); \n\t\t\ta.setHeaderText(\"File Reading Error\");\n\t\t\ta.setContentText(\"Please check the file arrangment\");\n\t\t}\n\t}", "title": "" }, { "docid": "091fc6ca1ef292723386c3e161ca490b", "score": "0.576199", "text": "@FXML\n void addMS(ActionEvent event) {\n\n MovieShow ms = new MovieShow();\n msgObject msg = new msgObject(\"AddMovieShow\");\n\n\n }", "title": "" }, { "docid": "d803cf0f823267d4c63a20b40b37df09", "score": "0.57494456", "text": "public void changeScene(ActionEvent event) throws IOException {\r\n Stage stage = null;\r\n Parent nextScene = null;\r\n\r\n //this checks which button has been pressed and goes to the appropriate page\r\n if(event.getSource() == helpButton) {\r\n stage = (Stage) helpButton.getScene().getWindow();\r\n nextScene = FXMLLoader.load(getClass().getResource(\"Help.fxml\"));\r\n } else if(event.getSource() == infoButton){\r\n stage = (Stage) infoButton.getScene().getWindow();\r\n nextScene = FXMLLoader.load(getClass().getResource(\"FishingInfo.fxml\"));\r\n } else if(event.getSource() == jobListingButton){\r\n stage = (Stage) jobListingButton.getScene().getWindow();\r\n nextScene = FXMLLoader.load(getClass().getResource(\"JobListings.fxml\"));\r\n //this one has to check which type of user is using the system before it can go to the correct page\r\n } else if(event.getSource() == viewJobsButton){\r\n stage = (Stage) viewJobsButton.getScene().getWindow();\r\n //if the user is a fisher\r\n if(MyFishingPal.currentUser instanceof Fisher)\r\n {\r\n //go to the fisher view\r\n nextScene = FXMLLoader.load(getClass().getResource(\"FisherView.fxml\"));\r\n }\r\n //if the user is an intermediary\r\n else\r\n {\r\n nextScene = FXMLLoader.load(getClass().getResource(\"IntermediaryView.fxml\"));\r\n }\r\n } else if(event.getSource() == profileButton){\r\n stage = (Stage) profileButton.getScene().getWindow();\r\n nextScene = FXMLLoader.load(getClass().getResource(\"Profile.fxml\"));\r\n }\r\n assert nextScene != null;\r\n Scene scene = new Scene(nextScene);\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "title": "" }, { "docid": "f5d0d334d2f6e9074091edb67b0b0a49", "score": "0.5743975", "text": "private void aggiungiCasello(ActionEvent e){\n Stage stage = new Stage();\n Parent root = null;\n try {\n root = FXMLLoader.load(\n getClass().getResource(\"../../View/addCasello.fxml\"));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n stage.setScene(new Scene(root));\n stage.setTitle(\"Aggiungi Casello\");\n stage.initModality(Modality.WINDOW_MODAL);\n stage.initOwner(\n ((Node) e.getSource()).getScene().getWindow() );\n stage.show();\n //Evento chiusura del modale\n stage.setOnHiding((WindowEvent event1) -> {\n this.refreshCaselli();\n });\n }", "title": "" }, { "docid": "4ee520e714ce7be3b210162abc53bc23", "score": "0.5737117", "text": "public void stageEvent(int stage) {\r\n\t\t if (stage != Holdem.PREFLOP) {\r\n\t\t\tactions += \"/\" ;\r\n\t\t }\r\n\t }", "title": "" }, { "docid": "1b92232cb8e5f3f536fc90674547835f", "score": "0.57363003", "text": "private void placeStage(QCircuitJInternalFrame frame, Stage stage) {\n if (stage==null) {\n return;\n }\n QCircuitJPanel qcj = frame.getQCircuitJPanel();\n java.util.List<Stage> stages = qcj.getQCircuit().getStages();\n int selected = stages.indexOf(qcj.getSelectedStage());\n if (selected > -1) {\n stages.add(selected, stage);\n } else {\n stages.add(stage);\n }\n qcj.repaint();\n qcj.revalidate();\n }", "title": "" }, { "docid": "ccb9271160cd62373232e4f3090e18d7", "score": "0.5727927", "text": "public void onGameModePushed(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tParent viewParent;\n\t\t\tif (GameData.getCatSelected()) {\n\t\t\t\tviewParent = FXMLLoader.load(getClass().getResource(\"/view/ChooseCategories.fxml\"));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tviewParent = FXMLLoader.load(getClass().getResource(\"/view/ClueGrid.fxml\"));\n\t\t\t}\n\t\t\tScene viewScene = new Scene(viewParent);\n\t\t\tStage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\t\t\twindow.setScene(viewScene);\n\t\t\twindow.setResizable(false);\n\t\t\twindow.show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\n\t\t\ta.setAlertType(AlertType.ERROR); \n\t\t\ta.show(); \n\t\t\ta.setHeaderText(\"File Reading Error\");\n\t\t\ta.setContentText(\"Please check the file arrangment\");\n\t\t}\n\t}", "title": "" }, { "docid": "afe34431d369fd121c389f6b1f1cece2", "score": "0.5721291", "text": "@FXML\n private void onCreateButtonClicked() {\n CreateEventController.editing = false;\n changeScene(\"CreateEvent\");\n }", "title": "" }, { "docid": "7e1e7f22ecf2409cbafcbf1d2bbf9f9b", "score": "0.5716896", "text": "public void added(IScene scene) {\n this.scene = scene;\n }", "title": "" }, { "docid": "8724e66982342e7b6639c7e9ba4861e2", "score": "0.5707413", "text": "@FXML\n private void onEditButtonClicked() {\n // If selected event is not null\n if (selectedEvent != null) {\n // Set current event to selected event\n Event.currentEvent = selectedEvent;\n // Set event is being edited\n CreateEventController.editing = true;\n changeScene(\"CreateEvent\");\n }\n }", "title": "" }, { "docid": "12905d328d068cf64b2a926c8df1ced3", "score": "0.57073027", "text": "private void caseBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caseBtnActionPerformed\n addPart(\"PCCase\");\n }", "title": "" }, { "docid": "ff7c6af1b873451f4cdabaf87211290d", "score": "0.5705924", "text": "public void passControl(Controller controller, ActionEvent e){\n View newView = controller.getView();\n Window window = ((Node)e.getSource()).getScene().getWindow();\n \n double height = window.getHeight();\n double width = window.getWidth();\n double x = window.getX();\n double y = window.getY();\n\n //change to new scene of controlller\n Stage primaryStage = (Stage)((Node)e.getSource()).getScene().getWindow();\n primaryStage.setScene(newView.getScene());\n \n //keeps window size constant\n primaryStage.setWidth(width);\n primaryStage.setHeight(height);\n primaryStage.setX(x);\n primaryStage.setY(y);\n primaryStage.setMaximized(true);\n\n }", "title": "" }, { "docid": "e69e2623fe768975261759c33e0cab65", "score": "0.5700595", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(v.getContext(), AddSceneActivity.class);\n\t\t\t\tstartActivityForResult(intent, SCENE_ADD_REQUEST_CODE);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "5348b5dd9cc26fd6d3d254c6b042291a", "score": "0.56944025", "text": "public void selectView(ActionEvent actionEvent) {\n }", "title": "" }, { "docid": "606153227b12a06b0b48f3964b99361f", "score": "0.56893647", "text": "public void addElement(String viewName) {\n\t\ttry {\n\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(Main.class.getResource(VIEWPATH + viewName));\n\t\t\tAnchorPane newView = loader.load();\n\t\t\tnewView.setPrefHeight(DEFAULTHEIGHT);\n\t\t\tnewView.setPrefWidth(DEFAULTWIDTH);\n\n\t\t\tSceneLoader sceneLoader = loader.getController();\n\t\t\tsceneLoader.loadScene(this);\n\t\t\tthis.mainStackPane.getChildren().add(newView);\n\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e4be198670253b4dd3c8f111c2be0fa5", "score": "0.56871116", "text": "public void findButtonPushed(javafx.event.ActionEvent event) throws IOException {\n Parent findVpsParent = FXMLLoader.load(getClass().getResource(\"../views/mainmenuviews/\" +\n \"serveradministration/vps/FindVpsScene.fxml\"));\n Scene findVpsScene = new Scene(findVpsParent);\n\n // get the Stage information\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n window.setScene(findVpsScene);\n window.show();\n }", "title": "" }, { "docid": "16c3d53bc41f538751b60daca22d7c9f", "score": "0.56864005", "text": "public void modfSceneRender(Stage nuevaStage, Poi poi){\n\t\tthis.poi = poi;\n\t\ttry{\n\t\t\tstg = nuevaStage;\n\t\t\t// Carga archivo FXML q tiene la interfaz\n\t\t\tloader = new FXMLLoader(getClass().getResource(\"modifSceneCampos.fxml\"));\n\t\t\t\n\t\t\t//loader.setLocation(getClass().getResource(\"modifSceneCampos.fxml\"));\n\t\t\tloader.setController(this);\n\t\t\trootLayout = loader.load();\n\t\t\t\n\t\t\tnombre.setText(poi.getNombre());\n\t\t\tcPrincipal.setText(poi.getDireccion().getCallePrincipal());\n\t\t\tcIzquierda.setText(poi.getDireccion().getCalleLateralIzq());\n\t\t\tcDerecha.setText(poi.getDireccion().getCalleLateralDer());\n\t\t\taltura.setText(\"\" + poi.getDireccion().getAltura());\n\t\t\tbarrio.setText(poi.getDireccion().getBarrio());\n\t\t\tlatitud.setText(\"\" + poi.getGeoloc().getLatitud());\n\t\t\tlongitud.setText(\"\" + poi.getGeoloc().getLongitud());\n\t\t\t// Creo Scene y la configuro\n\t\t\tScene scene = new Scene(rootLayout);\n\t\t\t//Stage a abrirse\n\t\t\tnuevaStage.setScene(scene);\n\t\t\ttipo.setText(poi.getTipo());\n\t\t\tnuevaStage.show();\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "18e0f1eabfced1d787697481731de888", "score": "0.56857795", "text": "@FXML\n void handleMainPageAction(ActionEvent actionEvent) {\n try {\n Stage primaryStage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\n primaryStage.setScene(mainScene);\n } catch (Exception e) {\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "83e71c0ffd266537545d2be5131c0ce3", "score": "0.5673935", "text": "@FXML\n public void backButtonAction(ActionEvent actionEvent) throws IOException {\n Game.playMenuSound();\n FXMLLoader loader =\n new FXMLLoader(getClass().getResource(\"MainMenuGUI.fxml\"));\n Parent mainMenuFXMLParent = loader.load();\n Scene mainMenuFXMLScene = new Scene(mainMenuFXMLParent);\n Stage primaryStage =\n (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n // This line gets the stage the 'Play' button's action event came from\n primaryStage.setScene(mainMenuFXMLScene);\n MainMenuGUI controller = loader.getController();\n controller.setGame(this.game);\n primaryStage.show();\n }", "title": "" }, { "docid": "9b6bff78c3a03dda57a4349d181c7ff7", "score": "0.5673486", "text": "@Override\n\tpublic void onShowScene() {\n\n\t}", "title": "" }, { "docid": "9dc98bf7586ca1fd3875307cf1d9656d", "score": "0.5672756", "text": "public void stockManagementButtonEvent(ActionEvent event)throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/StockManagement.fxml\"));\n Stage scene2 =(Stage)((Node)event.getSource()).getScene().getWindow();\n scene2.setScene(new Scene(root,Config.width,Config.height));\n scene2.show();\n }", "title": "" }, { "docid": "2cec69849e7a8d43dee6d2789336d773", "score": "0.5672302", "text": "public void StockDetailsButtonEvent(ActionEvent event)throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/StockManagement/StockDetails.fxml\"));\n Stage scene2 =(Stage)((Node)event.getSource()).getScene().getWindow();\n scene2.setScene(new Scene(root,Config.width,Config.height));\n scene2.show();\n }", "title": "" }, { "docid": "570893c6324e4ec9a928a81ff8c3eb12", "score": "0.56692684", "text": "private Pane getScene(Stage stage){\n Pane pane = new Pane();\n VBox container = new VBox();\n HBox buttonContainer = new HBox();\n buttonContainer.getStyleClass().add(getResourceValue(\"hboxStyle\"));\n setButtonActions(buttonContainer, stage);\n createText(container);\n container.getChildren().add(buttonContainer);\n container.getStyleClass().add(getResourceValue(\"vboxStyle\"));\n pane.getChildren().add(container);\n return pane;\n }", "title": "" }, { "docid": "78cb37d431236e4be339ebbbf5616fc5", "score": "0.5667039", "text": "public void createGame(ActionEvent actionEvent) {\n //Create and instantiate player array list\n ArrayList<Player> playerList = getPlayerList();\n //create engine\n engine = new PokerEngine(playerList);\n //change scene to game scene\n changeScene((Stage) CreateGameBtn.getScene().getWindow(), \"../views/poker-game-scene.fxml\");\n }", "title": "" }, { "docid": "b71c5f31619eacbe2574736180d95ffe", "score": "0.5659894", "text": "@FXML\n public void PaymentButton(ActionEvent event) throws IOException\n {\n System.out.print(totalTag);\n// totalTag.setOpacity(1);\n Parent tableViewParent = FXMLLoader.load(getClass().getResource(\"Payment.fxml\"));\n Scene tableViewScene = new Scene(tableViewParent);\n\n //This line gets the Stage information\n Stage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\n window.setScene(tableViewScene);\n window.show();\n }", "title": "" }, { "docid": "a5289b78638d30b392a21d075fead8a1", "score": "0.5656547", "text": "public static void changeScene(ActionEvent event, String viewName, String title) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(new Object(){}.getClass().getResource(viewName));\n Parent root = loader.load();\n Scene scene = new Scene(root);\n scene.getStylesheets().add(\"/Views/styles.css\");\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setTitle(title);\n //stage.getIcons().add(new Image(\"file:resources/images/icon.png\"));\n stage.show();\n }", "title": "" }, { "docid": "98e8870dec1c4b06e0b13a86b70a5451", "score": "0.56494045", "text": "public void showAddRecipeStage()\n\t{\n\t\tingTD.clear();\n\t\tingredientsTbl.setItems(ingTD);\n\t\tnameTF.clear();\n\t\tservesTF.clear();\n\t\tstepsTA.clear();\n\t\tremarksTF.clear();\n\n\t\tactionHBox.getChildren().setAll(addBT,cancelBT);\n\t\tingredientsHBox.getChildren().setAll(ingredientsLblAndTbl,ingredientButtons);\n\t\troot.getChildren().setAll(nameHBox,servesHBox,ingredientsHBox,stepsHBox,remarksHBox,actionHBox);\n\n\t\taddBT.setOnAction(e ->{\n\t\t\ttry {\n\t\t\t\tint rID = recipeDSC.addRecipe(nameTF.getText(), Integer.parseInt(servesTF.getText()), stepsTA.getText(), remarksTF.getText());\n\t\t\t\tRecipe r = recipeDSC.find(rID);\n\t\t\t\tfor(Ingredient I : ingTD) {\n\t\t\t\t\tr.addIngredient(I);\n\t\t\t\t\trecipeDSC.addIngredient(I,rID);\n\t\t\t\t}\n\t\t\t\ttableData.add(r);\n\t\t\t\tstage.close();\n\t\t\t}catch(Exception exc)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"could not add recipe using those values\");\n\t\t\t\tSystem.out.println(exc.toString());\n\t\t\t}\n\t\t});\n\n\t\tscene.setRoot(root);\n\n\t\tstage.setScene(scene);\n\t\tstage.show();\n\t}", "title": "" }, { "docid": "4a0292315dadb2e1f2e32d7dd95d0155", "score": "0.56444985", "text": "public void createNewSale(ActionEvent actionEvent) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/CreateSaleScene.fxml\"));\n Parent nextSceneParent = loader.load();\n SaleController saleController = loader.getController();\n saleController.getUsername(obj);\n Scene newScene = new Scene(nextSceneParent);\n Stage stage1 = new Stage();\n stage1.setTitle(\"Sale Creation\");\n stage1.setScene(newScene);\n stage1.show();\n }", "title": "" }, { "docid": "31a05330224b5194b829e2f0619078c8", "score": "0.56438076", "text": "@FXML\n public void doneEditAction()\n {\n if (this.isEditing()) {\n Story story = Workspace.getStory(currentItem);\n //Return to sprint if the story is in one\n if (story.hasSprint()) {\n Sprint sprint = Workspace.getSprint(story.associatedSprints().get(0));\n try {\n WindowController.instance.setMainView(ItemType.SPRINT, sprint.getShortName());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n displayView();\n WindowController.instance.updateGUI();\n WindowController.instance.updateList(ItemType.STORY);\n WindowController.sideDisplayListController().setListItem(Workspace.getStoryName(currentItem), ItemType.STORY);\n clearErrorNotification();\n }\n } else {\n editView();\n }\n\n }", "title": "" }, { "docid": "e8b14fb3c69a3cd301e30f31d0e1931e", "score": "0.56428325", "text": "public void newsClick(ActionEvent actionEvent) throws IOException {\n\n Parent tableViewParent = FXMLLoader.load(getClass().getResource(\"newsPage.fxml\"));\n Scene tableViewScene = new Scene(tableViewParent);\n\n //This line gets the Stage information\n Stage window = (Stage)((Node)actionEvent.getSource()).getScene().getWindow();\n\n window.setScene(tableViewScene);\n tableViewScene.getStylesheets().add(Controller.class.getResource(\"guiStyling.css\").toExternalForm());\n window.show();\n }", "title": "" }, { "docid": "a19cdcc7b2a7e07898e6404195ef4820", "score": "0.56248176", "text": "@FXML\n public void changescene_brand(ActionEvent event) throws IOException {\n FXMLLoader FXMLLOADER=new FXMLLoader();\n FXMLLOADER.load(getClass().getResource(\"brandclass.fxml\").openStream());\n BorderPane bd=FXMLLOADER.getRoot();\n bd.setMaxSize(2500,700);\n hbox.getChildren().clear();\n hbox.getChildren().add(bd);\n// System.out.println(\"you have clicked me\");\n// Parent inner = FXMLLoader.load(getClass().getResource(\"brandclass.fxml\"));\n// Scene innerscene = new Scene(inner);\n// Stage innerStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n// innerscene.getStylesheets().add(getClass().getResource(\"new.css\").toExternalForm());\n// innerStage.setScene(innerscene);\n// innerStage.show();\n\n\n }", "title": "" }, { "docid": "c01bb85f757ed67ae6ce25538438bee7", "score": "0.5624476", "text": "private void ramBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ramBtnActionPerformed\n addPart(\"RAM\");\n }", "title": "" }, { "docid": "5ee3c2d20210d9f6fbb87119bdafb579", "score": "0.56203663", "text": "@Override\r\n\t\t\tpublic void onClick(int button) {\n\t\t\t\tApp game=(App)Gdx.app.getApplicationListener();\r\n\t\t\t\t((FightScreen)game.currentScreen).enterState(3);\r\n\t\t\t\twindow.setVisible(false);\r\n\t\t\t\tMagicSelectWindow magic=new MagicSelectWindow(window.model);\r\n\t\t\t\t((FightScreen)game.currentScreen).guiMgr.addActor(magic);\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "050b501f5326596568029c97b91b2346", "score": "0.5616311", "text": "@FXML\n void openNewItem(ActionEvent event) {\n switchSceneNew(event);\n }", "title": "" }, { "docid": "0e453075663693d2cc66caff23502d91", "score": "0.56123275", "text": "public void successShape (Stage stage, Pane pane, Rectangle rect) {\n \n //Create a scene\n Scene scene = new Scene(pane, 250,150);\n stage.setTitle(\"Successful Setup Dialog Box\");\n stage.setScene(scene); // Place the scene on the stage\n stage.show();\n \n }", "title": "" }, { "docid": "18f63da6fcf83a07b5bbb5b2e5589783", "score": "0.5611759", "text": "@Override\n public void start(Stage stage){\n Scene scene = scenes.get(\"mainScene\"); \n stage.setScene(scene); \n stage.setTitle(\"Meter Archive\"); \n stage.show(); \n }", "title": "" }, { "docid": "09985c3eee69ea925f3cc306bae01fc7", "score": "0.5602634", "text": "public void openMainScreen(ActionEvent actionEvent) {\n Stage primaryStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n primaryStage.setScene(mainScreen);\n }", "title": "" }, { "docid": "a495f0874290f7404a027592b49cfcbe", "score": "0.5601512", "text": "public void addOverlay() {\n Parent root;\n Stage stage;\n FXMLLoader loader;\n\n loader = new FXMLLoader(getClass().getResource(\"/FXML/admin/MapBuilderOverlay.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ie) {\n ie.printStackTrace();\n return;\n }\n nodeModify = null;\n clearCircles();\n firstSelect = null;\n secondSelect = null;\n mapBuilderOverlayController = loader.getController();\n mapBuilderOverlayController.startUp(mapBuilderController);\n edgeSelected = false;\n modifyingNode = false;\n isNewNode = false;\n nodeState = 0;\n formOverlayPane.setLeft(root);\n }", "title": "" } ]
9832521ffcb7b6dce6419ecc68bbc445
Loads the configuration file with the given input stream
[ { "docid": "24b5d1bcbf41ede901fe9489c2bc4514", "score": "0.65465856", "text": "public void load(InputStream inputStream) {\n try {\n read(yaml.load(new UnicodeReader(inputStream)));\n } catch (ConfigurationException e) {\n root = new HashMap<String, Object>();\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "title": "" } ]
[ { "docid": "437e072dca1a3b31541ac97301bc666d", "score": "0.79730266", "text": "public InputStream loadConfiguration();", "title": "" }, { "docid": "7f237bef6a29f4ebed5da7efd8edb8a6", "score": "0.7497756", "text": "void loadConfiguration(final InputStream configurationStream) throws ConfigurationException;", "title": "" }, { "docid": "0f2df7b6b85212d6bb70581ee2d87558", "score": "0.7072512", "text": "private void loadConfigs(InputStream input) {\n Properties prop = new Properties();\n try {\n prop.load(input);\n this.backendUrl = prop.getProperty(\"backend_url\");\n this.backendServiceUrl = prop.getProperty(\"backend_service_url\");\n this.backendPassword = prop.getProperty(\"backend_password\");\n this.backendUsername = prop.getProperty(\"backend_username\");\n this.ssoKeyStoreName = prop.getProperty(\"sso_keystore_file_name\");\n this.ssoKeyStorePassword = prop.getProperty(\"sso_keystore_password\");\n this.ssoCertAlias = prop.getProperty(\"sso_certificate_alias\");\n this.ssoRedirectUrl = prop.getProperty(\"sso_redirect_url\");\n this.allowedUserRole = prop.getProperty(\"allowed_user_role\");\n this.allowedAdminRole = prop.getProperty(\"allowed_admin_role\");\n this.trustStoreFile = prop.getProperty(\"trust_store_file_name\");\n this.trustStorePassword = prop.getProperty(\"trust_store_password\");\n this.trustStoreFileService = prop.getProperty(\"trust_store_file_service_name\");\n this.trustStorePasswordService = prop.getProperty(\"trust_store_service_password\");\n\n\n } catch (FileNotFoundException e) {\n logger.error(\"The configuration file is not found\");\n } catch (IOException e) {\n logger.error(\"The File cannot be read\");\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n logger.error(\"The File InputStream is not closed\");\n }\n }\n }\n\n }", "title": "" }, { "docid": "f47b43ea8d297cbe41c758464a181804", "score": "0.70376784", "text": "public static void configInputStream(InputStream stream) {\r\n\t\tinputSt = stream;\r\n\t\tscanner = new Scanner(stream);\r\n\t}", "title": "" }, { "docid": "780b65f1d6014367c16527876018e4cb", "score": "0.65787363", "text": "public void init(InputStream is, Configuration conf) throws IOException {\n this.delimiter = conf.get(FORMAT_DELIMITER, DEFAULT_DELIMITER);\n this.separator = conf.get(FORMAT_SEPARATOR, DEFAULT_SEPARATOR);\n this.isZipFile = conf.getBoolean(IS_ZIPFILE, DEFAULT_ZIP);\n if (isZipFile) {\n @SuppressWarnings(\"resource\")\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(is));\n zis.getNextEntry();\n is = zis;\n }\n this.is = is;\n this.in = new BufferedReader(new InputStreamReader(is));\n }", "title": "" }, { "docid": "81deaf6ab8ad131cf28b04b4be44d49c", "score": "0.65381855", "text": "public InputStream load(String configName) throws StorageException;", "title": "" }, { "docid": "2e547d158093a9b7cc6c2698b46f58c1", "score": "0.6523762", "text": "public boolean loadDefaults(InputStream filestream) {\n try {\n setDefaults(loadConfiguration(filestream));\n clearCache();\n return true;\n } catch (Exception ex) {\n exception = ex;\n return false;\n }\n }", "title": "" }, { "docid": "f6584d00beca1b3d7793ea0717125754", "score": "0.6511965", "text": "public void load(InputStream stream) {\r\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\t\t\tsaxParser.parse(stream, this);\r\n\t\t} catch (Throwable t) {\r\n\t\t\tFreemarkerCorePlugin.log(t);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5a1f12dd07703a7685cf5ad15322d6e9", "score": "0.64866644", "text": "public void load(InputStream paramInputStream) throws IOException {\n\t\t\r\n\t}", "title": "" }, { "docid": "c7855b49d4593edb4041b63cb3c33c4e", "score": "0.6429721", "text": "public abstract void loadFromFile(InputStream stream) throws IOException;", "title": "" }, { "docid": "9681679f8764593809babdd3b737836a", "score": "0.63465124", "text": "public interface ConfigurationLoader {\n\n /**\n * Loads the configuration from the source.\n * \n * @return the input stream of the configuration\n */\n public InputStream loadConfiguration();\n}", "title": "" }, { "docid": "ccf8abee90a7a9689a05f6b5dc8679aa", "score": "0.6330197", "text": "public void initialize(InputStream in) throws IOException;", "title": "" }, { "docid": "09c5936b7bedbfd406e5684331105c07", "score": "0.6274711", "text": "private void loadXMLConfiguration(InputStream is) throws JAXBException {\r\n\t\t// load from XML bean (IQMConfig) using ObjectFactory\r\n\t\tSystem.out.println(\"IQM: Loading configuration from input stream \" + is.toString()\r\n\t\t\t\t+ \"...\");\r\n\t\tthis.validate();\r\n\t\tthis.iqmConfiguration = (IQMConfig) unmarshaller.unmarshal(is);\r\n\t}", "title": "" }, { "docid": "5cc16268eb78e38fcd5d2a6f0ac99c43", "score": "0.6252342", "text": "@Override\n public void loadFromStream(InputStream inputStream) throws IOException {\n }", "title": "" }, { "docid": "7a3b9b3ad8d2b879d892fba3e4f96045", "score": "0.6215538", "text": "public void load(InputStream in) throws IOException {\n\t\tloadImpl(in);\n\t}", "title": "" }, { "docid": "fc3d0a97a636820bb90cfd651f93778a", "score": "0.6093834", "text": "private void loadConfig(String configFile) {\n try (BufferedInputStream stream = new BufferedInputStream(\n new FileInputStream(configFile))) {\n stiamSettings = new Properties();\n stiamSettings.load(stream);\n logger.info(\"Successfully loaded configuration from {}!\",\n configFile);\n } catch (IOException e) {\n stiamSettings = null;\n }\n }", "title": "" }, { "docid": "fb19fe9ff5c3e65baf91fd9e6e5ac25b", "score": "0.6088568", "text": "public void load(InputStream in) {\n try {\n super.load(in);\n in.close();\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "3a840420dd2f015e79cb87a785bba070", "score": "0.60806817", "text": "public void readConfiguration(InputStream inputStream) throws IOException, SecurityException {\n try {\n checkAccess();\n configured.set(true);\n final String confClassName = tryGetProperty(\"org.jboss.logmanager.configurator\", null);\n Configurator configurator = null;\n if (confClassName != null) {\n configurator = construct(Configurator.class, confClassName);\n } else {\n final ClassLoader tccl = Thread.currentThread().getContextClassLoader();\n if (tccl != null) {\n final ServiceLoader<Configurator> loader = ServiceLoader.load(Configurator.class, tccl);\n final Iterator<Configurator> iterator = loader.iterator();\n if (iterator.hasNext()) {\n configurator = iterator.next();\n }\n }\n if (configurator == null) {\n final ServiceLoader<Configurator> loader = ServiceLoader.load(Configurator.class, LogManager.class.getClassLoader());\n final Iterator<Configurator> iterator = loader.iterator();\n if (iterator.hasNext()) {\n configurator = iterator.next();\n } else {\n configurator = new PropertyConfigurator();\n }\n }\n }\n if (configurator != null) try {\n configurator.configure(inputStream);\n LogContext.getSystemLogContext().getLogger(\"\").attach(Configurator.ATTACHMENT_KEY, configurator);\n } catch (Throwable t) {\n StandardOutputStreams.printError(t, \"Failed to read or configure the org.jboss.logmanager.LogManager\");\n }\n } finally {\n try {\n inputStream.close();\n } catch (Throwable ignored) {}\n }\n }", "title": "" }, { "docid": "15592c782a380e88ce36eb52abbf2ca2", "score": "0.60527706", "text": "public Configuration(File loadFrom) throws InvalidPropertiesFormatException, FileNotFoundException, IOException {\n\t\tpropertyFile = loadFrom;\n\t\tisXML = loadFrom.getName().endsWith(\".xml\");\n\n\t\tif (isXML)\n\t\t\tloadFromXML(new FileInputStream(loadFrom));\n\t\telse\n\t\t\tload(new FileInputStream(loadFrom));\n\t}", "title": "" }, { "docid": "3497c383a24c840c6228f0b0326680fe", "score": "0.60262585", "text": "Configuration(Configuration parent, String name, StringInputStream input)\n throws IOException {\n this.parent = parent;\n this.name = name;\n config = new HashMap<String, Object>();\n requested = new HashSet<String>();\n new ParseAction().doForInput(input);\n }", "title": "" }, { "docid": "a9dc3440546471b991b8dde9dd2610cd", "score": "0.6010586", "text": "@Test\r\n public void testLoadFromStream() throws Exception {\r\n Cfg cfg = new Cfg(CfgLoadStoreTest.class.getResourceAsStream(\"/test-01.properties\"));\r\n Assert.assertEquals(\"value-01\", cfg.getString(\"mykey\"));\r\n\r\n cfg = new Cfg(CfgLoadStoreTest.class.getResourceAsStream(\"test-03.properties\"));\r\n Assert.assertEquals(\"value-03\", cfg.getString(\"mykey\"));\r\n }", "title": "" }, { "docid": "777ae3889681ee73b5a53ca970608b46", "score": "0.60086226", "text": "public void load(InputStream fileStream)\r\n throws IOException, SAXException, ParserConfigurationException, \r\n DOMException, ClassNotFoundException, InstantiationException, \r\n IllegalAccessException, ConfigurationException;", "title": "" }, { "docid": "d36cc70ab3808dbf3d3bcd3d751bac57", "score": "0.59987986", "text": "@Override\n\tpublic void loadFrom(InputStream arg0) throws IOException {\n\t\t\n\t}", "title": "" }, { "docid": "07b614a624660ec06320aace528fee68", "score": "0.598491", "text": "public static InputStream config(final InputStream in, final String configName) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(new InputStreamReader(in))) {\n\t\t\tString config = \"\";\n\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tif (!config.isEmpty() && line.matches(\"====.*\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (config.isEmpty() && line.matches(\"-----*\\\\s*CONFIG\\\\s+\" + configName + \"\\\\s*-----*\")) {\n\t\t\t\t\tconfig += \" \"; // activate.\n\t\t\t\t\tcontinue; // skip to next line/don't include marker.\n\t\t\t\t}\n\t\t\t\tif (!config.isEmpty()) {\n\t\t\t\t\tconfig += line + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn new ByteArrayInputStream(config.trim().getBytes(Charset.forName(\"UTF-8\")));\n\t\t}\n\t}", "title": "" }, { "docid": "1c84c3a0dd59a75d1d2b2c5f95a9d6ce", "score": "0.5943185", "text": "public static void loadProperties( InputStream stream ) throws IOException\n {\n \n CcdpUtils.parser = new CcdpConfigParser( stream );\n \n // now we can load the image configuration\n CcdpUtils.loadImageInfo();\n }", "title": "" }, { "docid": "aa1b15f7d1951a232772dbf51b83bcfd", "score": "0.58984524", "text": "InputStream getClassLoaderConfig() throws IOException;", "title": "" }, { "docid": "d71d56607184dab595a8a0aa4e98f160", "score": "0.5853557", "text": "public void init() {\n\t\tConfiguration annotations = this.getClass().getAnnotation(Configuration.class);\n\t\tString value = annotations.value();\n\t\t\n\t\t\n\t\tif(value==null||value.isEmpty())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"configuration file required!\");\n\t\t}\n\n\t\tInputStream resource = this.getClass().getClassLoader().getResourceAsStream(\t\tvalue);\n\t\tGson gson = new Gson();\n\t\tConfiguationEntity conf = gson.fromJson(new InputStreamReader(resource), ConfiguationEntity.class);\n\t\t\n\t\n\t\t\tthis.initFromConfiguation(conf);\n\t\t\n\t}", "title": "" }, { "docid": "88da80d387ae46741656100e5a059703", "score": "0.5839128", "text": "public HdfsFileInputStream(FileInStream inputStream, Statistics stats) {\n super(inputStream, stats);\n }", "title": "" }, { "docid": "a92efc04829e3b62861c3ddc658dda47", "score": "0.58381104", "text": "public Pair<String, Bean<? extends Configuration>> load(InputStream stream,\n\t\t\tString encoding) throws IOException, DocUtil.XMLException {\n\t\tInputStreamReader reader = new InputStreamReader(stream, encoding);\n\t\tBufferedReader buffered = new BufferedReader(reader);\n\t\tStringWriter stringWriter = new StringWriter();\n\t\tPrintWriter writer = new PrintWriter(stringWriter);\n\t\tboolean xml = false;\n\t\tString line = buffered.readLine();\n\t\tboolean firstLine = true;\n\t\twhile (line != null) {\n\t\t\tif (firstLine && line.length() > 0 && line.charAt(0) == BOM) {\n\t\t\t\tline = line.substring(1);\n\t\t\t}\n\t\t\txml |= line.trim().startsWith(\"<?xml\");\n\t\t\twriter.println(line);\n\t\t\tline = buffered.readLine();\n\t\t}\n\t\twriter.close();\n\t\tString source;\n\t\tBean<? extends Configuration> configuration = createNewConfiguration();\n\t\tif (xml) {\n\t\t\tInputStream inputStream = new ByteArrayInputStream(stringWriter\n\t\t\t\t\t.toString().getBytes(encoding));\n\t\t\ttry {\n\t\t\t\tDocument document = DocUtil.readDocument(inputStream, encoding);\n\t\t\t\tsource = DocUtil.evaluateCDATA(document, \"/diagram/source\");\n\t\t\t\tElement confElement = (Element) DocUtil.evalXPathAsNode(\n\t\t\t\t\t\tdocument, \"/diagram/configuration\");\n\t\t\t\tBeanConverter converter = new BeanConverter(configuration,\n\t\t\t\t\t\tdocument);\n\t\t\t\tconverter.setValues(confElement);\n\t\t\t} finally {\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t} else {\n\t\t\tsource = stringWriter.toString();\n\t\t}\n\t\treturn new Pair<String, Bean<? extends Configuration>>(source, configuration);\n\t}", "title": "" }, { "docid": "ce3dd5e11c8803c4cf91f2ab27557310", "score": "0.5814244", "text": "@Test\n public void getConfigFileInputStream_Should_When_ExistingFileSpecified_Then_Return_ItsInputStream() {\n // This file exists in test/resources/\n String configFilePath = ClassLoader.getSystemResource(\"personium-unit-config.properties.unit\").getPath();\n\n System.setProperty(PersoniumUnitConfig.KEY_CONFIG_FILE, configFilePath);\n PersoniumUnitConfig.reload();\n assertEquals(\"confValue\", PersoniumUnitConfig.get(TEST_KEY));\n }", "title": "" }, { "docid": "503328f265c30cbf6a92a93d0ff01233", "score": "0.5812313", "text": "public void loadFromConfigFile() throws ConfigFileNotFoundException, InvalidConfigFileFormatException {\n // TODO\n }", "title": "" }, { "docid": "e8b8144f0a72783fea1c1b24880eb1eb", "score": "0.57763296", "text": "public static void load(GraphStore store, InputStream inputStream, String format) {\n GraphLoader loader = new GraphLoader(store, format);\n loader.load(inputStream);\n }", "title": "" }, { "docid": "9332495969d3dec7c2db3db3f3574146", "score": "0.57751256", "text": "public void setInputStream(FileInputStream str) { \n this.reader = new Scanner(str);\n }", "title": "" }, { "docid": "5c628406d4cb6b69a740ced3699c7f78", "score": "0.57732207", "text": "@Bean\n @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)\n public Input input() throws IOException {\n return objectMapper.readValue(new FileReader(inputFilePath), Input.class);\n }", "title": "" }, { "docid": "7644415e75bab875c51aaffc3ecc32bd", "score": "0.57731366", "text": "public InputStream getSettingsInputStream(String streamKey);", "title": "" }, { "docid": "0314d49fdd407843791e09a8df664b6f", "score": "0.5766482", "text": "@VisibleForTesting\n static void configureJcifs(InputStream is) {\n if (is == null) {\n LOG.info(\"Resouce \" + JCIFS_CONFIGURATION_PROPERTIES_RESOURCE_NAME\n + \" not found. Accepting default jcifs configuration.\");\n } else {\n try {\n Config.load(is);\n } catch (IOException ioe) {\n LOG.log(Level.SEVERE, \"Failed loading resource \"\n + JCIFS_CONFIGURATION_PROPERTIES_RESOURCE_NAME\n + \". Accepting default jcifs configuration.\", ioe);\n } finally {\n try {\n is.close();\n } catch (IOException ioe) {\n LOG.log(Level.WARNING, \"Failed to close input stream.\", ioe);\n }\n }\n }\n }", "title": "" }, { "docid": "7f56cf9b6ec705a597d177cf4df7b6cd", "score": "0.5762811", "text": "private static void loadConfiguration() {\n try (InputStream in = ConfigurationUtil.class.getResourceAsStream(ConfigPath)) {\n configuration.load(new InputStreamReader(in, \"UTF-8\"));\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n }", "title": "" }, { "docid": "0d69866d3c7ceb69f97b617466964323", "score": "0.5724428", "text": "Stream<Config> get(final Stream<String> stream);", "title": "" }, { "docid": "203584d0bb88e6819b55a7c0f31b4dd9", "score": "0.56990856", "text": "private void readConfigurationFile() {\n properties = PropertyLoader.loadProperty(PROPERTIES_FILE);\n }", "title": "" }, { "docid": "1906d4a7913b6a7fece02ab8c74bd70d", "score": "0.5695669", "text": "public void parse( InputStream pStream )\r\n throws ConfigurationException\r\n {\r\n StringBuffer errors = new StringBuffer();\r\n Digester digester =\r\n preSetupDigester( \"-//SourceCodeAnalyser Configuration DTD //EN\",\r\n \"/config/sourcecodeanalyser-config-1.0.dtd\", errors );\r\n // Traitement du répertoire racine\r\n digester.addCallMethod( \"sourcecodeanalyser-configuration/rootPath\", \"setRootDirectory\", 1,\r\n new Class[] { String.class } );\r\n digester.addCallParam( \"sourcecodeanalyser-configuration/rootPath\", 0 );\r\n digester.push( this );\r\n // Appel du parser\r\n parse( digester, pStream, errors );\r\n if ( errors.length() > 0 )\r\n {\r\n throw new ConfigurationException( SourceCodeAnalyserMessages.getString( \"exception.configuration\",\r\n new Object[] { errors.toString() } ) );\r\n }\r\n }", "title": "" }, { "docid": "9b152bcc8836e38e99694eff2c180bf8", "score": "0.56899166", "text": "public ConfigFileReader() {\n InputStream input = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n properties = new Properties();\n try {\n properties.load(input);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e4a2ac161bfcbe747008cf911da90700", "score": "0.5635173", "text": "private ByteArrayInputStream loadStream(InputStream inputstream)\n\t throws IOException\n {\n ByteArrayOutputStream byteArrayOutputStream;\n\ttry (ByteArrayOutputStream byteArrOutputStream = new ByteArrayOutputStream()) {\n\t byteArrayOutputStream = byteArrOutputStream;\n\t}\n\tbyte data[] = new byte[BUFFER_SIZE];\n\tfor(int i = inputstream.read(data); i != -1; i = inputstream.read(data))\n\t byteArrayOutputStream.write(data, 0, i);\n\n\tinputstream.close();\n\tbyteArrayOutputStream.close();\n\tdata = byteArrayOutputStream.toByteArray();\n\treturn new ByteArrayInputStream(data);\n }", "title": "" }, { "docid": "99aaafae19255f42d3ed309d3d896422", "score": "0.56293476", "text": "public void init() {\r\n this.properties = new Properties();\r\n InputStream inputStream = null;\r\n \r\n try {\r\n inputStream = new FileInputStream(CONFIG_FILE_PATH);\r\n \r\n properties.load(inputStream);\r\n } catch (IOException ex) {\r\n Logger.getGlobal().log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n if (inputStream != null) {\r\n inputStream.close();\r\n }\r\n } catch (IOException ex) {\r\n Logger.getGlobal().log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a6ab2e0efc3dd681b3ab0debb5b95021", "score": "0.56272614", "text": "@SuppressWarnings(\"unchecked\")\n private void read(StreamInput in) throws IOException {\n fields = (ArrayList<String>)in.readGenericValue();\n valueType = in.readOptionalWriteable(ValueType::readFromStream);\n format = in.readOptionalString();\n missingMap = in.readMap();\n }", "title": "" }, { "docid": "28fa1ab805f60d80c8313ca1ac2d5e5e", "score": "0.56231725", "text": "public Properties(InputStream doc) throws FileNotFoundException{\r\n\t\ttry {\t\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t \tDocumentBuilder dBuilder;\r\n\t \tdBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\tdocXML=dBuilder.parse(doc);\r\n\t\t\t loadFromXML();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e){\r\n\t\t\tthrow new FileNotFoundException(\"Properties file wasnt found\");\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "845dae64adb27cdd799f0d61365e799d", "score": "0.56147695", "text": "public InputStream getSettingsInputStream( String streamKey,\n Class<?> resourceClass);", "title": "" }, { "docid": "d4f56e2c2800a5932835cfe12ad87b19", "score": "0.55975497", "text": "public static PropertiesConfiguration loadConfig(InputStream configStream, String basePath, String encoding)\n\t\t\tthrows ConfigurationException, IOException {\n\t\tPropertiesConfiguration pc = new PropertiesConfiguration();\n\t\tpc.setThrowExceptionOnMissing(false); // this is the default behavior. just for MOHKAM KARI!\n\t\tpc.setEncoding(\"UTF-8\");\n\t\tif (basePath != null) {\n\t\t\tpc.setBasePath(basePath);\n\t\t}\n\t\tpc.load(configStream);\n\t\tconfigStream.close();\n\t\treturn pc;\n\t}", "title": "" }, { "docid": "2104e45d4923d1db1dca8630aa86ec90", "score": "0.55919063", "text": "public static void initFlowConfig(InputStream is) throws Exception\r\n { \r\n if(is==null) {\r\n ClassLoader c = BlendConfig.class.getClassLoader();\r\n is = c.getResourceAsStream(\"Blend.xml\"); \r\n }\r\n \r\n processorInfos = ProcessorInfo.parseXML(is);\r\n processorInfo = (ProcessorInfo)processorInfos.get(0); \r\n \r\n setParameters();\r\n \r\n }", "title": "" }, { "docid": "3e36f78adceae45cbdc0109bcb34c10c", "score": "0.5589248", "text": "private void loadResourceMap(InputStream ins) throws BuildException {\n try (BufferedReader in =\n new BufferedReader(new InputStreamReader(ins, bundleEncoding))) {\n String line;\n while ((line = in.readLine()) != null) {\n //So long as the line isn't empty and isn't a comment...\n if (line.trim().length() > 1 && '#' != line.charAt(0) && '!' != line.charAt(0)) {\n //Legal Key-Value separators are :, = and white space.\n int sepIndex = line.indexOf('=');\n if (-1 == sepIndex) {\n sepIndex = line.indexOf(':');\n }\n if (-1 == sepIndex) {\n for (int k = 0; k < line.length(); k++) {\n if (Character.isSpaceChar(line.charAt(k))) {\n sepIndex = k;\n break;\n }\n }\n }\n //Only if we do have a key is there going to be a value\n if (-1 != sepIndex) {\n String key = line.substring(0, sepIndex).trim();\n String value = line.substring(sepIndex + 1).trim();\n //Handle line continuations, if any\n while (value.endsWith(\"\\\\\")) {\n value = value.substring(0, value.length() - 1);\n line = in.readLine();\n if (line != null) {\n value += line.trim();\n } else {\n break;\n }\n }\n if (!key.isEmpty()) {\n //Has key already been loaded into resourceMap?\n resourceMap.putIfAbsent(key, value);\n }\n }\n }\n }\n } catch (IOException ioe) {\n throw new BuildException(ioe.getMessage(), getLocation());\n }\n }", "title": "" }, { "docid": "e6d48fa01940d0ddb1fe0f96e49dd6ba", "score": "0.55787003", "text": "static Config fromStdIn ()\r\n\t\tthrows IOException, ParseException {\r\n\t\t\tvar config = new Config ();\r\n\t\t\tString line;\r\n\r\n\t\t\tline = stdinLine (\"\" , \"File: \");\r\n\t\t\tconfig.where = new File (line);\r\n\t\t\tline = stdinLine (\"0\", \"Size (default to 0): \");\r\n\t\t\tconfig.size = NumberFormat.getInstance().parse(line).longValue();\r\n\r\n\t\t\treturn config;\r\n\t\t}", "title": "" }, { "docid": "28b475dab66fc2aacc70b9f28b07dee8", "score": "0.5566978", "text": "void loadTheory(InputStream input) throws IOException;", "title": "" }, { "docid": "e0c48fd984b6faac323e23c8d6b8b286", "score": "0.5531411", "text": "private void loadConfing() {\n Ini ini = new Ini();\n try {\n ini.load(new File(\"config.ini\"));\n Ini.Section config = ini.get(\"config\");\n this.serverAddress = config.get(\"host\");\n this.port = Integer.parseInt(config.get(\"port\"));\n } catch (Exception ex) {\n LOG.log(Level.SEVERE, \"Error while loading config\", ex);\n } \n }", "title": "" }, { "docid": "7cb07af277b3af487b71b83d9390ca25", "score": "0.5523515", "text": "private I18n(InputStream is) throws IOException {\r\n\t\tlang = new Properties();\r\n\t\tlang.load(is);\r\n\t}", "title": "" }, { "docid": "2a151a29f2d4ceec4d4469a98a47c340", "score": "0.5520494", "text": "private InputStream getConfigInputStream() throws ConfigException{\r\n\t\tLOGGER.debug(\"[PROPERTIES] Getting properties stream\");\r\n\t\t\r\n ClassLoader loader = getClass().getClassLoader();\r\n // FICHIER TEMPORAIRE DE DEV, NO CREDENTIALS ON GIT\r\n InputStream configFileStream = loader.getResourceAsStream(AppConstants.PROPERTIES_DEV_FILE_NAME);\r\n if(configFileStream == null){\r\n \tconfigFileStream = loader.getResourceAsStream(AppConstants.PROPERTIES_FILE_NAME);\r\n }\r\n \r\n \r\n LOGGER.debug(\"[PROPERTIES] Properties stream: \"+AppConstants.PROPERTIES_FILE_NAME);\r\n if(configFileStream == null){\r\n \tLOGGER.error(\"[PROPERTIES] ConfigFile not found\");\r\n \tthrow new ConfigException(\"Config file not found\");\r\n }\r\n \r\n LOGGER.debug(\"[PROPERTIES] Config stream found, returning it\");\r\n return configFileStream;\r\n\t}", "title": "" }, { "docid": "2f81af12451da101ec093ed0edef2840", "score": "0.55112743", "text": "public static NSDictionary dictionaryFromInputStream(InputStream stream)\r\n\t{\r\n\t\treturn dictionaryFromString(StringUtilities.stringFromInputStream(stream));\r\n\t}", "title": "" }, { "docid": "17dc6edfb09667eec75c7453f90ba966", "score": "0.55104625", "text": "public static DefaultLanguageFile loadFromInputStream(InputStream inputStream, Charset charset) {\n Preconditions.checkNotNull(charset);\n Preconditions.checkNotNull(inputStream);\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, charset);\n try {\n inputStream.close();\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return loadFromReader(inputStreamReader);\n }", "title": "" }, { "docid": "60cb6750649730e71f5fb08a5cc8044a", "score": "0.55053675", "text": "protected ConfigurationSource getInputFromResource(String resource, ClassLoader loader) {\n/* 360 */ URL url = Loader.getResource(resource, loader);\n/* 361 */ if (url == null) {\n/* 362 */ return null;\n/* */ }\n/* 364 */ InputStream is = null;\n/* */ try {\n/* 366 */ is = url.openStream();\n/* 367 */ } catch (IOException ioe) {\n/* 368 */ LOGGER.catching(Level.DEBUG, ioe);\n/* 369 */ return null;\n/* */ } \n/* 371 */ if (is == null) {\n/* 372 */ return null;\n/* */ }\n/* */ \n/* 375 */ if (FileUtils.isFile(url)) {\n/* */ try {\n/* 377 */ return new ConfigurationSource(is, FileUtils.fileFromUri(url.toURI()));\n/* 378 */ } catch (URISyntaxException ex) {\n/* */ \n/* 380 */ LOGGER.catching(Level.DEBUG, ex);\n/* */ } \n/* */ }\n/* 383 */ return new ConfigurationSource(is, url);\n/* */ }", "title": "" }, { "docid": "1a1a0c42bf16d0495811bca9ec3b504c", "score": "0.54975516", "text": "public void loadIndex(final InputStream inputStream) {\n if (inputStream == null) {\n throw new IllegalArgumentException(\"Stream cannot be null\");\n }\n\n try (Scanner scanner = new Scanner(inputStream)) {\n while (scanner.hasNext()) {\n loadIndex(scanner.nextLine());\n }\n }\n }", "title": "" }, { "docid": "a951c96f8a315708598a3b270ff637bd", "score": "0.5495356", "text": "void setInputStream(InputStream in);", "title": "" }, { "docid": "377d065a78dc23b29625bdb9fca6e13d", "score": "0.54847836", "text": "protected ConfigurationSource getInputFromString(String config, ClassLoader loader) {\n/* */ try {\n/* 336 */ URL url = new URL(config);\n/* 337 */ return new ConfigurationSource(url.openStream(), FileUtils.fileFromUri(url.toURI()));\n/* 338 */ } catch (Exception ex) {\n/* 339 */ ConfigurationSource source = getInputFromResource(config, loader);\n/* 340 */ if (source == null) {\n/* */ try {\n/* 342 */ File file = new File(config);\n/* 343 */ return new ConfigurationSource(new FileInputStream(file), file);\n/* 344 */ } catch (FileNotFoundException fnfe) {\n/* */ \n/* 346 */ LOGGER.catching(Level.DEBUG, fnfe);\n/* */ } \n/* */ }\n/* 349 */ return source;\n/* */ } \n/* */ }", "title": "" }, { "docid": "1b8c1ed3f45260e0b30358d75f54f11f", "score": "0.5482589", "text": "public boolean loadFromStream(InputStream is, boolean asTemplate){\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b2132505a5e12089ab330e765fcc6296", "score": "0.5474077", "text": "@Override\n public void setInputStream(String filePath) {\n try {\n inputStream = new GZIPInputStream(new FileInputStream(filePath));\n } catch (IOException e) {\n System.out.println(\"There was an error in opening the file at - \" + filePath);\n logger.log(Level.ERROR, e);\n }\n }", "title": "" }, { "docid": "0aa3111dc8d12ef8b6d24d67dd3d5c29", "score": "0.54674685", "text": "void setInputStream(InputStream inputStream);", "title": "" }, { "docid": "eddf2f0163471c48d2b4f9bdba1fea84", "score": "0.5448166", "text": "public CSVLineRecordReader(InputStream is, Configuration conf) throws IOException {\n init(is, conf);\n }", "title": "" }, { "docid": "6c01c7d05f4c1d229a6f98cc557a55b7", "score": "0.5426651", "text": "public SQLiteUpdateTaskFromFile(InputStream inputStream) {\t\t\n\t\tthis.inputStream = inputStream;\n\t}", "title": "" }, { "docid": "5fef089ecc2e7552c0edf6cab24f866c", "score": "0.542392", "text": "public void init() throws IOException, NumberFormatException {\n\n File config_file = new File(config_path);\n\n BufferedReader br = new BufferedReader(new FileReader(config_file));\n\n String st;\n List<String> config_values = new ArrayList<>();\n while ((st = br.readLine()) != null) {\n\n String[] parts = st.split(\"=\");\n\n config_values.add(parts[1]);\n }\n\n this.user_upload_path = config_values.get(0);\n this.server_db_path = config_values.get(1);\n this.server_host_address = config_values.get(2);\n this.server_port = Integer.parseInt(config_values.get(3));\n this.MAX_SIZE = Integer.parseInt(config_values.get(4));\n this.MAX_DOWN = Integer.parseInt(config_values.get(5));\n }", "title": "" }, { "docid": "7082bb2f43bef7181fa6567588403d19", "score": "0.54099774", "text": "private void readFile(BufferedReader in, RedirectorConfiguration cfg)\n throws CfgFileException, IOException\n {\n String line;\n StringTokenizer st;\n String s, t, kw, ext;\n int i;\n Symbol sym;\n\n _lineno = 0;\n while ( (line = in.readLine()) != null) {\n _lineno++;\n\n line = line.trim();\n\n /*\n * Skip empty lines and comment.\n */\n if (line.length() == 0 || line.charAt(0) == COMMENTCHAR) {\n continue;\n }\n\n st = new StringTokenizer(line);\n\n if (st.hasMoreTokens() == false) {\n continue;\n }\n\n kw = st.nextToken();\n\n if ( (sym = (Symbol)_symbols.get(kw)) == null) {\n errorAt(\"unknown keyword `\" + kw + \"'\");\n }\n\n switch(sym.id) {\n case SYM_CLIENT_TIMEOUT:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"timeout value expected\");\n }\n try {\n cfg.setClientTimeout(Integer.parseInt(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(\"timeout value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_ACCESSLOG:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"file name expected\");\n }\n\n checkFile(s, false);\n\n cfg.setAccessLogFileName(s);\n checkNewLine(st);\n break;\n\n case SYM_ERRORLOG:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"file name expected\");\n }\n\n checkFile(s, false);\n\n cfg.setErrorLogFileName(s);\n checkNewLine(st);\n break;\n\n case SYM_DEBUGLEVEL:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_DEBUGLEVEL + \" value expected\");\n }\n try {\n cfg.setDebugLevel(Integer.parseInt(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n checkNewLine(st);\n break;\n\n case SYM_MAX_CLIENTS:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_MAX_CLIENTS + \" value expected\");\n }\n try {\n cfg.setThreadPoolSize(Integer.parseInt(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(\"value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_DEFAULT_GAP:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"GAP hostname expected\");\n }\n if ( (t = getNextToken(st)) == null) {\n errorAt(\"GAP port number expected\");\n }\n\n try {\n cfg.setDefaultGAPAddress(s);\n }\n catch(UnknownHostException e) {\n errorAt(s + \": unknown host\");\n }\n\n try {\n cfg.setDefaultGAPPort(Integer.parseInt(t));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + t + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(\"port number out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_DEFAULT_GAP_COORDS:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"latitude coordinate expected\");\n }\n if ( (t = getNextToken(st)) == null) {\n errorAt(\"longitude coordinate expected\");\n }\n\n int lat = 0, longi = 0;\n\n try {\n lat = Integer.parseInt(s);\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n\n try {\n longi = Integer.parseInt(t);\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + t + \"' is not an integer\");\n }\n\n cfg.setDefaultGAPCoordinates(lat, longi);\n checkNewLine(st);\n break;\n\n case SYM_GAPLIST_URL:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"URL expected\");\n }\n cfg.setGAPListURL(s);\n checkNewLine(st);\n break;\n\n case SYM_GAPLIST_REFRESH:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_GAPLIST_REFRESH + \" value expected\");\n }\n try {\n cfg.setGAPListRefreshInterval(Integer.parseInt(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(SYMSTR_GAPLIST_REFRESH + \" value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_ENABLE_COOKIE:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_ENABLE_COOKIE + \" value expected\");\n }\n if (isOn(s)) {\n cfg.setCookieEnabledFlag(true);\n }\n else if (isOff(s)) {\n cfg.setCookieEnabledFlag(false);\n }\n else {\n errorAt(\"invalid \" + SYMSTR_ENABLE_COOKIE + \" value\");\n }\n checkNewLine(st);\n break;\n\n case SYM_COOKIE_DOMAIN:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"domain value expected\");\n }\n cfg.setCookieDomain(s);\n checkNewLine(st);\n break;\n\n case SYM_COOKIE_PATH:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"path value expected\");\n }\n cfg.setCookiePath(s);\n checkNewLine(st);\n break;\n\n case SYM_GAP_COOKIE_TTL: // FALTHROUGH\n\n case SYM_LOCATION_COOKIE_TTL:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"time-to-live value expected\");\n }\n try {\n if (sym.id == SYM_GAP_COOKIE_TTL) {\n cfg.setGAPCookieTTL(Integer.parseInt(s));\n }\n else {\n cfg.setLocationCookieTTL(Long.parseLong(s));\n }\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(\"`\" + s + \"' time-to-live value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_IP2GAPCACHE_SIZE:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_IP2GAPCACHE_SIZE + \" value expected\");\n }\n try {\n cfg.setIP2GAPCacheSize(Integer.parseInt(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(\"value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_IP2GAPCACHE_TTL:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"time-to-live value expected\");\n }\n try {\n cfg.setIP2GAPCacheTTL(Long.parseLong(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(\"`\" + s + \"' time-to-live value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_DB_FNAME:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"file name expected\");\n }\n\n checkFile(s, false);\n\n cfg.setGeoDBFileName(s);\n checkNewLine(st);\n break;\n\n case SYM_DB_TYPE:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_DB_TYPE + \" value expected\");\n }\n\n cfg.setGeoDBType(s);\n checkNewLine(st);\n break;\n\n case SYM_DB_SYNCWRITES:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_DB_SYNCWRITES + \" value expected\");\n }\n if (isOn(s)) {\n cfg.setGeoDBSyncWritesFlag(true);\n }\n else if (isOff(s)) {\n cfg.setGeoDBSyncWritesFlag(false);\n }\n else {\n errorAt(\"invalid \" + SYMSTR_DB_SYNCWRITES + \" value\");\n }\n checkNewLine(st);\n break;\n\n case SYM_ENABLE_ACCESSLOG:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_ENABLE_ACCESSLOG + \" value expected\");\n }\n if (isOn(s)) {\n cfg.setAccessLogEnabledFlag(true);\n }\n else if (isOff(s)) {\n cfg.setAccessLogEnabledFlag(false);\n }\n else {\n errorAt(\"invalid \" + SYMSTR_ENABLE_ACCESSLOG + \" value\");\n }\n checkNewLine(st);\n break;\n\n case SYM_HTTP_EXPIRES:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_HTTP_EXPIRES + \" value expected\");\n }\n try {\n cfg.setHTTPExpires(Integer.parseInt(s));\n }\n catch(NumberFormatException e) {\n errorAt(\"`\" + s + \"' is not an integer\");\n }\n catch(IllegalArgumentException e) {\n errorAt(SYMSTR_HTTP_EXPIRES + \" value out of range\");\n }\n checkNewLine(st);\n break;\n\n case SYM_HTTP_REDIRECT:\n if ( (s = getNextToken(st)) == null) {\n errorAt(SYMSTR_HTTP_REDIRECT + \" value expected\");\n }\n if (isOn(s)) {\n cfg.setHTTPRedirectFlag(true);\n }\n else if (isOff(s)) {\n cfg.setHTTPRedirectFlag(false);\n }\n else {\n errorAt(\"invalid \" + SYMSTR_HTTP_REDIRECT + \" value\");\n }\n checkNewLine(st);\n break;\n\n case SYM_DEFAULT_URL:\n s = getNextToken(st); // may be null\n cfg.setDefaultURL(s);\n checkNewLine(st);\n break;\n\n case SYM_BLOCKLIST:\n if ( (s = getNextToken(st)) == null) {\n errorAt(\"file name expected\");\n }\n cfg.setBlockListFileName(s);\n checkNewLine(st);\n break;\n\n default:\n throw new CfgFileException(\"internal error -- unknown symbol `\"\n + sym.sym + \"'\");\n }\n }\n }", "title": "" }, { "docid": "2c58b3bfc03910febecc44d8e227965d", "score": "0.54043525", "text": "public void load(InputStream in) throws IOException {\n\t\tDataInputStream data_in = new DataInputStream(in);\n\t\t\n\t\tint num_layers = data_in.readInt();\n\t\tthis.layers.clear();\n\t\t//layers\n\t\tfor (int i=0; i<num_layers; i++) {\n\t\t\t//name\n\t\t\tString name = \"\";\n\t\t\tint name_len = data_in.readInt();\n\t\t\tfor (int j=0; j<name_len; j++) {\n\t\t\t\tname += data_in.readChar();\n\t\t\t}\n\t\t\t\n\t\t\t//order\n\t\t\tint order = data_in.readInt();\n\t\t\t\n\t\t\t//map data\n\t\t\tint width = data_in.readInt();\n\t\t\tint height = data_in.readInt();\n\t\t\tshort[][] data = new short[width][height];\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tfor (int y=0; y<height; y++) {\n\t\t\t\t\tdata[x][y] = data_in.readShort();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tMapLayer layer = new MapLayer(name, data, order);\n\t\t\tthis.layers.add(layer);\n\t\t}\n\t}", "title": "" }, { "docid": "6f5d9561e4ab253f597b6c6591a71b87", "score": "0.5383914", "text": "private static JavalinConfiguration loadConfiguration() {\n Yaml yaml = new Yaml();\n JavalinConfiguration config;\n try (InputStream in = Files.newInputStream(Paths.get(\"./conf/restaurant_configuration.yml\"))) {\n config = yaml.loadAs(in, JavalinConfiguration.class);\n } catch (IOException e) {\n config = new JavalinConfiguration();\n }\n return config;\n }", "title": "" }, { "docid": "cae1fcb12ebdfce23dbff46818d8e1a0", "score": "0.5366936", "text": "public static ConfigurationLoader forFile(Path configFile) {\n try {\n ConfigurationSet.Builder configSetBuilder = ConfigurationSet.newBuilder();\n String fileContent = Joiner.on('\\n').join(Files.readAllLines(configFile));\n JsonFormat.parser().merge(fileContent, configSetBuilder);\n return ConfigurationLoader.forConfigSet(configSetBuilder.build());\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to read config file: \" + configFile.toString(), e);\n }\n }", "title": "" }, { "docid": "c6bb999dc551afcce9217acfd40d41b0", "score": "0.53610826", "text": "ReadPropertyFile() {\n\t\tconfig = new Properties();\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\t\n\t\t\tfis = new FileInputStream(\"./test-input/config.properties\");\n\t\t\ttry {\n\t\t\t\tconfig.load(fis);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Innput output exception\");\n\t\t}\n\t}", "title": "" }, { "docid": "3ca2d9687e73d0c225c4bb825c53ba9e", "score": "0.53377324", "text": "private Properties loadInput() throws IOException {\r\n\t\t\r\n\t\tProperties props = new Properties();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (fromXML) {\r\n\t\t\t\tprops.loadFromXML(input);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tprops.load(input);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlogger.info(\"Loaded \" + props.size() + \r\n\t\t\t\t\t\" properties from \" + input);\r\n\t\t\t\r\n\t\t\treturn props;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tinput.close();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ba7700d02a5c881c630de107950615ea", "score": "0.5330216", "text": "public InputConfiguration(@Value(\"${data.path}\") String inputFilePath, ObjectMapper objectMapper) {\n this.inputFilePath = inputFilePath;\n this.objectMapper = objectMapper;\n }", "title": "" }, { "docid": "ced0854f2b95acfe9b54f0a98cb97c97", "score": "0.5328008", "text": "private ConfigManager(String configPath) throws Exception {\n \t\tBufferedReader reader = null;\n \t\treader = new BufferedReader(new InputStreamReader(\n \t\t\t\t\tnew FileInputStream(configPath), Charset.forName(\"UTF-8\")));\n \t\tJSONObject requestJSON = (JSONObject) parser.parse(reader);\n \n \t\tthis.confMap = requestJSON;\n \t\t\n \t}", "title": "" }, { "docid": "8971f84cdb685663e48cdc02e4281c5a", "score": "0.5322884", "text": "public ApacheConfColoringLexer(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "title": "" }, { "docid": "990ee5b4d9ed6a5d8b733f1bd7c2e93e", "score": "0.53224766", "text": "protected ConfigurationSource getInputFromUri(URI configLocation) {\n/* 286 */ File configFile = FileUtils.fileFromUri(configLocation);\n/* 287 */ if (configFile != null && configFile.exists() && configFile.canRead()) {\n/* */ try {\n/* 289 */ return new ConfigurationSource(new FileInputStream(configFile), configFile);\n/* 290 */ } catch (FileNotFoundException ex) {\n/* 291 */ LOGGER.error(\"Cannot locate file {}\", configLocation.getPath(), ex);\n/* */ } \n/* */ }\n/* 294 */ if (isClassLoaderUri(configLocation)) {\n/* 295 */ ClassLoader loader = LoaderUtil.getThreadContextClassLoader();\n/* 296 */ String path = extractClassLoaderUriPath(configLocation);\n/* 297 */ ConfigurationSource source = getInputFromResource(path, loader);\n/* 298 */ if (source != null) {\n/* 299 */ return source;\n/* */ }\n/* */ } \n/* 302 */ if (!configLocation.isAbsolute()) {\n/* 303 */ LOGGER.error(\"File not found in file system or classpath: {}\", configLocation.toString());\n/* 304 */ return null;\n/* */ } \n/* */ try {\n/* 307 */ return new ConfigurationSource(configLocation.toURL().openStream(), configLocation.toURL());\n/* 308 */ } catch (MalformedURLException ex) {\n/* 309 */ LOGGER.error(\"Invalid URL {}\", configLocation.toString(), ex);\n/* 310 */ } catch (Exception ex) {\n/* 311 */ LOGGER.error(\"Unable to access {}\", configLocation.toString(), ex);\n/* */ } \n/* 313 */ return null;\n/* */ }", "title": "" }, { "docid": "5c2d35a678d2684363c926f970364cee", "score": "0.53198206", "text": "static void loadConfig() {\n File confFile = new File(configFilePath);\n if (!confFile.exists()) {\n System.out.println(\"game.conf not found, creating...\");\n try {\n confFile.createNewFile();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n try (InputStream input = new FileInputStream(configFilePath)) {\n conf = new Properties();\n conf.load(input);\n System.out.println(\"configurations loaded successfully\");\n }\n catch (IOException ex) {\n System.out.println(\"configurations failed to load\");\n }\n }", "title": "" }, { "docid": "2f5d26e0b0ae83655a3e3486cdf6cab0", "score": "0.5308524", "text": "public Configuration loadConfig() {\n Configuration c;\n try {\n String readIn = Files.readString(Paths.get(configFilePath()));\n Type type = new TypeToken<Configuration>(){}.getType();\n c = gson.fromJson(readIn, type);\n }\n catch (Exception e){\n c = new Configuration();\n c.recoverUserIDseed(orchestrator.getUserList());\n System.out.println(\"Load config Exception\");\n System.out.println(e.toString());\n System.out.println(e.getMessage());\n }\n return c;\n\n }", "title": "" }, { "docid": "0c74a8e197150ba8f814d8b1c6829ac9", "score": "0.5302061", "text": "public void loadConfiguration() {\n // start with the default configuration, override if we can load the file\n ToolConfiguration configuration = getDefaultConfiguration();\n try {\n if (configFile.getType() == Type.RESOURCE) {\n InputStream in = configFile.in();\n try {\n XStream xstream = buildXStream();\n configuration = (ToolConfiguration) xstream.fromXML( in);\n }\n finally {\n in.close();\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.SEVERE, \"Error reading the \" + getConfigurationFile() + \" configuration file\", e);\n }\n\n if (configuration == null) {\n LOGGER.log(Level.INFO,\n \"Could not find/load the \" + getConfigurationFile() + \" configuration file, using internal defaults\");\n configuration = getDefaultConfiguration();\n }\n\n // should never happen, but just in case...\n if (configuration == null) {\n throw new IllegalStateException(\"No default configuration available, giving up\");\n }\n\n // let's load the configuration\n ToolWrapper wrapper = wrapperFactory.createWrapper(configuration.getExecutable(), configuration.getEnvironment());\n Set<String> supported = wrapper.getSupportedFormats();\n of.setExecutable(configuration.getExecutable());\n of.setEnvironment(configuration.getEnvironment());\n List<Format> toBeAdded = new ArrayList<Format>();\n for (Format format : configuration.getFormats()) {\n if (supported.contains(format.getToolFormat())) {\n toBeAdded.add(format);\n } else {\n LOGGER.severe(\"Skipping '\" + format.getGeoserverFormat() + \"' as its tool format '\"\n + format.getToolFormat() + \"' is not among the ones supported by \"\n + configuration.getExecutable());\n }\n }\n // update configured formats at once, potentially alleviating locking overhead\n of.replaceFormats(toBeAdded);\n }", "title": "" }, { "docid": "9c8dbda669d42a32af2f24e32bf258c4", "score": "0.52950233", "text": "public synchronized void load() {\n XmlFile file = getConfigFile();\n if(!file.exists())\n return;\n\n try {\n file.unmarshal(this);\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, \"Failed to load \"+file, e);\n }\n }", "title": "" }, { "docid": "3e6b29efeab821dae7e3c02888d6f2f5", "score": "0.52926546", "text": "private void load() {\n String resourceFile = configFile != null ? configFile : conf.get(URLFILTER_DATE_FILE, \"date-urlfilter.txt\");\n String stringResource = conf.get(URLFILTER_DATE_RULES);\n ResourceLoader.readAllLines(stringResource, resourceFile);\n }", "title": "" }, { "docid": "d53ebad482126b883e98c56a27847f25", "score": "0.52678806", "text": "public void load() throws WrongConfigException,\n IOException,\n SAXException\n {\n try\n {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser parser = factory.newSAXParser();\n parser.parse(configFile, new ConfigHandler(configFile));\n\n for (Step step : steps)\n step.load();\n }\n catch (ParserConfigurationException e)\n {\n e.printStackTrace();\n }\n catch (SAXException e)\n {\n Throwable cause = e.getCause();\n if (cause instanceof WrongConfigException)\n throw (WrongConfigException) cause;\n\n throw e;\n }\n }", "title": "" }, { "docid": "0bd092ef341ec9b990a7c2e18ae1ce8a", "score": "0.5261999", "text": "public void loadConfigurationFile(String filePath) {\n FileReader fileReader = null; // instance of reader\n\n try {\n fileReader = new FileReader(filePath);\n } catch (FileNotFoundException e) {\n throw new HttpConfigurationException(e);\n }\n\n StringBuffer buffer = new StringBuffer();\n int i;\n while (true) {\n try {\n if (!((i = fileReader.read()) != -1)) break;\n } catch (IOException e) {\n throw new HttpConfigurationException(e);\n } // as log it reads\n buffer.append((char)i);\n } // buffer is populated with data from file\n\n JsonNode conf = null; // parses string to JsonNode\n\n try {\n conf = Json.parse(buffer.toString());\n } catch (IOException e) {\n throw new HttpConfigurationException(\"Error parsing the configuration file: \", e);\n }\n\n try {\n myConfiguration = Json.fromJson(conf,Configuration.class);\n } catch (JsonProcessingException e) {\n throw new HttpConfigurationException(\"Error parsing the configuration file internal: \", e);\n }\n }", "title": "" }, { "docid": "5911d1e287657471c63741db79548d31", "score": "0.5259779", "text": "private Configuration read(String path) throws Exception {\n InputStream stream = ExportImportTest.class.getResourceAsStream(path);\n return ConfigurationReader.read(stream);\n }", "title": "" }, { "docid": "5f1345ee689eddd59b4f41f70e68a1b4", "score": "0.52590495", "text": "public void configure(InputStream config) {\n\t\tif (config == null)\n\t\t\tthrow new IllegalArgumentException(\"config\");\n\n\t\tnew DOMConfigurator().doConfigure(config, getLogger()\n\t\t\t\t.getLoggerRepository());\n\t}", "title": "" }, { "docid": "986eef77eb61349d270d6ce9b79f6ad9", "score": "0.5250858", "text": "public void load(String file) throws ConfigurationException {\n\n FileBasedConfigurationBuilder<INPConfiguration> builder;\n builder = new FileBasedConfigurationBuilder<>(INPConfiguration.class)\n .configure(params.ini()\n .setFileName(file));\n INPConfiguration config = builder.getConfiguration();\n\n loadedFiles.put(file, new INPfile(config, builder));\n }", "title": "" }, { "docid": "a42ba3be0d038e3bf044943cace521e2", "score": "0.5250708", "text": "InputStream getResourceAsStream(String name);", "title": "" }, { "docid": "9fe5829aa1a09877f5a44c97f7091f46", "score": "0.5228235", "text": "public void read(String resource) throws ConfigException {\n if (resource == null) {\n throw new IllegalArgumentException(\"Resource cannot be null\");\n }\n new ResourceContext(resource).process(this);\n checkAllConstraints();\n }", "title": "" }, { "docid": "779d19702a8621abd432267d1869b25d", "score": "0.52257514", "text": "public void readConfig() {\n }", "title": "" }, { "docid": "5cd2ecfa33d0c220d2523c35ede71fd9", "score": "0.5225538", "text": "private static Environment of(@NonNull InputStream is) {\n try {\n var environment = new Environment();\n environment.props.load(new InputStreamReader(is, StandardCharsets.UTF_8));\n return environment;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n } finally {\n IOKit.closeQuietly(is);\n }\n }", "title": "" }, { "docid": "a43624643d477bc34d5de8d2642d722d", "score": "0.5215869", "text": "public void load() {\n if (exists()) {\n try (FileReader reader = new FileReader(file.toFile())) {\n properties.load(reader);\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n }", "title": "" }, { "docid": "601c592c5fe24fd46ecfcfd75f1c4882", "score": "0.5214947", "text": "public void loadPropertiesFile() {\n InputStream input = null;\n try {\n input = new FileInputStream(\"config.properties\");\n // load a properties file\n prop.load(input);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "9df375b670bc1b19d560c09ab784a1d1", "score": "0.5213017", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\", \"RawUseOfParameterizedType\" })\n private static void loadConfig() {\n\n try {\n /* Check if the config file exists before trying to read it. */\n if (configFile.isEmpty() || !configFile.get().isFile())\n return;\n\n /* Read in the config file to a new settings object. */\n boolean loaded = false, useXML = writeAsXML.isSet()? writeAsXML.get(): true;\n Collection<Exception> loadProblems = new ArrayList<Exception>();\n Map<BaseConfig<? extends Serializable>, String> configNames = new HashMap<BaseConfig<? extends Serializable>, String>();\n // Map<String, String> configTypes = new HashMap<String, String>();\n\n /* XML XStream Method. */\n if (useXML)\n try {\n InputStreamReader configReader = new FileReader( configFile.get() );\n\n try {\n XStream xstream = new XStream();\n configNames = names.getClass().cast( xstream.fromXML( configReader ) );\n // configTypes = types.getClass().cast( xstream.fromXML( configReader ) );\n }\n finally {\n configReader.close();\n }\n\n loaded = true;\n }\n catch (IOException e) {\n loadProblems.add( e );\n useXML = false;\n }\n\n /* ObjectStream Method. */\n if (!useXML)\n try {\n InputStream stream = new BufferedInputStream( new FileInputStream( configFile.get() ) );\n ObjectInputStream objects = new ObjectInputStream( stream );\n\n try {\n configNames = names.getClass().cast( objects.readObject() );\n // configTypes = types.getClass().cast( objects.readObject() );\n }\n finally {\n objects.close();\n }\n\n loaded = true;\n }\n catch (InvalidClassException e) {\n logger.wrn( e, \"Config file is incompatible, reverting to defaults.\" );\n }\n catch (IOException e) {\n loadProblems.add( e );\n }\n\n /* Failed. */\n if (!loaded) {\n logger.err( \"Failed to load config file %s. Reason follows.\", configFile.get() );\n for (final Exception loadProblem : loadProblems)\n logger.err( \"Reason:\", loadProblem );\n\n revert();\n return;\n }\n\n /* Apply config file and check its settings for any keys not defined by the application. */\n for (final Map.Entry<BaseConfig<? extends Serializable>, String> configNameEntry : configNames.entrySet())\n for (final BaseConfig currEntry : names.keySet()) {\n\n /* Don't load the config file entry.. */\n if (currEntry.equals( configFile ))\n continue;\n\n /* Persistent entry info. */\n String configName = configNameEntry.getValue();\n // String configType = configTypes.get( configName );\n\n /* If field names match .. */\n if (currEntry.getName().equals( configName )) {\n try {\n /* Abort if types don't match. */\n // if (!currEntry.getType().equals( configType ))\n // throw new ClassCastException( \"Generic types don't match.\" );\n currEntry.set( configNameEntry.getKey().get() );\n }\n\n /* Value type does not match. */\n catch (ClassCastException e) {\n logger.wrn( e, \"Couldn't load value for %s, its config value is longer compatible.\", currEntry.getName() );\n }\n break;\n }\n }\n }\n\n /* Names and/or Types Map has become incompatible. */\n catch (ClassCastException e) {\n logger.wrn( e, \"Config file is incompatible, reverting to defaults.\" );\n revert();\n }\n catch (ClassNotFoundException e) {\n logger.err( e, \"Object in config file not supported, reverting to defaults.\" );\n revert();\n }\n }", "title": "" }, { "docid": "d4871006e71c074374ba20ecd500d744", "score": "0.5211856", "text": "public void loadConfig(final String filename) {\n \n FileLoader loader = new FileLoader();\n \n try {\n \n // load the file\n Object[] result = loader.getFileURL(filename, true); \n InputStream is = (InputStream)result[1];\n \n // place the properties into memory\n if (is != null) {\n prop.load(is); \n } else {\n throw new IOException();\n }\n \n } catch (IOException ioe) {\n System.out.println(\"Loading of config file failed: \" + filename);\n }\n \n }", "title": "" }, { "docid": "4cc12c90845f6ee983d7495e057e29be", "score": "0.51967216", "text": "public static void loadProperties(InputStream is, boolean importAll) throws IOException {\r\n Properties tempProps = new Properties();\r\n tempProps.load(is);\r\n loadProperties(tempProps, importAll);\r\n }", "title": "" }, { "docid": "81a099cb6f378679f8328578aa52407d", "score": "0.51897675", "text": "public void load(InputStream is) throws MessagingException {\n/* 119 */ LineInputStream lis = new LineInputStream(is);\n/* 120 */ String prevline = null;\n/* */ \n/* 122 */ StringBuffer lineBuffer = new StringBuffer();\n/* */ \n/* */ try {\n/* */ String line;\n/* */ do {\n/* 127 */ line = lis.readLine();\n/* 128 */ if (line != null && (line\n/* 129 */ .startsWith(\" \") || line.startsWith(\"\\t\"))) {\n/* */ \n/* 131 */ if (prevline != null) {\n/* 132 */ lineBuffer.append(prevline);\n/* 133 */ prevline = null;\n/* */ } \n/* 135 */ lineBuffer.append(\"\\r\\n\");\n/* 136 */ lineBuffer.append(line);\n/* */ } else {\n/* */ \n/* 139 */ if (prevline != null) {\n/* 140 */ addHeaderLine(prevline);\n/* 141 */ } else if (lineBuffer.length() > 0) {\n/* */ \n/* 143 */ addHeaderLine(lineBuffer.toString());\n/* 144 */ lineBuffer.setLength(0);\n/* */ } \n/* 146 */ prevline = line;\n/* */ } \n/* 148 */ } while (line != null && line.length() > 0);\n/* 149 */ } catch (IOException ioex) {\n/* 150 */ throw new MessagingException(\"Error in input stream\", ioex);\n/* */ } \n/* */ }", "title": "" }, { "docid": "4ccae673398bfb67c6dd70802c884579", "score": "0.5185688", "text": "public void loadRoomConfig() throws BadConfigFormatException, FileNotFoundException{\n\t\tFileReader reader = new FileReader(roomConfigFile);\n\t\tScanner in = new Scanner(reader);\n\t\t\n\t\tString rowData, roomName;\n\t\tCharacter roomInitial;\n\n\t\tint firstComma, lastComma;\n\t\t\n\t\twhile(in.hasNext()){\n\t\t\trowData = in.nextLine();\n\t\t\tfirstComma = rowData.indexOf(',');\n\t\t\tlastComma = rowData.lastIndexOf(',');\n\n\t\t\tif (firstComma != 1 || lastComma == -1 || firstComma == lastComma){\n\t\t\t\tin.close();\n\t\t\t\tthrow new BadConfigFormatException(\"Improper room config file\");\n\t\t\t}\n\n\t\t\telse{\n\t\t\t\troomInitial = rowData.charAt(0);\n\t\t\t\troomName = rowData.substring(firstComma + 2, lastComma);\n\t\t\t\trooms.put(roomInitial, roomName);\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t}", "title": "" }, { "docid": "87f25c0f9c89b4a467597cb97b8c66ab", "score": "0.51851475", "text": "public Yylex(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "title": "" }, { "docid": "58e6dd0f5d6f21325877919cdfae5dc7", "score": "0.5185144", "text": "@Test\n public void load() {\n AppMapConfig.load(new File(\"agent_conf.yml\"));\n assertNotNull(errContent.toString());\n assertTrue(errContent.toString().contains(\"file not found\"));\n }", "title": "" }, { "docid": "3d288fd7d4dd057a22d068ceddf1b2f6", "score": "0.5184505", "text": "@Test\n public void mqttShouldLoadConfig() throws StreamException {\n final String path = \"./src/test/java/com/alvarium/streams/mqtt-config.json\";\n final String testJson;\n try {\n testJson = Files.readString(Paths.get(path), StandardCharsets.US_ASCII);\n } catch(IOException e) {\n throw new StreamException(\"Could not read configuration file\", e);\n }\n final StreamInfo info = StreamInfo.fromJson(testJson);\n final MqttConfig config = MqttConfig.class.cast(info.getConfig());\n assertNotNull(config);\n }", "title": "" } ]
86909907457617c9299a15382698c49c
To return the result of applying the given visitor to this Arith
[ { "docid": "49d0b47c4613ebf32f8594c54134a515", "score": "0.6469595", "text": "<R> R accept(IArithVisitor<R> visitor);", "title": "" } ]
[ { "docid": "463731d6abb09ffd5677dfc984f1c370", "score": "0.75107646", "text": "public abstract Object accept(Visitor visitor) ;", "title": "" }, { "docid": "33a1deaaf6a0d29399a39095e62ad4c0", "score": "0.71156543", "text": "@Override\r\n\tpublic Object accept(Visitor<?> visitor) {\n\t\treturn visitor.visit(this);\r\n\t}", "title": "" }, { "docid": "e997ac8cf2887f8db7067f70a76233f5", "score": "0.70620877", "text": "public void accept(apollo.util.Visitor visitor);", "title": "" }, { "docid": "cdb01234ee5667f0f62eb024685bd046", "score": "0.70256954", "text": "public Object accept(Visitor v);", "title": "" }, { "docid": "4fe4b929eba3bb163d6d1d77ba658f33", "score": "0.68924135", "text": "public void accept(Visitor visitor);", "title": "" }, { "docid": "faaf73740846cdb9b198dcf9f38dd621", "score": "0.6836959", "text": "interface IArith {\r\n // To return the result of applying the given visitor to this Arith\r\n <R> R accept(IArithVisitor<R> visitor); \r\n}", "title": "" }, { "docid": "638e62e017cd4ac0a418770a2f686ab7", "score": "0.676862", "text": "@Override\n\tpublic <T> T accept(ExpressionVisitor<T> visitor) {\n\t\treturn visitor.visit(this);\n\t}", "title": "" }, { "docid": "b7acc3d28f0025f57ce52ba5109005de", "score": "0.6702889", "text": "public abstract <T extends Object> T visit(Visitor<T> v);", "title": "" }, { "docid": "de8377797dc144448adc05d48d7209bf", "score": "0.66755354", "text": "void visit();", "title": "" }, { "docid": "9807ef3f20fcd03f2067b92b5a77ab39", "score": "0.66726923", "text": "public abstract void accept(Visitor v);", "title": "" }, { "docid": "3e9566a24118d8003221c84ac3899cf7", "score": "0.66357976", "text": "Visitable accept(Visitor visitor) throws StandardException;", "title": "" }, { "docid": "4bd9ab29222d532b7a2e86c9b2cf3f71", "score": "0.65428597", "text": "@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }", "title": "" }, { "docid": "77c74aa8cf5b0c26df98b772864e227c", "score": "0.6536618", "text": "public void walk(Visitor<Operator> visitor) {\n\t\tvisitor.visit(this);\n\t}", "title": "" }, { "docid": "b9198cc7f29e97d438f4177a749a3415", "score": "0.6508073", "text": "@Override\n\tpublic void accept(Visitor v) {\n\t\t\n\t}", "title": "" }, { "docid": "33a1d79c4955a8bb559cde0f7c046bb2", "score": "0.6496653", "text": "@Override\n\tpublic void accept(IVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "title": "" }, { "docid": "b89a940d468c31b7ad92d578d3401ee9", "score": "0.6495965", "text": "@Override\n\tpublic void accept(IVisitor visitor) {\n\t}", "title": "" }, { "docid": "876e34633f73720e8781aea3dd0b43c3", "score": "0.6487251", "text": "void acceptVisit(ExpressionVisitor visitor);", "title": "" }, { "docid": "ab867d79f654d020c0f9524bbed53368", "score": "0.6464058", "text": "public interface Visitor {\n\n\n public String visit(Visitable node);\n}", "title": "" }, { "docid": "ee14fb84489a0b7c53480b0a996421e4", "score": "0.6439493", "text": "@Override\n\tpublic int accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "title": "" }, { "docid": "f24d653136fb83955eacd6288e8a1545", "score": "0.6438296", "text": "void accept(SimpleVisitor visitor) throws Exception;", "title": "" }, { "docid": "339b7e078fd327e2f16f880311e43ea1", "score": "0.6436038", "text": "void acceptVisitor(T visitor);", "title": "" }, { "docid": "6265a8c4db8083524b66325e51ad98c6", "score": "0.642283", "text": "void accept(ASTVisitor visitor);", "title": "" }, { "docid": "cab486ba8818f60c896a02ceb77e2157", "score": "0.64198685", "text": "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "title": "" }, { "docid": "d5b721f139c80352d8a424faf220c6c6", "score": "0.64194626", "text": "public abstract void accept(INodeVisitor visitor);", "title": "" }, { "docid": "45b7118a32244ebe7bc505c72411f20e", "score": "0.637929", "text": "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "title": "" }, { "docid": "9a9fe08ed3e8cafcf8ca37b08f4f18c1", "score": "0.6375396", "text": "@Override\r\n public void accept(Visitor visitor) {\r\n visitor.visit(this);\r\n }", "title": "" }, { "docid": "924533de1eafa62c16cf4db1cdb74af6", "score": "0.6319472", "text": "Object visit(Etat etat);", "title": "" }, { "docid": "1f0fffdd3701bbc7f5e6b09820f47284", "score": "0.6226396", "text": "@Override\n\tpublic Object accept(Visitor v, Object param) {\n\t\treturn v.visit(this, param);\n\t}", "title": "" }, { "docid": "b92478c7692cd2a31aa928b747d9d4ec", "score": "0.61447126", "text": "public double accept(Visitor v){\r\n\t return v.visit(this);\r\n }", "title": "" }, { "docid": "8c8700847d4ac2125ed0fb567b68cba1", "score": "0.6133741", "text": "public <R> R accept(IArithVisitor<R> visitor) { \r\n return visitor.visitFormula(this); \r\n }", "title": "" }, { "docid": "695a45bfa962eded01e120656249f705", "score": "0.6131671", "text": "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\r\n\t}", "title": "" }, { "docid": "c22404ae8be60202f66ffc35d9e91e7f", "score": "0.6100704", "text": "public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "title": "" }, { "docid": "569567fb2ea9dabf9426898011142e37", "score": "0.60620064", "text": "public abstract void accept(AnimalVisitor visitor, RenderingMedia s);", "title": "" }, { "docid": "63e3f95ce5c644052db106af8770eeed", "score": "0.6054423", "text": "public void visit() {\n\t}", "title": "" }, { "docid": "5f810f9aa1e90aa07a50943bb3b61d24", "score": "0.60472757", "text": "@Override\n public void visit(Function arg0) {\n\n }", "title": "" }, { "docid": "0f44bd31ca42014fa1b72111487dc1e6", "score": "0.60396737", "text": "@Override\r\n\tpublic void accept(TurtleVisitor visitor){\r\n\t\tvisitor.visitTurtleTurnExpression(this);\r\n\t}", "title": "" }, { "docid": "77da5b5c26517c6716d28b1adf2ea8f4", "score": "0.60377437", "text": "public interface Visitor{\n /* Visitor for atomic values */\n String visit(IntegerLiteral literal);\n String visit(StringLiteral literal);\n String visit(Identifier id);\n\n /* Visitor for operators */\n String visit(Add operator);\n String visit(And operator);\n String visit(Call operator);\n String visit(Div operator);\n String visit(Eq operator);\n String visit(Ge operator);\n String visit(Gt operator);\n String visit(If operator);\n String visit(Le operator);\n String visit(Lt operator);\n String visit(Mod operator);\n String visit(Mul operator);\n String visit(Ne operator);\n String visit(Neg operator);\n String visit(Not operator);\n String visit(Or operator);\n String visit(Print operator);\n String visit(ReadI operator);\n String visit(ReadS operator);\n String visit(Sequence operator);\n String visit(Set operator);\n String visit(Sub operator);\n String visit(While operator);\n\n String visit(Program operator);\n\n}", "title": "" }, { "docid": "7dbf4f136bc13c02e74829d172e9c00c", "score": "0.60334164", "text": "@Override\n public void accept(ExpressionNodeVisitor visitor)\n {\n visitor.visit(this);\n\n firstNode.accept(visitor);\n for (int i = 0; i < termCount; i++)\n {\n terms[i].expression.accept(visitor);\n }\n }", "title": "" }, { "docid": "dd31b1fe52dfc6e11289e9b784d07835", "score": "0.6033064", "text": "public interface Visitor {\n\n void visit(ArithmeticNode node);\n void visit(AttributeNode node);\n void visit(ComparisonNode node);\n void visit(DocumentNode node);\n void visit(DocumentTypeNode node);\n void visit(EmbracedNode node);\n void visit(IdNode node);\n void visit(LiteralNode node);\n void visit(LogicNode node);\n void visit(NegationNode node);\n void visit(NowNode node);\n void visit(VariableNode node);\n\n}", "title": "" }, { "docid": "1894095c6c0265f5c296c413fb310b92", "score": "0.59846246", "text": "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "b7e51dfb1c6e1e768f4a212643baea33", "score": "0.598264", "text": "public void accept(ParseNodeVisitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "title": "" }, { "docid": "557cc19b055db3290a70ac0fc090dad6", "score": "0.5980428", "text": "public <RegValVisitType> RegValVisitType accept(RegValueVisitor<RegValVisitType> RegValueVisitor, Object... argv){\n\treturn RegValueVisitor.visit(this, argv);\n }", "title": "" }, { "docid": "9d19196abc3b570c025346cccc5dec70", "score": "0.59307516", "text": "public ValorBase aceitarVisita(Visitor visitor, Engenharia acumulador) {\r\n\r\n\t\treturn visitor.visitar(acumulador, this);\r\n\t}", "title": "" }, { "docid": "bd7a009a31eed84fc6ae08b565c5cfe2", "score": "0.5924841", "text": "@Override\n\tpublic void accept(IrNodeVistor vistor) {\n\t\t\n\t}", "title": "" }, { "docid": "203af227c9622b7c746a97dbd7911775", "score": "0.5913314", "text": "@Override\n\tpublic void acceptVisitor(FCNodeVisitor visitor) {\n\t}", "title": "" }, { "docid": "5d4e44b047b82cee29895c077b33c61e", "score": "0.59074533", "text": "public interface Visitable {\n void accept(Visitor visitor);\n}", "title": "" }, { "docid": "d5eb273b716e46bf43d327d5beb1a959", "score": "0.5868053", "text": "public R visit(Goal n, A argu);", "title": "" }, { "docid": "4df2e8661b5e9bc415e3edbdb384dccf", "score": "0.5845981", "text": "public void accept(ExpressionNodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t\tfor (Term t : terms)\n\t\t\tt.expression.accept(visitor);\n\t}", "title": "" }, { "docid": "384c7a7efde8b2d45a29025e8192386c", "score": "0.5841793", "text": "public interface Visitor {\n\n Object visit(Rule_PATH rule);\n\n Object visit(Rule_attributePath rule);\n\n Object visit(Rule_valuePath rule);\n\n Object visit(Rule_valueFilter rule);\n\n Object visit(Rule_attributeExpression rule);\n\n Object visit(Rule_filter rule);\n\n Object visit(Rule_filterDash rule);\n\n Object visit(Rule_compareValue rule);\n\n Object visit(Rule_compareOperation rule);\n\n Object visit(Rule_attributeName rule);\n\n Object visit(Rule_nameChar rule);\n\n Object visit(Rule_subAttribute rule);\n\n Object visit(Rule_URI rule);\n\n Object visit(Rule_SP rule);\n\n Object visit(Rule_alpha rule);\n\n Object visit(Rule_digit rule);\n\n Object visit(Rule_string rule);\n\n Object visit(Rule_char rule);\n\n Object visit(Rule_escape rule);\n\n Object visit(Rule_quotation_mark rule);\n\n Object visit(Rule_unescaped rule);\n\n Object visit(Rule_hexDigit rule);\n\n Object visit(Rule_false rule);\n\n Object visit(Rule_null rule);\n\n Object visit(Rule_true rule);\n\n Object visit(Rule_number rule);\n\n Object visit(Rule_exp rule);\n\n Object visit(Rule_frac rule);\n\n Object visit(Rule_int rule);\n\n Object visit(Rule_decimal_point rule);\n\n Object visit(Rule_digit1_9 rule);\n\n Object visit(Rule_e rule);\n\n Object visit(Rule_minus rule);\n\n Object visit(Rule_plus rule);\n\n Object visit(Rule_zero rule);\n\n Object visit(Terminal_StringValue value);\n\n Object visit(Terminal_NumericValue value);\n}", "title": "" }, { "docid": "dcdc11d6ebc4dd6c97c152e8b3cb2575", "score": "0.58321005", "text": "public ValorBase aceitarVisita(Visitor visitor, Valor acumulador) {\r\n\r\n\t\treturn visitor.visitar(acumulador, this);\r\n\t}", "title": "" }, { "docid": "fd4deb66193038947a364d8f13871cdf", "score": "0.5814249", "text": "void visit(V visitee);", "title": "" }, { "docid": "fa7208f59d4e3d13117ab56542429284", "score": "0.5806126", "text": "public R visit(facts n, A argu);", "title": "" }, { "docid": "5b9996037940072094cb71e9477217ae", "score": "0.58016723", "text": "@Override\r\n\tpublic <T> T accept(CodeModelToTVisitor<T> visitor) {\n\t\treturn visitor.visit(this);\r\n\t}", "title": "" }, { "docid": "99744932092c3083641959826f8b1b38", "score": "0.5788295", "text": "public interface IVisitingGOVertex extends IVisitor<Term>{}", "title": "" }, { "docid": "8bf6d7e5a60433abf64de4a64ce7fb3d", "score": "0.5783744", "text": "@Override\r\n\tpublic <T> T accept(TypeToTVisitor<T> visitor) {\n\t\treturn visitor.visit(this);\r\n\t}", "title": "" }, { "docid": "e6ff33129cf382e4c42e99d69649d302", "score": "0.5758921", "text": "public R visit(Operator n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "2de4214b612d522f940f6e996c0816e7", "score": "0.57561946", "text": "public interface Visitable {\n\n /**\n * Accept a visitor, and call visitor.visit(Visitable node) on child nodes as necessary.\n *\n * @param visitor the visitor\n */\n Visitable accept(Visitor visitor) throws StandardException;\n\n /**\n * Accept a visitor, and call v.visit(Visitable node, parentNode) on child nodes as necessary.\n *\n * @param visitor the visitor\n * @param parent the parent node of the node upon which this method is invoked, can be null if none or unknown.\n */\n Visitable accept(Visitor visitor, QueryTreeNode parent) throws StandardException;\n\n\n}", "title": "" }, { "docid": "79fc03ce1a6f664be58fbaf85ae309de", "score": "0.5749109", "text": "public interface Visitor<T> {\n\tpublic void visit(T t);\n}", "title": "" }, { "docid": "9cdc9ac13134f86eecbef53c6b849b9b", "score": "0.5744019", "text": "@Override\n public void visit(Addition arg0) {\n\n }", "title": "" }, { "docid": "e08a5567273b4f05f713fc54338549fb", "score": "0.5740934", "text": "public interface IVisitor<T> {\n // Tipos concretos\n T visit(ClassListDeclaration cdl);\n\n T visit(MainClassDeclaration mcd);\n\n T visit(ExtendedClassDeclaration ecd);\n\n T visit(SimpleClassDeclaration scd);\n\n T visit(ArgListDeclaration al);\n\n T visit(MethodListDeclaration mdl);\n\n T visit(ArgDeclaration a);\n\n T visit(MethodDeclaration md);\n\n T visit(VariableListDeclaration vdl);\n\n T visit(VariableDeclaration vd);\n\n T visit(LengthExpression ale);\n\n T visit(ArrayAccessExpression ale);\n\n T visit(ArrayCreationExpression nae);\n\n T visit(BinaryBooleanExpression bbe);\n\n T visit(LiteralBooleanExpression ble);\n\n T visit(UnaryBooleanExpression ube);\n\n T visit(IdentifierExpression ie);\n\n T visit(ObjectCreationExpression noe);\n\n T visit(BinaryIntegerExpression bie);\n\n T visit(LiteralIntegerExpression ile);\n\n T visit(UnaryIntegerExpression uie);\n\n T visit(ExpressionList e);\n\n T visit(MethodCallExpression mce);\n\n T visit(ThisExpression te);\n\n T visit(String id);\n\n T visit(Program p);\n\n T visit(StatementList sl);\n\n T visit(ArrayAssStatement aas);\n\n T visit(AssStatement as);\n\n T visit(BraceStatement bs);\n\n T visit(IfElseStatement is);\n\n T visit(SysoStatement ps);\n\n T visit(WhileStatement ws);\n\n T visit(BoolType bt);\n\n T visit(IdType it);\n\n T visit(IntArrayType iat);\n\n T visit(IntType it);\n}", "title": "" }, { "docid": "140a9b59a648dbf4746c12ff66779a74", "score": "0.573834", "text": "public interface Visitor {\n /**\n * Invoked on every vertex before the start of the search.\n * \n * @param vertex\n * the Vertex\n */\n public void startVertex(int vertex);\n\n /**\n * Invoked the first time the algorithm encounters vertex <i>u </i>. All\n * vertices closer to the source vertex have been discovered, and\n * vertices further from the source have not yet been discovered.\n * \n * @param vertex\n * the Vertex\n */\n public void discoverVertex(int vertex);\n\n /**\n * Invoked in each vertex as it is removed from the queue\n * \n * @param vertex\n * the Vertex\n */\n public void examineVertex(int vertex);\n\n /**\n * Invoked on every out-edge of each vertex immediately after the vertex\n * is removed from the queue.\n * \n * @param edge\n * the Edge\n */\n public void examineEdge(int edge);\n\n /**\n * Invoked (in addition to <tt>examine_edge()</tt>) if the edge is a\n * tree edge. The target vertex of edge <tt>e</tt> is discovered at\n * this time.\n * \n * @param edge\n * the Edge\n */\n public void treeEdge(int edge);\n\n /**\n * Invoked (in addition to <tt>examine_edge()</tt>) if the edge is\n * not a tree edge.\n * \n * @param edge\n * the Edge\n */\n public void nonTreeEdge(int edge);\n\n /**\n * Invoked (in addition to <tt>non_tree_edge()</tt>) if the target\n * vertex is colored grey at the time of examination. The color grey\n * indicates that the vertex is currently in the queue.\n * \n * @param edge\n * the Edge\n */\n public void greyTarget(int edge);\n\n /**\n * Invoked (in addition to <tt>non_tree_edge()</tt>) if the target\n * vertex is colored black at the time of examination. The color black\n * indicates that the vertex is no longer in the queue.\n * \n * @param edge\n * the Edge\n */\n public void blackTarget(int edge);\n\n /**\n * Invoked after all of the out edges of <i>u </i> have been examined\n * and all of the adjacent vertices have been discovered.\n * \n * @param vertex\n * the Vertex\n */\n public void finishVertex(int vertex);\n }", "title": "" }, { "docid": "c461de0bc2dcafdddd5f6a8bc67b564f", "score": "0.5730214", "text": "<R> R accept(CPSVisitor.ExpressionVisitor<R> expressionVisitor);", "title": "" }, { "docid": "9949a065eb60e677e543c64e23afeabd", "score": "0.5718742", "text": "@Override\n\tpublic void acceptVisitor(VBASGVisitor visitor) {\n\t\t\tvisitor.visit(this);\n\t\t\n\t}", "title": "" }, { "docid": "65f4e9ab4ade4ee768d46867421c0d80", "score": "0.57168704", "text": "void visit(int value);", "title": "" }, { "docid": "42289edf332e0e7358efaf14e2ebbe7f", "score": "0.5701234", "text": "public interface GiftVisitor {\r\n void visit(CarModel c);\r\n\r\n void visit(Doll d);\r\n\r\n void visit(SweetRoll s);\r\n\r\n default void visit(GiftPack pack) {\r\n for (Gift g : pack.getGifts())\r\n g.accept(this);\r\n }\r\n}", "title": "" }, { "docid": "1921039f123421079c25e348c42e6392", "score": "0.57012326", "text": "public abstract void accept(MovableVisitor visitor);", "title": "" }, { "docid": "bee14d4ba638f7ecaf1a3c0fbf22ec12", "score": "0.5681592", "text": "@Override\r\n\tpublic void traverse(ASTVisitor visitor, BlockScope scope) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e96c5686991909894f8242189708b8cc", "score": "0.5680541", "text": "T visit(SolarSystem ss);", "title": "" }, { "docid": "d51f961cecc7716d6ad3dea05ea8d96f", "score": "0.56793237", "text": "public interface IVisitor extends net.ssehub.easy.instantiation.core.model.common.IVisitor {\n \n /**\n * Visits a template.\n * \n * @param template the template to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitTemplate(Template template) throws VilException;\n\n /**\n * Visits a sub-template definition.\n * \n * @param def the sub-template definition to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitDef(Def def) throws VilException;\n\n /**\n * Visits a template block.\n * \n * @param block the template block to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitTemplateBlock(TemplateBlock block) throws VilException;\n \n /**\n * Visits an alternative statement.\n * \n * @param alternative the alternative to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitAlternative(AlternativeStatement alternative) throws VilException;\n \n /**\n * Visits a loop statement.\n * \n * @param loop the loop statement to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitLoop(LoopStatement loop) throws VilException;\n\n /**\n * Visits a while statement.\n * \n * @param stmt the while statement to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitWhile(WhileStatement stmt) throws VilException;\n\n /**\n * Visits a switch statement.\n * \n * @param swtch the switch statement to visit\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitSwitch(SwitchStatement swtch) throws VilException;\n\n /**\n * Visits a content statement.\n * \n * @param cnt the content statement\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitContentStatement(ContentStatement cnt) throws VilException;\n\n /**\n * Visits a java extension.\n * \n * @param ext the java extension\n * @return the result of visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitJavaExtension(JavaExtension ext) throws VilException;\n\n /**\n * Visits a template call expression.\n * \n * @param call the call expression\n * @return the result of visiting the given expression (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitTemplateCallExpression(TemplateCallExpression call) throws VilException;\n \n /**\n * Visits a flush statement.\n * \n * @param flush the flush statement\n * @return the result visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitFlush(FlushStatement flush) throws VilException;\n\n /**\n * Visits a content alternative expression.\n * \n * @param ex the expression\n * @return the result visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitContentAlternativeExpression(ContentAlternativeExpression ex) throws VilException;\n\n /**\n * Visits a content loop expression.\n * \n * @param ex the expression\n * @return the result visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitContentLoopExpression(ContentLoopExpression ex) throws VilException;\n\n /**\n * Visits a content variable declaration expression.\n * \n * @param ex the expression\n * @return the result visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitContentVarDeclExpression(ContentVarDeclExpression ex) throws VilException;\n\n /**\n * Visits a content import expression.\n * \n * @param ex the expression\n * @return the result visiting the given statement (may be <b>null</b>)\n * @throws VilException in case that visiting fails (e.g., execution)\n */\n public Object visitContentImportExpression(ContentImportExpression ex) throws VilException;\n\n}", "title": "" }, { "docid": "bea33ccd5e86bad958c925a4dfaacc1a", "score": "0.5669655", "text": "public static interface Visitor<R, A> {\n public R all(A argument, List<Constraint> constraints);\n public R any(A argument, List<Constraint> constraints);\n public R has(A argument,\n Either<Object, Selector> argument1, \n Relation relation, \n Either<Object, Selector> argument2);\n }", "title": "" }, { "docid": "3fb86c8a68739f626de70c1053ca8172", "score": "0.56659067", "text": "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "title": "" }, { "docid": "3fb86c8a68739f626de70c1053ca8172", "score": "0.56659067", "text": "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "title": "" }, { "docid": "8aaa7f3c439481d7b609b2ee1c93bec4", "score": "0.56461775", "text": "void visit(Object value);", "title": "" }, { "docid": "53324b417f1669c8654addbc6065a10f", "score": "0.5640584", "text": "public interface Visitor<V>\n{\n /**\n * Visits a visitable object.\n *\n * @param visitee The object to visit.\n */\n void visit(V visitee);\n}", "title": "" }, { "docid": "a1d813ad82cd55d72c07bcfccc8f4a9f", "score": "0.5639116", "text": "public void apply(TreeVisitor tp)\n/* */ {\n/* 143 */ for (Tree t : this) {\n/* 144 */ tp.visitTree(t);\n/* */ }\n/* */ }", "title": "" }, { "docid": "67a116338d195b4c9744ce65f40cb31f", "score": "0.56315315", "text": "public <StatVisitType> StatVisitType accept(StatementVisitor<StatVisitType> statVisitor, Object... argv){\n\treturn statVisitor.visit(this, argv);\n }", "title": "" }, { "docid": "42d14382856eed64db717daa76b8fc0e", "score": "0.56249857", "text": "public abstract <V, P> V accept(LabelVisitor<V, P> visitor, P param);", "title": "" }, { "docid": "0d2b31a8577e4837a83118d9b99024f6", "score": "0.56078404", "text": "public void traverse(ASTVisitor visitor, BlockScope scope) {\n\t}", "title": "" }, { "docid": "d58a412e66dd376f45b4fdd49ae2d684", "score": "0.55973357", "text": "String visit(Add operator);", "title": "" }, { "docid": "5068a7dd45e5bc8ff118c4cc5a4a1e1b", "score": "0.5595924", "text": "@Override\r\n\tpublic void accept(Visitor V) {\r\n\t\tleft.accept(V);\r\n\t\tright.accept(V);\r\n\t\tV.visit(this);\r\n\t}", "title": "" }, { "docid": "094e5519c28b900aa19a1a2c419546bb", "score": "0.55909324", "text": "public interface Visitor {\n\n int visit(Notebook notebook);\n\n int visit(Pen pen);\n\n}", "title": "" }, { "docid": "f7c401a1c18178a95d371d088204cb2b", "score": "0.5578034", "text": "@Override\n\tpublic void accept(Visitor vis) {\n\t\tvis.visit(this);\n\t}", "title": "" }, { "docid": "8d34f962d5d2bf26fcfd126867940145", "score": "0.55778795", "text": "void apply(MethodVisitor methodVisitor, MethodDescription methodDescription);", "title": "" }, { "docid": "e97ec44bc25b44554cf2117170df3e91", "score": "0.55759925", "text": "void accept0(ASTVisitor visitor) {\r\n\t\tboolean visitChildren = visitor.visit(this);\r\n\t\tif (visitChildren) {\r\n\t\t\t// visit children in normal left to right reading order\r\n\t\t\tacceptChild(visitor, getVersion());\r\n\t\t\tacceptChild(visitor, getThenBody());\r\n\t\t\tacceptChild(visitor, getElseBody());\r\n\t\t}\r\n\t\tvisitor.endVisit(this);\r\n\t}", "title": "" }, { "docid": "efa446ca3bfbb75285c4e10544700199", "score": "0.55725867", "text": "public interface iTreeVisitorI {\n int forBud();\n int forFlat(FruitD f,TreeD t);\n int forSplit(TreeD l,TreeD r);\n}", "title": "" }, { "docid": "8b1435dd83bab5979c05e224bf0cc24a", "score": "0.5570486", "text": "public interface Visitor {\n\n void visit(Enemy enemy);\n\n void visit(Cannon enemy);\n\n void visit(Missile enemy);\n\n void visit(Collision enemy);\n\n void visit(Score enemy);\n}", "title": "" }, { "docid": "05ab55163d54e3615342cc484d74aaac", "score": "0.5568828", "text": "public void traverse(EclipseASTVisitor visitor) {\n\t\ttop().traverse(visitor);\n\t}", "title": "" }, { "docid": "2135fee1f52269e4897b7295a0ca6c49", "score": "0.5564938", "text": "public R visit(Goal n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "3d3232cf0ea35f87741356773b59284a", "score": "0.55638117", "text": "@Override\n\tprotected void visit0(ImpalaOp op) {\n\t\top.visit(visitor);\n\t}", "title": "" }, { "docid": "fc473d34618b735be405ea6eb80d954d", "score": "0.5563041", "text": "public <R> R accept(IArithVisitor<R> visitor) { \r\n return visitor.visitConst(this); \r\n }", "title": "" }, { "docid": "99cb6156583f4b9b0f07bada7ba4878f", "score": "0.55579686", "text": "public interface IVisitable<T> {\n\n void accept(IVisitor<T> visitor);\n T data();\n\n}", "title": "" }, { "docid": "83c14c87b986b778267cf680c7428e21", "score": "0.55164814", "text": "int visit(Car car);", "title": "" }, { "docid": "10eb4b5841c9ce0963950b4e62d40ed6", "score": "0.5499274", "text": "public interface Visitor {\n\n\tpublic void visit(TreeInfoInterface t);\n\n}", "title": "" }, { "docid": "c36fc76e53bba8f58d312f9d90ad739f", "score": "0.54981744", "text": "public interface NodeVisitor {\n\n\t// DictionaryNode and ListNode have nested \n\t// elements. The pretty printer needs to print \n\t// characters before and after the visit to \n\t// the the children. \n\t// We also need to print identation and comma \n\t// betwwe the children. \n\t// That is why it needs multiple visit calls.\n\t// \"visitEnter\" and \"visitLeave\" to print\n\t// characters before and after the children.\n\t// \"visitIdent\" and \"visit\" to print characters\n\t// regarding to the identation and layout \n\t// between the children.\n\tpublic void visitIdent(DictionaryNode node);\n\tpublic void visitEnter(DictionaryNode node);\n\tpublic void visit(DictionaryNode node);\n\tpublic void visitLeave(ListNode node);\n \n public void visitIdent(ListNode node);\n public void visitEnter(ListNode node);\n public void visit(ListNode node);\n public void visitLeave(DictionaryNode node);\n \n \n public void visit(KeyValueNode node);\n public void visit(NumberNode node);\n public void visit(StringNode node);\n\n}", "title": "" }, { "docid": "2ac8739a1f73fdef71e9d32878fda40f", "score": "0.54947466", "text": "@Override\r\n\tpublic void traverse(ASTVisitor visitor, ClassScope scope) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6901208dec7f66b8e711f946f99b42a2", "score": "0.54928434", "text": "void traverse(JsVisitor visitor, JsContext ctx);", "title": "" }, { "docid": "38ef30f33861f1bff4c7149c49089044", "score": "0.54905367", "text": "interface Visitor<O> {\n\n\t\tO visit(IndexedDisjointClassesAxiom axiom);\n\n\t}", "title": "" }, { "docid": "150d7fc443ac84b12b355010cdb3ffeb", "score": "0.54793376", "text": "public ValorBase aceitarVisita(Visitor visitor, Complexo acumulador) {\r\n\r\n\t\tValorBase v = acumulador.getValorInteiro();\r\n\t\tv.aceitarVisita(visitor, this);\r\n\r\n\t\t// ???\r\n\t\treturn visitor.visitar(acumulador, this);\r\n\t}", "title": "" }, { "docid": "274a9628ae93a3ee645f55273abe29f8", "score": "0.54724604", "text": "public abstract void visit(final IRFunction icodefunc);", "title": "" }, { "docid": "8c6275cdf6a721303ffdad4e60d431e3", "score": "0.5471689", "text": "public GNode visit(GNode n) {\n\t\t for( Object o : n) {\n\t\t\tif (o instanceof Node) {\n\t\t\t GNode returnValue = (GNode)dispatch((GNode)o);\n\t\t\t if( returnValue != null ) return returnValue;\n\t\t\t}\n\t\t }\n\t\t \n\t\t return null;\n\t\t \n\t\t}", "title": "" } ]
2f799d969c7aa281aa2746e3193771d2
Gets the index of the sound's bufferIndex.
[ { "docid": "a23e60be5f1f58a20c3dc236da490d3b", "score": "0.81224847", "text": "public int getBufferIndex() {\n return bufferIndex;\n }", "title": "" } ]
[ { "docid": "58f9f207f40bae2bdac5a9826f04a2ec", "score": "0.6519565", "text": "int getSoundIndex();", "title": "" }, { "docid": "14ccbaccfc76a0e46ac9529be1f3807e", "score": "0.6391769", "text": "public int getSoundIndex() {\n return soundIndex_;\n }", "title": "" }, { "docid": "f66be2d9f0bf63d72e74fbfe21fb6c12", "score": "0.63661957", "text": "public int getSoundIndex() {\n return soundIndex_;\n }", "title": "" }, { "docid": "5e9a8f01583cc071ea055c1951f87c8a", "score": "0.63524204", "text": "public long getIndex() {\r\n return index_;\r\n }", "title": "" }, { "docid": "fbb5311c4d2fd30f526ed7b94c51acdc", "score": "0.6351295", "text": "public long getIndex() {\r\n return index_;\r\n }", "title": "" }, { "docid": "74a04ac0fd74321ee59e04ffccda6fb0", "score": "0.627852", "text": "public int findBufferPosition(Buffer b) {\n for (int i = 0; i < buffers.size(); i++) {\n if (b.getFullName().equals(buffers.get(i).getFullName())) {\n return i;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "d9e8e475c22f0da5c724cd7317083bc2", "score": "0.62420595", "text": "int getIndex(int pos) {\n return pos & (buffer.length - 1);\n }", "title": "" }, { "docid": "71be56731ad05ea8261e5c688c5e55f0", "score": "0.62199056", "text": "com.google.protobuf.ByteString getOffsetIndex();", "title": "" }, { "docid": "71be56731ad05ea8261e5c688c5e55f0", "score": "0.62199056", "text": "com.google.protobuf.ByteString getOffsetIndex();", "title": "" }, { "docid": "71be56731ad05ea8261e5c688c5e55f0", "score": "0.62199056", "text": "com.google.protobuf.ByteString getOffsetIndex();", "title": "" }, { "docid": "71be56731ad05ea8261e5c688c5e55f0", "score": "0.62199056", "text": "com.google.protobuf.ByteString getOffsetIndex();", "title": "" }, { "docid": "71be56731ad05ea8261e5c688c5e55f0", "score": "0.62199056", "text": "com.google.protobuf.ByteString getOffsetIndex();", "title": "" }, { "docid": "350fe9b0652b3b6d6420a1220d25d42d", "score": "0.6178403", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "c2f4c1d9c502649a19ce30b200519e03", "score": "0.6176775", "text": "public byte getIndex();", "title": "" }, { "docid": "65727433199d2f084d2e6bac642c65bf", "score": "0.61420524", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "6b1d822cd671729f198b53f769c53f56", "score": "0.61227196", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "ace959d8b0ad434ee12eb9256817d55f", "score": "0.608913", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "98ce492336f84069ce1fb431fd397830", "score": "0.60829145", "text": "public final int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "f1ae6e0e700230e30bb3d93df4e5683b", "score": "0.6059794", "text": "com.google.protobuf.ByteString\n getIndexBytes();", "title": "" }, { "docid": "c65ba4b48825d96d47201942e550b6ee", "score": "0.60582256", "text": "public java.lang.Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "7c4de1eb3a42ccc41d50a1579bb88c39", "score": "0.6044248", "text": "public final int getIndex() {\n\t\t\treturn index;\n\t\t}", "title": "" }, { "docid": "6f3cac8fb15d71f52edb3d1d5ef761bb", "score": "0.60377514", "text": "public int getIndex() {\n return _index;\n }", "title": "" }, { "docid": "6f3cac8fb15d71f52edb3d1d5ef761bb", "score": "0.60377514", "text": "public int getIndex() {\n return _index;\n }", "title": "" }, { "docid": "48177f750f2aa9fd453e6bc691871fa0", "score": "0.6020884", "text": "public java.lang.Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "2f431bc0d1d2c0b5d6b355cdea61840b", "score": "0.6014055", "text": "public short getIndex() {\n return index;\n }", "title": "" }, { "docid": "398a1d06073b883b3a176f5be3ef8a79", "score": "0.60063815", "text": "public int getIndex() {\n\n\t\treturn index;\n\t}", "title": "" }, { "docid": "54675afc82f64c407a90efda0c8c31cf", "score": "0.59992737", "text": "public int getIndex() {\r\n\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "9c20154f95c6636b19fae6a99f82b89b", "score": "0.59965634", "text": "public int getIdx()\n {\n return index;\n }", "title": "" }, { "docid": "d602d700f3120a338017eb9aa041010c", "score": "0.5973264", "text": "public final int getIndex()\n\t\t\t{\n\t\t\treturn index;\n\t\t\t}", "title": "" }, { "docid": "4e35ee00f1ce9ba9df927807dbfb99dc", "score": "0.5968706", "text": "public int getIndex() {\r\n return index;\r\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.59655595", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "9c15b57ac3050358b47f3d4165634cfc", "score": "0.5965455", "text": "public int getIndex() {\n\n return index;\n }", "title": "" }, { "docid": "d255e88ded0531aa889a66a077d015ff", "score": "0.59641254", "text": "public int getIndex() {\n\t\treturn this.index;\n\t}", "title": "" }, { "docid": "3540b8d987be105661108c12b3790aa9", "score": "0.5963173", "text": "public int getIndex() {\n return this.index;\n }", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.596082", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.596082", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.596082", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.596082", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.596082", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.596082", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "96ee88f7223dcd00a424ea0c056ab2df", "score": "0.59561336", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "96ee88f7223dcd00a424ea0c056ab2df", "score": "0.59561336", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "8d11eda44caf0e55517aece79db65059", "score": "0.5953478", "text": "int getFrameIndex();", "title": "" }, { "docid": "df9db688b2acbd195f73e43c62163097", "score": "0.5944195", "text": "public int getIndex() {\n\t\t\treturn index;\n\t\t}", "title": "" }, { "docid": "83ba31326299c62d909b547551c71883", "score": "0.5940736", "text": "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "83ba31326299c62d909b547551c71883", "score": "0.5940736", "text": "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "89676d36dfd02eeb37d454fae27a461d", "score": "0.5940359", "text": "public Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "5835896974a2825d7c85784133bec651", "score": "0.5929597", "text": "public int getIndex()\n\t{\n\t\treturn index;\n\t}", "title": "" }, { "docid": "da12edd2944de27da6b58366b4d28046", "score": "0.59267837", "text": "public int getIndex()\n {\n\treturn lastIdx;\n }", "title": "" }, { "docid": "4cdaebe78bebb86c3cd8244e105418ec", "score": "0.590854", "text": "public short getIndex() {\n return index;\n }", "title": "" }, { "docid": "4cdaebe78bebb86c3cd8244e105418ec", "score": "0.590854", "text": "public short getIndex() {\n return index;\n }", "title": "" }, { "docid": "4cdaebe78bebb86c3cd8244e105418ec", "score": "0.590854", "text": "public short getIndex() {\n return index;\n }", "title": "" }, { "docid": "4cdaebe78bebb86c3cd8244e105418ec", "score": "0.590854", "text": "public short getIndex() {\n return index;\n }", "title": "" }, { "docid": "a6094b6ea9425dbd1d72ca12db9f7b8e", "score": "0.5899603", "text": "public int getIndex() {\n return this.index;\n }", "title": "" }, { "docid": "75a271449c16fd4161af5459d448ce0e", "score": "0.5880523", "text": "public Integer getJitterBuffer()\n {\n return this.m_JitterBuffer;\n }", "title": "" }, { "docid": "67b56e83031a06ba2454fb8ed5c7d3b7", "score": "0.5879106", "text": "public int getNumBuffers() {\n return bufferSize;\n }", "title": "" }, { "docid": "13713b90b7a2284c4e974d447f4c38fb", "score": "0.58537966", "text": "public Integer getIdx() {\r\n return idx;\r\n }", "title": "" }, { "docid": "4cc7444a352a64b1affd2b7fdab26ce6", "score": "0.5847957", "text": "public int getIndex() {\n\t\t\treturn this.indexOfCode;\n\t\t}", "title": "" }, { "docid": "7e1e42faf0f15e25fd76d0d214b99923", "score": "0.5845839", "text": "public Buffer getBuffer() {\n\t\treturn this.b;\n\t}", "title": "" }, { "docid": "602bc282544880063f45c8cb8cfe738e", "score": "0.58346874", "text": "public int getIdx() {\n return idx;\n }", "title": "" }, { "docid": "f0dac5049dd006ebbd3de3f3e63a4f37", "score": "0.58211803", "text": "public int getIdx() {\n\t\treturn idx;\n\t}", "title": "" }, { "docid": "084423b6da01a304f7fd9ff3119cc774", "score": "0.58164203", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "b1a7c824b201966e9eee694c040b1810", "score": "0.5813467", "text": "public int getIndex() {\n\treturn this.index;\n }", "title": "" }, { "docid": "4b0504c3a57f28986f9ba9292aa7130c", "score": "0.58080506", "text": "BitmapIndex getBitmapIndex();", "title": "" }, { "docid": "5d1efbdade00feb1ea544a50421d9aaa", "score": "0.57897633", "text": "public int getIndex(){\n\t\treturn this.index;\n\t}", "title": "" }, { "docid": "bdf32778e6d3122c87f0524a3518828f", "score": "0.5776703", "text": "public int getIndex() {\n return INDICES.getOrDefault(WORLD, 0);\n }", "title": "" }, { "docid": "0e400362dd0fbba87a867cad691649c5", "score": "0.57683355", "text": "int index()\n\t{\n\t\tif(this.cursor == null)\n\t\t\treturn -1;\n\t\treturn this.index;\n\t}", "title": "" }, { "docid": "c316463ed4bcecb2867e71ff78611f07", "score": "0.57655156", "text": "public int getIndex() {\n return txIndex;\n }", "title": "" }, { "docid": "506c24f4d073d279aeeea2e8a5aafa62", "score": "0.57420564", "text": "public int getIndexNumber() {\n\t\treturn indexNumber;\n\t}", "title": "" }, { "docid": "cabc62a684b3c18f63523d3302fcb20b", "score": "0.5723537", "text": "public long getIndex();", "title": "" }, { "docid": "a25465905010b7647899d2e8516e5396", "score": "0.5721237", "text": "int getBuffer(String path);", "title": "" }, { "docid": "0f53ac4ca09ffe7ec69f50805f43f233", "score": "0.56946516", "text": "public long index() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "857098bacd105e835aa3d14b830b28f3", "score": "0.5687432", "text": "public java.lang.CharSequence getIndex() {\n return index;\n }", "title": "" }, { "docid": "0c99c5869b4a33eaeac71a619d47fd2d", "score": "0.5686482", "text": "public float getIndex() {\n return index;\n }", "title": "" }, { "docid": "0c777fc39fd54a3c70f65949bca1466d", "score": "0.56794477", "text": "public int getTopBuffer() {\n\t\treturn topBuffer;\n\t}", "title": "" }, { "docid": "7580bb71f3490784a77546f699a0e070", "score": "0.5676483", "text": "public String getBufferName()\n {\n return _bufferName;\n }", "title": "" }, { "docid": "8e73b9e9965ee3042dfe7248aa86ce03", "score": "0.5674417", "text": "public java.lang.CharSequence getIndex() {\n return index;\n }", "title": "" }, { "docid": "aab17e176f69af534d98815d91a7b403", "score": "0.5670846", "text": "public String getIdx() {\n return this.sIdx;\n }", "title": "" }, { "docid": "945cc98e68f91fc71c0dc7c1c64d7773", "score": "0.5666957", "text": "public int getIndex(){\n return index;\n }", "title": "" }, { "docid": "a65a996a74ba8fdf9ee4d4b0c0f4017a", "score": "0.5647463", "text": "public PM_Index getIndex() {\n\t\treturn index; // null wenn nicht vorhanden !!!\n\t}", "title": "" }, { "docid": "19b0b79577a32502372198f1c5550b47", "score": "0.5639133", "text": "public int getPosition() {\n return index;\n }", "title": "" }, { "docid": "ad9ce152c5514ca6198a462ea943fd7e", "score": "0.56116045", "text": "public java.lang.String getIndex() {\n java.lang.Object ref = index_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n index_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "4caa6d94e976aeba40f328dc7922ca2e", "score": "0.56022006", "text": "int getIndex() {\n\treturn index;\n}", "title": "" }, { "docid": "18d2ceb4debc52143ceb7ae7ad321ea6", "score": "0.55913585", "text": "public long index() {\n return index.index();\n }", "title": "" }, { "docid": "94fb0a54f5ddf43c968e5a1acca3d9b5", "score": "0.55820894", "text": "int getIndex()\n {\n return index;\n }", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.5573573", "text": "long getIndex();", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.5573573", "text": "long getIndex();", "title": "" }, { "docid": "a334a6542bc883ad7453ae52e51785b8", "score": "0.5563527", "text": "short getSignalIndex(UUID signalId)\n\t{\n\t\treturn m_signalIdCache.get(signalId);\n\t}", "title": "" }, { "docid": "49815243e471b3f412b4efbec1b837c4", "score": "0.5557946", "text": "public com.google.protobuf.ByteString getOffsetIndex() {\n return offsetIndex_;\n }", "title": "" }, { "docid": "49815243e471b3f412b4efbec1b837c4", "score": "0.5557946", "text": "public com.google.protobuf.ByteString getOffsetIndex() {\n return offsetIndex_;\n }", "title": "" }, { "docid": "49815243e471b3f412b4efbec1b837c4", "score": "0.5557946", "text": "public com.google.protobuf.ByteString getOffsetIndex() {\n return offsetIndex_;\n }", "title": "" }, { "docid": "49815243e471b3f412b4efbec1b837c4", "score": "0.5557946", "text": "public com.google.protobuf.ByteString getOffsetIndex() {\n return offsetIndex_;\n }", "title": "" }, { "docid": "49815243e471b3f412b4efbec1b837c4", "score": "0.5557946", "text": "public com.google.protobuf.ByteString getOffsetIndex() {\n return offsetIndex_;\n }", "title": "" }, { "docid": "f63a23d7f037c6b368a1838b9ef27f93", "score": "0.55527127", "text": "public String getIndex() {\n return index;\n }", "title": "" } ]
3b75076b26c99f769feec91f987fad8a
This method was generated by MyBatis Generator. This method sets the value of the database column new_qrtz_schedule_job.brand_id
[ { "docid": "2d465866e32aa1aff539694b498af627", "score": "0.7164492", "text": "public void setBrandId(Integer brandId) {\n this.brandId = brandId;\n }", "title": "" } ]
[ { "docid": "8c561182714653978cd95630fdc12b9c", "score": "0.7303375", "text": "public void setBrandId(Long brandId) {\r\n this.brandId = brandId;\r\n }", "title": "" }, { "docid": "8c561182714653978cd95630fdc12b9c", "score": "0.7303375", "text": "public void setBrandId(Long brandId) {\r\n this.brandId = brandId;\r\n }", "title": "" }, { "docid": "25d1a7bca1c275dd436031aa68f510be", "score": "0.7227297", "text": "public void setBrandId(Integer brandId) {\r\n this.brandId = brandId;\r\n }", "title": "" }, { "docid": "ca98786c19151f021633a2d402a7cc0a", "score": "0.7213195", "text": "public void setBrandId(Long brandId) {\n this.brandId = brandId;\n }", "title": "" }, { "docid": "66d9076b5cbdaaada1422768cf3037eb", "score": "0.68629587", "text": "public Long getBrandId() {\r\n return brandId;\r\n }", "title": "" }, { "docid": "66d9076b5cbdaaada1422768cf3037eb", "score": "0.68629587", "text": "public Long getBrandId() {\r\n return brandId;\r\n }", "title": "" }, { "docid": "66d10abf6aee28f887ff4ab9e8193242", "score": "0.68150073", "text": "public Long getBrandId() {\n return brandId;\n }", "title": "" }, { "docid": "69adf2cbb579256f472cfbfb2bdc548b", "score": "0.6789276", "text": "public Integer getBrandId() {\r\n return brandId;\r\n }", "title": "" }, { "docid": "676c562ab9aa8ef6ebdabba164898fb1", "score": "0.67655015", "text": "public Integer getBrandId() {\n return brandId;\n }", "title": "" }, { "docid": "676c562ab9aa8ef6ebdabba164898fb1", "score": "0.67655015", "text": "public Integer getBrandId() {\n return brandId;\n }", "title": "" }, { "docid": "133f310302562520239558c81fcf54a8", "score": "0.64251155", "text": "@Override\n\tpublic Model getBrandId(Integer brand_id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a2205699e1e8c3da45ca4077c7d4daa6", "score": "0.63948864", "text": "public Builder brandId(Integer brandId) {\n obj.setBrandId(brandId);\n return this;\n }", "title": "" }, { "docid": "5028db63ed9054b6b0d0e65309d65c60", "score": "0.624733", "text": "public void setBrandGameId(java.lang.String brandGameId) {\r\n this.brandGameId = brandGameId;\r\n }", "title": "" }, { "docid": "72ae6378f4ecf9a23c6af36db3ad326f", "score": "0.6190011", "text": "public void setBrand (String brandIn)\r\n\t{\r\n\t\tbrand = brandIn;\r\n\t}", "title": "" }, { "docid": "f70c1133a38d4861a564e5bbf597b195", "score": "0.5938097", "text": "public void setBrand(String brand) {\n this.brand = brand;\n }", "title": "" }, { "docid": "f70c1133a38d4861a564e5bbf597b195", "score": "0.5938097", "text": "public void setBrand(String brand) {\n this.brand = brand;\n }", "title": "" }, { "docid": "f70c1133a38d4861a564e5bbf597b195", "score": "0.5938097", "text": "public void setBrand(String brand) {\n this.brand = brand;\n }", "title": "" }, { "docid": "0975ed691b93a5e04f00ce8f9fd0c1a6", "score": "0.58772403", "text": "public void setBrand(String brand) {\n\t\tthis.brand = brand;\n\t}", "title": "" }, { "docid": "88266c55e7d1f69907568a00ad46a88a", "score": "0.5876059", "text": "public void setBrand(String aBrand) {\n brand = aBrand;\n }", "title": "" }, { "docid": "3952ed6066a78e3d77b0d08bb598cbcc", "score": "0.5846853", "text": "public void setBrand(String b) {\n brand = b;\n }", "title": "" }, { "docid": "bfdb12bc3cf59d152c4264b92e57bcee", "score": "0.5625523", "text": "public void setBrandName(String brandName) {\n this.brandName = brandName;\n }", "title": "" }, { "docid": "644f964a2655d1ee8ff67507a6c78d6f", "score": "0.5615763", "text": "CouponsApplyBrand selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "37ba3f5c459d58792ee69486e7e407e3", "score": "0.5546425", "text": "public void setBrhId(String brhId) {\n this.brhId = brhId;\n }", "title": "" }, { "docid": "4daa640c293d79bc422dc6d6339a4a9c", "score": "0.5484693", "text": "public void setBrandTemplate(int brandTemplate) {\r\n\t\tthis.brandTemplate = brandTemplate;\r\n\t}", "title": "" }, { "docid": "0635f864d6eb825560896fa7907fb05c", "score": "0.5461391", "text": "@Override\n public void onSinkronAddBrandSuccess(SinkronResponse sinkronResponse) {\n sinkronUpdateBrandController.update_brand();\n }", "title": "" }, { "docid": "f5b2cbf961444b75dbb9c252191d68ff", "score": "0.5443984", "text": "@Override\n\tpublic void editBrand(Brand brand) {\n\t\t\n\t\tBrand brand_temp = brandRepository.findBrandById(brand.getId());\n\t\t\n\t\tbrand_temp.setName(brand.getName());\n\t\tbrandRepository.save(brand_temp);\n\t}", "title": "" }, { "docid": "d191dd13054770d5922d44c07e9f8aa2", "score": "0.54287374", "text": "@Override\n\tpublic List<Car_Brands> getBrandById(Integer brand_id) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(\" from Car_Brands where id = '\" + brand_id + \"'\");\n\t\tList<Car_Brands> car_Brands = query.list();\n\t\ttransaction.commit();\n\t\tsession.flush();\n\t\tsession.close();\n\t\treturn car_Brands;\n\t}", "title": "" }, { "docid": "4da6789265bc5df1a8f7dcd1ef6e4b49", "score": "0.54082966", "text": "Brand findById(long id);", "title": "" }, { "docid": "506f052de188cb91baac4b0f74790fee", "score": "0.5406226", "text": "JindouyunBrand selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "b8993d2a65acd3ebff097a5655299cf2", "score": "0.538835", "text": "@PutMapping(\"brands/{brandId}\")\n\tpublic ResponseEntity<Object> updateBrands(@RequestBody BrandRequestDTO brandsreqDTO, @PathVariable Long brandId)\n\t\t\tthrows Exception {\n\n\t\tBrandResponseDTO updatedrespBrands = adminService.updateBrands(brandId, brandsreqDTO);\n\t\treturn ResponseEntity.ok(updatedrespBrands);\n\t}", "title": "" }, { "docid": "e49e07eff135a5b6c3cd9ff36397842b", "score": "0.53655577", "text": "public void setbrands(String brands) {\r\n this.brands = brands;\r\n }", "title": "" }, { "docid": "1373c598e8e4427a4b1deeb0c0b1057d", "score": "0.5350268", "text": "@Override\n public void setCompanyId(long companyId) {\n _binghai.setCompanyId(companyId);\n }", "title": "" }, { "docid": "51d7052f5218650d824faae47752c9d6", "score": "0.5349398", "text": "@Override\n @Transactional\n public Brand getBrand(int brandid) {\n // gives brand by id\n return brandRepository.getOne(brandid);\n }", "title": "" }, { "docid": "c41c42b87607728b120bd06df708b7a2", "score": "0.5264518", "text": "public java.lang.String getBrandGameId() {\r\n return brandGameId;\r\n }", "title": "" }, { "docid": "dd927a411d5c6fb5fffa99270b9b4b9a", "score": "0.52264214", "text": "public void deleteBrand(int brandId) {\n\t\tDAO.deleteBrand(brandId);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f153469ba605e7d9e04b1e72d96d5f90", "score": "0.52070755", "text": "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_job.setCompanyId(companyId);\n\t}", "title": "" }, { "docid": "1c50a19c21e4b8eb0b92b210153e2945", "score": "0.51718193", "text": "@Override\n public void onSinkronUpdateBrandSuccess(SinkronResponse sinkronResponse) {\n sinkronDeleteBrandController.delete_brand();\n }", "title": "" }, { "docid": "23b38c0b64f5bf64b65d57318e883fd2", "score": "0.5142644", "text": "public void setAcqBrhId(String acqBrhId) {\n this.acqBrhId = acqBrhId;\n }", "title": "" }, { "docid": "ecbbe0f6ce3a55ebac058e54eb59b5dc", "score": "0.5123175", "text": "int updateByPrimaryKey(JindouyunBrand record);", "title": "" }, { "docid": "75475f99e545218fd015bc3efce61aae", "score": "0.51215637", "text": "@Transactional\n public void save(Brand brand) {\n repo.save(brand);\n }", "title": "" }, { "docid": "121ce44628cf4da80ff0ecd8d724aa84", "score": "0.5120825", "text": "private void setBrand(String companyName) {\n // search in array with all companies the correspondence!\n for (Company company : companyList.getCompanies()) {\n if (company.getCompanyName().equals(companyName)) {\n companyChosen = company;\n // if butangas shows contalitri!\n if (companyName.equals(\"ButanGas\")) {\n // for butangas\n initializeButanGasView();\n } else {\n textInputLayouts.get(10).setVisibility(View.GONE);\n if (litersLinearLayout != null) {\n litersLinearLayout.setVisibility(View.GONE);\n }\n }\n buildAdapter(company.getTrucksBrands(), 2);\n break;\n }\n }\n }", "title": "" }, { "docid": "8a7126bda14d883377a254c7150cf253", "score": "0.51156735", "text": "@Override\n\tpublic Brand findBrandById(Long id) {\n\t\ttry {\n\t\t\treturn brandRepository.findBrandById(id);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4b8aa6ba20fbbffe6f2a14080023ea6a", "score": "0.5104904", "text": "public void brand() {\n\t\tdecoratedBrand.brand();\n\t}", "title": "" }, { "docid": "78e44da966bcedab781e2457aa6208af", "score": "0.5095626", "text": "public void setIsBrand(org.hl7.fhir.Boolean isBrand)\n {\n generatedSetterHelperImpl(isBrand, ISBRAND$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "title": "" }, { "docid": "bec9134ead822d263ad34ee35b90d22f", "score": "0.50929797", "text": "int updateByPrimaryKeySelective(JindouyunBrand record);", "title": "" }, { "docid": "20bb2dcbc4cca30fa479d47a5efda9ca", "score": "0.5092833", "text": "Brand findById(int id);", "title": "" }, { "docid": "04f362eda0a167f3b6f9176e18e8ce22", "score": "0.507997", "text": "public BrandCriterion(String b) {\n this.brand = b;\n }", "title": "" }, { "docid": "477c525a603922da85188bd1ad016ae0", "score": "0.5074056", "text": "public String getBrand(int brID) {\n try {\n String sql = \"select * from brand where brID=?\";//declare sql query\n PreparedStatement pst = conn.prepareStatement(sql);\n pst.setInt(1, brID);//set brID for sql query\n ResultSet rs = pst.executeQuery();//excute query\n if (rs.next()) {\n return rs.getString(2);//return banrd\n }\n } catch (SQLException ex) {\n Logger.getLogger(BrandDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "title": "" }, { "docid": "34d81d8bc29c9bdea185cd42c487382a", "score": "0.5056313", "text": "public List<CarsModel> findByBrandId(int pBrandId);", "title": "" }, { "docid": "652d2890e6734ac4d40b216191601b46", "score": "0.5015976", "text": "public String getBrandName() {\n return brandName;\n }", "title": "" }, { "docid": "53f2389b9f26ba2350401fd4c1dddfbf", "score": "0.5004699", "text": "public String getBrhId() {\n return brhId;\n }", "title": "" }, { "docid": "2bc5e0b0d29a439093205a0f75baf839", "score": "0.50041527", "text": "public String getBrandName() {\n return brandName;\n }", "title": "" }, { "docid": "2bc5e0b0d29a439093205a0f75baf839", "score": "0.50041527", "text": "public String getBrandName() {\n return brandName;\n }", "title": "" }, { "docid": "c11fe16b92fa58cdc020be5fd5c3fbdb", "score": "0.50027305", "text": "public void setCompanyId(long companyId);", "title": "" }, { "docid": "c11fe16b92fa58cdc020be5fd5c3fbdb", "score": "0.50027305", "text": "public void setCompanyId(long companyId);", "title": "" }, { "docid": "c11fe16b92fa58cdc020be5fd5c3fbdb", "score": "0.50027305", "text": "public void setCompanyId(long companyId);", "title": "" }, { "docid": "c11fe16b92fa58cdc020be5fd5c3fbdb", "score": "0.50027305", "text": "public void setCompanyId(long companyId);", "title": "" }, { "docid": "c11fe16b92fa58cdc020be5fd5c3fbdb", "score": "0.50027305", "text": "public void setCompanyId(long companyId);", "title": "" }, { "docid": "c11fe16b92fa58cdc020be5fd5c3fbdb", "score": "0.50027305", "text": "public void setCompanyId(long companyId);", "title": "" }, { "docid": "e65df60d4eddf59f5b03ec646f42c590", "score": "0.49935305", "text": "public void setBrandMapping(Context ctx) {\n mBrand_mapping.put(\"seeget_nike\", BRAND_NIKE);\n mBrand_mapping.put(\"seeget_michaelkors\", BRAND_MICHAEL_KORS);\n mBrand_mapping.put(\"seeget_levis\", BRAND_LEVIS);\n mBrand_mapping.put(\"seeget_coach\", BRAND_COACH_AMERICA);\n mBrand_mapping.put(\"seeget_underarms\", BRAND_UNDER_ARMS);\n mBrand_mapping.put(\"seeget_americaneagles\", BRAND_AMERICAN_EAGLES);\n mBrand_mapping.put(\"seeget_adidas\", BRAND_ADDIDAS);\n mBrand_mapping.put(\"seeget_jordan\", BRAND_JORDAN);\n mBrand_mapping.put(\"seeget_gap\", BRAND_GAP);\n mBrand_mapping.put(\"seeget_thenorthface\", BRAND_THE_NORTH_FACE);\n\n\n //Set Brand Logo Mapping would be mandatory\n //setBrandLogoMapping(ctx);\n }", "title": "" }, { "docid": "5c43e20df8e12c4210e9fe3f14c209ad", "score": "0.49850073", "text": "public String getBrand(){\n return this.brand;\n }", "title": "" }, { "docid": "232876a0196e346283d6b76d2c68b19d", "score": "0.4966753", "text": "@GetMapping(\"brands/{brandId}\")\n\tpublic ResponseEntity<BrandResponseDTO> fetchByBrandId(@PathVariable Long brandId) throws Exception {\n\n\t\tBrandResponseDTO selectedBrands = adminService.getBrandById(brandId);\n\n\t\treturn ResponseEntity.ok(selectedBrands);\n\t}", "title": "" }, { "docid": "7aa12ba611e8258ffaf6055e7b236948", "score": "0.496455", "text": "public Builder setBrandName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n brandName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1affcc63665723e264c8e3c168442062", "score": "0.49530077", "text": "public void setDeviceBrand(String deviceBrand) {\n this.deviceBrand = deviceBrand == null ? null : deviceBrand.trim();\n }", "title": "" }, { "docid": "22981fcab69e5f3076e2a2139b8bc6e1", "score": "0.49106795", "text": "int updateByPrimaryKey(CouponsApplyBrand record);", "title": "" }, { "docid": "72c14e6b7921abae896b4a0345c29545", "score": "0.48951888", "text": "public void setBrandAndModel(String brandAndModel) {\n\t\tBrandAndModel = brandAndModel;\n\t}", "title": "" }, { "docid": "59ef61724c53fd7a6c269fcc330d1add", "score": "0.48917794", "text": "public void set_shFridgeProdTableProdId(int param){\r\n \r\n this.local_shFridgeProdTableProdId=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "ad74e52957e0bc754312f585e40db81d", "score": "0.48915318", "text": "public void initData(Brand selectedBrand){\n this.selectedBrand=selectedBrand;\n }", "title": "" }, { "docid": "5d56a61497caccd018a5e306ffe1db26", "score": "0.4870094", "text": "public String getBrand() {\n return brand;\n }", "title": "" }, { "docid": "5d56a61497caccd018a5e306ffe1db26", "score": "0.4870094", "text": "public String getBrand() {\n return brand;\n }", "title": "" }, { "docid": "5d56a61497caccd018a5e306ffe1db26", "score": "0.4870094", "text": "public String getBrand() {\n return brand;\n }", "title": "" }, { "docid": "5d56a61497caccd018a5e306ffe1db26", "score": "0.4870094", "text": "public String getBrand() {\n return brand;\n }", "title": "" }, { "docid": "5d56a61497caccd018a5e306ffe1db26", "score": "0.4870094", "text": "public String getBrand() {\n return brand;\n }", "title": "" }, { "docid": "5d56a61497caccd018a5e306ffe1db26", "score": "0.4870094", "text": "public String getBrand() {\n return brand;\n }", "title": "" }, { "docid": "7b31bd13f7ea8915b5d562668031b81d", "score": "0.48571134", "text": "public Builder brandLabel(String brandLabel) {\n obj.setBrandLabel(brandLabel);\n return this;\n }", "title": "" }, { "docid": "6d70077c8e542d8c799d60e9e184a5fe", "score": "0.4856437", "text": "public String getBrand() {\n\t\treturn brand;\n\t}", "title": "" }, { "docid": "6d70077c8e542d8c799d60e9e184a5fe", "score": "0.4856437", "text": "public String getBrand() {\n\t\treturn brand;\n\t}", "title": "" }, { "docid": "6d70077c8e542d8c799d60e9e184a5fe", "score": "0.4856437", "text": "public String getBrand() {\n\t\treturn brand;\n\t}", "title": "" }, { "docid": "80ba29c20eff925d27a654526a95f66a", "score": "0.48231477", "text": "public String getBrand ()\r\n\t{\r\n\t\treturn brand;\r\n\t}", "title": "" }, { "docid": "c1d51c8c03d61f9e24dbd42a14f78f28", "score": "0.48034042", "text": "@Override\n\tpublic void setCompanyId(long companyId);", "title": "" }, { "docid": "c1d51c8c03d61f9e24dbd42a14f78f28", "score": "0.48034042", "text": "@Override\n\tpublic void setCompanyId(long companyId);", "title": "" }, { "docid": "c1d51c8c03d61f9e24dbd42a14f78f28", "score": "0.48034042", "text": "@Override\n\tpublic void setCompanyId(long companyId);", "title": "" }, { "docid": "c1d51c8c03d61f9e24dbd42a14f78f28", "score": "0.48034042", "text": "@Override\n\tpublic void setCompanyId(long companyId);", "title": "" }, { "docid": "bcb19be8ef00b39190f4a9e4d6e9cebb", "score": "0.47947058", "text": "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_app.setCompanyId(companyId);\n\t}", "title": "" }, { "docid": "673cf6585ab8c02c406254b59aa9891c", "score": "0.47932336", "text": "Long getBrandByName(String name);", "title": "" }, { "docid": "976f378b68a6517531d442b7d451c486", "score": "0.47853386", "text": "public interface BrandMapper {\n\n Brand findBrandById(String id);\n Brand findBrandByBrand(String brand);\n List<Brand> findAllBrands();\n void insertBrand(Brand brand);\n void updateBrand(Brand brand);\n void deleteBrand(Brand brand);\n\n}", "title": "" }, { "docid": "58eddee3ca0afeb343b27756470318a1", "score": "0.4750743", "text": "public void setCompanyId(Integer companyId) {\r\n this.companyId = companyId;\r\n }", "title": "" }, { "docid": "cec4a65d129914447323e300d57ec322", "score": "0.47335446", "text": "public String setbrands() {\r\n return brands;\r\n }", "title": "" }, { "docid": "d3c160e375bc3c22e57ae0aa54e78be8", "score": "0.472917", "text": "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_catalog.setCompanyId(companyId);\n\t}", "title": "" }, { "docid": "c70f7bf1f579123d0a41295b8e599ced", "score": "0.4725633", "text": "public void setCompanyId(Integer value) {\r\n this.companyId = value;\r\n }", "title": "" }, { "docid": "c70f7bf1f579123d0a41295b8e599ced", "score": "0.4725633", "text": "public void setCompanyId(Integer value) {\r\n this.companyId = value;\r\n }", "title": "" }, { "docid": "ce067c81f810e07bb4aa222300517b46", "score": "0.47236472", "text": "public void setCompanyId(Integer value) {\n set(9, value);\n }", "title": "" }, { "docid": "38caced23b5fa2f2c061a33d344eec83", "score": "0.47201064", "text": "@RegisterMapper(BrandInfoMapper.class)\n @SqlQuery(\"SELECT * FROM brand_info\")\n List<BrandInfo> getAllBrands();", "title": "" }, { "docid": "4ae4f7d9fc10e58b2ab8a94f56754517", "score": "0.47165725", "text": "public void setIdMercaderia(Mercaderia IdMercaderia) \r\n {\r\n this.IdMercaderia = IdMercaderia;\r\n }", "title": "" }, { "docid": "5ac05700b91f9f9db1d91f618721bb05", "score": "0.47138122", "text": "public Builder clearBrandName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n brandName_ = getDefaultInstance().getBrandName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "25826488eda046c82a0147231bcb5e99", "score": "0.4696427", "text": "@Override\n public void setBinghaiId(long binghaiId) {\n _binghai.setBinghaiId(binghaiId);\n }", "title": "" }, { "docid": "185eb1ccd46cc1a4655d97c5d4a2146e", "score": "0.4694169", "text": "public String getAcqBrhId() {\n return acqBrhId;\n }", "title": "" }, { "docid": "74bb6fbd36cc762dfbd19988b09d0a6e", "score": "0.46707606", "text": "public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }", "title": "" }, { "docid": "74bb6fbd36cc762dfbd19988b09d0a6e", "score": "0.46707606", "text": "public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }", "title": "" } ]
7a5e1cf4b34d49b0bda90ab132afa5ca
Create a new authenticator object
[ { "docid": "32370b1aef4e52a438f19beb70d9f85f", "score": "0.5869666", "text": "@Override\n public void onCreate() {\n mAuthenticator = new NewzAuthenticator(this);\n }", "title": "" } ]
[ { "docid": "fab1a533222c0a6890e0d4243dc61c92", "score": "0.77699846", "text": "private AbstractAuthenticator<String> createAuthenticator() {\n return new AbstractAuthenticator<String>(30, TimeUnit.SECONDS) {\n @Override\n protected String getPrincipal(Credentials credentials) {\n return PRINCIPAL;\n }\n\n @Override\n protected String getSecretKeyFromPrincipal(String s) {\n return SECRET_KEY;\n }\n };\n }", "title": "" }, { "docid": "632aef4dc604261804dab82c7170a4ce", "score": "0.69089174", "text": "private static Authenticator getAuthenticator() {\r\n\r\n Authenticator auth = new Authenticator() {\r\n\r\n public PasswordAuthentication getPasswordAuthentication() {\r\n\r\n return new PasswordAuthentication(\"support@foretees.com\", \"fikd18\"); // credentials\r\n }\r\n };\r\n\r\n return auth;\r\n }", "title": "" }, { "docid": "d4d5e888b1fc073b928f292ee51c2d26", "score": "0.6337324", "text": "public byte[] createAuthenticator(byte[] attributes) \n {\n if (client != null)\n {\n this.authenticator = RadiusUtils.makeRFC2866RequestAuthenticator(\n client.getMD(),\n client.getSharedSecret(),\n (byte)getCode(), (byte)getIdentifier(), attributes.length + RADIUS_HEADER_LENGTH, attributes);\n return this.authenticator;\n }\n return new byte[16];\n }", "title": "" }, { "docid": "0dad87b7f9098d53770935bad5184c53", "score": "0.6258193", "text": "public static android.accounts.AuthenticatorDescription newKey(java.lang.String type) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "fd4bdf293cdadf1b97fd917e3d3d7fe3", "score": "0.62412107", "text": "public static Authenticator getInstance(HttpServletRequest request) {\n\t\tServletContext ctx = request.getSession().getServletContext();\n\t\tObject attribute = ctx.getAttribute(FACTORY_ATTRIBUTE_NAME);\n\t\tif (!(attribute instanceof AuthenticatorFactory)) {\n\t\t\tsetAuthenticatorFactory(new BasicAuthenticator.Factory(), ctx);\n\t\t\tattribute = ctx.getAttribute(FACTORY_ATTRIBUTE_NAME);\n\t\t}\n\t\tAuthenticatorFactory factory = (AuthenticatorFactory) attribute;\n\n\t\treturn factory.getInstance(request);\n\t}", "title": "" }, { "docid": "42d53acd4953fb31442b926c63a5dfcd", "score": "0.612659", "text": "public interface IAuthenticator {\n\tboolean authenticate(String name, String password);\n}", "title": "" }, { "docid": "74e30c00e4dca7b8ada68e5958b82049", "score": "0.60699207", "text": "public EncryptedCredentials() {\n }", "title": "" }, { "docid": "af1fe4f5756c01e059567d6cfd335303", "score": "0.5998227", "text": "PasswordAuthenticator getPasswordAuthenticator();", "title": "" }, { "docid": "256be3b4e52c83039791fa374d57612a", "score": "0.5960164", "text": "public Authentication() {\n }", "title": "" }, { "docid": "b531a72a8c9f6bc2578ef46865bfeb4e", "score": "0.5916255", "text": "private AuthManager() {\n }", "title": "" }, { "docid": "2e8aecea5820be5e105069c8a6239847", "score": "0.5848182", "text": "public interface Authenticator {\n\n\t/**\n\t * Verifies an auth token, returning the user for said token if the token's valid (or whitelisted), or null if not\n\t *\n\t * @param token an auth token\n\t * @return the user represented by the token, if the token is valid, null otherwise\n\t */\n\t@Nullable\n\tUser verify(String token);\n\n\tvoid addToWhitelist(String token);\n\n\tvoid removeFromWhitelist(String token);\n\n\tboolean isInWhitelist(String token);\n\n\t@Nullable\n\tUser getUser(String token);\n\n\t/**\n\t * Get the user associated with a given account id\n\t * Note: Authenticator implementations are responsible for caching User objects that have been authenticated.\n\t * @param accountId the account id\n\t * @return the user associated with this account, or null if none exists, or if this user hasn't been authenticated yet\n\t */\n\t@Nullable\n\tUser getUserByAccountId(String accountId);\n}", "title": "" }, { "docid": "576e91b1c9d2cf4f6e2cd648f01f5d99", "score": "0.5820406", "text": "public AuthenticatorDescription(java.lang.String type, java.lang.String packageName, int labelId, int iconId, int smallIconId, int prefId, boolean customTokens) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "b758e55544b1a6f77a56092ec221cc8c", "score": "0.5799349", "text": "private AuthService(final AuthServiceConfig config) {\n this.authenticatorChain = AuthenticationChain\n .newChain()\n .with(new OIDCTokenAuthenticatorImpl(config))\n .with(new OIDCAuthCodeImpl(config))\n .build();\n }", "title": "" }, { "docid": "86cff4ba5edfe5134d681b0fe0ccdbd2", "score": "0.578205", "text": "@Override public Authenticator<BasicCredentials, User> build(DSLContext dslContext) {\n logger.debug(\"Creating LDAP authenticator\");\n LdapConnectionFactory connectionFactory =\n new LdapConnectionFactory(getServer(), getPort(), getUserDN(), getPassword(),\n getTrustStorePath(), getTrustStorePassword(), getTrustStoreType());\n return new LdapAuthenticator(connectionFactory, getLookup());\n }", "title": "" }, { "docid": "a12ba6caa250ed8f53f9e10397bdb53c", "score": "0.57166034", "text": "public SasAuthentication() {\n }", "title": "" }, { "docid": "672357a261bdcd90a77a27520673dd10", "score": "0.5679925", "text": "private Oauth(){}", "title": "" }, { "docid": "f89f9d14d3ba6dd9f4f11751bc0ef321", "score": "0.56666994", "text": "public interface Authenticator {\n\n /**\n * Initializes this authenticator instance.\n *\n * @param env Current SynapseEnvironment instance containing the global/tenant configuration\n */\n void init(SynapseEnvironment env);\n\n /**\n * Destroys this authenticator and releases any resources allocated to it.\n */\n void destroy();\n\n /**\n * Authenticates the given request to see if an API consumer is allowed to access\n * a particular API or not. If the request can be properly authenticated, this method\n * should return true. However implementations of this method must never return\n * false. For all authentication errors and other unexpected error conditions, this\n * method must throw an APISecurityException. Implementations of this method should\n * also try to add some AuthenticationContext information into the successfully\n * authenticated requests, so that other components processing the same requests\n * can access user information easily.\n *\n * @param synCtx The message to be authenticated\n * @return an AuthenticationResponse object which contains the authentication status\n */\n AuthenticationResponse authenticate(MessageContext synCtx) throws APIManagementException;\n\n /**\n * Returns a string representation of the authentication challenge imposed by this\n * authenticator. In case of an authentication failure this value will be sent back\n * to the API consumer in the form of a WWW-Authenticate header.\n *\n * @return A string representation of the authentication challenge\n */\n String getChallengeString();\n \n String getRequestOrigin();\n\n /**\n * Returns an integer with the authenticator priority.\n * Authenticator with the lowest value will have the highest priority\n *\n * @return An integer with the Authenticator priority\n */\n int getPriority();\n}", "title": "" }, { "docid": "6da11f7d9a7f1b51d0cf00a6fc7431e8", "score": "0.56624585", "text": "WithCreate withEncryption(Encryption encryption);", "title": "" }, { "docid": "f6ea7a413cc4a42aa81327c0b2c8a2a4", "score": "0.56410897", "text": "public Authenticator getAuthenticator()\n {\n return this.authenticator;\n }", "title": "" }, { "docid": "1732ce135953ac81e88c0a23fcd337a3", "score": "0.56402594", "text": "PublickeyAuthenticator getPublickeyAuthenticator();", "title": "" }, { "docid": "038ec4798b855899d94ee27355eed3b8", "score": "0.562539", "text": "public AuthToken() {\n\t\t\n\t}", "title": "" }, { "docid": "a9fc5c4d2f29a0a2cbf51f68d6bdba5d", "score": "0.56065166", "text": "public MongoDbAuthenticator() {\n super();\n }", "title": "" }, { "docid": "a9e1fefe785fab8390242f0c3e82fb57", "score": "0.5595982", "text": "public AuthenticationRequest()\n {\n\n }", "title": "" }, { "docid": "1a6556900e74d71a6605a537407dbfa8", "score": "0.55926317", "text": "J2CAuthenticationDataEntry createJ2CAuthenticationDataEntry();", "title": "" }, { "docid": "4f76ceadf5d1b1d02bd36d76d3b18b72", "score": "0.5545099", "text": "public KeyPairCreator() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "e4c8a1209aac100116dccbebcc7ab58e", "score": "0.55239743", "text": "private CredentialsManager() {}", "title": "" }, { "docid": "37f3f5e57e148f39771647639eaa9648", "score": "0.549543", "text": "private AuthNCore() {\n }", "title": "" }, { "docid": "6075364365d24b5e7553d9aa2da71614", "score": "0.54614633", "text": "@Test\n public void ensureCreateAuthCreatesCredentialAuthenticationMV() {\n CredentialsAuthenticationMV authDetails = new CredentialsAuthenticationMV();\n authDetails.username = \"user1\";\n authDetails.password = \"user1\";\n Auth expResult = new UsernameCredentialsAuth(authDetails.username, authDetails.password);\n Auth result = AuthFactory.createAuth(authDetails);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "317a25f7f174411ce56fa9249bfd1606", "score": "0.54365855", "text": "private AccountManager() {\n\n\t}", "title": "" }, { "docid": "7b90942b2f81a57304b8e7c4fca47ceb", "score": "0.54215074", "text": "public ApplicationPrincipal() {}", "title": "" }, { "docid": "66c9547a1e95a5a7b4ac0c9da65fae88", "score": "0.5372893", "text": "public interface ClientAuthenticationMethod {\n \n /**\n * Initialize the Transport authentication method. This has to be\n * done outside the constructor.\n * @throws Exception if the parameters are not correct.\n */\n public void initialize(String realm, String userName, String uri, String nonce\n , String password, String method, String cnonce, String algorithm) throws Exception;\n \n \n /**\n * generate the response\n * @returns null if the parameters given in the initialization are not\n * correct.\n */\n public String generateResponse();\n \n}", "title": "" }, { "docid": "0d61e09ed66a712307aaf67c78b2d066", "score": "0.5360383", "text": "public static Authenticator getAuthenticator(final LdapAuthenticationProperties l) {\n if (l.getType() == LdapAuthenticationProperties.AuthenticationTypes.AD) {\n LOGGER.debug(\"Creating active directory authenticator for {}\", l.getLdapUrl());\n return getActiveDirectoryAuthenticator(l);\n }\n if (l.getType() == LdapAuthenticationProperties.AuthenticationTypes.DIRECT) {\n LOGGER.debug(\"Creating direct-bind authenticator for {}\", l.getLdapUrl());\n return getDirectBindAuthenticator(l);\n }\n if (l.getType() == LdapAuthenticationProperties.AuthenticationTypes.SASL) {\n LOGGER.debug(\"Creating SASL authenticator for {}\", l.getLdapUrl());\n return getSaslAuthenticator(l);\n }\n if (l.getType() == LdapAuthenticationProperties.AuthenticationTypes.AUTHENTICATED) {\n LOGGER.debug(\"Creating authenticated authenticator for {}\", l.getLdapUrl());\n return getAuthenticatedOrAnonSearchAuthenticator(l);\n }\n\n LOGGER.debug(\"Creating anonymous authenticator for {}\", l.getLdapUrl());\n return getAuthenticatedOrAnonSearchAuthenticator(l);\n }", "title": "" }, { "docid": "60fc43a2e4a161347d93477502721806", "score": "0.5359288", "text": "public interface Authenticator {\n\n\n /**\n * Generates HMAC-SAH1 signature with given <code>key</code> and\n * <code>input</code>.\n *\n * @param key key\n * @param input input\n * @return signature\n * @throws Exception if any error occurs.\n */\n byte[] authenticate(final byte[] key, final byte[] input) throws Exception;\n}", "title": "" }, { "docid": "e1996d38ee76ab2d75cc126fae475584", "score": "0.53470737", "text": "private SecurityInitializer() {\n }", "title": "" }, { "docid": "9ec9690efc4158a6ff3c73aa55483b7d", "score": "0.534162", "text": "public interface Authenticator<U extends User> {\n\n /**\n * Logs the specified user in.\n *\n * <p>The servlet request must contain the details sufficient to login (eg. parameters, headers).\n *\n * <p>Implementations should specify which details are required to login.\n *\n * @param req the HTTP Servlet Request that contains the details sufficient to login.\n *\n * @return The result of this authentication process.\n *\n * @throws AuthException if any error occurs while trying to login.\n */\n AuthenticationResult login(HttpServletRequest req) throws AuthException;\n\n /**\n * Logs the specified user out.\n *\n * @param req The HTTP servlet request.\n *\n * @return The result of this authentication process..\n *\n * @throws AuthException Should an error occur while logging out.\n */\n AuthenticationResult logout(HttpServletRequest req) throws AuthException;\n\n /**\n * Logs the user in using its username and password.\n *\n * @param username The username\n * @param password The password\n *\n * @return The user instance.\n *\n * @throws AuthException Should an error occur while logging the usering.\n */\n U login(String username, String password) throws AuthException;\n\n /**\n * Logs the specified user out.\n *\n * @param user Logout the specified user.\n *\n * @return <code>true</code> if the logout request succeeded, <code>false</code> otherwise.\n *\n * @throws AuthException Should an error occur while logging the user out.\n */\n boolean logoutUser(User user) throws AuthException;\n\n}", "title": "" }, { "docid": "2b0ffd1b630741f4c39b4c8d91762bc5", "score": "0.5324229", "text": "private JaxRpcAuthenticationSoaServiceImpl()\n {\n init();\n }", "title": "" }, { "docid": "d0f342b87169635473ef2c620668a757", "score": "0.53125346", "text": "@Override\n public String toString() {\n return \"auth:\"+scheme()+S.all(\" (\",jar()!=null?jar().jar():null,\")\")+\n S.all(\"\\n authenticator=\",authenticator());\n }", "title": "" }, { "docid": "caaeefb24d0bd428b52f93595ae4cd3f", "score": "0.5290229", "text": "protected SrampAtomApiClient createClient() {\n String defaultSrampAtomApiEndpoint = JBossServer.getBaseUrl() + \"/s-ramp-server\"; //$NON-NLS-1$\n String endpoint = config.getConfiguration().getString(DtgovUIConfig.SRAMP_ATOM_API_ENDPOINT, defaultSrampAtomApiEndpoint);\n boolean validating = \"true\".equals(config.getConfiguration().getString(DtgovUIConfig.SRAMP_ATOM_API_VALIDATING)); //$NON-NLS-1$\n AuthenticationProvider authProvider = null;\n String authProviderClass = config.getConfiguration().getString(DtgovUIConfig.SRAMP_ATOM_API_AUTH_PROVIDER);\n try {\n if (authProviderClass != null && authProviderClass.trim().length() > 0) {\n Class<?> c = Class.forName(authProviderClass);\n Constructor<?> constructor = null;\n try {\n constructor = c.getConstructor(Configuration.class);\n authProvider = (AuthenticationProvider) constructor.newInstance(config.getConfiguration());\n } catch (NoSuchMethodException e) {}\n try {\n constructor = c.getConstructor();\n authProvider = (AuthenticationProvider) constructor.newInstance();\n } catch (NoSuchMethodException e) {}\n }\n return new SrampAtomApiClient(endpoint, authProvider, validating);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "b83e97c7f96a920611ce5cb89a4c9f7e", "score": "0.5270559", "text": "public LocalAuthPlugin() {}", "title": "" }, { "docid": "9b11aa1f683d72be344bb49617b43d08", "score": "0.52614635", "text": "void initAuth();", "title": "" }, { "docid": "a9f7dd6715ecff65153281dd94e1d4ff", "score": "0.5256299", "text": "private PasswordEncoder()\r\n\t{\r\n\t}", "title": "" }, { "docid": "c41b8c9d4ca95f5318433221cca27a63", "score": "0.52332723", "text": "public AuthRealm newAuthRealm() {\n\t\treturn new AuthRealm();\n\t}", "title": "" }, { "docid": "26b03487353a96463164f572f5d1e2f6", "score": "0.5229166", "text": "protected abstract void authenticate();", "title": "" }, { "docid": "5741aa2b5865a7cce0c8f3138331ef60", "score": "0.5228161", "text": "public ServicioAutenticacion() {\r\n }", "title": "" }, { "docid": "a4cb1572057b7377a12180540127bf69", "score": "0.5212118", "text": "public AuthorityToRepresent() {\n }", "title": "" }, { "docid": "296f0a2b6c3d5e0cb2d6e10bc3c244ee", "score": "0.5196788", "text": "AuthenticationInfo create(boolean paramBoolean, String paramString, int paramInt, PasswordAuthentication paramPasswordAuthentication) {\n/* */ try {\n/* 75 */ return this.fiveArgCtr.newInstance(new Object[] { Boolean.valueOf(paramBoolean), paramString, Integer.valueOf(paramInt), paramPasswordAuthentication });\n/* 76 */ } catch (ReflectiveOperationException reflectiveOperationException) {\n/* 77 */ finest(reflectiveOperationException);\n/* */ \n/* */ \n/* 80 */ return null;\n/* */ } \n/* */ }", "title": "" }, { "docid": "d1213f175262b3200e41882268f4f7cc", "score": "0.51966757", "text": "private AuthUtils() \r\n {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "e75c315075c549f57f447b4c4ba24589", "score": "0.5177194", "text": "protected AuthenticationProvider createAuthenticationProvider(String className)\n {\n AuthenticationProvider s = null;\n try\n {\n Class<?> c = Class.forName(className);\n Constructor<?> t = c.getDeclaredConstructor(Map.class);\n s = (AuthenticationProvider) t.newInstance(userParameters);\n }\n catch (Exception e)\n {\n throw new AlfrescoSessionException(ErrorCodeRegistry.SESSION_AUTHENTICATOR, e);\n }\n return s;\n }", "title": "" }, { "docid": "ed878e8ee1074e0f49b6248d4fbd4fb0", "score": "0.5143705", "text": "public Passport() {\r\n\t}", "title": "" }, { "docid": "4c9b94533483b1fbe1088d732213c499", "score": "0.51425004", "text": "public Authenticator(MessageDispatcher dispatcher, ConnectionInfo connectionInfo)\n {\n this.messageDispatcher = dispatcher;\n this.connectionInfo = connectionInfo;\n }", "title": "" }, { "docid": "eb348806d99ad50c415ff7e39792884c", "score": "0.5128446", "text": "public PasswordEncrypt() {\n }", "title": "" }, { "docid": "c0d27bccb22874681c9d2f8e35c02271", "score": "0.5124804", "text": "protected Principal() {\n }", "title": "" }, { "docid": "074e04a90d8acee7044db3aefbe929cc", "score": "0.5121823", "text": "public interface CredentialsAuthenticator {\r\n /**\r\n * Authenticate credentials\r\n * \r\n * @param username\r\n * @param password\r\n * @return True if credentials are authenticated\r\n */\r\n boolean authenticate(String username, String password);\r\n}", "title": "" }, { "docid": "2c7219698531a0b7e0750a53d49c7f40", "score": "0.51175445", "text": "Login createLogin();", "title": "" }, { "docid": "d63f060dd117c39955058ad88f6dcdd5", "score": "0.5110058", "text": "public interface DisplayTypeAuthenticatorFactory {\n /**\n *\n *\n * @param session\n * @param displayType i.e. \"console\", \"wap\", \"popup\" are examples\n * @return null if display type isn't support.\n */\n Authenticator createDisplay(KeycloakSession session, String displayType);\n}", "title": "" }, { "docid": "0ab00af2508c68d8d504c1394a1563fb", "score": "0.5108495", "text": "private AuthorizationManager() {\r\n }", "title": "" }, { "docid": "548fa381497d983698d73345a6b7f61c", "score": "0.5101338", "text": "@Override\n public void onCreate() {\n mmAuthenticator = new MisteryAuthenticator(this);\n }", "title": "" }, { "docid": "4a53e39ac878dc5bccf2ea48cac0e236", "score": "0.50900024", "text": "public interface PrincipalKeyConverter {\r\n /**\r\n * <p>\r\n * Return the corresponding key in Principal of the specified key.\r\n * If the key cannot be recognized by the converter, the key will be returned unchanged.\r\n * </p>\r\n *\r\n * @param key the key used in the authenticator implementation.\r\n * @return the corresponding key in the principal.\r\n *\r\n * @throws NullPointerException if the given key is null.\r\n * @throws IllegalArgumentException if the given key is empty string.\r\n */\r\n public String convert(String key);\r\n}", "title": "" }, { "docid": "f02e192dd2eeb543cfe1deb3d2876749", "score": "0.50734353", "text": "private SecurityManager()\r\n {\r\n initProvider();\r\n }", "title": "" }, { "docid": "1a3b92e326e211024deeb0ed046bb1e8", "score": "0.5064296", "text": "private AuthContext createContext() {\n HttpAuthContext context = new HttpAuthContext(auth_url, username, password, client);\n\n return context;\n }", "title": "" }, { "docid": "51f64de08b1386988dcdeaa35a1eecf3", "score": "0.5057582", "text": "public AccountService() {\n\t\tSystem.out.println(\"ac obj created\");\n\t}", "title": "" }, { "docid": "4c466e272afa172cbbc5a9d9c931efd8", "score": "0.50527716", "text": "public LdapAuthenticator(LdapConfiguration ldapConfig) {\r\n this.ldapConfig = ldapConfig;\r\n }", "title": "" }, { "docid": "3730e384b29c4e729b3ca178fb730855", "score": "0.5050514", "text": "protected abstract IAccount make_account();", "title": "" }, { "docid": "d839ca336eb8cbd92e04e60b5e528d4f", "score": "0.50436914", "text": "public ShootistSipServletAuth() {\r\n\t}", "title": "" }, { "docid": "c4d7bcebb868f825c003a8adb78e4a7b", "score": "0.50323", "text": "public void setBearerMgr()\n/* */ {\n/* 32 */ this.bmgr = new BearerMgr(this.msgb, this);\n/* 33 */ this.bmgr.start();\n/* */ }", "title": "" }, { "docid": "4986b4c64fcef2ba0626d79e09943050", "score": "0.5029268", "text": "public String authenticate(String authenticator, String authenticatee, String context) {\r\n\t\trefreshBuilder();\r\n\t\tprintln(\"Context: \" + context);\r\n\t\tprintln();\r\n\t\ttabs++;\r\n\t\tprintln(\"authenticate(\" + authenticator + \",\" + authenticatee + \")\");\r\n\t\tprintln();\r\n\t\tprintln(authenticateClaim());\r\n\t\treturn get();\r\n\t}", "title": "" }, { "docid": "2e05612ea1dd37ecfb7b140c3895b924", "score": "0.5026674", "text": "private PasswordMakerSingleton() {}", "title": "" }, { "docid": "f3ecda8d9cfa5ac68a3d7b8286f94164", "score": "0.50228655", "text": "com.transerainc.aha.gen.agent.AuthenticateDocument.Authenticate addNewAuthenticate();", "title": "" }, { "docid": "aaf1a802912f46394183c8e8648d1e38", "score": "0.5014839", "text": "private void mountRegister() {\n register\n .method(HttpMethod.POST)\n .order(order - 1)\n .handler(ctx -> {\n final User user = ctx.user().get();\n if (user == null || user.get(\"username\") == null) {\n ctx.fail(new IllegalStateException(\"User object misses 'username' attribute\"));\n return;\n }\n\n final OtpKey key = otpKeyGen.generate();\n authProvider.createAuthenticator(user.get(\"username\"), key)\n .onFailure(ctx::fail)\n .onSuccess(authenticator ->\n ctx.json(\n new JsonObject()\n .put(\"issuer\", issuer)\n .put(\"label\", label)\n .put(\"url\", authProvider.generateUri(key, issuer, user.get(\"username\"), label))));\n });\n }", "title": "" }, { "docid": "f390f06ee7cd95ebc6588ba59b1243e1", "score": "0.4982291", "text": "private AuthenticationService() {\n\t\tusers = new HashMap<String, User>();\n\t\tentitlements = new HashMap<String, Entitlement>();\n\t\tservices = new HashMap<String, Service>();\n\t\ttokens = new HashMap<String, AccessToken>();\n\n\t\tmakeAdmin();\n\t}", "title": "" }, { "docid": "77dcf1a3157a86cd63af15a1bd1d04a5", "score": "0.4977051", "text": "protected UserPrincipalImpl(final String username,\n final ICredential credentials,\n final String email,\n final Map<String, IRole> roles,\n final AbstractAuthenticator authenticator) {\n super(authenticator);\n this.username = username;\n this.email = email;\n this.roles = Collections.unmodifiableMap(new HashMap<String, IRole>(roles));\n this.credentials = credentials;\n }", "title": "" }, { "docid": "0b52f822ae8dd063b790468c4523782f", "score": "0.49740836", "text": "AuthenticationResponse authenticate(MessageContext synCtx) throws APIManagementException;", "title": "" }, { "docid": "e7dd4a8cd6b69df7542c232fcccf311c", "score": "0.4969964", "text": "AuthenticationInfo create(boolean paramBoolean, URL paramURL, PasswordAuthentication paramPasswordAuthentication) {\n/* */ try {\n/* 62 */ return this.threeArgCtr.newInstance(new Object[] { Boolean.valueOf(paramBoolean), paramURL, paramPasswordAuthentication });\n/* 63 */ } catch (ReflectiveOperationException reflectiveOperationException) {\n/* 64 */ finest(reflectiveOperationException);\n/* */ \n/* */ \n/* 67 */ return null;\n/* */ } \n/* */ }", "title": "" }, { "docid": "fd5cb35d27a4b0ccbe8d574d10123eba", "score": "0.4968849", "text": "public CryptoSession() {\n\n }", "title": "" }, { "docid": "198c7b58bde80d70f64b66d9ba0c3134", "score": "0.4968822", "text": "MFA createMFA();", "title": "" }, { "docid": "de9e1c1e6f643f71343f2dab97a36223", "score": "0.49624145", "text": "private PasswordHandler() {\n }", "title": "" }, { "docid": "39fbfa89f268df1890acc23f93e896ea", "score": "0.49499226", "text": "ResourceProviderManifestProviderAuthentication providerAuthentication();", "title": "" }, { "docid": "81279d4dbf18705bb34e0133450a46c9", "score": "0.49458644", "text": "public Uni<Void> updateOrStoreWebAuthnCredentials(Authenticator authenticator);", "title": "" }, { "docid": "8b87b9946f6960f714c46beb419ea13e", "score": "0.49442452", "text": "public interface Auth {\n}", "title": "" }, { "docid": "4ca97c9fda0fdc6b2ad4375f61fc1a4d", "score": "0.49423915", "text": "public MailAuthenticator(final String user, final String password) {\r\n this.user = user;\r\n this.password = password;\r\n }", "title": "" }, { "docid": "bf0e040a676ac2ca8c68d5fa82a1b825", "score": "0.49286252", "text": "public FrameHMAC() {\n\t\tsuper();\n\t\tinitialize();\n\t\thmac = new HMAC();\n\t}", "title": "" }, { "docid": "820013ce81b71b990022c0ba9afdf9d3", "score": "0.49247068", "text": "private Account() {\n\t\t}", "title": "" }, { "docid": "e670221a670306118dfe6dd569aa84c6", "score": "0.49202335", "text": "private RedirectorElement createRedirector() {\n RedirectorElement result = new RedirectorElement();\n StringBuffer input = new StringBuffer(storepass).append('\\n');\n if (keypass != null) {\n input.append(keypass).append('\\n');\n }\n result.setInputString(input.toString());\n result.setLogInputString(false);\n return result;\n }", "title": "" }, { "docid": "9baf08b644a1fd8a99aa315afda51e62", "score": "0.4919368", "text": "public Service() {\n\t\tusuarios= new HashMap<String,User>();\n\t\tusuarios.put(\"yarit\",new User(\"yarit\",hashPassword(\"yaritvillalobos\")));\n\t}", "title": "" }, { "docid": "1b596f0105c9d056bb7b960e9f191c29", "score": "0.49166438", "text": "private XurmoUserInvitationManager() {\n }", "title": "" }, { "docid": "9aa62a3565f8de87c6fcd08ecabe7ae7", "score": "0.49144682", "text": "public void initialize(String realm, String userName, String uri, String nonce\n , String password, String method, String cnonce, String algorithm) throws Exception;", "title": "" }, { "docid": "10859890fcb17e733aba9b67de66fd8e", "score": "0.4913088", "text": "public GenClientOauthToken() {\n }", "title": "" }, { "docid": "53f70089d8c08bb4845ae1e403195e11", "score": "0.49092188", "text": "public Authentification() {\n initComponents();\n }", "title": "" }, { "docid": "cacaf2239ca19197b0e7d25358c865df", "score": "0.49004403", "text": "public PrincipalMgrBean() {\n }", "title": "" }, { "docid": "2f7ec25841906ec1391cc617d25af135", "score": "0.4893378", "text": "private OAuthProvider() {\n super();\n }", "title": "" }, { "docid": "ba3b8f43ccdbddde5def4ef5db2cf68a", "score": "0.48895478", "text": "public Auther() {\n initComponents();\n Connect();\n Aother_Load();\n }", "title": "" }, { "docid": "40b68fe6ccd343ccf3da8ea6cb465d9f", "score": "0.48869538", "text": "@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(from, appPassword);\n\t\t\t}", "title": "" }, { "docid": "5826c5c50e0591dcb5b5607e660c7264", "score": "0.48864156", "text": "@Inject\n Mqtt5AuthDecoder() {}", "title": "" }, { "docid": "c603d2e4be0e701c85bfe82f1bf2d9b1", "score": "0.48845336", "text": "public ProtocolCreator() {\n }", "title": "" }, { "docid": "b8abafe065305c9807f0917df0e4ee9d", "score": "0.4883922", "text": "public void initializeOAuthAuthenticatorHelper() {\n Bundle extras = getIntent().getExtras();\n helper = new OauthAuthenticatorHelper(getApplicationContext(),\n extras.getString(OauthAuthenticatorHelper.CONSUMER_KEY),\n extras.getString(OauthAuthenticatorHelper.CONSUMER_SECRET));\n }", "title": "" }, { "docid": "bb61cbd97f36a52c1f8001c4535e30f0", "score": "0.48785058", "text": "KeyFactory() {}", "title": "" }, { "docid": "895e4de1ee1e53eeef5b6ee20bf83910", "score": "0.48728937", "text": "public AuthenticationManager(Context context) {\n preferences = PreferenceManager.getDefaultSharedPreferences(context);\n authenticationKey = preferences.getString(AUTHENTICATION_KEY_PREFERENCE, \"\");\n username = preferences.getString(USERNAME_PREFERENCE, \"\");\n }", "title": "" }, { "docid": "72778dbefcbf1eb872bbe6f99155037a", "score": "0.48674935", "text": "public Account() {\n // No-op.\n }", "title": "" }, { "docid": "48e92253b3999af153ad949945e8a476", "score": "0.48429692", "text": "private BlockingTweetMsgSharer getInitializedSharer() {\n BlockingTweetMsgSharer twSh = new BlockingTweetMsgSharer(new SysoutLogger());\n int rez = twSh.initBlocking(TwitterCredentials.getValidCredentials());\n if ( rez != BlockingTweetMsgSharer.SUCCESS ){\n throw new IllegalStateException(\"Some kind of mistake. these are valid credentials and\" +\n \" they should have resulted in successful log in\");\n }\n return twSh;\n }", "title": "" }, { "docid": "fcdd90b40dacda837af75cac08361d26", "score": "0.48271972", "text": "SFA createSFA();", "title": "" } ]
7a5f3e4326f1253a16ae5406ae3b467d
Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the AzureAsyncOperation header for operation status.
[ { "docid": "1938d2eb1fa6455225673ce525aec810", "score": "0.56086093", "text": "public Observable<ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetryNoStatusHeaders>> deleteAsyncRelativeRetryNoStatusAsync() {\n Observable<Response<ResponseBody>> observable = service.deleteAsyncRelativeRetryNoStatus(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() { }.getType(), LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.class);\n }", "title": "" } ]
[ { "docid": "aebf48e8f2175542e15ef2de003b3708", "score": "0.6178769", "text": "Response delete() throws InvocationException;", "title": "" }, { "docid": "6adac2db7af49fdf23e52add3ee06426", "score": "0.60950553", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String routeFilterName, Context context);", "title": "" }, { "docid": "e40dd6b209381ce4ed856463762d3c76", "score": "0.60720056", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String routeFilterName);", "title": "" }, { "docid": "42e7891c454c2d99ff199215769053ea", "score": "0.6047134", "text": "@NotNull\n ListenableFuture<Void> delete();", "title": "" }, { "docid": "630a7dee4f9ff65b6a5af95037191914", "score": "0.5959467", "text": "java.util.concurrent.Future<DeleteStreamResult> deleteStreamAsync(DeleteStreamRequest deleteStreamRequest);", "title": "" }, { "docid": "9ba35a05a7846a0b7307116e084b3ba3", "score": "0.59485245", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName);", "title": "" }, { "docid": "468eaced029a6d3d984c178d2d89611f", "score": "0.59465", "text": "public void delete (URI uri, int toDelete){\n WebTarget base = client.target(uri);\n WebTarget deleteById = base.path(\"{id}\").resolveTemplate(\"id\", toDelete);\n Response response = deleteById.request(MediaType.APPLICATION_JSON)\n .delete(); //.header(\"Authorization\", \"Basic \" + authToken)\n System.out.println(\"Response Http Status: \"+ response.getStatus());\n if(response.getStatus() == 204) {\n System.out.println(\"Data deleted successfully.\");\n }\n // client.close();\n }", "title": "" }, { "docid": "9475c9795230a112ac53bcba86618fde", "score": "0.591961", "text": "@Override\n protected Integer doInBackground (Void... params) {\n\n HttpURLConnection connection = null;\n URL url;\n int result = 400;\n\n try {\n url = new URL(\"http://207.154.228.188:8080/events/\" + event.getId());\n Log.d(\"DELETETASK\", \"http://207.154.228.188:8080/events/\" + event.getId());\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"DELETE\");\n connection.connect();\n System.out.println(connection.getResponseCode());\n result = connection.getResponseCode();\n\n } catch ( IOException e ) {\n e.printStackTrace();\n } finally {\n if ( connection != null ) connection.disconnect();\n }\n\n return result;\n }", "title": "" }, { "docid": "ca28019e5c07e49edb27c3c00b81a635", "score": "0.591363", "text": "void delete(String url, Integer timeout, String leaseId, DateTime ifModifiedSince, DateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String requestId);", "title": "" }, { "docid": "521f4848edb9d35ab710d4e3ab1e3e21", "score": "0.588769", "text": "public CompletableFuture<DeleteResponse> delete(DeleteRequest request) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tJsonEndpoint<DeleteRequest, DeleteResponse, ErrorResponse> endpoint = (JsonEndpoint<DeleteRequest, DeleteResponse, ErrorResponse>) DeleteRequest._ENDPOINT;\n\n\t\treturn this.transport.performRequestAsync(request, endpoint, this.transportOptions);\n\t}", "title": "" }, { "docid": "e8aa391afeed78604ca1b7104c50f99f", "score": "0.5832097", "text": "@Override\n protected SendStatus deleteDataItemsAwaitImpl(Uri uri) {\n\n SendStatus status = SendStatus.FAIL;\n\n MobvoiApiClient apiClient = getApiClient();\n if (apiClient != null) {\n Status resultStatus;\n if (timeOutMills > 0)\n resultStatus = Wearable.DataApi.deleteDataItems(apiClient, uri)\n .await(timeOutMills, TimeUnit.MILLISECONDS).getStatus();\n else\n resultStatus = Wearable.DataApi.deleteDataItems(apiClient, uri).await().getStatus();\n\n if (resultStatus.isSuccess()) {\n status = SendStatus.SUCCESS;\n } else if (resultStatus.getStatusCode() == CommonStatusCodes.TIMEOUT) {\n status = SendStatus.TIME_OUT;\n }\n }\n\n return status;\n }", "title": "" }, { "docid": "51ecad65407ba2d8226fea5aeb2e5511", "score": "0.58031666", "text": "protected void httpDelete(ArangoPersistor persistor, String apiPath, JsonObject headers, int timeout, Message<JsonObject> msg) {\n // launch the request\n HttpClientRequest clientRequest = persistor.getClient().delete(apiPath, new RestResponseHandler(msg, logger, helper));\n \n // set Headers and end the request\n addRequestHeaders(clientRequest, persistor, null).setTimeout(timeout).end(); \n }", "title": "" }, { "docid": "05fac42e6f252f37e1b5bffaaaf56f85", "score": "0.57738954", "text": "public int deleteEvent (Event event){\n logger.info(\"Getting status code to eliminate event from Office365 Service\");\n\n client.setLocation(event.getLocation());\n urlService.setLocation(event.getLocation());\n\n int statusCode = client.deleteHttpRequest(urlService.getURLDeleteEvent(event)).getStatusCode();\n\n /*logger.info(\"Output from API Office 365 : \" + client.getOutput()); //It has not output*/\n\n return (statusCode == 204) ? 200 : statusCode ;\n }", "title": "" }, { "docid": "bfed0154af68981dd2b8b073ebe511ec", "score": "0.5771384", "text": "public ApiResponse<Void> deleteContentmanagementStatusStatusId(ApiRequest<Void> request) throws IOException {\n try {\n return pcapiClient.invoke(request, null);\n }\n catch (ApiException exception) {\n @SuppressWarnings(\"unchecked\")\n ApiResponse<Void> response = (ApiResponse<Void>)(ApiResponse<?>)exception;\n return response;\n }\n catch (Throwable exception) {\n if (pcapiClient.getShouldThrowErrors()) {\n if (exception instanceof IOException) {\n throw (IOException)exception;\n }\n throw new RuntimeException(exception);\n }\n @SuppressWarnings(\"unchecked\")\n ApiResponse<Void> response = (ApiResponse<Void>)(ApiResponse<?>)(new ApiException(exception));\n return response;\n }\n }", "title": "" }, { "docid": "681cd9d5cdab1e0f1344175c45caccdf", "score": "0.5764986", "text": "@Test\n public void testWaitForOperation() throws IOException, InterruptedException {\n InstancesClient instancesClient = InstancesClient.create();\n Operation operation = instancesClient.delete(PROJECT_ID, ZONE, MACHINE_NAME_WAIT_FOR_OP);\n\n // Pass the operation ID and wait for it to complete.\n compute.WaitForOperation.waitForOperation(PROJECT_ID, operation);\n assertThat(stdOut.toString().contains(\"Operation Status: DONE\"));\n }", "title": "" }, { "docid": "4c3c654b251e4239451e70e4de10cdbf", "score": "0.5732709", "text": "public ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetryNoStatusHeaders> deleteAsyncRelativeRetryNoStatus() throws CloudException, IOException, InterruptedException {\n return deleteAsyncRelativeRetryNoStatusAsync().toBlocking().last();\n }", "title": "" }, { "docid": "ee90269569809ee3404b89d1b701e098", "score": "0.5675003", "text": "@Override\n\tpublic synchronized int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\twhile(initialized==0) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(200);\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(\"Delete Task\",\"Exception in delete thread\");\n\t\t\t}\n\t\t}\n\t\tString key = selection;\n\t\tString keyHash = \"\";\n\t\ttry{\n\t\t\tkeyHash = genHash(key);\n\t\t}catch (Exception e){\n\t\t\tLog.e(\"DeleteTask\",\"Exception in generating keyhash\");\n\t\t}\n\t\tif (key.equalsIgnoreCase(\"*\")) {\n\n\t\t\tMessage message = new Message();\n\t\t\tmessage.setMessageType(\"GLOBALDELETE\");\n\t\t\tObjectOutputStream outputStream;\n\t\t\tSocket socket;\n\t\t\tfor (String port: REMOTE_PORTS) {\n\t\t\t\ttry {\n\t\t\t\t\tsocket = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}),\n\t\t\t\t\t\t\tInteger.parseInt(port));\n\t\t\t\t\toutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t\t\toutputStream.writeObject(message);\n\t\t\t\t\toutputStream.flush();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"Delete Task\",\"Delete Operation failed\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse if (key.equalsIgnoreCase(\"@\")) {\n\t\t\tLog.i(\"DeleteTask\",\"If it is star query\");\n\t\t\tString[] files=getContext().fileList();\n\t\t\tfor(String file: files){\n\t\t\t\ttry {\n\t\t\t\t\tgetContext().deleteFile(file);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tLog.e(TAG, \"Delete operation failed:\" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//If deleting by specific key\n\t\telse{\n\t\t\tString[] deletePorts = new String[3];\n\t\t\tMessage message = new Message();\n\t\t\tmessage.setKey(key);\n\t\t\tmessage.setMessageType(\"SINGLEDELETE\");\n\t\t\tdeletePorts[0] = keyLookUp(keyHash);\n\t\t\tint index = Arrays.asList(REMOTE_PORTS).indexOf(deletePorts[0]);\n\t\t\tdeletePorts[1] = REMOTE_PORTS[(index + 1) % 5];\n\t\t\tdeletePorts[2] = REMOTE_PORTS[(index + 2) % 5];\n\t\t\tObjectOutputStream outputStream;\n\t\t\tSocket socket;\n\t\t\tfor (String port: deletePorts) {\n\t\t\t\ttry {\n\t\t\t\t\tsocket = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}),\n\t\t\t\t\t\t\tInteger.parseInt(port));\n\t\t\t\t\toutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t\t\tLog.i(TAG,\"Sending delete message to : \" + port + \" to delete key : \" + message.getKey());\n\t\t\t\t\toutputStream.writeObject(message);\n\t\t\t\t\toutputStream.flush();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"Delete Task\",\"Exception in delete task--\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "fda96fe31a22150a3af5e5a0689493f3", "score": "0.5669043", "text": "public ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders> deleteAsyncRelativeRetryInvalidJsonPolling() throws CloudException, IOException, InterruptedException {\n return deleteAsyncRelativeRetryInvalidJsonPollingAsync().toBlocking().last();\n }", "title": "" }, { "docid": "be5c271cd04064fe429f4be364327ee5", "score": "0.5668169", "text": "@Override\n\tpublic void handleDelete(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Continuation continuation)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "6c552bdc2e2327535be98c76957d634a", "score": "0.5662695", "text": "@Override\n public ListenableFuture<RpcResult<ServiceDeleteOutput>> serviceDelete(ServiceDeleteInput input) {\n return null;\n }", "title": "" }, { "docid": "ce34525084634cbe9e0bbe1455cfebe7", "score": "0.5653504", "text": "public Observable<ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders>> deleteAsyncRelativeRetryInvalidJsonPollingAsync() {\n Observable<Response<ResponseBody>> observable = service.deleteAsyncRelativeRetryInvalidJsonPolling(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() { }.getType(), LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.class);\n }", "title": "" }, { "docid": "b46e3f466676a13452a5d121253a6ba5", "score": "0.5639737", "text": "public Observable<ServiceResponseWithHeaders<Void, LROSADsDelete202NonRetry400Headers>> delete202NonRetry400Async() {\n Observable<Response<ResponseBody>> observable = service.delete202NonRetry400(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() { }.getType(), LROSADsDelete202NonRetry400Headers.class);\n }", "title": "" }, { "docid": "f2c128cecb27a6de9de1c31b12235eb1", "score": "0.5634717", "text": "@RequestMapping(value = \"/api/{service}/{operation}\",\n produces = {Http.XML_MIME, Http.JSON_MIME},\n method = RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.OK)\n public ResponseEntity<Object> executePassThroughApiWithDelete(HttpServletRequest servletRequest,\n @PathVariable(\"service\") String serviceName,\n @PathVariable(\"operation\") String operationName)\n throws BadRequestException, NotFoundException, SystemException, ServiceConditionException, IOException{\n Map<String, Object> response = execute(servletRequest, serviceName, operationName);\n\n return new ResponseEntity<>(response, HttpStatus.OK);\n }", "title": "" }, { "docid": "3110fb4d461af6d25266575f0d4446a4", "score": "0.5627309", "text": "public ServiceResponseWithHeaders<Void, LROSADsDelete202NonRetry400Headers> delete202NonRetry400() throws CloudException, IOException, InterruptedException {\n return delete202NonRetry400Async().toBlocking().last();\n }", "title": "" }, { "docid": "c1732e92baa9f76206b1095435f6ef06", "score": "0.5609252", "text": "@Timed\n public DeleteOperationResult await(String buildId) throws InterruptedException {\n CallbackData callbackData = buildsMap.get(buildId);\n if (callbackData == null) {\n errCounter.increment();\n throw new IllegalArgumentException(\n \"Await operation triggered for a build, which was not initiated using \"\n + \"method initializeHandler. This method must be called first!\");\n }\n\n callbackData.getCountDownLatch().await(MAX_WAIT_TIME, TimeUnit.SECONDS);\n buildsMap.remove(buildId);\n return callbackData.getCallbackResponse();\n }", "title": "" }, { "docid": "b7ab244c911ad329fa3eabaafa63f16c", "score": "0.5594847", "text": "public ListenableFuture<Long> deleteAsync(DocumentAssignable query,\n boolean singleDelete) throws MongoDbException;", "title": "" }, { "docid": "e9a31e4a1df4b2cc25790998e2faf91d", "score": "0.55915755", "text": "public RestingResponse DELETE(String endpointUrl, RequestConfig config) throws RestingException {\n\t\tlogger.debug(\"Inside DELETE!\");\n\t\tlong startTime = System.nanoTime();\n\t\t\n\t\t// override the request config\n\t\tconfig = RestingUtil.overrideGlobalRequestConfig(globalRequestConfig, config);\n\t\thttpClient = HttpClients.createDefault();\n\t\ttry {\n\t\t\torg.apache.http.client.config.RequestConfig requestConfig = org.apache.http.client.config.RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(config.getSocketTimeout())\n\t\t\t\t\t.setConnectTimeout(config.getConnectTimeout())\n\t\t\t\t\t.build();\n\n\t\t\tString fullURL = baseURI + endpointUrl;\n\t\t\tHttpDelete delete = new HttpDelete(fullURL);\n\t\t\tdelete.setConfig(requestConfig);\n\t\t\tdelete.setHeaders(RestingUtil.getHeadersFromRequest(config.getHeaders()));\n\n\t\t\tHttpResponse res = httpClient.execute(delete);\n\t\t\tRestingResponse response = new RestingResponse(res);\n\t\t\t\n\t\t\tif(enableMetrics) {\n\t\t\t\tlong stopTime = System.nanoTime();\n\t\t\t\tlong elapsedTime = (stopTime - startTime)/1000000;\n\t\t\t\tlogger.fatal(\"Time taken to execute [DELETE - \"+ fullURL +\"] in milliseconds>> \" + elapsedTime);\n\t\t\t}\n\t\t\t\n\t\t\treturn response;\n\t\t} catch (ClientProtocolException cpe) {\n\t\t\tcpe.printStackTrace();\n\t\t\tthrow new RestingException(cpe);\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\tthrow new RestingException(ioe);\n\t\t}\n\t}", "title": "" }, { "docid": "7e601335b8c8d670357f057b9f88d773", "score": "0.55616367", "text": "public int restDelete(String delString) {\n int statusCode = 999;\n DeleteMethod delMethod = new DeleteMethod(delString);\n HttpClient httpClient = new HttpClient();\n try {\n statusCode = httpClient.executeMethod(delMethod);\n System.out.println(\"Delete day range status = \" + statusCode);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n delMethod.releaseConnection();\n }\n return statusCode;\n }", "title": "" }, { "docid": "18b6ab695eceae7a7e5366dc3b454f72", "score": "0.5552088", "text": "public ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetry400Headers> deleteAsyncRelativeRetry400() throws CloudException, IOException, InterruptedException {\n return deleteAsyncRelativeRetry400Async().toBlocking().last();\n }", "title": "" }, { "docid": "5d9b54f09a74a2a469607f79e741c5da", "score": "0.55491316", "text": "protected abstract Callable<?> deleteTask(ChangeData cd);", "title": "" }, { "docid": "ac0d95923fccfa657fbc12a1ce59cc49", "score": "0.5537466", "text": "@Override\n\tpublic void deleteEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo)\n\t\t\tthrows ODataApplicationException, ODataLibraryException {\n\n\t}", "title": "" }, { "docid": "c4c024e58a7ffde031c114e59a193fb4", "score": "0.5533204", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n SyncPoller<PollResult<Void>, Void> beginDelete(\n String resourceGroupName, String serviceName, String appName, String domainName, Context context);", "title": "" }, { "docid": "927dbddafff8ff467e197770cce4971a", "score": "0.55318624", "text": "java.util.concurrent.Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest);", "title": "" }, { "docid": "a5d4c1d9f65bc67d6d5197db32069b3e", "score": "0.5515466", "text": "public void deleteAsync(Callback<Long> results, DocumentAssignable query,\n boolean singleDelete) throws MongoDbException;", "title": "" }, { "docid": "c7d3dd876b729d795a9a5b9ad65d305b", "score": "0.5513444", "text": "public Observable<ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetry400Headers>> deleteAsyncRelativeRetry400Async() {\n Observable<Response<ResponseBody>> observable = service.deleteAsyncRelativeRetry400(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() { }.getType(), LROSADsDeleteAsyncRelativeRetry400Headers.class);\n }", "title": "" }, { "docid": "5b706059c8116ceb8dac073950569131", "score": "0.55118763", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public PollerFlux<PollResult<Void>, Void> beginDelete(\n String resourceGroupName, String hostGroupName, String hostname, Context context) {\n return this.serviceClient.beginDelete(resourceGroupName, hostGroupName, hostname, context);\n }", "title": "" }, { "docid": "2eb85208a0fcd68bd4a9b25e5062214d", "score": "0.5511231", "text": "MeshRequest<EmptyResponse> deleteJob(String uuid);", "title": "" }, { "docid": "979a3dc117f84850023a092b22cdc64a", "score": "0.55033046", "text": "public void deleteAsync(LambdaCallback<Long> results,\n DocumentAssignable query, boolean singleDelete)\n throws MongoDbException;", "title": "" }, { "docid": "460d8990525511d579a8190cd16a29c9", "score": "0.5496407", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n PollerFlux<PollResult<Void>, Void> beginDeleteAsync(\n String resourceGroupName, String serviceName, String appName, String domainName);", "title": "" }, { "docid": "9f762d943cb64cf08a0295f0ef044729", "score": "0.5484163", "text": "int deleteByExample(JobhunterServiceExample example);", "title": "" }, { "docid": "2a4a2f71b75da758588040503ac1d59f", "score": "0.5480353", "text": "public RestingResponse DELETE(String endpointUrl) throws RestingException {\n\t\tlogger.debug(\"Inside DELETE!\");\n\t\thttpClient = HttpClients.createDefault();\n\t\tRequestConfig config = (globalRequestConfig == null)?RestingUtil.getDefaultRequestConfig():globalRequestConfig;\n\t\treturn DELETE(endpointUrl, config);\n\t}", "title": "" }, { "docid": "582469bb8ce2ebe9acbebfad3f22c3ef", "score": "0.54784715", "text": "public CheckedFuture<?, IOException> deleteAsync(ChangeData cd) {\n return executor != null\n ? submit(deleteTask(cd))\n : Futures.<Object, IOException> immediateCheckedFuture(null);\n }", "title": "" }, { "docid": "6f740b2eceb25d308029a474b6865638", "score": "0.54772246", "text": "@Override\n protected void onPostAsyncDelete(Integer result, Lap item) {\n // Leave blank.\n }", "title": "" }, { "docid": "d182af1d5c06d3b101e767034d8e6a80", "score": "0.5472116", "text": "@ApiOperation(value = \"retira ou deleta um aluno da lista\") //api deletar\n @DeleteMapping(path =\"/{id}\" )\n public ResponseEntity<?> delete(@PathVariable Long id){\n\n return serviceCredencial\n .fyndBy(id)\n .map(record -> {\n serviceCredencial.delete(record);\n return ResponseEntity.ok().build();\n }).orElse(ResponseEntity.notFound().build());\n }", "title": "" }, { "docid": "151afc6b35b7794df45f6e0a0a875526", "score": "0.54688245", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n SyncPoller<PollResult<Void>, Void> beginDelete(\n String resourceGroupName, String serviceName, String appName, String domainName);", "title": "" }, { "docid": "d9fd4477bf463535cae5dc9f6e765ec2", "score": "0.5464333", "text": "public ApiResponse<Void> callDeleteSubscriptionForDevelopmentEventsV0(String subscriptionId) throws ServiceException {\n List<Pair<String, String>> queryParams = new ArrayList<Pair<String, String>>();\n Map<String, String> pathParams = new HashMap<String, String>();\n pathParams.put(\"subscriptionId\", subscriptionId);\n List<Pair<String, String>> headerParams = new ArrayList<Pair<String, String>>();\n headerParams.add(new Pair<String, String>(\"Content-type\", \"application/json\"));\n\n String accessToken = lwaClient.getAccessTokenForRefreshToken();\n headerParams.add(new Pair<>(\"Authorization\", \"Bearer \" + accessToken));\n\n String path = \"/v0/developmentEvents/subscriptions/{subscriptionId}\";\n\n List<ServiceClientResponse> serviceResponseDefinitions = new ArrayList<>();\n serviceResponseDefinitions.add(new ServiceClientResponse(null, 204, \"Successful operation.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.BadRequestError.class, 400, \"Server cannot process the request due to a client error.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 401, \"The auth token is invalid/expired or doesn't have access to the resource.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.BadRequestError.class, 403, \"The operation being requested is not allowed.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 404, \"The resource being requested is not found.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 429, \"Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 500, \"Internal Server Error.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 503, \"Service Unavailable.\"));\n headerParams.add(new Pair<>(\"User-Agent\", userAgentHelper.getUserAgent()));\n\n\n return this.executeRequest(\"DELETE\", this.apiEndpoint, path, queryParams, headerParams,\n pathParams, serviceResponseDefinitions, null, null, false);\n }", "title": "" }, { "docid": "9c7f83a4189b88fd5cca565869b54aa6", "score": "0.54460824", "text": "@Override\n public Future<RpcResult<TempServiceDeleteOutput>> tempServiceDelete(TempServiceDeleteInput input) {\n return null;\n }", "title": "" }, { "docid": "1911871a70f0ed37ed0af769ef1866b5", "score": "0.54355574", "text": "java.util.concurrent.Future<DeleteStreamResult> deleteStreamAsync(String streamName);", "title": "" }, { "docid": "f3fd40dc458aa0911a48157a177c3d4c", "score": "0.54332685", "text": "public void onClick(DialogInterface dialog, int whichButton) {\n Log.d(\"UpdateDelete Debug - >\", \"Delete here\");\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n String params = \"geofenceid=\" + m.id;\n String url = \"http://eventosdataapi-env.elasticbeanstalk.com/?selector=7&\" + params;\n URL urlObj = new URL(url);\n HttpURLConnection conn = (HttpURLConnection) urlObj.openConnection();\n conn.setDoOutput(false);\n conn.setRequestMethod(\"PUT\");\n conn.setRequestProperty(\"Accept-Charset\", \"UTF-8\");\n conn.setConnectTimeout(15000);\n conn.getOutputStream().write(params.getBytes(\"UTF-8\"));\n Log.d(\"UpdateDelete debug->\", Integer.toString(conn.getResponseCode()));\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String output;\n while ((output = br.readLine()) != null) {\n sb.append(output);\n }\n JSONObject json = new JSONObject(sb.toString());\n Log.d(\"UpdateDelete debug->\", json.toString());\n if ((json.getString(\"success\").equals(\"True\"))) {\n MapsActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n Log.d(\"DDelete delete ->\", Integer.toString(m.eventList.size()));\n for (eventDetails e : m.eventList) {\n e.eventMarker.remove();\n Log.d(\"DDelete deubg->\", \"Geofence deleted\");\n }\n m.circle.remove();\n m.marker.remove();\n mMarkerList.remove(m);\n Toast.makeText(getBaseContext(), (\"GeoFence deleted!\"),\n Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n MapsActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(getBaseContext(), (\"Network Error! Please Try again!\"),\n Toast.LENGTH_SHORT).show();\n }\n });\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }).start();\n\n }", "title": "" }, { "docid": "5a2b257dd4624a6f48e9f1c42f5589e9", "score": "0.5430732", "text": "@POST\n @Path(\"/abort/{id}\")\n @Produces(\"application/json\")\n @Timed\n public Response postCancel(@Context UriInfo uriInfo,@PathParam(\"id\") String trackingId) {\n try {\n boolean res = serverRepository.abortJob(trackingId);\n log.info(\"Cancel result: {}\",res);\n return Response.status(Response.Status.CREATED).entity(ImmutableMap.of(\"cancelled\", res)).build();\n } catch (Exception e) {\n log.error(\"Error while submitting cancel job request for: {}, {}\",trackingId,e);\n return Response.status(Response.Status.SERVICE_UNAVAILABLE).entity(\"Error while submitting cancel job request.\").build();\n }\n\n }", "title": "" }, { "docid": "328b72a41660bbdfe4e1678c35ac28ce", "score": "0.5429261", "text": "public BaseResponse delete(long id);", "title": "" }, { "docid": "66c7af031d798f9ee1bac9e0dc0d2279", "score": "0.5421357", "text": "@FormUrlEncoded\n @POST(\"rest/items/delete_spec/api_key/{API_KEY}\")\n Call<ApiStatus> deleteSpecification(@Path(\"API_KEY\") String API_KEY, @Field(\"item_id\") String itemId, @Field(\"id\") String id);", "title": "" }, { "docid": "eff8369eae33817853eb5444c6dbfbd5", "score": "0.5419103", "text": "public void deleteAsync(LambdaCallback<Long> results,\n DocumentAssignable query, boolean singleDelete,\n Durability durability) throws MongoDbException;", "title": "" }, { "docid": "302f43d22cb4b6d967e40be94413ff38", "score": "0.54154867", "text": "public void deleteAsync(Callback<Long> results, DocumentAssignable query,\n boolean singleDelete, Durability durability)\n throws MongoDbException;", "title": "" }, { "docid": "5766d45c5fbc4b72ca74fda6951bfb3b", "score": "0.5411414", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Void> deleteAsync(String resourceGroupName, String routeFilterName);", "title": "" }, { "docid": "c7a7d3c75d94bf29226b163b9ead46d8", "score": "0.53934664", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public PollerFlux<PollResult<Void>, Void> beginDelete(\n String resourceGroupName, String hostGroupName, String hostname) {\n return this.serviceClient.beginDelete(resourceGroupName, hostGroupName, hostname);\n }", "title": "" }, { "docid": "50f947e95493e593df29f0657c900a19", "score": "0.538968", "text": "@DELETE\n @Path(\"alerts/{alertType}\")\n @ApiOperation(\n consumes = \"application/json\",\n produces = \"application/json\",\n httpMethod = \"DELETE\",\n value = \"Deletes Geo alerts for geo clusters\",\n notes = \"Deleting any type of a geo alert that was defined for geo clusters\",\n response = Response.class,\n tags = \"Geo Service Management\",\n extensions = {\n @Extension(properties = {\n @ExtensionProperty(name = Constants.SCOPE, value = \"perm:geo-service:alerts-manage\")\n })\n }\n )\n @ApiResponses(value = {\n @ApiResponse(\n code = 200,\n message = \"OK.\",\n response = Response.class,\n responseHeaders = {\n @ResponseHeader(\n name = \"Content-Type\",\n description = \"The content type of the body\")\n }),\n @ApiResponse(\n code = 400,\n message = \"Bad Request. \\n Invalid Device Identifiers found.\",\n response = Response.class),\n @ApiResponse(\n code = 401,\n message = \"Unauthorized. \\n Unauthorized request.\"),\n @ApiResponse(\n code = 500,\n message = \"Internal Server Error. \\n Error on retrieving stats\",\n response = Response.class)\n })\n Response removeGeoAlertsForGeoClusters(\n @ApiParam(\n name = \"alertType\",\n value = \"The alert type, such as Within, Speed, Stationary\",\n required = true)\n @PathParam(\"alertType\") String alertType,\n @ApiParam(\n name = \"queryName\",\n value = \"The query name.\",\n required = true)\n @QueryParam(\"queryName\") String queryName);", "title": "" }, { "docid": "000985b03b56e52f96f026ab8ea75a5b", "score": "0.5380038", "text": "@Override\n public OperationResponse delete(String resourceGroupName, String webSiteName, String slotName, WebSiteDeleteParameters parameters) throws IOException, ServiceException {\n // Validate\n if (resourceGroupName == null) {\n throw new NullPointerException(\"resourceGroupName\");\n }\n if (webSiteName == null) {\n throw new NullPointerException(\"webSiteName\");\n }\n if (parameters == null) {\n throw new NullPointerException(\"parameters\");\n }\n \n // Tracing\n boolean shouldTrace = CloudTracing.getIsEnabled();\n String invocationId = null;\n if (shouldTrace) {\n invocationId = Long.toString(CloudTracing.getNextInvocationId());\n HashMap<String, Object> tracingParameters = new HashMap<String, Object>();\n tracingParameters.put(\"resourceGroupName\", resourceGroupName);\n tracingParameters.put(\"webSiteName\", webSiteName);\n tracingParameters.put(\"slotName\", slotName);\n tracingParameters.put(\"parameters\", parameters);\n CloudTracing.enter(invocationId, this, \"deleteAsync\", tracingParameters);\n }\n \n // Construct URL\n String url = \"\";\n url = url + \"/subscriptions/\";\n if (this.getClient().getCredentials().getSubscriptionId() != null) {\n url = url + URLEncoder.encode(this.getClient().getCredentials().getSubscriptionId(), \"UTF-8\");\n }\n url = url + \"/resourceGroups/\";\n url = url + URLEncoder.encode(resourceGroupName, \"UTF-8\");\n url = url + \"/providers/\";\n url = url + \"Microsoft.Web\";\n url = url + \"/\";\n url = url + \"sites\";\n url = url + \"/\";\n url = url + URLEncoder.encode(webSiteName, \"UTF-8\");\n if (slotName != null) {\n url = url + \"/slots/\" + URLEncoder.encode(slotName, \"UTF-8\");\n }\n ArrayList<String> queryParameters = new ArrayList<String>();\n queryParameters.add(\"api-version=\" + \"2014-06-01\");\n queryParameters.add(\"deleteEmptyServerFarm=\" + URLEncoder.encode(Boolean.toString(parameters.isDeleteEmptyServerFarm()).toLowerCase(), \"UTF-8\"));\n queryParameters.add(\"deleteMetrics=\" + URLEncoder.encode(Boolean.toString(parameters.isDeleteMetrics()).toLowerCase(), \"UTF-8\"));\n queryParameters.add(\"deleteAllSlots=\" + URLEncoder.encode(Boolean.toString(parameters.isDeleteAllSlots()).toLowerCase(), \"UTF-8\"));\n if (queryParameters.size() > 0) {\n url = url + \"?\" + CollectionStringBuilder.join(queryParameters, \"&\");\n }\n String baseUrl = this.getClient().getBaseUri().toString();\n // Trim '/' character from the end of baseUrl and beginning of url.\n if (baseUrl.charAt(baseUrl.length() - 1) == '/') {\n baseUrl = baseUrl.substring(0, (baseUrl.length() - 1) + 0);\n }\n if (url.charAt(0) == '/') {\n url = url.substring(1);\n }\n url = baseUrl + \"/\" + url;\n url = url.replace(\" \", \"%20\");\n \n // Create HTTP transport objects\n CustomHttpDelete httpRequest = new CustomHttpDelete(url);\n \n // Set Headers\n \n // Send Request\n HttpResponse httpResponse = null;\n try {\n if (shouldTrace) {\n CloudTracing.sendRequest(invocationId, httpRequest);\n }\n httpResponse = this.getClient().getHttpClient().execute(httpRequest);\n if (shouldTrace) {\n CloudTracing.receiveResponse(invocationId, httpResponse);\n }\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_OK) {\n ServiceException ex = ServiceException.createFromXml(httpRequest, null, httpResponse, httpResponse.getEntity());\n if (shouldTrace) {\n CloudTracing.error(invocationId, ex);\n }\n throw ex;\n }\n \n // Create Result\n OperationResponse result = null;\n // Deserialize Response\n result = new OperationResponse();\n result.setStatusCode(statusCode);\n if (httpResponse.getHeaders(\"x-ms-request-id\").length > 0) {\n result.setRequestId(httpResponse.getFirstHeader(\"x-ms-request-id\").getValue());\n }\n \n if (shouldTrace) {\n CloudTracing.exit(invocationId, result);\n }\n return result;\n } finally {\n if (httpResponse != null && httpResponse.getEntity() != null) {\n httpResponse.getEntity().getContent().close();\n }\n }\n }", "title": "" }, { "docid": "79f3bc4c2c434bda639b8226a1a3ee9e", "score": "0.53780985", "text": "public Observable<ServiceResponse<Void>> delete204SucceededAsync() {\n Observable<Response<ResponseBody>> observable = service.delete204Succeeded(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType());\n }", "title": "" }, { "docid": "eb0facc8f155d245bc4885ee41080464", "score": "0.5377688", "text": "int deleteByExample(TCpyContractPerformanceExample example);", "title": "" }, { "docid": "fd5736f32adf123da87a9887f29cdf97", "score": "0.5365914", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName);", "title": "" }, { "docid": "ccf3f02e870204a96cff80dde4e9d387", "score": "0.5345189", "text": "Future<Void> startDelete(String remotePath, String version);", "title": "" }, { "docid": "c85b0daea6ce71fb0e749f136a592c1b", "score": "0.53433186", "text": "@Nullable\n public DeviceAppManagementTask delete() throws ClientException {\n return send(HttpMethod.DELETE, null);\n }", "title": "" }, { "docid": "c70049a7144d61b5fab75df883e5e81a", "score": "0.5339885", "text": "public ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders> deleteAsyncRelativeRetryInvalidHeader() throws CloudException, IOException, InterruptedException {\n return deleteAsyncRelativeRetryInvalidHeaderAsync().toBlocking().last();\n }", "title": "" }, { "docid": "4bdb5bcadd47582cb4186493fb48907e", "score": "0.5338907", "text": "@Nonnull\n public java.util.concurrent.CompletableFuture<EdiscoveryFile> deleteAsync() {\n return sendAsync(HttpMethod.DELETE, null);\n }", "title": "" }, { "docid": "eb8ed035f95864e97825d97887e42580", "score": "0.5335923", "text": "String deleteJob(String jobId) throws ConnectionException, RequestException, AccessException;", "title": "" }, { "docid": "79c36c4ac2c6b6b73aafedd5f0ce2d99", "score": "0.5329652", "text": "public void deleteAllLocations(){\n final ProgressDialog progress = new ProgressDialog(activityContext);\n progress.setTitle(\"Deleting locations\");\n progress.setMessage(\"Wait while resetting vehicle location data..\");\n progress.setCancelable(true); // disable dismiss by tapping outside of the dialog\n progress.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(DELETEALLLOCATIONSURL,new AsyncHttpResponseHandler(){\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n progress.dismiss();\n Toast.makeText(context,\"Vehicle locations deleted\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Toast.makeText(context, \"Failed\", Toast.LENGTH_LONG).show();\n\n }\n });\n }", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "b6e2248e3c87d3d350523d035410d4a2", "score": "0.53288126", "text": "void delete() throws ClientException;", "title": "" }, { "docid": "3cb21d5e12636e04d3fc5433ba5ff829", "score": "0.5321513", "text": "<T> T delete(GenericType<T> responseType) throws InvocationException;", "title": "" }, { "docid": "1df211b30631f9a6387e4d610528ed5b", "score": "0.53146666", "text": "public void responseDelete() {\n\n }", "title": "" }, { "docid": "f8eae6946b61b0b5bb6f5f0cf9f4302a", "score": "0.53146607", "text": "public ListenableFuture<Long> deleteAsync(DocumentAssignable query)\n throws MongoDbException;", "title": "" }, { "docid": "82371732bf0b5850ae442d9d1f1a7c3f", "score": "0.531333", "text": "public ApiResponse<Void> callDeleteSubscriberForDevelopmentEventsV0(String subscriberId) throws ServiceException {\n List<Pair<String, String>> queryParams = new ArrayList<Pair<String, String>>();\n Map<String, String> pathParams = new HashMap<String, String>();\n pathParams.put(\"subscriberId\", subscriberId);\n List<Pair<String, String>> headerParams = new ArrayList<Pair<String, String>>();\n headerParams.add(new Pair<String, String>(\"Content-type\", \"application/json\"));\n\n String accessToken = lwaClient.getAccessTokenForRefreshToken();\n headerParams.add(new Pair<>(\"Authorization\", \"Bearer \" + accessToken));\n\n String path = \"/v0/developmentEvents/subscribers/{subscriberId}\";\n\n List<ServiceClientResponse> serviceResponseDefinitions = new ArrayList<>();\n serviceResponseDefinitions.add(new ServiceClientResponse(null, 204, \"Successful operation.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.BadRequestError.class, 400, \"Server cannot process the request due to a client error.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 401, \"The auth token is invalid/expired or doesn't have access to the resource.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.BadRequestError.class, 403, \"The operation being requested is not allowed.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 404, \"The resource being requested is not found.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 429, \"Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 500, \"Internal Server Error.\"));\n serviceResponseDefinitions.add(new ServiceClientResponse(com.amazon.ask.smapi.model.v0.Error.class, 503, \"Service Unavailable.\"));\n headerParams.add(new Pair<>(\"User-Agent\", userAgentHelper.getUserAgent()));\n\n\n return this.executeRequest(\"DELETE\", this.apiEndpoint, path, queryParams, headerParams,\n pathParams, serviceResponseDefinitions, null, null, false);\n }", "title": "" }, { "docid": "7b04b4f01e287596a0dabdda22c4d3ea", "score": "0.5305178", "text": "@Override\n public void deleteEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException {\n throw new ODataApplicationException(\"Deleting events is not supported\", HttpStatusCode.METHOD_NOT_ALLOWED.getStatusCode(), Locale.ENGLISH);\n }", "title": "" }, { "docid": "0cadb76d4f60d8d897c983828f92bc89", "score": "0.53046006", "text": "void delete(String deleteId) throws Exception;", "title": "" }, { "docid": "c47d821af1291162cfb9e39bc5fb5591", "score": "0.5301652", "text": "@Override\n public CompletableFuture<Void> delete(SegmentMetadata sm, Duration timeout) {\n Preconditions.checkArgument(sm.isDeleted() || sm.isMerged(), \"Segment %s is not deleted.\", sm.getId());\n return SegmentAttributeIndex.delete(sm, this.storage, timeout);\n }", "title": "" }, { "docid": "ae1193d95cc22e9f44637f7a3a28bed2", "score": "0.5299753", "text": "@Override\n public void handleResponse(BackendlessUser backendlessUser) {\n for (PartnerDeleteRequest deleteRequest : pendingDeleteRequests) {\n Backendless.Data.of(PartnerDeleteRequest.class).remove(deleteRequest, new AsyncCallback<Long>() {\n @Override\n public void handleResponse(Long aLong) {\n /*\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !!!TOVA E KRAIAT NA USPESHNOTO IZTRIVAME NA PARTNER!!!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n }\n\n @Override\n public void handleFault(BackendlessFault backendlessFault) {\n //TODO: tr da se pomisli kakvo da se napravi v sluchai na greshka\n }\n });\n }\n }", "title": "" }, { "docid": "414847f3cd40a762b0e75976ced542d5", "score": "0.52992594", "text": "@DeleteMapping(\"/sample-of-agent-activities/{id}\")\n @Timed\n public ResponseEntity<Void> deleteSampleOfAgentActivity(@PathVariable Long id) {\n log.debug(\"REST request to delete SampleOfAgentActivity : {}\", id);\n sampleOfAgentActivityRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "title": "" }, { "docid": "2b4b877d62af81db14293b4bb852c203", "score": "0.5299027", "text": "public ServiceResponseWithHeaders<Void, LROSADsDeleteNonRetry400Headers> deleteNonRetry400() throws CloudException, IOException, InterruptedException {\n return deleteNonRetry400Async().toBlocking().last();\n }", "title": "" }, { "docid": "244db2e9daae7322f29e11797c9b4c32", "score": "0.52969944", "text": "public RestResponse<Job> deleteVariantSample(VariantSampleDeleteParams data, ObjectMap params) throws ClientException {\n params = params != null ? params : new ObjectMap();\n params.put(\"body\", data);\n return execute(\"operation\", null, \"variant/sample\", null, \"delete\", params, POST, Job.class);\n }", "title": "" }, { "docid": "57feecab8c8070520183ba11f2516e3a", "score": "0.5294868", "text": "@Override\n public void close()\n {\n if (state.compareAndSet(State.RUNNING, State.CLIENT_ABORTED)) {\n URI uri = currentResults.get().getNextUri();\n if (uri != null) {\n httpDelete(uri);\n }\n }\n }", "title": "" }, { "docid": "918df944c761bc68a67ed4e7b921b387", "score": "0.5293781", "text": "protected void doDelete(final String path, final int expectedStatus) throws OpenstackException {\n\t\ttry {\n\t\t\tfinal WebResource webResource = this.getWebResource();\n\n\t\t\tif (logger.isLoggable(Level.FINER)) {\n\t\t\t\tlogger.finer(\"DELETE request: '\" + webResource + \"'\");\n\t\t\t}\n\n\t\t\tfinal ClientResponse response = webResource.path(path)\n\t\t\t\t\t.type(MediaType.APPLICATION_JSON_TYPE)\n\t\t\t\t\t.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.header(\"X-Auth-Token\", this.getTokenId())\n\t\t\t\t\t.delete(ClientResponse.class);\n\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\t\tlogger.finest(\"DELETE '\" + webResource + \"' got response status: \" + response.getStatus());\n\t\t\t}\n\n\t\t\tif (expectedStatus != response.getStatus()) {\n\t\t\t\tfinal String entity = response.getEntity(String.class);\n\t\t\t\tthrow new OpenstackServerException(expectedStatus, response.getStatus(), entity);\n\t\t\t}\n\t\t} catch (final UniformInterfaceException e) {\n\t\t\tthrow this.createOpenstackServerException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "dffc3365537c923a7ee214c5abf2fb4a", "score": "0.5288304", "text": "public CheckedFuture<?, IOException> deleteAsync(Change change) {\n return deleteAsync(new ChangeData(change));\n }", "title": "" }, { "docid": "c8ab34b808955c8f745715927c655594", "score": "0.5280008", "text": "public void deleteAllLocationsLog(){\n final ProgressDialog progress = new ProgressDialog(activityContext);\n progress.setTitle(\"Deleting locations\");\n progress.setMessage(\"Wait while resetting vehicle location data..\");\n progress.setCancelable(true); // disable dismiss by tapping outside of the dialog\n progress.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(DELETEALLLOCATIONSLOGURL,new AsyncHttpResponseHandler(){\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n progress.dismiss();\n Toast.makeText(context,\"Vehicle locations deleted\",Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Toast.makeText(context, \"Failed\", Toast.LENGTH_LONG).show();\n\n }\n });\n }", "title": "" }, { "docid": "4e93e2410fd454161457424fb1617720", "score": "0.5278346", "text": "public HttpEvent delete(String restPath);", "title": "" }, { "docid": "6e25e5babb3aae23dedfa1f70cd0ebb3", "score": "0.5274272", "text": "Mono<Void> delete(Long id);", "title": "" }, { "docid": "776990be5e08ca191133ec7a0e532eaa", "score": "0.52660596", "text": "void delete(DeferredResult<ResponseEntity<?>> response, String userUrn, SmartCosmosUser user);", "title": "" }, { "docid": "51a3fac7269cce4d40f905343179b0ec", "score": "0.5264383", "text": "public ServiceResponseWithHeaders<Void, LROSADsDelete202RetryInvalidHeaderHeaders> delete202RetryInvalidHeader() throws CloudException, IOException, InterruptedException {\n return delete202RetryInvalidHeaderAsync().toBlocking().last();\n }", "title": "" }, { "docid": "bfc7436230c62483a33075903e2d97bc", "score": "0.5261607", "text": "public Observable<ServiceResponseWithHeaders<Void, LROSADsDeleteNonRetry400Headers>> deleteNonRetry400Async() {\n Observable<Response<ResponseBody>> observable = service.deleteNonRetry400(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() { }.getType(), LROSADsDeleteNonRetry400Headers.class);\n }", "title": "" }, { "docid": "8f2c0a5060317223719d5eafa8a1b471", "score": "0.5260693", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String peeringServiceName);", "title": "" }, { "docid": "08646c3076c04236f0a4b411abd79bb5", "score": "0.5259076", "text": "@Override\n\t@Action(\"monitor-infor-delete\")\n\tpublic String delete() throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "82efbab16652b78de5b8696c084f90c3", "score": "0.52554977", "text": "@Secured(\"ROLE_ADMIN\")\n @DeleteMapping(\"/api/statuses/{id}\")\n @Timed\n public ResponseEntity<Void> deleteStatus(@PathVariable Long id) {\n log.debug(\"REST request to delete Status : {}\", id);\n statusService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"status\", id.toString())).build();\n }", "title": "" }, { "docid": "8837114e7e38b2c4dc26d174b4647c9d", "score": "0.52530354", "text": "public ServiceResponse<Void> delete204Succeeded() throws CloudException, IOException, InterruptedException {\n return delete204SucceededAsync().toBlocking().last();\n }", "title": "" }, { "docid": "36eec3151daf8ce9b1597c00b665716a", "score": "0.5248924", "text": "public Observable<ServiceResponseWithHeaders<Void, LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders>> deleteAsyncRelativeRetryInvalidHeaderAsync() {\n Observable<Response<ResponseBody>> observable = service.deleteAsyncRelativeRetryInvalidHeader(this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() { }.getType(), LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.class);\n }", "title": "" }, { "docid": "376b08ef4f960185ef713dba27b11d89", "score": "0.52414054", "text": "public ListenableFuture<Long> deleteAsync(DocumentAssignable query,\n boolean singleDelete, Durability durability)\n throws MongoDbException;", "title": "" } ]
56343b78db00fe4fdf6c21720529db6c
Handles the HTTP POST method.
[ { "docid": "e1a7d9f5527431f567360d57b9e01017", "score": "0.0", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n PrintWriter out = response.getWriter();\r\n System.out.println(\"ad\");\r\n response.setContentType(\"text/html\");\r\n DataBaseConnection conn = new DataBaseConnection();\r\n Connection connect = conn.getConnection();\r\n String idKamar = request.getParameter(\"idKamar\");\r\n String tipeKamar = request.getParameter(\"tipeKamar\");\r\n int hargaKamar = Integer.parseInt(request.getParameter(\"hargaKamar\"));\r\n int jumlahKamar = Integer.parseInt(request.getParameter(\"jumlahKamar\"));\r\n\r\n String button = request.getParameter(\"button\");\r\n\r\n try {\r\n PreparedStatement update = connect.prepareStatement(\"update KAMAR set tipeKamar=?, hargaKamar=?, jumlahKamar=? where idKamar=?\");\r\n\r\n update.setString(1, tipeKamar);\r\n update.setInt(2, hargaKamar);\r\n update.setInt(3, jumlahKamar);\r\n update.executeUpdate();\r\n response.sendRedirect(\"showKamar1\");\r\n connect.close();\r\n } catch (Exception ex) {\r\n out.print(\"Message : \" + ex.getMessage());\r\n }\r\n }", "title": "" } ]
[ { "docid": "cae8906078924cde8196073adb9173fe", "score": "0.70273906", "text": "Post(){\r\n \r\n \r\n }", "title": "" }, { "docid": "65498fd0c44ab7f02f73e2018ca33680", "score": "0.7000886", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) {\n processPostRequest(request, response);\n }", "title": "" }, { "docid": "9fc1524aba2f19c476cc41fb3630f1c1", "score": "0.69406337", "text": "@Override\r\n\tpublic void post(HttpServletRequest req, HttpServletResponse resp) throws IOException, JSONException, SQLException {\n\t\t\r\n\t}", "title": "" }, { "docid": "17f34db2b46dfa68f0106864f4c2c66f", "score": "0.661806", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n processRequest(request, response, postCommands);\n }", "title": "" }, { "docid": "fb32b465c43857a7e61981898340f960", "score": "0.6615168", "text": "@Override\n protected void doPost(final HttpServletRequest request,\n final HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "9f46a09ddbffe58dd2ef283dbaf685b1", "score": "0.65951765", "text": "@Override\r\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a87d7a196848411ec28203af6b74b23", "score": "0.65737456", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "2d8cf33d3de0c4f92269daaa09f0d3f7", "score": "0.6563201", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processPostRequest(request, response);\n }", "title": "" }, { "docid": "05ba031079d5cdc3f9e63629f6f77de3", "score": "0.654844", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "title": "" }, { "docid": "c0bbba8c0d83b5a58ee9d4e3a0dba13b", "score": "0.6528879", "text": "public void handleMethodPOST(URI uri, HTTPRequest httpRequest, ToadletContext toadletContext) throws IOException, ToadletContextClosedException {\n \t\thandleRequest(new Request(uri, \"POST\", httpRequest, toadletContext));\n \t}", "title": "" }, { "docid": "31e76ba1e94b21bd33aa78bcab9d74d2", "score": "0.65250164", "text": "@Override\r\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "title": "" }, { "docid": "6f33b81b232320aab4802a644be61524", "score": "0.6513045", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "ab5f748d889e7e776ef39404ae2d84ff", "score": "0.65073204", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "368f92aea008d3224edef6044d84f7a5", "score": "0.6477479", "text": "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "title": "" }, { "docid": "a075fc353c51a744d1b073d99d589c75", "score": "0.64725804", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "098229da24961aab317287fa46b65f00", "score": "0.6470934", "text": "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException \n \t{\n \n \t}", "title": "" }, { "docid": "df4631075b1ddce3090e29fc10e28aa4", "score": "0.6461016", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \n \n \n \n \n }", "title": "" }, { "docid": "b899dc8a27c14bea34fbe2e41361bae1", "score": "0.64585626", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {\n }", "title": "" }, { "docid": "7a0d94daacfb5d8619818456469fbce7", "score": "0.64571637", "text": "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response, mRegistroComprador model) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6452577", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6452577", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6452577", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6452577", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "5e2bdefe01a0ee81d6b07cadeba6ed90", "score": "0.6445356", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\t\n\t\tPostDataRetriever db = new PostDataRetriever();\n\t\tString action = db.getTextPart(request, RpiCommunicationConsts.ACTION);\n\t\t\n\t\tif(action.equals(RpiCommunicationConsts.COMMAND_READTOKEN)){ //The servlet gets POST request with the token data.\n\t\t\ttry{\t\t\n\t\t\t\tString token = db.getTextPart(request, RpiCommunicationConsts.CARD_PARAM); //Fetch token data from the request.\n\t\t\t\t\n\t\t\t\tif(token!= null && !token.isEmpty()){\n\t\t\t\t\tServletContext sc = getServletContext();\n\t\t\t\t\tsc.setAttribute(RpiCommunicationConsts.CARD_PARAM, token.trim());\n\t\t\t\t\t\n\t\t\t\t\tlog.log(Level.INFO, \"-- Token is passed to the servlet context\");\n\t\t\t\t\t\n\t\t\t\t\tresponse.getWriter().println(AnswerConstants.OK_ANSWER);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlog.log(Level.INFO, \"-- Token is not in the request\");\n\t\t\t\t\tresponse.getWriter().println(AnswerConstants.ERROR_ANSWER);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tresponse.getWriter().println(AnswerConstants.ERROR_ANSWER);\n\t\t\t\tlog.log(Level.WARNING, \"--Failed to fetch token data with an exception\", e);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tlog.log(Level.WARNING, \"--Invalid POST request\");\n\t\t}\t\t \n\t}", "title": "" }, { "docid": "7e483e5ca388f07fcacd5aca685d14e6", "score": "0.6441579", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "7e483e5ca388f07fcacd5aca685d14e6", "score": "0.6441579", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "2c76a0fdc251081db7a9aec899fe302a", "score": "0.64414096", "text": "@Override\n\tpublic void post() {\n\n\t}", "title": "" }, { "docid": "295c00577f69df1c7ef46ec1e01790e1", "score": "0.6439101", "text": "public abstract String post(WizContext con) throws Exception;", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437522", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437522", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437522", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "4115567409c79ccfbb5cc4f3bdf531b7", "score": "0.6431909", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1,\r\n\t\t\tObject arg2, ModelAndView arg3) throws Exception {\n\t\tSystem.out.println(\"post\");\r\n\t}", "title": "" }, { "docid": "c74456693c4ab889a9546e2fbfb4e1df", "score": "0.6430792", "text": "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6420897", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6420897", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "15f020f842745d7ed587c80c16479dd3", "score": "0.6411353", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t}", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.6409593", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.6409593", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.6409593", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.6409593", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "08484b7b59539bd96bc513df2d08d7e1", "score": "0.64010066", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "fbfa9587b95cdbfee621b80c606ab32c", "score": "0.6371676", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "title": "" }, { "docid": "b2bba9c678e324aa10fb549535c1ba59", "score": "0.63691026", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t}", "title": "" }, { "docid": "d2b0259e8eb253bc46dec828eb18d044", "score": "0.6361847", "text": "@Override\r\n\tpublic int getHttpMethod() {\n\t\treturn Method.POST;\r\n\t}", "title": "" }, { "docid": "d2b0259e8eb253bc46dec828eb18d044", "score": "0.6361847", "text": "@Override\r\n\tpublic int getHttpMethod() {\n\t\treturn Method.POST;\r\n\t}", "title": "" }, { "docid": "59ae833d7e7416680c4f6ab432bece51", "score": "0.6354875", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "e0e0b070badcdbbd1cabeeaeedb1904f", "score": "0.63334197", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "title": "" }, { "docid": "a7722a161a46e2a55e0f292202d64944", "score": "0.63156515", "text": "protected void doPost(\n HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "683153ef4ea68e8f15727df5c1f45505", "score": "0.63038427", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tprocess(request, response);\n\t}", "title": "" }, { "docid": "6feb554b577dcd4fa8316a34344085ab", "score": "0.62975436", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n doGetPost(request, response);\n }", "title": "" }, { "docid": "3ae33e069d1006d4dabcf59bdccf8e3a", "score": "0.6294154", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // get AccountID from Cookie\n JsonCredential jsonCredential = getJsonCredential(request);\n if(jsonCredential != null) {\n int accountId = jsonCredential.getAccountId();\n // process POST request body to get amount and requestDescription\n String requestBody = \"\";\n if (\"POST\".equalsIgnoreCase(request.getMethod())) {\n requestBody = IOUtils.toString(request.getReader());\n requestBody = URLDecoder.decode(requestBody, \"UTF-8\");\n }\n String[] amountAndDescription = requestBody.split(\"&\");\n BigDecimal amount = new BigDecimal(amountAndDescription[0].substring(7));\n String requestDescription = amountAndDescription[1].substring(19);\n // persist data and return successful or internal service error\n ReportDAO reportDAO = new ReportDAO();\n boolean successful = reportDAO.submitNewReport(accountId, amount, requestDescription);\n if(successful) response.setStatus(201);\n else response.setStatus(500);\n\n }\n else{\n response.setStatus(500);\n }\n }", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6288832", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "d09688e6823a4f5ecd6edcde4ca5aa37", "score": "0.6284538", "text": "@Override\r\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t{\n\t\tthis.doGet(request, response);\r\n\t}", "title": "" }, { "docid": "897541471d82fc566fe43c37370b3985", "score": "0.627589", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method) {\n\t\tcase \"SQL\":\n\t\t\tdealWithSQL(request, response);\n\t\t\tbreak;\n\t\tcase \"DeleteRecord\":\n\t\t\tdeleteRecord(request, response);\n\t\t\tbreak;\n\t\tcase \"SortRecord\":\n\t\t\tsortRecord(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "4f913f34ac2991e982e000cc4da20f34", "score": "0.62753236", "text": "@Override\n protected final void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws\n ServletException, IOException {\n }", "title": "" }, { "docid": "08b6286c52f6e63e4d6bde403099d499", "score": "0.6261329", "text": "@Override\n protected void\n doPost\n\n\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException,\n IOException\n {\n processRequest(request, response);\n }", "title": "" }, { "docid": "aafa3b225a9f94245012a3bbd937cce8", "score": "0.6234274", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n \n \n\n \n \n }", "title": "" }, { "docid": "37f19c732ca598a499a7095f8fca65e4", "score": "0.6233539", "text": "public void doPost(final HttpTransaction tx) throws IOException\r\n {\r\n tx.sendResponse(HTTP_BAD_METHOD, \"text/plain\", \"405 Bad Method.\");\r\n }", "title": "" }, { "docid": "286b504cfc0bbc2e1bfaa989ba09bcc2", "score": "0.6232085", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response) \r\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\r\n response.setStatus(HttpServletResponse.SC_OK);\r\n if (request == null) {\r\n response.getWriter().println(\"no valid payload provided\");\r\n } else {\r\n try {\r\n response.getWriter().println(postWorkOrderJSON(request));\r\n } catch (TransformerException ex) {\r\n response.getWriter().println(ex);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3c06fb470967b24f9f038d2129152804", "score": "0.6219249", "text": "protected abstract void onValidatedPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException;", "title": "" }, { "docid": "5c64354fb132340cb9ca5b49135122d7", "score": "0.6218422", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c64354fb132340cb9ca5b49135122d7", "score": "0.6218422", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c64354fb132340cb9ca5b49135122d7", "score": "0.6218422", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "537a1a8c0b1673af69689c9f88e7dc3e", "score": "0.6218256", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "d1daef32eba76cc199beaab07c63111e", "score": "0.6214223", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"ControllerServlet: doPost\");\n processRequest(request, response);\n }", "title": "" }, { "docid": "dd52a6dfccc7342207689175efff5ee9", "score": "0.6208627", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n try {\r\n processRequest(request, response);\r\n } catch (IOException | ServletException ex) {\r\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "c8090bf27672e9029723e1ba1def6372", "score": "0.6202048", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"doPost메서드가 호출되었습니다.\");\n\t}", "title": "" }, { "docid": "2f39959948d3bdd800d4ef7c07fa4111", "score": "0.62018114", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\r\n\t}", "title": "" }, { "docid": "9e79983009fe1f89e9e629aab4f4398c", "score": "0.6191815", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // processRequest(request, response);\n System.out.println(\"Post try\");\n connection conn=new connection();\n int fn=Integer.parseInt(request.getParameter(\"fn\"));\n String jsonData=request.getParameter(\"jsonData\");\n //System.out.println(\"jsondata from POST controller=\"+jsonData);\n try {\n switch(fn)\n {\n case 1:{conn.addVenues(jsonData);}break;\n case 2:{\n String venue_id=request.getParameter(\"venue_id\");\n boolean retur=conn.addTips(jsonData,venue_id);\n out.println(retur);\n }break;\n }\n \n } catch (ParseException ex) {\n Logger.getLogger(main_Controller.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(main_Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "89955ead27212435c27875897bfa9e18", "score": "0.6190584", "text": "public abstract void postSend ();", "title": "" }, { "docid": "055fc6e7b6d71bdcca28c4a76a8b59a8", "score": "0.6168478", "text": "@Override\n\tpublic HttpMethod getHttpMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "title": "" }, { "docid": "00c247bebb81780cd512747a3f3cad11", "score": "0.61453444", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "8741479de7860ab9be480133ce4cf1e5", "score": "0.61335194", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n response.setContentType(\"application/json;charset=UTF-8\");\n\n // get parameters from POST request\n\n String action = request.getParameter(\"action\");\n if (action.equals(\"R\")) {\n this.registerUser(request);\n } else if (action.equals(\"U\")) {\n this.rerankResults(request, response);\n } else if (action.equals(\"UC\")) {\n this.updateClicks(request);\n } else if (action.equals(\"SC\")) {\n this.simulateClick(request);\n } else if (action.equals(\"Q\")) {\n this.query(request, response);\n }\n }", "title": "" }, { "docid": "9893a7a2b2aff6459c5c9b1c36cc47ad", "score": "0.611159", "text": "@Override\n public String executePost(HttpServletRequest request,\n HttpServletResponse response) throws IOException, ServletException {\n\n log.debug(\"Command Post starts\");\n\n String errorMessage = \"Bad post request\";\n request.getSession().setAttribute(\"errorMessage\", errorMessage);\n log.error(\"errorMessage --> \" + errorMessage);\n\n log.debug(\"Command Post finished\");\n return Path.COMMAND__ERROR;\n }", "title": "" }, { "docid": "c2559e920753f2748406c9edd553e269", "score": "0.61101836", "text": "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)\n throws Exception {\n }", "title": "" }, { "docid": "adcccc18aee22fe0c0eaea19635889f3", "score": "0.6108373", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "adcccc18aee22fe0c0eaea19635889f3", "score": "0.6108373", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "a605d8020df19a8289b412f6661e3876", "score": "0.60991144", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n\r\n }", "title": "" }, { "docid": "4f3f1170b1cc0f24517e9931e6d02816", "score": "0.6098801", "text": "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "title": "" }, { "docid": "45c0cc8f7f9f6f0f05a33cf307d35b92", "score": "0.60983735", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "45c0cc8f7f9f6f0f05a33cf307d35b92", "score": "0.60983735", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "45c0cc8f7f9f6f0f05a33cf307d35b92", "score": "0.60983735", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "45c0cc8f7f9f6f0f05a33cf307d35b92", "score": "0.60983735", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "ec8b7217a7ea7570a6349c1a80bc5c1d", "score": "0.60976607", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "53d43a013a590667e47f8878aa9d7698", "score": "0.60952115", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n processRequest(request, response);\n }", "title": "" }, { "docid": "53d43a013a590667e47f8878aa9d7698", "score": "0.60952115", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n processRequest(request, response);\n }", "title": "" }, { "docid": "53d43a013a590667e47f8878aa9d7698", "score": "0.60952115", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n processRequest(request, response);\n }", "title": "" }, { "docid": "e1e3006d88b3e8ce6c2921dd04694515", "score": "0.6094802", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n processRequest(request, response);\n }", "title": "" }, { "docid": "9640eb364b9da8d821c8fa8658f96449", "score": "0.60947806", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "9b919aa7d5adbfe4af2103b1a3cbbd3a", "score": "0.6091463", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n\n Vector<String> parameters = UrlUnpacker.unpack(request.getPathInfo());\n\n JSONObject jsonObject = PostRequestDataExtractor.extractJson(request);\n\n // no parameters, this is host create request\n if (parameters.isEmpty()) {\n\n if (jsonObject != null) {\n\n String matrixName = (String) jsonObject.get(PsMatrix.NAME);\n String serviceTypeId = (String) jsonObject.get(PsMatrix.SERVICE_TYPE_ID);\n\n // the input data is a valid JSON object\n\n // create new matrix\n PsMatrix matrix =\n PsObjectCreator.createNewMatrix(serviceTypeId, matrixName);\n\n // convert host to json\n JSONObject finalMatrix = JsonConverter.toJson(matrix);\n\n out.println(finalMatrix.toString());\n }\n }\n\n } catch (Exception e) {\n System.out.println(new Date() + \" Error in \" + getClass().getName() + \" \" + e);\n } finally {\n out.close();\n }\n }", "title": "" }, { "docid": "f38f4cd136220003255ce82943005ac4", "score": "0.6071459", "text": "private void postData() {\n finalResponse=\"\";\n\n try {\n System.out.println(\"Sending to: \" + urlAddress);\n\n String values = preparePostData();\n System.out.println(\"To send: \" + values);\n\n URL url = new URL(null, urlAddress);\n conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(CONNECTION_TIMEOUT);\n conn.setConnectTimeout(CONNECTION_TIMEOUT);\n conn.setDoInput(true);\n conn.setDoOutput(true);\n\n conn.setRequestMethod(\"POST\");\n //conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n conn.connect();\n\n OutputStream os = conn.getOutputStream();\n OutputStreamWriter osWriter = new OutputStreamWriter(os, \"UTF-8\");\n BufferedWriter writer = new BufferedWriter(osWriter);\n writer.write(values); // output!\n writer.flush();\n writer.close();\n os.close();\n\n\n // Response:\n InputStream is = conn.getInputStream();\n InputStreamReader isReader = new InputStreamReader(is, \"UTF-8\");\n BufferedReader reader = new BufferedReader(isReader);\n\n String result = \"\";\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n result += line;\n }\n System.out.println(\"Server Response: \" + result);\n Thread.sleep(1000);\n\n if (result.equals(\"200\"))\n {\n finalResponse=result;\n }\n\n } catch (MalformedURLException e) {\n finalResponse=\"\";\n } catch (IOException e) {\n finalResponse=\"\";\n } catch (InterruptedException e) {\n finalResponse=\"\";\n }\n }", "title": "" }, { "docid": "289284dd30cd36aaebd8d7b7a0e50a36", "score": "0.60694396", "text": "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n }", "title": "" } ]
8fa739a76f4974f4aabe2000ba51e14c
repeated .Request.ProtoRequest.Card cards = 1;
[ { "docid": "11543d59d0060e769d390ed882433eeb", "score": "0.71726465", "text": "com.jcoinche.server.Request.ProtoRequest.Card getCards(int index);", "title": "" } ]
[ { "docid": "bd28de26b9536fd00d32459d90385a40", "score": "0.7260855", "text": "java.util.List<com.jcoinche.server.Request.ProtoRequest.Card> \n getCardsList();", "title": "" }, { "docid": "248b24a4e7c8e4416e580f7005a92abb", "score": "0.71801645", "text": "java.util.List<? extends com.jcoinche.server.Request.ProtoRequest.CardOrBuilder> \n getCardsOrBuilderList();", "title": "" }, { "docid": "a19b9d39003632c4c37181f0b3503b61", "score": "0.6846948", "text": "com.jcoinche.server.Request.ProtoRequest.CardOrBuilder getCardsOrBuilder(\n int index);", "title": "" }, { "docid": "ec6857603ca192fbbf4f50c0f1f78132", "score": "0.6833108", "text": "com.jcoinche.server.Request.ProtoRequest.CardType getType();", "title": "" }, { "docid": "3ceeb1ca9a2944a2944455f3a459efc5", "score": "0.6772664", "text": "com.jcoinche.server.Request.ProtoRequest.AskCard getAskCard();", "title": "" }, { "docid": "1ee425b5efb50bd71055d996c93f4910", "score": "0.67227846", "text": "public com.jcoinche.server.Request.ProtoRequest.Card.Builder addCardsBuilder() {\n return getCardsFieldBuilder().addBuilder(\n com.jcoinche.server.Request.ProtoRequest.Card.getDefaultInstance());\n }", "title": "" }, { "docid": "3cf8968a7fbe213276648bd449481f7f", "score": "0.66692364", "text": "com.jcoinche.server.Request.ProtoRequest.AskCardOrBuilder getAskCardOrBuilder();", "title": "" }, { "docid": "4a2ab9896ac67f5b688d28a7e9dde94a", "score": "0.6607488", "text": "public java.util.List<? extends com.jcoinche.server.Request.ProtoRequest.CardOrBuilder> \n getCardsOrBuilderList() {\n return cards_;\n }", "title": "" }, { "docid": "82c433add68cf84f15627f566abfb312", "score": "0.6595993", "text": "public com.jcoinche.server.Request.ProtoRequest.CardOrBuilder getCardsOrBuilder(\n int index) {\n if (cardsBuilder_ == null) {\n return cards_.get(index); } else {\n return cardsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "d4720773b95025b43cb5556d97252c9b", "score": "0.65181774", "text": "public com.jcoinche.server.Request.ProtoRequest.CardOrBuilder getCardsOrBuilder(\n int index) {\n return cards_.get(index);\n }", "title": "" }, { "docid": "86451c08502ba7857bbabf98594ee867", "score": "0.6482466", "text": "java.util.List<? extends protobuf.clazz.Protocol.Int32ArrayResponseOrBuilder> \n getCardDataOrBuilderList();", "title": "" }, { "docid": "49331728265f61bf1aee57af89dc1892", "score": "0.6411521", "text": "java.util.List<protobuf.clazz.Protocol.Int32ArrayResponse> \n getCardDataList();", "title": "" }, { "docid": "a57c1c4c7289a02bff569118f7847eb3", "score": "0.63824284", "text": "public java.util.List<? extends com.jcoinche.server.Request.ProtoRequest.CardOrBuilder> \n getCardsOrBuilderList() {\n if (cardsBuilder_ != null) {\n return cardsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cards_);\n }\n }", "title": "" }, { "docid": "350c5775b09b8562c9967d3bebbc7e8c", "score": "0.6321764", "text": "public java.util.List<com.jcoinche.server.Request.ProtoRequest.Card> getCardsList() {\n return cards_;\n }", "title": "" }, { "docid": "8f4590eaecbf80ec1ff4886302a84326", "score": "0.6312611", "text": "java.util.List<com.gwsoft.server.game.protobuf.UserCardsProtobuf.Card> \n getCardList();", "title": "" }, { "docid": "bd3540285ea08a139650b92c03e66aa4", "score": "0.61623", "text": "public Builder addCards(com.jcoinche.server.Request.ProtoRequest.Card value) {\n if (cardsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCardsIsMutable();\n cards_.add(value);\n onChanged();\n } else {\n cardsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "087d6e4f14e038c02e775e2fd609973c", "score": "0.6150272", "text": "com.jcoinche.server.Request.ProtoRequest.CardValue getValue();", "title": "" }, { "docid": "18e864489e7196a37a39b26a127bbf68", "score": "0.6094811", "text": "public com.jcoinche.server.Request.ProtoRequest.Card getCards(int index) {\n if (cardsBuilder_ == null) {\n return cards_.get(index);\n } else {\n return cardsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "ea379ab126b0cade6acc2bf29a60a993", "score": "0.60630155", "text": "public java.util.List<com.jcoinche.server.Request.ProtoRequest.Card> getCardsList() {\n if (cardsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cards_);\n } else {\n return cardsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "01ce38014dafe0198293a7a523993183", "score": "0.6052049", "text": "public Builder addAllCards(\n java.lang.Iterable<? extends com.jcoinche.server.Request.ProtoRequest.Card> values) {\n if (cardsBuilder_ == null) {\n ensureCardsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cards_);\n onChanged();\n } else {\n cardsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "2739f154dae1fbf8a8e1f3bdea023655", "score": "0.60099244", "text": "public java.util.List<? extends protobuf.clazz.Protocol.Int32ArrayResponseOrBuilder> \n getCardDataOrBuilderList() {\n return cardData_;\n }", "title": "" }, { "docid": "be8a045d03f97e2718263c78e90d8a0a", "score": "0.5950144", "text": "public com.jcoinche.server.Request.ProtoRequest.Card getCards(int index) {\n return cards_.get(index);\n }", "title": "" }, { "docid": "3e8fec38234bf44d76f40b5d5e395d49", "score": "0.5947889", "text": "public void setCards(Card[] cards) {\r\n this.cards = cards;\r\n }", "title": "" }, { "docid": "3e8fec38234bf44d76f40b5d5e395d49", "score": "0.5947889", "text": "public void setCards(Card[] cards) {\r\n this.cards = cards;\r\n }", "title": "" }, { "docid": "cde1293477b6037bd70d1374cc587eee", "score": "0.5919892", "text": "public void addCardsToHand(List<Card> cards){\n\n }", "title": "" }, { "docid": "c161dbeaa4f472565ebc03e3cdcacedd", "score": "0.5917587", "text": "public com.jcoinche.server.Request.ProtoRequest.Card.Builder addCardsBuilder(\n int index) {\n return getCardsFieldBuilder().addBuilder(\n index, com.jcoinche.server.Request.ProtoRequest.Card.getDefaultInstance());\n }", "title": "" }, { "docid": "a32965c6f56ef29e5512e7b652d5080b", "score": "0.5891716", "text": "protobuf.clazz.Protocol.Int32ArrayResponse getCardData(int index);", "title": "" }, { "docid": "ed74e6f41c6f61859fe9bd3875e77ceb", "score": "0.58512706", "text": "public DecryptionRequest(String card)\n {\n cardNumber=card;\n }", "title": "" }, { "docid": "0dd805f9b235688982a32862685f8a44", "score": "0.5829316", "text": "public void addCard() {\n\t\tthis.cards++;\n\t}", "title": "" }, { "docid": "d78098de9453034aad59529daab3035b", "score": "0.58279794", "text": "@Override\r\n public SortedBag<Card> initialClaimCards() {\r\n send(MessageId.CARDS, Serdes.STRING_SERDE.serialize(\"\"));\r\n\r\n return Serdes.SORTED_CARD_SERDE.deserialize(receive());\r\n\r\n }", "title": "" }, { "docid": "d2fa233290cf8123297b8a1f53cd5a07", "score": "0.581453", "text": "private Card(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "a696e020412f73f70011186ea9b91967", "score": "0.5799919", "text": "public protobuf.clazz.Protocol.Int32ArrayResponse.Builder addCardDataBuilder() {\n return getCardDataFieldBuilder().addBuilder(\n protobuf.clazz.Protocol.Int32ArrayResponse.getDefaultInstance());\n }", "title": "" }, { "docid": "b174782455d60303d7a5c64c09a6fd41", "score": "0.5777899", "text": "public java.util.List<? extends protobuf.clazz.Protocol.Int32ArrayResponseOrBuilder> \n getCardDataOrBuilderList() {\n if (cardDataBuilder_ != null) {\n return cardDataBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cardData_);\n }\n }", "title": "" }, { "docid": "12449f73b39294d295249b678b3ac18c", "score": "0.57590425", "text": "private AskCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "1269ebab261f67ead3683bc392c9e497", "score": "0.5669305", "text": "public void addCard(Card card) {\r\n cards.add(card);\r\n }", "title": "" }, { "docid": "b9ee33c233bc5be63eb8620bd56fad71", "score": "0.5657125", "text": "Card(){\n \n }", "title": "" }, { "docid": "e20050d2dedc129542138abf5e0e3623", "score": "0.56458074", "text": "public protobuf.clazz.Protocol.Int32ArrayResponseOrBuilder getCardDataOrBuilder(\n int index) {\n return cardData_.get(index);\n }", "title": "" }, { "docid": "b8667617bab3b71c1731e35e93474e3d", "score": "0.56217664", "text": "public void setCards(ArrayList<Card> cards) {\r\n this.cards = cards;\r\n }", "title": "" }, { "docid": "72f1ae3a496a9dca693513dbc9535f59", "score": "0.5620742", "text": "public void addCardsToDiscardPile(List<Card> cards){\n\n }", "title": "" }, { "docid": "5d745cfcd73a8e8f19e9aaf06c021f3f", "score": "0.5611321", "text": "void addCard(Card card);", "title": "" }, { "docid": "5587966e7d531112a2aa460c937ce9d8", "score": "0.5601539", "text": "protobuf.clazz.Protocol.Int32ArrayResponseOrBuilder getCardDataOrBuilder(\n int index);", "title": "" }, { "docid": "953a3e30039d538775d74c9030ddc20a", "score": "0.55552065", "text": "List<Card> getCards();", "title": "" }, { "docid": "8cea29888ae31223b8b9034874e87efd", "score": "0.5553876", "text": "public protobuf.clazz.Protocol.Int32ArrayResponseOrBuilder getCardDataOrBuilder(\n int index) {\n if (cardDataBuilder_ == null) {\n return cardData_.get(index); } else {\n return cardDataBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "f3cc8e8120444c657af36c268d0b796c", "score": "0.5551624", "text": "public Hand() {for(int cnt = 0; cnt < 52; cnt++) {hand[cnt] = new Card();} minimumBet = 1;}", "title": "" }, { "docid": "ca41ae172053e29c06fe86b1a6f44e04", "score": "0.5547749", "text": "public void addCard(Card p);", "title": "" }, { "docid": "81c84b2798e15190bf50536dde1dfc81", "score": "0.55436546", "text": "public com.jcoinche.server.Request.ProtoRequest.Card.Builder getCardsBuilder(\n int index) {\n return getCardsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "935e37194b5fdc9ba0ad45ec2a7d736c", "score": "0.5529894", "text": "Card createCard();", "title": "" }, { "docid": "c76fed37b31f019ce5816f1b7d895ef3", "score": "0.5521551", "text": "public Builder setCards(\n int index, com.jcoinche.server.Request.ProtoRequest.Card value) {\n if (cardsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCardsIsMutable();\n cards_.set(index, value);\n onChanged();\n } else {\n cardsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "e6097e32579076b4d7b21b72894ab813", "score": "0.5515495", "text": "com.jcoinche.server.Request.ProtoRequest.ListHand getListHand();", "title": "" }, { "docid": "ea53981265f296c553022d11d2ff20b6", "score": "0.55109316", "text": "public Builder addCards(\n int index, com.jcoinche.server.Request.ProtoRequest.Card value) {\n if (cardsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCardsIsMutable();\n cards_.add(index, value);\n onChanged();\n } else {\n cardsBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "599b2064910afbd0d1a0a8baae03a25f", "score": "0.5506322", "text": "com.jcoinche.server.Request.ProtoRequest.AskBet getAskBet();", "title": "" }, { "docid": "a85c2d75c490cf157a503ac48a55ff98", "score": "0.5500163", "text": "public PlayingCard() {}", "title": "" }, { "docid": "ffcdd34f13cef85e81f6d60f489ec147", "score": "0.54998416", "text": "public Card getCard()\n {\n return card;\n }", "title": "" }, { "docid": "6b52b606da213a3cab0092856f7aa540", "score": "0.5499193", "text": "public void addCard(Card card){\n cards.add(card);\n }", "title": "" }, { "docid": "4cbdd5cb8379086b58aba622edaa3e8a", "score": "0.549643", "text": "public Card(int cardSuit, int cardFace) {\n // complete this method\n }", "title": "" }, { "docid": "ac9b280432509c39b714546da28e0ec3", "score": "0.5493049", "text": "public java.util.List<protobuf.clazz.Protocol.Int32ArrayResponse> getCardDataList() {\n return cardData_;\n }", "title": "" }, { "docid": "7d4f8cbe7cb4ce0cc99d5473cf87ad1a", "score": "0.547132", "text": "public Card[] getCards() {\r\n return this.cards;\r\n }", "title": "" }, { "docid": "f34046aa34c19dd3cd2602712b876b0d", "score": "0.5459458", "text": "public UnoDeck()\r\n {\r\n cards = new UnoCard[108];\r\n }", "title": "" }, { "docid": "481755a133d516207070137621e9f9e3", "score": "0.545513", "text": "PolicyCard firstCard(List<PolicyCard> cardPile);", "title": "" }, { "docid": "6dfea09e02c427eccec65c79a76052cd", "score": "0.54343635", "text": "public interface Card {\n\n /**\n * The card type constant for EndCard\n */\n static final int END_CARD = 0;\n /**\n * The card type constant for BasicCard\n */\n static final int BASIC_CARD = 1;\n /**\n * The card type constant for RuleCard\n */\n static final int RULE_CARD = 2;\n\n /**\n * Tells the type of the card.\n *\n * @return the card type constant for this card\n */\n public abstract int getType();\n\n /**\n * Tells the name of the card.\n *\n * @return the name of the card\n */\n public abstract String getName();\n\n /**\n * Tells the description of the card.\n *\n * @return the description of the card\n */\n public abstract String getDescription();\n\n /**\n * Tells how many times at least this card can occur anywhere in the deck.\n *\n * @param playerCount the number of players in the game\n *\n * @return occurrences anywhere in the deck\n */\n public abstract int getPcsRandom(int playerCount);\n\n /**\n * Tells how many times at least this card can occur in the first quarter of\n * the deck.\n *\n * @param playerCount the number of players in the game\n *\n * @return occurrences in the first quarter of the deck\n */\n public abstract int getPcsFirst(int playerCount);\n\n /**\n * Tells how many times at least this card can occur in the second quarter\n * of the deck.\n *\n * @param playerCount the number of players in the game\n *\n * @return occurrences in the second quarter of the deck\n */\n public abstract int getPcsSecond(int playerCount);\n\n /**\n * Tells how many times at least this card can occur in the third quarter of\n * the deck.\n *\n * @param playerCount the number of players in the game\n *\n * @return occurrences in the third quarter of the deck\n */\n public abstract int getPcsThird(int playerCount);\n\n /**\n * Tells how many times at least this card can occur in the fourth quarter\n * of the deck.\n *\n * @param playerCount the number of players in the game\n *\n * @return occurrences in the fourth quarter of the deck\n */\n public abstract int getPcsFourth(int playerCount);\n}", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.54322", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.54322", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "40851ec960b5ab88be698544fc65dc48", "score": "0.542697", "text": "@POST\r\n @Produces(MediaType.APPLICATION_JSON)\r\n @Consumes(MediaType.TEXT_PLAIN)\r\n @Path(\"/{players}/{cards}\")\r\n public ArrayList<ArrayList<ElementCard>> getJson(@PathParam(\"players\") String num_players, @PathParam(\"cards\") String cards, String str){\n \r\n\t\tJSONObject obj = new JSONObject(str);\r\n\t\tString deckID = obj.getString(\"DeckID\");\r\n\t\t\r\n\t\tCustomElementList cel = new CustomElementList(deckID);\r\n\t\tCustomSemanticTable cst = new CustomSemanticTable(cel.getElementList(),deckID);\r\n\t\tCustomSemanticTypicalTable cstt = new CustomSemanticTypicalTable(deckID);\r\n\t\t\r\n int players = Integer.parseInt(num_players);\r\n int num_cards = Integer.parseInt(cards);\r\n ArrayList<ArrayList<ElementCard>> gameHand = new ArrayList<>();\r\n \r\n for (int i = 0; i < players; i++) {\r\n gameHand.add(new ArrayList<ElementCard>());\r\n }\r\n\r\n ArrayList<ElementCard> cards_available = (ArrayList<ElementCard>) cel.getElementList().clone();\r\n ArrayList<ElementCard> myths_available = (ArrayList<ElementCard>) cel.getMythList().clone();\r\n \r\n // Give one Random Myth Card to Each Player\r\n for (int i = 0; i < gameHand.size(); i++) {\r\n gameHand.get(i).add(myths_available.remove(CustomFourSChaotic.random.nextInt(myths_available.size())));\r\n }\r\n\r\n\t\tArrayList<ElementCard> nonPersonalities_available = new ArrayList<ElementCard>();\r\n ArrayList<ElementCard> personalities_available = new ArrayList<ElementCard>();\r\n\t\tfor(int i = 0; i < cards_available.size(); i++){\r\n\t\t\tif(cards_available.get(i).isCharacter()){ \r\n\t\t\t\tpersonalities_available.add(cards_available.get(i));\r\n\t\t\t} else {\r\n\t\t\t\tnonPersonalities_available.add(cards_available.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"Characters to choose from: \"+personalities_available.size());\r\n\t\t\r\n // Subtract the total from the number of current available cards\r\n ArrayList<ElementCard> selected_cards = new ArrayList<ElementCard>();\r\n int numTotal_cards = players * (num_cards-PlayerHand.charsPerHand);\r\n //System.out.println(\"Trying to find \"+numTotal_cards+\" more cards\");\r\n \r\n // Card Selection Algorithm\r\n while (numTotal_cards > 0) {\r\n\t\t\tint max_diff_index = getMinDistanceIndex(cstt,cst,nonPersonalities_available);\r\n\t\t\t//System.out.println(\t\"Index Value of \" + nonPersonalities_available.get(max_diff_index).getName() +\r\n\t\t\t//\t\t\t\t\t\" and Typical Value = \" + cstt.getTypicalTomValueAndTimesPlayed(nonPersonalities_available.get(max_diff_index),cst));\r\n\t\t\tElementCard card_added = nonPersonalities_available.remove(max_diff_index);\r\n\t\t\tcel.incrementTimePlayed(card_added.getID());\r\n\t\t\tselected_cards.add(card_added);\r\n\t\t\tnumTotal_cards--;\r\n }\r\n \r\n // Suffle the cards selected\r\n Collections.shuffle(selected_cards, CustomFourSChaotic.random);\r\n\r\n // Round Robin Algorithm\r\n int current_player = 0;\r\n for(int i = 0; i < selected_cards.size(); i++){\r\n current_player = i % players;\r\n gameHand.get(current_player).add(selected_cards.get(i));\r\n }\r\n\t\t// add characters\r\n\t\tfor(current_player = 0;current_player < players; current_player++){\r\n\t\t\tElementCard card_added = personalities_available.remove(CustomFourSChaotic.random.nextInt(personalities_available.size()));\r\n\t\t\tcel.incrementTimePlayed(card_added.getID());\r\n\t\t\tgameHand.get(current_player).add(card_added);\r\n\t\t}\r\n \r\n //System.out.println(\"Typical Tom Successful\");\r\n return gameHand;\r\n }", "title": "" }, { "docid": "0249a718c88209c4a45aaf7fb5c0f47d", "score": "0.54010016", "text": "public Card() {\r\n this.setCard(1);\r\n }", "title": "" }, { "docid": "c7b8118b0e683785ba5a53cfe42c72f8", "score": "0.5398647", "text": "net.iGap.proto.ProtoResponse.Response getResponse();", "title": "" }, { "docid": "c7b8118b0e683785ba5a53cfe42c72f8", "score": "0.5398647", "text": "net.iGap.proto.ProtoResponse.Response getResponse();", "title": "" }, { "docid": "49d794630aa9e62017d888eb5f646753", "score": "0.53919154", "text": "public void card(){\n\n }", "title": "" }, { "docid": "a7e3edb5a8cdf1041e378a220b1537c7", "score": "0.5369913", "text": "public Card getCard();", "title": "" }, { "docid": "e743fdb2de0a42d629b8ebad7575731a", "score": "0.5362815", "text": "boolean addCard(PolicyCard card);", "title": "" }, { "docid": "753a33760745df25496bdc73e384dd24", "score": "0.53594285", "text": "public static List<CardData> createCardData(){\n final List<CardData> cards = new ArrayList<>();\n/*\n cards.add(sd1);\n cards.add(sd2);\n cards.add(sd3);\n cards.add(sd4);\n*/\n return null; //cards;\n }", "title": "" }, { "docid": "8fe5a59bb97b213b589145350464c6f4", "score": "0.5358762", "text": "public Card[] getCards() {\n\t\treturn cards;\n\t}", "title": "" }, { "docid": "276de3768571f9b7a71af43d346787b9", "score": "0.5356564", "text": "public List<Card> getCards(byte[] json) throws JsonParseException, JsonMappingException, IOException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n //Return a list of cards //get all cards accepts one parameter\n List<Card> allCards = getAllCards((Map<String, Set>) mapper.readValue(json, new TypeReference<Map<String, Set>>() {\n }));\n return allCards;\n }", "title": "" }, { "docid": "332ac8f41e2ad48d7df63e6891538739", "score": "0.53543764", "text": "Card generateNewCard(Member member);", "title": "" }, { "docid": "c13d5baf2e865ab4af5503e0e360399f", "score": "0.5350547", "text": "public abstract void receiveCard(int rank, int numberOfCards) throws Exception;", "title": "" }, { "docid": "78390518d3c9cf6b81550232a76d1b6c", "score": "0.5341939", "text": "public RandomPlayer(Card[] cards){\n this.hand = new ArrayList<Card>(Arrays.asList(cards));\n }", "title": "" }, { "docid": "cc80e8d66f5103d598a8f95f247bcc0a", "score": "0.5340484", "text": "public TestCard()\n {\n }", "title": "" }, { "docid": "abe8df5fb878280e276ada5cc548c241", "score": "0.5340136", "text": "private Card_Arrary_Ncst(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "2de42bb7360ac86c818890ffa1b8308e", "score": "0.53282446", "text": "public CreditCardFullPanRequest() {\n }", "title": "" }, { "docid": "45a3abbd111c926179c990e19d7734cf", "score": "0.53260666", "text": "public java.util.List<com.jcoinche.server.Request.ProtoRequest.Card.Builder> \n getCardsBuilderList() {\n return getCardsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "1a33064d9ea1197fba1955029cbacd71", "score": "0.5325474", "text": "public CardDeck(String label, \r\n ArrayList<Card> cards) {\r\n this.label = label;\r\n this.cards = cards;\r\n }", "title": "" }, { "docid": "03868d1c55e2efce6e4be5cb4248b717", "score": "0.53224134", "text": "public void setDiscardedCard(Card card){\n\t\t\n\t}", "title": "" }, { "docid": "c8427b256205a73cc8787a0d2262498b", "score": "0.5321214", "text": "public void add(Card[] cards) {\n\t\tfor(Card card : cards) {\n\t\t\tswitch(card.getType()) {\n\t\t\tcase \"grain\":\n\t\t\t\tgrain.add(card);\n\t\t\t\tresTotal ++;\n\t\t\t\tbreak;\n\t\t\tcase \"lumber\":\n\t\t\t\tlumber.add(card);\n\t\t\t\tresTotal ++;\n\t\t\t\tbreak;\n\t\t\tcase \"livestock\":\n\t\t\t\tlivestock.add(card);\n\t\t\t\tresTotal ++;\n\t\t\t\tbreak;\n\t\t\tcase \"ore\": \n\t\t\t\tore.add(card);\n\t\t\t\tresTotal ++;\n\t\t\t\tbreak;\n\t\t\tcase \"brick\":\n\t\t\t\tbrick.add(card);\n\t\t\t\tresTotal ++;\n\t\t\t\tbreak;\n\t\t\tcase \"monopoly\":\n\t\t\t\tdevelopment.add(card);\n\t\t\t\tdevTotal ++;\n\t\t\t\ttotalDev++;\n\t\t\t\tbreak;\n\t\t\tcase \"yearofplenty\":\n\t\t\t\tdevelopment.add(card);\n\t\t\t\tdevTotal ++;\n\t\t\t\ttotalDev++;\n\t\t\t\tbreak;\n\t\t\tcase \"roadbuilding\":\n\t\t\t\tdevelopment.add(card);\n\t\t\t\tdevTotal ++;\n\t\t\t\ttotalDev++;\n\t\t\t\tbreak;\n\t\t\tcase \"victorypoint\":\n\t\t\t\tdevelopment.add(card);\n\t\t\t\tdevTotal ++;\n\t\t\t\ttotalDev++;\n\t\t\t\tbreak;\n\t\t\tcase \"knight\":\n\t\t\t\tdevelopment.add(card);\n\t\t\t\tknights ++;\n\t\t\t\tdevTotal ++;\n\t\t\t\ttotalDev++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "06788ac34ce47e1a90fc12e6c16d10dd", "score": "0.53192776", "text": "public Card(){\n rank = 0;\n suit = null; \n }", "title": "" }, { "docid": "9be3ad13f98bafa919bd4ab2e8f33e96", "score": "0.5311933", "text": "public java.util.List<protobuf.clazz.Protocol.Int32ArrayResponse> getCardDataList() {\n if (cardDataBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cardData_);\n } else {\n return cardDataBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "8140fcdfb0091b459ce404e3b9d213c9", "score": "0.5309137", "text": "public void add(Card card) {\n //FIX THIS\n cards.add(card);\n }", "title": "" }, { "docid": "2ebd7793cec970fa462b60516d725d38", "score": "0.52820903", "text": "public void addCard(Card card)\n {\n cards.add(card);\n }", "title": "" }, { "docid": "403fe51d4c62d7f1a74876ab97c4125b", "score": "0.5273746", "text": "public Cards[] getCards() {\n return cards;\n }", "title": "" }, { "docid": "29e59a48a9de4e548500a11717a80bc4", "score": "0.5271944", "text": "public void playFacedDownCard(Card card) {\n Gson gson = new Gson();\n JsonProvider provider = JsonProvider.provider();\n JsonObject jsonMessage = provider.createObjectBuilder()\n .add(\"action\", \"FACE_DOWN_CARD\")\n .add(\"card\", gson.toJson(card))\n .build();\n sendMessage(jsonMessage.toString());\n }", "title": "" }, { "docid": "fd514e5aa4c57fdfc5384c1fc588f4fd", "score": "0.52692723", "text": "public void tooManyCards(PlayerModel p, ArrayList<PlayerModel> players, DeckModel discardDeck) {\n int cardsAboveMax = checkHandSize(p);\n while (cardsAboveMax > 0) {\n log.info(p.playerName + \" has \" + cardsAboveMax + \" cards too many\");\n ArrayList<Integer> selectedCardIds = new ArrayList<>();\n\n if (p instanceof AIPlayerModel) {\n selectedCardIds = ((AIPlayerModel) p).discardToManyCards();\n\n addClickCardToDiscard(p, selectedCardIds, discardDeck);\n\n for (int ids : selectedCardIds) {\n sendMessageToAll(ServerCommand.REMOVE_CARD_FROM_HAND, p.playerId + \" \" + ids, clients);\n }\n } else {\n clients.get(p.playerId).out.println(ServerCommand.SET_MESSAGE_BOX + \" \" + \"You have \" + cardsAboveMax + \" cards too many\");\n\n //function that will call the client and get the ids\n selectedCardIds = getCardsToDiscard(p.playerId, clients);\n\n if (selectedCardIds.get(0) == -100) { //allycards played\n selectedCardIds.remove(0);\n ArrayList<CardModel> cards = getCardsUsingIds(p, selectedCardIds);\n\n\n boolean allyPlayed = true;\n\n for (CardModel c : cards) {\n if (!(c instanceof AllyCardModel)) {\n allyPlayed = false;\n }\n }\n\n if (allyPlayed) {\n handCon.addClickCardToSelectedHand(p, selectedCardIds);\n\n for (CardModel c : cards) {\n sendMessageToAll(ServerCommand.ADD_CARD_TO_PLAY_AREA, p.playerId + \" \" + c.cardId + \" \" + c.imageUrl, clients);\n }\n\n for (int ids : selectedCardIds) {\n sendMessageToAll(ServerCommand.REMOVE_CARD_FROM_HAND, p.playerId + \" \" + ids, clients);\n }\n } else {\n clients.get(p.playerId).out.println(ServerCommand.SET_MESSAGE_BOX + \" \" + \"Invalid cards played\");\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } else {\n addClickCardToDiscard(p, selectedCardIds, discardDeck);\n\n for (int ids : selectedCardIds) {\n sendMessageToAll(ServerCommand.REMOVE_CARD_FROM_HAND, p.playerId + \" \" + ids, clients);\n }\n }\n }\n\n cardsAboveMax = checkHandSize(p);\n }\n }", "title": "" }, { "docid": "dec6d45599d03c3fab74642beabeb7b0", "score": "0.5259708", "text": "@Override\r\n public int numberOfCardsRemaining() {\r\n return cards.size();\r\n }", "title": "" }, { "docid": "609e5b8fbf6f2d6e1b5c4b0ce8bb2a24", "score": "0.5250158", "text": "public Builder addCardData(protobuf.clazz.Protocol.Int32ArrayResponse value) {\n if (cardDataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCardDataIsMutable();\n cardData_.add(value);\n onChanged();\n } else {\n cardDataBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "26a276769d36864574c6cd9e849f9d2b", "score": "0.5249008", "text": "public void addCardsToDrawPile(List<Card> cards){\n\n }", "title": "" }, { "docid": "6e0fa352adbedd2a35c1d27db95aaebe", "score": "0.5245332", "text": "com.jcoinche.server.Request.ProtoRequest.AskBetOrBuilder getAskBetOrBuilder();", "title": "" }, { "docid": "1ef65036049a0db54d98ac1b3048803d", "score": "0.52437717", "text": "public Card () {\n newCard();\n }", "title": "" }, { "docid": "673c6fba5092a8b1bcdd4dd34824f3aa", "score": "0.5243424", "text": "public void addCardFaceUp(Card card)\r\n {\r\n cardPile[4] = new Card(card);\r\n numberUp++; //adds card to bottom of array\r\n }", "title": "" }, { "docid": "2f0d6ca5d97dea49a2eff8f2e33a471c", "score": "0.52397555", "text": "public Wallet(ArrayList<CreditCard> cards) {\n this.cards = new ArrayList<>();\n for (CreditCard card : cards) {\n addCard(card);\n }\n }", "title": "" }, { "docid": "1e894a7b31693654cb145ed90daff9a3", "score": "0.5239476", "text": "public Card(String cardRank, String cardSuit, int cardPoints) \n {\n /* *** TO BE IMPLEMENTED IN ACTIVITY 1 *** */\n rank = cardRank;\n suit = cardSuit;\n pointValue = cardPoints;\n }", "title": "" }, { "docid": "c0bcd89c827a611ec92bbb74177f9d96", "score": "0.52359563", "text": "public void addCard(Card card) {\n this.hand.add(card);\n\n }", "title": "" }, { "docid": "785560c8aea342d885519d9bad4fdbd3", "score": "0.52354354", "text": "public int size()\n {\n return cards.size(); \n }", "title": "" }, { "docid": "67cd836160f34baaf1670ba5283a46ef", "score": "0.52250856", "text": "public void addCard (Card aCard) \r\n {\r\n cardList.add(aCard);\r\n }", "title": "" } ]
22f80b6abc2c467b9224232f3af6cf73
/ / / / / / / / / / / / / / / / / / / / / / / /
[ { "docid": "53f2bdb3d8df94e317f1f9bae0d22a88", "score": "0.0", "text": "private DefinedProfileSpec createPofileSpec(VsanIscsiConfigEditSpec spec) {\n/* 74 */ DefinedProfileSpec profileSpec = null;\n/* 75 */ if (spec.policy != null) {\n/* 76 */ profileSpec = new DefinedProfileSpec();\n/* 77 */ profileSpec.setProfileId(spec.policy.id);\n/* */ } \n/* 79 */ return profileSpec;\n/* */ }", "title": "" } ]
[ { "docid": "d94093d5bb76d3a8340b4a6ceffae099", "score": "0.53916776", "text": "int rootSize();", "title": "" }, { "docid": "752e4c59765407d1dbded4c6913db8f1", "score": "0.5320277", "text": "public int getSize() {\n/* 38 */ return 1;\n/* */ }", "title": "" }, { "docid": "035f1350f51835e976527ee94aae34e4", "score": "0.51195055", "text": "public void truc(){\n left=(left+1)%8;\n middle=(middle+1)%8;\n right=(right+1)%8;\n }", "title": "" }, { "docid": "687d8af9f80b8fbc11cde7c0bf9aff09", "score": "0.505883", "text": "private char[] bissextile() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1b18ee135873d60d002f5077a41b2fb0", "score": "0.5033853", "text": "public int width ()\n {\n return 2;\n }", "title": "" }, { "docid": "a7157cb19ae6a94ab877db48ca022d95", "score": "0.5001752", "text": "@Override\n\tpublic int displace() {\n\t\treturn 6;\n\t}", "title": "" }, { "docid": "e82e6f40457b6843fef622fcaa3d8c08", "score": "0.49977887", "text": "@Override\r\n\tpublic void SCORPlan() {\n\r\n\t}", "title": "" }, { "docid": "447d4d4bcbddbf9a2e265683f0e09b34", "score": "0.49690995", "text": "@Override\r\n\tpublic void divide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b9fb3d86dfde50f0dee5b9df8f1386c", "score": "0.49586448", "text": "void mo18642pG();", "title": "" }, { "docid": "eaeca1d510334c060f745fa672f59800", "score": "0.49309143", "text": "public String getCoordsize() ;", "title": "" }, { "docid": "2d49e37d2287ea2f2337278df4cafd7a", "score": "0.4926138", "text": "static int dimesize(){return mibitmap.length();}", "title": "" }, { "docid": "7fbfa8634655b9efc08cd6d811434525", "score": "0.48959643", "text": "public int getWidth() {\n/* 179 */ return this.width;\n/* */ }", "title": "" }, { "docid": "d82bce651bfd36c6eefb651f509ad790", "score": "0.48937872", "text": "@Override\r\n\tpublic int getLenght() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "7c14bb481f8632f3980611ca57b9ef1d", "score": "0.48929203", "text": "long getActualSlice( );", "title": "" }, { "docid": "499f8fce232f06646af0582f434611d5", "score": "0.48851356", "text": "public void bewege();", "title": "" }, { "docid": "d0b665417ba863e29221fc1a7abb0fe6", "score": "0.48823333", "text": "void mo55980w();", "title": "" }, { "docid": "73505425d75fccf0aaca07c596941abd", "score": "0.48807737", "text": "static private void herd() {\n\t\t\n\t}", "title": "" }, { "docid": "b36e6d27769a8b4d0273fd96bd502ced", "score": "0.48771724", "text": "public int getWidth(){ return width; }", "title": "" }, { "docid": "a8a575ae180a272e4e7810824824a43f", "score": "0.4867089", "text": "public abstract String getHspace();", "title": "" }, { "docid": "744f3310d4cb10361aa8eb7a856bf479", "score": "0.48615927", "text": "public int getSize() { return 5; }", "title": "" }, { "docid": "cd90e3fedb76ff8bc21bedbac39698c8", "score": "0.4861222", "text": "@Override\n\tpublic float getPerimiter(){\n\t\treturn 2*length*width;\n\t}", "title": "" }, { "docid": "1b0c252149e60e3090fb7c45ddc2238c", "score": "0.48428008", "text": "public void generate_mass_and_length()\r\n{\r\n\t\r\n}", "title": "" }, { "docid": "cdf948203d5c5917bde8e2d10e689dca", "score": "0.48411104", "text": "double alignAllWindows() {\n double ret = 0.0;\n \n length = 0;\n AlignColumn p = last;// pf = last;\n AlignColumn l = left.last, lf = left.last;\n AlignColumn r = right.last, rf = right.last;\n //\tSystem.out.println(\"Aligning sequences here: \"+print());\n //\towner.printAllPointers();\n //System.out.println(\"Printing the pointers +alignments from alignAll\");\n //System.out.println(\"Parent:\");\n //for(p = this.last; p != null; p = p.prev){\n // System.out.print(p+\"(\"+(p.selected ? \"y\" : \"n\")+\",\"+(p.emptyWindow ? \"y\" : \"n\")+\") \");\n //}\n //System.out.println();\n //System.out.println(\"Parent.left:\");\n //for(p = this.last; p != null; p = p.prev){\n // if(p.left != null){\n //\tSystem.out.print(p.left+\"(\"+(p.left.selected ? \"y\" : \"n\")+\",\"+(p.left.emptyWindow ? \"y\" : \"n\")+\") \");\n // }\n // else{\n //\tSystem.out.print(p.left+\"(n,n) \");\n // }\n //}\n //System.out.println();\n //System.out.println(\"Parent.right:\");\n //for(p = this.last; p != null; p = p.prev){\n // if(p.right != null){\n //\tSystem.out.print(p.right+\"(\"+(p.right.selected ? \"y\" : \"n\")+\",\"+(p.right.emptyWindow ? \"y\" : \"n\")+\") \");\n // }\n // else{\n //\tSystem.out.print(p.right+\"(n,n) \");\n // }\n //}\n //System.out.println();\n if (left != null) {\n // System.out.println(\"Left:\");\n //for(p=this.left.last; p != null; p = p.prev){\n //\tSystem.out.print(p+\"(\"+(p.selected ? \"y\" : \"n\")+\",\"+(p.emptyWindow ? \"y\" : \"n\")+\") \");\n //}\n //System.out.println();\n // System.out.println(\"Left parents:\");\n //for(p=this.left.last; p != null; p = p.prev){\n //\t\tSystem.out.print(p.parent+\" \");\n //}\n //System.out.println();\n //System.out.println(\"Right:\");\n //for(p=this.right.last; p != null; p = p.prev){\n //\tSystem.out.print(p+\"(\"+(p.selected ? \"y\" : \"n\")+\",\"+(p.emptyWindow ? \"y\" : \"n\")+\") \");\n //}\n //System.out.println();\n //System.out.println(\"Right parents:\");\n //for(p=this.right.last; p != null; p = p.prev){\n //\tSystem.out.print(p.parent+\" \");\n //}\n // System.out.println();\n \n \tif (Utils.DEBUG) {\n \t\tcheckPointers();\n \t}\n }\n \n p = last; //pf = last;\n l = left.last;\n lf = left.last;\n r = right.last;\n rf = right.last;\n \n \n while (l != null) {\n // System.out.println(\"****Start finding the left window: \");\n lf = lf.findWindowStart();\n //\t System.out.println(\"****Finished finding the left window: \");\n rf = rf.findWindowStart();\n winLength = 0;\n left.winFirst = lf;\n left.winLast = l;\n right.winFirst = rf;\n right.winLast = r;\n winLast = p;\n winFirst = p;\n if (p.emptyWindow || true) {\n //\tSystem.out.println(\"Aligning by hmm3Align()!!! left first: \"+left.winFirst+\" left last: \"+left.winLast+\n //\t\t \" right first: \"+right.winFirst+\" right last \"+right.winLast);\n //System.out.println(\"parent first: \"+winFirst+\" its children, left, right \"+winFirst.left+\", \"+winFirst.right+\n //\t\t \"parent last: \"+winLast+\" its children, left, right \"+winLast.left+\", \"+winLast.right);\n \n ret += hmm3Align();\n p = winFirst;\n }\n //\t else{\n //\tpf.next = p;\n //p.prev = pf;\n //p = pf;\n //\tSystem.out.println(\"Not aligning this!!! left first: \"+left.winFirst+\" left last: \"+left.winLast+\n //\t\t \" right first: \"+right.winFirst+\" right last \"+right.winLast);\n //System.out.println(\"parent first: \"+winFirst+\" its children, left, right \"+winFirst.left+\", \"+winFirst.right+\n //\t\t \"parent last: \"+winLast+\" its children, left, right \"+winLast.left+\", \"+winLast.right);\n \n //\t }\n l = lf.prev;\n lf = lf.prev;\n r = rf.prev;\n rf = rf.prev;\n if (l != null) {\n p = new AlignColumn(p, true);\n length++;\n p.left = l;\n p.right = r;\n l.parent = p;\n l.orphan = false;\n r.parent = p;\n r.orphan = false;\n p.selected = l.selected;\n p.emptyWindow = l.emptyWindow;\n }\n first = p;\n }\n calcFelsen();\n \n //System.out.println(\"\\n\\n******* Printing the pointers +alignments from alignAll after aligning ****\");\n //System.out.println(\"Parent:\");\n //for(p = this.last; p != null; p = p.prev){\n // System.out.print(p+\" \");\n //}\n //System.out.println();\n //System.out.println(\"Parent.left:\");\n //for(p = this.last; p != null; p = p.prev){\n // System.out.print(p.left+\" \");\n //}\n //System.out.println();\n //System.out.println(\"Parent.right:\");\n //for(p = this.last; p != null; p = p.prev){\n // System.out.print(p.right+\" \");\n //\t}\n //System.out.println();\n if (left != null) {\n // System.out.println(\"Left:\");\n //for(p=this.left.last; p != null; p = p.prev){\n //\tSystem.out.print(p+\" \");\n //}\n //System.out.println();\n //System.out.println(\"Left parents:\");\n //for(p=this.left.last; p != null; p = p.prev){\n //\tSystem.out.print(p.parent+\" \");\n //}\n //System.out.println();\n //System.out.println(\"Right:\");\n //for(p=this.right.last; p != null; p = p.prev){\n //\tSystem.out.print(p+\" \");\n //}\n //System.out.println();\n //System.out.println(\"Right parents:\");\n //for(p=this.right.last; p != null; p = p.prev){\n //\tSystem.out.print(p.parent+\" \");\n //}\n //System.out.println();\n \n \tif (Utils.DEBUG) {\n \t\tcheckPointers();\n \t\n \t //checking pointer integrity\n \t for (AlignColumn c = left.first; c != null; c = c.next) {\n \t p = first;\n \t while (c.parent != p && p != null) {\n \t p = p.next;\n \t }\n \t if (p == null) {\n \t throw new Error(\"children does not have a parent!!!\" + this + \" \" + this.print(3));\n \t }\n \t }\n \t for (AlignColumn c = right.first; c != null; c = c.next) {\n \t p = first;\n \t while (c.parent != p && p != null) {\n \t p = p.next;\n \t }\n \t if (p == null) {\n \t throw new Error(\"children does not have a parent!!!\" + this + \" \" + this.print(3));\n \t }\n \t }\n \t}\n \n \n }\n \n //\tleft.printPointers();\n //right.printPointers();\n //System.out.println(\"and the pointers of the parent sequence...\");\n //for(p = first; p != last; p = p.next){\n // System.out.println(\"left: \"+p.left+\" right: \"+p.right);\n //}\n //\tString[] s = left.printedAlignment();\n //System.out.println(\"Left:\\n\"+s[0]+\"\\n\"+s[1]);\n //s = right.printedAlignment();\n //System.out.println(\"Ritght:\\n\"+s[0]+\"\\n\"+s[1]);\n \n //System.out.println(\"\\n\\n************ End of alignAllWindows ***************\\n\\n\");\n \n return ret;\n }", "title": "" }, { "docid": "cde4017f7c5751e754f05ec7a8caefcd", "score": "0.48357528", "text": "public int method_90() {\r\n return 64;\r\n }", "title": "" }, { "docid": "2f9678b684d5258581e447cc6d43311f", "score": "0.48350596", "text": "static int length() {\n return (2048);\r\n }", "title": "" }, { "docid": "ed58ede731722f6e7a4fae305bf2c340", "score": "0.48297375", "text": "public int getLeftEdge(){return x;}", "title": "" }, { "docid": "fc86c3245ddf98e55afb7a992dda37d8", "score": "0.48162806", "text": "private void computeSize() {\n\n\t}", "title": "" }, { "docid": "e3ffc533375d70531717d1c3128e8c90", "score": "0.4799875", "text": "long getW();", "title": "" }, { "docid": "279a6f637ba7b9e264774ba3e5aab9af", "score": "0.47953552", "text": "public int getWidth() { return width; }", "title": "" }, { "docid": "787e5546a16c626fb55146dc128adf90", "score": "0.47892696", "text": "private int getWest(){\n\t\treturn 0;\n\t\t\n\t}", "title": "" }, { "docid": "98b05e70416c5b45027746b36baf590d", "score": "0.47886497", "text": "public int getRightEdge(){return x + getWidth();}", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.47836292", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "c08ae5d7ee00212cb6f9561dd13c554c", "score": "0.47740993", "text": "public int getMaxSpawnedInChunk() {\n/* 518 */ return 8;\n/* */ }", "title": "" }, { "docid": "a7f10f303775c682464be0aa2ba4b6b9", "score": "0.4771325", "text": "private int distances_size() {\r\n \t\treturn size;\r\n \t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.47656322", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.47635865", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "635ff8edae748d658c9b3443e9ca2490", "score": "0.47623494", "text": "int GetKeyLength(){return m_metaphLength;}", "title": "" }, { "docid": "f81f80367c9f1b11b98ebb8904130e75", "score": "0.47608852", "text": "protected int getNodeCount() {\n return 4;\n }", "title": "" }, { "docid": "ec124773d923582f5fb547489f1e87fa", "score": "0.4754768", "text": "int getXp();", "title": "" }, { "docid": "f63a988ce135489cdf21beaed1250874", "score": "0.47545993", "text": "@Override\r\n\tpublic int size() {\n\t\treturn 36;\r\n\t}", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.4750132", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "cafdf5e50a534a29965b38c5f3b59471", "score": "0.47455204", "text": "public int length() // ----------------------------------------------------\n{\n return this.lastPos;\n}", "title": "" }, { "docid": "8ea49fccfcb1a627b77f3a3df930318e", "score": "0.4741472", "text": "int matchSize();", "title": "" }, { "docid": "db90c00501c6a6e164078610cc91cc4f", "score": "0.47399223", "text": "public int repSize() { return representamen.size(); }", "title": "" }, { "docid": "fc979a22ea731032b6789bf5942ea499", "score": "0.47395337", "text": "@Override\n public int getRingCapacity() {\n return 8;\n }", "title": "" }, { "docid": "8762d4696d17e0c1c162de5900c4c671", "score": "0.47370964", "text": "void size(Key lo, Key hi);", "title": "" }, { "docid": "9a11746d467e5d11f68f266fe67c1b8d", "score": "0.47342843", "text": "int getBlocksize();", "title": "" }, { "docid": "44032bd61172b6cf4d07e893236cd806", "score": "0.473233", "text": "public int getH();", "title": "" }, { "docid": "44032bd61172b6cf4d07e893236cd806", "score": "0.473233", "text": "public int getH();", "title": "" }, { "docid": "c98b45f4054e03997f68aee81ea35694", "score": "0.47297", "text": "public Object cc_width ()\n {\n return null;\n }", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.4728161", "text": "int getSize();", "title": "" }, { "docid": "5185d5edd61c23860522ae07b9c65ba7", "score": "0.4725874", "text": "long getNumSpaces();", "title": "" }, { "docid": "4deb69a2aa652ad6db56035473caa758", "score": "0.47229296", "text": "public void calcFuzzySpace(){\n\t\t split_keys_thread_number = _num_key_blocks<6?1:(int) (_num_key_blocks/6);//Runtime.getRuntime().availableProcessors()/2*2+10;\n\t\t split_keys_thread_number = split_keys_thread_number>16?6:split_keys_thread_number;\n\t\t thread_number = Math.min(Runtime.getRuntime().availableProcessors()/2*2+2, split_keys_thread_number);\n\t\t \n\t\t\n\t\t thread_number_count = split_keys_thread_number;\n\t\t step = (int) (_num_key_blocks/split_keys_thread_number);\n\t\t yuShu=(int) (_num_key_blocks%split_keys_thread_number);\n\t \t \n\t}", "title": "" }, { "docid": "d730913badb63b966ac7865e00f6aa78", "score": "0.47214803", "text": "private void create1Pos() {\n\t\tall1Pos = new long[(int)rank1all];\n\t\tint ia = 0;\n\t\tfor (long i = 0; i < bitLength; i++) {\n\t\t\tif (access(i) != 0) {\n\t\t\t\tall1Pos[ia++] = i;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a0cee01eb3c87c9df93825641867ce3c", "score": "0.47165143", "text": "@Override\n\tpublic int LAC() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1b22e5696d873ee2d8ffbad49f1ac620", "score": "0.47153866", "text": "@Override\r\n\tint reparar() {\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "c58785fe9d86eba83764fba603d8ab46", "score": "0.47151834", "text": "@Override\n\tpublic void strafeL() {\n\t\t\n\t}", "title": "" }, { "docid": "5aac1e62f8079e5594e6fe0bdd4ac87f", "score": "0.47103468", "text": "INS getOpTmh();", "title": "" }, { "docid": "655f30f2975a70832ab609b1317079b7", "score": "0.4706807", "text": "@Override\n public int factor() {\n return 2;\n }", "title": "" }, { "docid": "41b4c3a96d9320879cae29d191397d1a", "score": "0.47057375", "text": "private void helo() {\n\r\n\t}", "title": "" }, { "docid": "985a80a626cfc41fb058fbfae9d475e3", "score": "0.47009444", "text": "@Override\n\tpublic void smile() {\n\t\t\n\t}", "title": "" }, { "docid": "3a92f01ceb4c0a745a8fed7e0e6f71a2", "score": "0.46987042", "text": "public int getMaxSpawnedInChunk() {\n/* 770 */ return 4;\n/* */ }", "title": "" }, { "docid": "2228fd4986622c5af6a6801671796f60", "score": "0.46966007", "text": "public int getWidth()\r\n/* 62: */ {\r\n/* 63:150 */ return this.width;\r\n/* 64: */ }", "title": "" }, { "docid": "b047a2d8dcd04c54bb5062a994c18bc8", "score": "0.4695481", "text": "int getLen();", "title": "" }, { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.46954122", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "d173630da36b4d162a07b03259b6d79a", "score": "0.46947476", "text": "Length getSize();", "title": "" }, { "docid": "26aa0652cbaad6387a65210bcee59ffe", "score": "0.46941367", "text": "public int getWidth () { return w; }", "title": "" }, { "docid": "ec075316b4056c0adcb1e7e99489b123", "score": "0.46893558", "text": "public int length() {\n return 8; // overhead\n }", "title": "" }, { "docid": "f03773b9a3c57f8a86ecf6a360f22fb6", "score": "0.4687874", "text": "private int parentIndex (int child){return (child - 1) / 2 ;}", "title": "" }, { "docid": "db2dc6c420f53c31a2f3cb7e5549cb02", "score": "0.4687511", "text": "@Override\n public float width() {\n return super.width() + 2*pad;\n }", "title": "" }, { "docid": "c3fa0c6624c185083f91f3aac67adeca", "score": "0.46873635", "text": "int currAlt();", "title": "" }, { "docid": "8ae83ed8f23cbad4cff4b8a471644c13", "score": "0.46859905", "text": "public int getWidth() {\n\treturn nx;\n }", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.46812916", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.46812916", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.46812916", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.46812916", "text": "long getSize();", "title": "" }, { "docid": "e37f8e7e43932f611342fe9f14fd203a", "score": "0.4677877", "text": "float length();", "title": "" }, { "docid": "e37f8e7e43932f611342fe9f14fd203a", "score": "0.4677877", "text": "float length();", "title": "" }, { "docid": "85391cb36fd17b35e7e971d0b07c0595", "score": "0.4674287", "text": "public int getVerticalFaceSpeed() {\n/* 692 */ return 40;\n/* */ }", "title": "" }, { "docid": "e5b784d51ffcf13436da735618e1e0ce", "score": "0.46729323", "text": "byte[] mo42586e();", "title": "" }, { "docid": "ffb57cc72ca76a232b9e28e3e2ef70d4", "score": "0.4671125", "text": "public int[] getEncoderDistances() {\n \treturn new int[] {leftMaster.getSensorCollection().getQuadraturePosition(), rightMaster.getSensorCollection().getQuadraturePosition()};\n }", "title": "" }, { "docid": "35d4f8dffe16538f50dee9a1f5f5e5a7", "score": "0.46691018", "text": "public int getExtent();", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.4668036", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7fa9e97818578821909ed74cbeb058d0", "score": "0.4667228", "text": "long getH();", "title": "" } ]
4149a151af8976ae68363709aa7b91aa
/long a = Calendar.getInstance().getTime().getTime(); System.out.println(a); long b = a + 60 1000; System.out.println(new Date().getTime() ); Date datea = new Date(a); Date dateb = new Date(b); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss:SSSS"); System.out.println(sdf.format(datea)); System.out.println(sdf.format(dateb)); /SystemSetLog log = new SystemSetLog(); log.setHref(""); log.setLevel("info"); log.setSize("10m"); log.setSplit("/"); SystemModel.getInstance().setLog(log);
[ { "docid": "212e1d543230e65cfe573b4c21a822b7", "score": "0.0", "text": "public static void main(String[] args) {\n\n CodCacheEhcacheServiceImpl ehcacheService = new CodCacheEhcacheServiceImpl();\n\n Map map = new HashMap();\n map.put(\"a\", \"a\");\n map.put(\"b\", \"b\");\n ehcacheService.set( \"test\", map);\n Map o = ehcacheService.get(\"test\", Map.class);\n System.out.println(o);\n\n Set set = new HashSet();\n set.add(\"a\");\n set.add(\"b\");\n set.add(\"c\");\n set.add(\"d\");\n ehcacheService.set( \"test1\", set, 60 * 30);\n Set o2 = ehcacheService.get(\"test1\", Set.class);\n System.out.println(o2);\n\n List list = new ArrayList();\n list.add(\"a\");\n list.add(\"b\");\n list.add(\"c\");\n list.add(\"d\");\n ehcacheService.set( \"test3\", list, 60 * 30);\n List list1 = ehcacheService.get(\"test3\", List.class);\n System.out.println(list1);\n\n /*\n CodCacheEhcacheServiceImpl a = new CodCacheEhcacheServiceImpl();\n ehcacheService.set( \"test2\", a, 60 * 30);\n CodCacheEhcacheServiceImpl o4 = ehcacheService.get(\"test2\", CodCacheEhcacheServiceImpl.class);\n System.out.println(o4);\n o4.set(\"as123\", \"a123\");\n\n Object asd = ehcacheService.get(\"as123\");\n System.out.println(asd);\n */\n\n Set set1 = new HashSet();\n set1.add(\"test\");\n set1.add(\"test1\");\n set1.add(\"test3\");\n Map map1 = ehcacheService.getAll(set1);\n System.out.println(map1);\n /*\n ehcacheService.getOrAddCache(\"test3\", String.class, String.class).put(\"a\", \"aasd\");\n Object asd = ehcacheService.getOrAddCache(\"test3\", String.class, String.class).get(\"a\");\n System.out.println(asd);\n */\n\n\n }", "title": "" } ]
[ { "docid": "1718fd86dde507ae582933f42096c437", "score": "0.6539089", "text": "long getLogDate();", "title": "" }, { "docid": "668eca7ba4573d67a6cd6e591297fee0", "score": "0.64751893", "text": "private String createLogTimeStamp()\r\n {\n long currTime = plugin.getCurrentTimeInMillis();\r\n final SimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\");\r\n String logTime = sdf.format(new Date(currTime));\r\n \r\n return (logTime);\r\n }", "title": "" }, { "docid": "876df1e1418c834db7be1d37d3843708", "score": "0.62690794", "text": "public int Log_start_time()\n {\n return uLog_start_time;\n }", "title": "" }, { "docid": "35ed22d042fee5b3208888319d5c01cb", "score": "0.6201428", "text": "public void setLogTime(Date logTime)\r\n/* */ {\r\n/* 236 */ this.logTime = logTime;\r\n/* */ }", "title": "" }, { "docid": "53602be03aa86ba95ca9bb7fb70edb33", "score": "0.6172153", "text": "public static void main(String[] args) {\n\n LocalDateTime now = LocalDateTime.now().withSecond(0).withNano(0).plusMinutes(-30);\n now = DateTimeUtils.timeHandle(now.getMinute(), now);\n System.out.println(now);\n Long currentRtime = System.currentTimeMillis();\n System.out.println(currentRtime);\n\n String currentDtime = DateTimeUtils.format(now);\n Long currentRtime2 = DateTimeUtils.getTimestamp(currentDtime, \"Asia/Shanghai\");\n\n Long currentRtime3 = DateTimeUtils.getTimestamp(currentDtime, \"Australia/Queensland\");\n System.out.println(currentRtime2);\n System.out.println(currentRtime3);\n\n\n\n }", "title": "" }, { "docid": "56ae2911c05c5ea284010080e5c2a6fd", "score": "0.61618024", "text": "public String getTimeToString() {\n Calendar cal = Calendar.getInstance();\n DecimalFormat df = new DecimalFormat(\"00\", DecimalFormatSymbols.getInstance(Locale.US));\n String month = df.format((long) (cal.get(2) + 1));\n String day = df.format((long) cal.get(5));\n String hour = df.format((long) cal.get(11));\n String min = df.format((long) cal.get(12));\n String sec = df.format((long) cal.get(13));\n String sysdump_time = cal.get(1) + month + day + hour + min;\n Log.i(TAG, \"getTimeToString : \" + sysdump_time);\n return sysdump_time;\n }", "title": "" }, { "docid": "280a5885608cc5d7382726f248789e87", "score": "0.61183286", "text": "private String getSystemTime() {\r\n\t\treturn (new SimpleDateFormat(\"HHmmssSSS\").format(new Date()));\r\n\t}", "title": "" }, { "docid": "57fcf00290f994ef9a92fa3e51ffbec0", "score": "0.607986", "text": "private void timeStampedLog(String msg){\n \n //Record the time of the incident\n SimpleDateFormat dateForm = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n log.append(\"\\n\"+dateForm.format(new Date())+\" \",ALogInterface.NORMAL_BOLD);\n log.append(msg);\n }", "title": "" }, { "docid": "bd888154b4e449a8184bf12ac626d005", "score": "0.6051884", "text": "public static void main(String[] args) {\n Date d = new Date();\n \n d.setDate(8);\n d.setYear(2002);\n d.setMonth(6);\n d.setHours(1);\n// d.setTime(1025409600000l);\n d.setTime(60984202200230l);\n \n \n System.out.println(d);\n \n \n }", "title": "" }, { "docid": "c67ac72735cbebfde41e95ee93d6eeb2", "score": "0.59887403", "text": "public Date getLogTime()\r\n/* */ {\r\n/* 228 */ return this.logTime;\r\n/* */ }", "title": "" }, { "docid": "1f7aa264deea2744674649e4ab73091d", "score": "0.5962557", "text": "private String timestamp() {\n\t\t return new SimpleDateFormat(\"dd-MM-yyyy HH-mm-ss\").format(new Date());\r\n\t}", "title": "" }, { "docid": "d3f676974fd9b7c01498949008b4ae46", "score": "0.5952694", "text": "public void addLog(String log)\n {\n LocalDateTime ldt = LocalDateTime.now();\n String date = \"[\" + ldt.getHour() + \":\" + ldt.getMinute() + \":\" + ldt.getSecond() + \"] \";\n logs.append(date + log + \"\\n\");\n }", "title": "" }, { "docid": "d6e7a5a4e86278d3f34493dcdf8c15d3", "score": "0.59352756", "text": "private static String reportTime() {\n\t\tlong elapsedMillis = System.currentTimeMillis()-ExperimentModel.startTime;\n\t\tlong hours = elapsedMillis/3600000;\n\t\tlong remainder = elapsedMillis%3600000;\n\t\tlong minutes = remainder/60000;\n\t\tremainder = remainder%60000;\n\t\tlong seconds = remainder/1000;\n\t\tlong millis = Math.round((double)remainder%1000);\n\t\t\n\t\tStringBuilder time = new StringBuilder();\n\t\tfor (long value : Arrays.asList(hours, minutes, seconds)) {\n\t\t\ttime.append(value > 0 ? value : \"00\");\n\t\t\ttime.append(\":\");\n\t\t}\n\t\ttime.append(millis > 0 ? millis : \"000\");\n\t\ttime.append(\",\");\n\t\treport.append(time.toString());\n\t\treturn time.toString();\n\t}", "title": "" }, { "docid": "0869d6ff6e860b8f45aa1ee10200bd4a", "score": "0.5924887", "text": "java.util.Date getEventtime();", "title": "" }, { "docid": "93112fd80d0fcede90790f55ccc15727", "score": "0.5899963", "text": "public void setCreateTime()\n {\n mCreateTime = new LogpieDateTime();\n }", "title": "" }, { "docid": "9a75760a67e8d6827c44b9cb30c2e09a", "score": "0.5898955", "text": "public TimeConvertor(){\n\t\t//systemTime = new Date(); //the actual system-time\n\t\tsystemStart = System.currentTimeMillis();\t\n\t\tcalendar = new GregorianCalendar();//represent time in our tour system\t\t\n\t\tthis.hour = 8;\n\t\tthis.minute = 0;\n\t\tcalendar.set(2017, 0, 1, hour, minute);\n\t\tSystem.out.println(calendar.getTime());\n\t\tmyStart = calendar.getTimeInMillis();\n\t\t//guiPreset();\n\t}", "title": "" }, { "docid": "fe8ed10c3c751a451be2fe773b175804", "score": "0.5897161", "text": "public long getSystemTime();", "title": "" }, { "docid": "c06f99aac3bd251df74cff1dea4d73c0", "score": "0.58706737", "text": "private String getTime() {\n\t\tString timeStamp = \"\";\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttimeStamp = dateFormat.format(date);\n\t\treturn timeStamp;\n\t}", "title": "" }, { "docid": "9d6ae4fdf9509d52d9495ee3c633cecf", "score": "0.5863426", "text": "private static long logTime(Date startTime) {\n\t\tDate endTime = new Date();\n\t\tlong timeElapsed = endTime.getTime() - startTime.getTime();\n\t\tSystem.out.println(\"Time Elapsed: \" + timeElapsed);\n\n return timeElapsed;\n }", "title": "" }, { "docid": "66cad64aa546532e73e953caa6ff1fdf", "score": "0.58545417", "text": "private static String getCurrentTime(){\n\t\tlong millis = System.currentTimeMillis();\n\t\treturn String.format(\"%02d:%02d:%02d,%03d: \", \n\t\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis)%24 + 1,\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(millis)%60, \n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(millis)%60, \n\t\t\t\t\tmillis%100);\n\t}", "title": "" }, { "docid": "890211251bd9b9d6d7820740cf573a6f", "score": "0.5853448", "text": "public static void main(String[] args) throws ParseException {\n\t\t\r\n\t\tTimestamp ts = new Timestamp(System.currentTimeMillis());\r\n\t\t\r\n\t\tTimestamp ts1 = new Timestamp(System.currentTimeMillis() + 1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tLocalDateTime ldt = LocalDateTime.now();\r\n\t\tLocalDateTime midnight = ldt.plusDays(1).toLocalDate().atStartOfDay();\r\n\t\t\r\n\t\tlong md = midnight.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli();\r\n\t\t\r\n\t\tSystem.out.println(ts);\r\n\t\t\r\n\t\tSystem.out.println(new Timestamp(md));\r\n\t\t\r\n\t\tString t = \"29-AUG-2020 02:31:08 AM\";\r\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss a\");\r\n\t\tDate d = format.parse(t);\r\n\t\t\r\n\t\tTimestamp tss = new Timestamp(d.getTime());\r\n\t\tSystem.out.println(tss);\r\n\r\n\t}", "title": "" }, { "docid": "d7f90cab0971b18ff89764775dbefa05", "score": "0.585271", "text": "public String getTimeStampValue()throws IOException{\n\t Calendar cal = Calendar.getInstance(); \n\t Date time=cal.getTime();\n\t String timestamp=time.toString();\n\t System.out.println(timestamp);\n\t String systime=timestamp.replace(\":\", \"-\");\n\t System.out.println(systime);\n\t return systime;\n\t}", "title": "" }, { "docid": "aee02f3c3581e7b78ff570478bb6f5f3", "score": "0.5846369", "text": "public String getTimeStamp(){\n\t\t SimpleDateFormat dateFormat = new SimpleDateFormat(\"HHmmssa\");\r\n\t\t \r\n\t\t //get current date time with Date()\r\n\t\t Date date = new Date();\r\n\t\t \r\n\t\t // Now format the date\r\n\t\t String timeStamp= dateFormat.format(date);\r\n\t\t return timeStamp;\r\n\t}", "title": "" }, { "docid": "8fe7e06c9f4a1c6a60383fbcf3e7efe2", "score": "0.58396685", "text": "private static String getDate () {\n DateFormat date_format = new SimpleDateFormat(\"HH:mm:ss:SSS\");\n Date date_object = new Date();\n\n return date_format.format(date_object);\n }", "title": "" }, { "docid": "042b6fad72ad8c23c7ea984a49cf3174", "score": "0.5835562", "text": "private void setCurrentTime() {\n Calendar cal = Calendar.getInstance();\n Date d = cal.getTime();\n logVM.setHours(d.getHours());\n logVM.setMinutes(d.getMinutes());\n }", "title": "" }, { "docid": "f86827278a0f0de5628f81e175fbf5ac", "score": "0.5829648", "text": "public Decimal30 getSTAGING_TIME(){\n return localSTAGING_TIME;\n }", "title": "" }, { "docid": "b879a460d6a91af16cd998e3760c8f6e", "score": "0.5819388", "text": "public static void main(String[] args) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n //Date date = new Date(new java.util.Date().getTime());\n //String format = simpleDateFormat.format(date);\n Date time = DateTimeUtil.StringToDateTime(\"1977-22-01 11:33:22\");\n System.out.println(\"time = \" + time);\n\n }", "title": "" }, { "docid": "be23b9e17c02fc2b402164d1e4270456", "score": "0.58162534", "text": "public static void simpleTimeLog() {\n\t\tXD.source(Sources.time()).sink(Sinks.log()).deploy(\"timestream\", true);\n\t}", "title": "" }, { "docid": "cf4915c1ace6f3d570544ca302dc6fac", "score": "0.5801389", "text": "static String getServerTime() {\r\n //[6]\r\n //gets the current calendar instance\r\n Calendar calendar = Calendar.getInstance();\r\n //http format of date and time to which system date is to be converted\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\r\n \"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n //returning date of proper format\r\n return dateFormat.format(calendar.getTime());\r\n}", "title": "" }, { "docid": "df822b0cce87954d886d10e673a4a91e", "score": "0.5799938", "text": "private static String now ()\r\n {\r\n Calendar cal = Calendar.getInstance ();\r\n SimpleDateFormat sdf = new SimpleDateFormat( \"HH:mm:ss.SSS\" );\r\n return sdf.format( cal.getTime() );\r\n }", "title": "" }, { "docid": "860562805519ae10bfae8268bba87e24", "score": "0.5799269", "text": "String getCurrentTime()\n {\n \tSimpleDateFormat sf=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n \treturn sf.format(Calendar.getInstance().getTime());\n }", "title": "" }, { "docid": "5a326a4b2a0f9662a5a65d65b0cb5627", "score": "0.5798404", "text": "public void printDesktopConfiguration() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tLog.INFO(\"Test started: \" + dateFormat.format(cal.getTime()));\n\t}", "title": "" }, { "docid": "76f3223b1a2a6db3cbca56f561bd872c", "score": "0.57747924", "text": "public void setLogtime(long value) {\n this.logtime = value;\n }", "title": "" }, { "docid": "d5fe43c57f2b98d75745e3cea9d1d8fe", "score": "0.577013", "text": "public Date getLogtime() {\r\n return logtime;\r\n }", "title": "" }, { "docid": "9d0b11bee82d205c2760dabe531645da", "score": "0.5760659", "text": "public long getLogtime() {\n return logtime;\n }", "title": "" }, { "docid": "e515101fdfd284591663dac781e7666a", "score": "0.5753962", "text": "public long getLogtime() {\n return logtime;\n }", "title": "" }, { "docid": "d50f0e9f28d3c3007ed5e5e950a9c44b", "score": "0.57443625", "text": "private void logStatistics(long logTime, long time) {\n\t\t \t\n\t\t \t time=System.currentTimeMillis()-logTime;\n\t\t\t if(time>Constants.ONE_SECOND)\n\t\t\t {\n\t\t\t \t Date date = new Date();\n\t\t\t \t System.out.println(new Timestamp(date.getTime()));\n\t\t\t \t log.info(messageList.size() + Constants.STATS_LOG);\n\t\t\t \t log.info(new Timestamp(date.getTime()));\n\t\t\t \t logTime=logTime+ Constants.ONE_SECOND;\n\t\t\t }\n\t\t\t\t}", "title": "" }, { "docid": "a49820b034f4213178fe26b4decf5798", "score": "0.5742307", "text": "long getEventDateTime();", "title": "" }, { "docid": "3afc9bf7a891515ab77e1dbf5359679e", "score": "0.5737188", "text": "int getMstimestamp();", "title": "" }, { "docid": "d6feadd81af6b8759470f24c3d6cb625", "score": "0.5723689", "text": "public static void main(String[] args) {\n\t\tSimpleDateFormat format1 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS Z\");\n\t\tSimpleDateFormat format2 = new SimpleDateFormat(\"yyyyMM\");\n\t\t\n\t\tlong curTime = System.currentTimeMillis();\n\t\tlong yesterdayTime = curTime - 24*3600*1000;\n\t\tDate today =new Date(curTime);\n\t\tDate yesterday = new Date(yesterdayTime);\n\t\t\n\t\tString day =format1.format(today);\n\t\tString month = format2.format(today);\n\t\t\n\t\t\n\t\tSystem.out.println(day);\n\t\tSystem.out.println(month);\n\t\t\n\t\tString yday =format1.format(yesterday);\n\t\tString ymonth = format2.format(yesterday);\n\t\t\n\t\tSystem.out.println(\"------\");\n\t\tSystem.out.println(yday);\n\t\tSystem.out.println(ymonth);\n\t\t\n\t\t\n\t\t\n\t\t////Calendar\n\t\t\n\t\tSystem.out.println(\"------\");\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(curTime);\n\t\tc.add(Calendar.MONTH, -1);\n\t\tString lastmonth = format2.format(c.getTime());\n\t\tSystem.out.println(lastmonth);\n\t\t\n\t\tSystem.out.println(\"------\");\n\t\tCalendar c2 = Calendar.getInstance();\n\t\tc2.setTimeInMillis(curTime);\n\t\tint dayofMonth = c2.get(Calendar.DAY_OF_MONTH);\n\t\tSystem.out.println(dayofMonth);\n\t\t\n\t\tSystem.out.println(\"------\");\n\t\tCalendar c3 = Calendar.getInstance();\n\t\tc3.setTimeInMillis(curTime);\n\t\tc3.add(Calendar.DATE, 1);\n\t\tSystem.out.println(c3.getTimeInMillis());\n\t\tc3.add(Calendar.HOUR, c3.get(Calendar.HOUR)*-1);\n\t\tSystem.out.println(c3.getTimeInMillis());\n\t\tc3.add(Calendar.MINUTE, c3.get(Calendar.MINUTE)*-1);\n\t\tSystem.out.println(c3.getTimeInMillis());\n\t\tc3.add(Calendar.SECOND, c3.get(Calendar.SECOND)*-1);\n\t\tSystem.out.println(c3.getTimeInMillis());\n\t\tSystem.out.println(c3.getTimeInMillis()/1000);\n\t\t\n\t\t\n\t\t\n\t\t//////\n\t\t\n\t\tCalendar c4 = Calendar.getInstance();\n\t\tc4.setTimeInMillis(curTime);\n\t\t//Tomorrow, current\n\t\tc4.add(Calendar.DATE, 1);\n\t\t//Tomorrow, remove hours \n\t\tSystem.out.println(c4.get(Calendar.HOUR_OF_DAY));\n\t\tc4.add(Calendar.HOUR_OF_DAY, c4.get(Calendar.HOUR_OF_DAY)*-1);\n\t\t//Tomorrow, remove minutes\n\t\tc4.add(Calendar.MINUTE, c4.get(Calendar.MINUTE)*-1);\n\t\t//Tomorrow, remove seconds\n\t\tc4.add(Calendar.SECOND, c4.get(Calendar.SECOND)*-1);\n\n\t\tlong gap = c4.getTimeInMillis()-curTime;//In mill seconds\n\t\t\n\t\tint timeslot = (int) (gap/1000);//In seconds\n\t\t\n\t\tSystem.out.println(timeslot);\n\t\tSystem.out.println(curTime);\n\t}", "title": "" }, { "docid": "c04708e022256eba08102c7b5394e34a", "score": "0.571553", "text": "private long getTime(){\n\t\treturn theRF.clock()+localOffset;\n\t}", "title": "" }, { "docid": "260a1125eef013ad9c2724da0ffa3309", "score": "0.5710555", "text": "public void setSTAGING_TIME(Decimal30 param){\n \n this.localSTAGING_TIME=param;\n \n\n }", "title": "" }, { "docid": "8f7bbffb9f187779c2a8c747fd93dc0d", "score": "0.56965", "text": "private String gettime(long a) {\n Date date = new java.util.Date(a * 1000L);\n\n SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"hh:mm a\");\n\n sdf.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT+5:30\"));\n String formattedDate = sdf.format(date);\n return formattedDate;\n }", "title": "" }, { "docid": "9261ededc29143844e06af9f1c92d0b8", "score": "0.568293", "text": "private static String m141262c(String str) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd-HHmmssSSS\", Locale.US);\n Calendar instance = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+8\"));\n C7573i.m23582a((Object) instance, \"calendar\");\n Date time = instance.getTime();\n StringBuilder sb = new StringBuilder();\n sb.append(simpleDateFormat.format(time));\n sb.append(str);\n return sb.toString();\n }", "title": "" }, { "docid": "4ccd18509e79e3dd9e0ccad025540ede", "score": "0.5663966", "text": "private Date getSysDate(){\n\t\tCalendar sysCal = Calendar.getInstance();\n\t\tDate sysDate = sysCal.getTime(); \n\t\treturn sysDate;\n\t}", "title": "" }, { "docid": "ef7e2b9caa0d015031166c9d3f2effc4", "score": "0.5657068", "text": "private String getTime(){\n\n // Instance of Calendar\n Calendar cal = Calendar.getInstance();\n // Setting format\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\n return timeFormat.format(cal.getTime());\n }", "title": "" }, { "docid": "63d9df5ab56bb737fa726d90f1629215", "score": "0.56541365", "text": "@Override\n protected void timeManagement() {\n\n }", "title": "" }, { "docid": "9727aef54c077d816aeda660be979699", "score": "0.56512517", "text": "public static void main(String[] args) {\n long startDate = 1474959000;\n \n\t\n try {\n String result = unixToDate(startDate);\n System.out.println(result); \n \n \n String recoverDate = DateToUnix(result);\n System.out.println(\"recoverDate \" + recoverDate);\n \n } catch (Exception e) {\n System.out.println(\"error\" + e.toString());\n }\n \n \n \n }", "title": "" }, { "docid": "467fc073e2cb48f7ef85ecb88b349b14", "score": "0.5637206", "text": "private void setLastLocTime(long t){\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm:ss.SSS a\");\n Date d = new Date(t);\n sdf.setTimeZone(TimeZone.getTimeZone(\"GMT+05:30\"));\n lastLocTime = sdf.format(d);\n }", "title": "" }, { "docid": "6d36ac7817ed80c6729caaa40583db51", "score": "0.56237674", "text": "String formatTime()\r\n\t{\r\n\r\n\t\tlong unixTime = System.currentTimeMillis() / 1000L;\r\n\t\tint time = (int)(nextUnixTime - unixTime);\r\n\t\treturn formatTime(time);\r\n\t}", "title": "" }, { "docid": "e2f67417f6b5b9889f805a612aa20520", "score": "0.56165653", "text": "@Override\r\n public String format()\r\n {\r\n LoggerDate stamp = new LoggerDate(to_long() * LoggerDate.nsec_per_sec);\r\n return stamp.format(\"%Y-%m-%d %H:%M:%S%x\");\r\n }", "title": "" }, { "docid": "61b5c4f8cb89f9711f92837b412f58a9", "score": "0.5614515", "text": "float getCreationtime();", "title": "" }, { "docid": "093b072495637e4d7dc5fb26b6cf28cb", "score": "0.561403", "text": "public static void main(String[] args) {\n\t\tDate date=new Date();\r\n\t\tDateFormat timeFormat=null;\r\n\t\tString time=null;\r\n\t\t/*\r\n\t\t * h -> Hour in day(1-12)\r\n\t\t * H -> Hour in day(0-23)\r\n\t\t * m -> Minute in hour\r\n\t\t * s -> Second in minute\r\n\t\t * a -> AM/PM\r\n\t\t */\r\n\t\ttimeFormat=new SimpleDateFormat(\"hh:mm:ss a\");\r\n\t\t//Convert Date to String.\r\n\t\ttime=timeFormat.format(date);\r\n\t\tSystem.out.println(\"Current time in 12 hour format : \"+time);\r\n\t\t\r\n\t\ttimeFormat=new SimpleDateFormat(\"HH:mm:ss a\");\r\n\t\t//Convert Date to String.\r\n\t\ttime=timeFormat.format(date);\r\n\t\tSystem.out.println(\"Current time in 24 hour format : \"+time);\r\n\t}", "title": "" }, { "docid": "eb125674164e303d0bf55805c590fd8e", "score": "0.56094855", "text": "private void updateTime() {\n \t tv_horizonStarttime.setText(\"实际施工时间: \" + project.getActualStartTime());\n\t}", "title": "" }, { "docid": "92d513db48bdf20b3e08d8749ac3cf30", "score": "0.5607961", "text": "public String toString(){\n\t\t//return String.format(\"%d:%02d%:%02d:%02d %s\",((getHour()==0||getHour()==12)?12: getHour()%12),getMinute(),getSecond(),(getHour()<12? \"AM\": \"PM\"));\n\t\tint seconds = getHour()*getMinute()*getSecond();\n\t\treturn String.format(\"No. of Seconds= \"+seconds);\n\t\t\n\t}", "title": "" }, { "docid": "372f9655a5732cdbabe51656a946b043", "score": "0.56065714", "text": "long getTime();", "title": "" }, { "docid": "372f9655a5732cdbabe51656a946b043", "score": "0.56065714", "text": "long getTime();", "title": "" }, { "docid": "372f9655a5732cdbabe51656a946b043", "score": "0.56065714", "text": "long getTime();", "title": "" }, { "docid": "f98df195fbf85415594c4960c562ab72", "score": "0.558574", "text": "public static void main(String[] args) {\n long startTime = System.nanoTime();\n// try{\n// System.out.println(Currency.getInstance(\"INRR\").getSymbol());\n// }catch(IllegalArgumentException e){\n// e.printStackTrace();\n// }\n long estimatedTime = System.nanoTime() - startTime;\n// System.err.println(\"MOT TIME SECONDS >>>>>>>>>>>> \"+estimatedTime/1000000);\n\n DateFormat formatter = new SimpleDateFormat(\"MM/dd/yy HH:mm\");\n try {\n Date date = formatter.parse(\"3/27/17 10:55 \");\n// System.out.println(date);\n// System.out.println(new Timestamp(date.getTime()));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n AtomicInteger ai = new AtomicInteger(0);\n System.out.println(ai.incrementAndGet());\n System.out.println(ai.incrementAndGet());\n System.out.println(ai.incrementAndGet());\n System.out.println(ai.incrementAndGet());\n\n// System.out.println(\"X\"+ sdf.format(Date.parse()\"\")));//Timestamp.valueOf(\"3/27/17 10:55\")\n\n }", "title": "" }, { "docid": "e3b5d02a7c8c8a6a5d04b1d7076a351b", "score": "0.5585279", "text": "long getTimeStamp();", "title": "" }, { "docid": "e3b5d02a7c8c8a6a5d04b1d7076a351b", "score": "0.5585279", "text": "long getTimeStamp();", "title": "" }, { "docid": "f4580248a02baba7eba3cd2833ce3ffc", "score": "0.5583225", "text": "public static void main(String[] args) throws Exception {\n\t GregorianCalendar cal = new GregorianCalendar();\n\n\t // clone object cal into object y\n\t GregorianCalendar y = (GregorianCalendar) cal.clone();\n\n\t // print both cal and y\n\t System.out.println(y.getClass());\n\t System.out.println(\"\" + cal.getTime());\n\t System.out.println(\"\" + y.getTime());\n\t captureScreen(\"ROB\");\n\t}", "title": "" }, { "docid": "cdc54460944b39db9b19c3a52b66a4ff", "score": "0.55792063", "text": "public static void main(String[] args) {\n\t\tCalendar c1=Calendar.getInstance();\r\n\t\tCalendar c2=Calendar.getInstance();\r\n\t\tCalendar ctotal=(Calendar) c1.clone();\r\n//\t\tctotal.add(Calendar.YEAR, c2.get(Calendar.YEAR));\r\n\t\tctotal.add(Calendar.MONTH, c2.get(Calendar.MONTH));\r\n\t\tctotal.add(Calendar.DATE, c2.get(Calendar.DATE));\r\n\t\tctotal.add(Calendar.HOUR_OF_DAY, c2.get(Calendar.HOUR_OF_DAY));\r\n\t\tctotal.add(Calendar.MINUTE, c2.get(Calendar.MINUTE));\r\n\t\tctotal.add(Calendar.SECOND, c2.get(Calendar.SECOND));\r\n\t\tctotal.add(Calendar.MILLISECOND, c2.get(Calendar.MILLISECOND));\r\n\t\tSystem.out.println(ctotal.getTime());\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "ec2387fac17b5f265495710809f22439", "score": "0.5574105", "text": "public void setLogtime(Date logtime) {\r\n this.logtime = logtime;\r\n }", "title": "" }, { "docid": "20a36cb102a5958f2acf2079b3c73793", "score": "0.5562904", "text": "private void getInitialCalender() {\n\t\tc = Calendar.getInstance();\n\t\t\n\t\tyear = c.get(Calendar.YEAR);\n\t\tmonth = c.get(Calendar.MONTH);\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\thour = c.get(Calendar.HOUR_OF_DAY);\n\t\tminutes = c.get(Calendar.MINUTE);\n\t\tsecond = c.get(Calendar.SECOND);\n\t\t\n\t\t\n\t\t//int abc =Integer.parseInt(Global_variable.Ride_Later_Limit.getString(\"SR_BusinessRules_RideLater_Date_Limit\"));\n\t\n\t\tcurrDate = new java.sql.Date(System.currentTimeMillis());\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tc1.setTime(new Date()); // Now use today date.\n\t\tc1.add(Calendar.DATE, 30); // Adding 30 days\n\t\toutput = sdf.format(c1.getTime());\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!\" + output);\n\t\t\n\n\t}", "title": "" }, { "docid": "2efc79eed3e141a2938585c83e13862e", "score": "0.5556686", "text": "private static long getTime(){\r\n\t\treturn System.nanoTime() / 1000000;\r\n\t}", "title": "" }, { "docid": "d3f6512bb2a4c86b641d6758709a62a9", "score": "0.5555322", "text": "private void setDate(Long time) {\n\n\t}", "title": "" }, { "docid": "9550c230af9b08f083e788908b341842", "score": "0.55394536", "text": "int getPrestigetime();", "title": "" }, { "docid": "c05091e4702127c429cefcac161f2813", "score": "0.55357295", "text": "private String getCurrentDateAndTime() {\n Date date = Calendar.getInstance().getTime();\n return new SimpleDateFormat(\"dd MMM hh:mm aa\", Locale.getDefault()).format(date);\n\n }", "title": "" }, { "docid": "0ad0172025863626ab225e7a8ed7b61f", "score": "0.55337167", "text": "private String getDumpTime() {\r\n return new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(Long.valueOf(System.currentTimeMillis()));\r\n }", "title": "" }, { "docid": "2dc76bc8725131f321f4671b1f3f2d62", "score": "0.5529667", "text": "private static void printTime(long startTime) {\r\n long x = (System.currentTimeMillis() - startTime)/1000;\r\n long h = x / 3600;\r\n x = x - (h * 3600);\r\n long m = x / 60;\r\n x = x - (m * 60);\r\n long s = x;\r\n System.out.println(\"Elapsed time: \" + h + \"h \" + m + \"m \" + s + \"s\");\r\n }", "title": "" }, { "docid": "c76b7303b810b786ff2bc414d4de1f46", "score": "0.552276", "text": "public int Log_available_time()\n {\n return uLog_available_time;\n }", "title": "" }, { "docid": "8f5f413501e7409346823a81dff2bcc9", "score": "0.5517662", "text": "public static String getTimeStamp_sec() {\n\t\tString timeStamp = \"\";\n\t\tDate d = new Date();\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTime(d);\n\t\ttimeStamp = timeStamp + c.get(Calendar.MONTH) + c.get(Calendar.DAY_OF_MONTH) + c.get(Calendar.HOUR)\n\t\t\t\t+ c.get(Calendar.MINUTE) + c.get(Calendar.SECOND);\n\t\treturn timeStamp;\n\t}", "title": "" }, { "docid": "2a69a94d3f8114998cbde277b61bfb65", "score": "0.55129665", "text": "int getStamp();", "title": "" }, { "docid": "556e435b42f2adf4f0c61919b524b508", "score": "0.5508301", "text": "private final synchronized static String getDateString()\n {\n \tfinal long now = System.currentTimeMillis();\n \t\n \tif (now > s_nextTime) {\n \t s_nextTime = now + 1000;\n \t s_dateString = s_dateFormat.format(new Date());\n \t}\n \n \treturn s_dateString;\n }", "title": "" }, { "docid": "a1be53ce775cabf143e4bbc6ed4045e2", "score": "0.5501102", "text": "public long getTime(){\n return date;\n }", "title": "" }, { "docid": "02c99dd378be130663093bad65751cf4", "score": "0.5493373", "text": "public TimeStamp getTime(){ return this.time; }", "title": "" }, { "docid": "2492b950b050bb84c76fcd1c5d4399a3", "score": "0.54889303", "text": "java.lang.String getTimeInfo();", "title": "" }, { "docid": "2492b950b050bb84c76fcd1c5d4399a3", "score": "0.54889303", "text": "java.lang.String getTimeInfo();", "title": "" }, { "docid": "d39a6061629df8fbfbc04bb05eb0e734", "score": "0.5483318", "text": "private String getTimestampString()\n\t{\n\t\treturn Long.toHexString(System.currentTimeMillis());\n\t}", "title": "" }, { "docid": "1f216d5fad9ac8261dcc9a930e3019bc", "score": "0.5476787", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tDate date = new Date();\n\t\tSystem.out.println(TimeZone.getTimeZone(\"Asia/Tokyo\").getOffset(date.getTime())/1000/60/60);\n\t\t\n\t\tlong l = Calendar.getInstance(TimeZone.getTimeZone(\"Asia/Tokyo\")).getTimeInMillis();\n\t\t\n\t\tSystem.out.println(new Timestamp(l));\n\t\t\n\t\t\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(DateUtils.DATE_FORM_001);\n\t\t\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"JST\"));\n\t\t\n\t\tTimestamp ts = Timestamp.valueOf(dateFormat.format(date));\n\t\t\n\t\tSystem.out.println(ts.getTime());\n\t\t\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\t\n\t\tTimestamp ts1 = Timestamp.valueOf(dateFormat.format(date));\n\t\t\n\t\tSystem.out.println(ts1.getTime());\n\t\t\n\t\tSystem.out.println((ts.getTime() - ts1.getTime())/1000/60/60);\n\t\t\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\tDate date1 = new Date();\t//現在日時\n\t\tTimeZone defaultZone = TimeZone.getDefault();\n\t\tSystem.out.println(defaultZone.getID());\n\t\tSystem.out.println(\"デフォルト:\" + date1 +\" : \"+ date1.getTime());\n\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t\tSystem.out.println(\"アメリカ :\" + date1 +\" : \"+ date1.getTime());\n\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"GMT\"));\n\t\tSystem.out.println(\"GMT    :\" + date1 +\" : \"+ date1.getTime());\n\n\t\tTimeZone.setDefault(defaultZone);\n\t\tSystem.out.println(\"元に戻した:\" + date1 +\" : \"+ date1.getTime());\n\t\t\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd hh:mm:ss\");\n\t // GMT(世界標準時刻)をセットする。\n\t TimeZone gmt = TimeZone.getTimeZone(\"GMT\");\n\t cal.setTimeZone(gmt);\n\t \n\t cal.setTimeInMillis(new Date().getTime());\n\t System.out.println(\"\\n\"+ gmt.getDisplayName() );\n\t System.out.println(cal.get(cal.YEAR) + \"年\"\n\t + (cal.get(cal.MONTH)+1) + \"月\"\n\t + cal.get(cal.DAY_OF_MONTH) + \"日 \"\n\t + cal.get(cal.HOUR_OF_DAY) + \"時\"\n\t + cal.get(cal.MINUTE) + \"分\"\n\t + cal.get(cal.SECOND) + \"秒\");\n\t \n\t // JST(日本標準時刻)をセットする。\n\t TimeZone jst = TimeZone.getTimeZone(\"JST\");\n\t cal.setTimeZone(jst);\n\t cal.setTimeInMillis(new Date().getTime());\n\t System.out.println(\"\\n\"+ jst.getDisplayName() );\n\t System.out.println(cal.get(cal.YEAR) + \"年\"\n\t + (cal.get(cal.MONTH)+1) + \"月\"\n\t + cal.get(cal.DAY_OF_MONTH) + \"日 \"\n\t + cal.get(cal.HOUR_OF_DAY) + \"時\"\n\t + cal.get(cal.MINUTE) + \"分\"\n\t + cal.get(cal.SECOND) + \"秒\");\n\t \n\t // CTT(中国標準時刻)をセットする。\n\t TimeZone ctt = TimeZone.getTimeZone(\"CTT\");\n\t cal.setTimeZone(ctt);\n\t cal.setTimeInMillis(new Date().getTime());\n\t System.out.println(\"\\n\"+ ctt.getDisplayName() );\n\t System.out.println(cal.get(cal.YEAR) + \"年\"\n\t + (cal.get(cal.MONTH)+1) + \"月\"\n\t + cal.get(cal.DAY_OF_MONTH) + \"日 \"\n\t + cal.get(cal.HOUR_OF_DAY) + \"時\"\n\t + cal.get(cal.MINUTE) + \"分\"\n\t + cal.get(cal.SECOND) + \"秒\");\n\t \n\t \n\t System.out.println(DateUtils.getTimestamp());\n\t \n\t \n\t System.out.println(\"----------------------------実験---------------------------\");\n\t Calendar calendar = DateUtils.getCalender();\n\t for (int i = 0 ;i<10 ;i++){\n\t \tcalucurate(calendar);\n\t }\n\t System.out.println(\"----------------------------実験---------------------------\");\n\n\t \n\t System.out.println(DateUtils.toStringFromDate(new Date(), DateUtils.DATE_FORM_007));\n\t \n\t System.out.println(\"meeting10000003201502092113\".subSequence(7, 15));\n\t \n\t \n\t System.out.println(\"----------------暗号化実験-------------\");\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000000\").length());\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000001\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000002\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000003\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000004\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000005\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000006\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000007\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000008\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"10000009\"));\n\t System.out.println(EncryptionUtils.getStretchedPassword(\"zaq12wsx\", \"20000000\"));\n\n\t}", "title": "" }, { "docid": "fbd612027fd45a155390f4d247dc4a9c", "score": "0.54757017", "text": "private String getTime() {\r\n ajd = new Date();\r\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\r\n return format.format(ajd);\r\n }", "title": "" }, { "docid": "94f7d365fbd5fd0756ac58a23130f59d", "score": "0.547499", "text": "private String getDate(){\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\n //get current date time with Date()\n Date date = new Date();\n\n // Now format the date\n return dateFormat.format(date);\n }", "title": "" }, { "docid": "af0337b4cc316b7b281cba4da48355eb", "score": "0.5472998", "text": "private String getCurrentTime() {\n String time = \"\";\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Calendar c = Calendar.getInstance();\n time = df.format(c.getTime());\n return time;\n }", "title": "" }, { "docid": "29427cc14de2b42d679e83298c0d3fd4", "score": "0.54690653", "text": "public String getCurrentDateTime()\n\t{\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\tDate date = new Date();\n\t\tSystem.out.println(dateFormat.format(date)); \n\t\treturn dateFormat.format(date);\n\t}", "title": "" }, { "docid": "00978883ea0b03e5cf94746b2f9b014c", "score": "0.5463956", "text": "public Date getStart_time();", "title": "" }, { "docid": "88cb08f5459a214d03e8e37aa74a386f", "score": "0.5462216", "text": "@Override\n\tpublic String toString() {\n\t\treturn(_sdf1.format(_value.getTime()));\n\t}", "title": "" }, { "docid": "2c6082b56d7a6a1d55839cb9006250b4", "score": "0.5456855", "text": "private String getDateTime() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss => \");\n\t\tDate date = new Date();\n\t\treturn dateFormat.format(date);\n\t}", "title": "" }, { "docid": "5a66fee6a50ad6692d4f0a6accb9793d", "score": "0.5456601", "text": "String storeTimeStamp();", "title": "" }, { "docid": "6fe8a6edde8537423a497986f80e0674", "score": "0.5455771", "text": "public void setTime(long time){\n this.date = time;\n }", "title": "" }, { "docid": "bb8c329c0e513cd2cfbd9f9d5cb604eb", "score": "0.544998", "text": "public String getTime(){\r\n\t\tCalendar currentDate = Calendar.getInstance();\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy/MMM/dd HH:mm:ss\");\r\n\t\treturn formatter.format(currentDate.getTime());\r\n\t}", "title": "" }, { "docid": "b54c9ca51ff5aa7e07369ccf04a13691", "score": "0.54499066", "text": "private String getTime() {\n return new Date(System.currentTimeMillis()).toString();\n }", "title": "" }, { "docid": "0dcda4924175afbc9f894852ca3e2347", "score": "0.5447156", "text": "private long getTime() {\r\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\r\n\t}", "title": "" }, { "docid": "b050938ae7dd891901074f7f4e79d479", "score": "0.54467225", "text": "public SystemClock() {\r\n set(new Date(Long.MIN_VALUE));\r\n }", "title": "" }, { "docid": "4d19ba2792cbe7df9de9bfc526048cb0", "score": "0.54454243", "text": "private String getFullDateWithTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEEE, dd 'of' MMMM yyyy HH:mm\");\n Date date = new Date();\n Log.e(\"Current_Date\", formatter.format(date));\n System.out.println(formatter.format(date));\n return formatter.format(date);\n }", "title": "" }, { "docid": "f46c70e65deed238ee515baef912f3a2", "score": "0.54398525", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tDate d = new Date();\r\n\t\t\r\n\t\tSystem.out.println(d.toString());\r\n\t\t\r\n\t\tSimpleDateFormat d1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\t\tSystem.out.println(d1.format(d));\r\n\t\t\r\n\t\tSimpleDateFormat d2 = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss\");\r\n\t\tSystem.out.println(d2.format(d));\r\n\t}", "title": "" }, { "docid": "d0175d027cff227f0d0ba2e6f3d88648", "score": "0.5435839", "text": "long getCurrentTimeMillis();", "title": "" }, { "docid": "7ee5f0f1ae8d6d347bd7764aeb4f0455", "score": "0.5435759", "text": "private String getCurrentDate() {\n \t \n \t DateFormat dateFormat = new SimpleDateFormat(\"dd_MM_yyyy_hh_mm_ss\");\n \t java.util.Date date = new java.util.Date();\n \t return dateFormat.format(date);\n \t \n }", "title": "" }, { "docid": "e20ded2903a938d0df1486f1b855a961", "score": "0.5433878", "text": "public void setTimeStamp(double timeNow){\r\n timeStamp = timeNow;\r\n inFOVnow = true;\r\n }", "title": "" }, { "docid": "5bc543a7343d98f1d638542194f2f192", "score": "0.54325384", "text": "public Long getLogTime() {\n return logTime;\n }", "title": "" }, { "docid": "7e49baf46179a05a3fd3f542547f8d11", "score": "0.54214007", "text": "private void getNowTime() {\n long time = System.currentTimeMillis() + 30 * 60 * 1000;\n Date now = new Date(time);\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM月dd日\");\n String dateNowStr = sdf.format(now);\n nowTime = new String[3];\n nowTime[0] = dateNowStr;\n nowTime[1] = now.getHours() + \"\";\n nowTime[2] = now.getMinutes() + \"\";\n year = now.getYear()+1900 + \"年\";\n }", "title": "" } ]
37aa8352405d2161117f823c03750fda
Without alpha mapping: x = X(t) t = t0 + alphaX (tFX t0) alphaX = (t t0) / (tFX t0) With alpha mapping: y = X(tPrime) tPrime = t0 + alphaPrime(alphaY) (tFX t0) alphaY = (t t0) / (tFY t0) where alphaPrime ensures that the velocities at t0 and tF end are unchanged
[ { "docid": "50cbdbf69563d74d14b2b1da731552a6", "score": "0.4894958", "text": "public double getPosition(int index, double t)\n {\n\n if (alphaToAlphaFunctions == null)\n {\n return trajectories[index].getPosition(t);\n }\n\n else\n {\n double deltaTime = (tFMax - t0);\n double alphaY;\n\n if (deltaTime < 1e-10)\n {\n alphaY = 1.0;\n }\n\n else\n {\n alphaY = (t - t0) / deltaTime;\n }\n\n double alphaPrime = alphaToAlphaFunctions[index].getAlphaPrime(alphaY);\n double tPrime = t0 + trajectories[index].getMoveDuration() * alphaPrime;\n double position = trajectories[index].getPosition(tPrime);\n\n return position;\n }\n }", "title": "" } ]
[ { "docid": "e73f61fe3cb2837579c447e02f78e5c9", "score": "0.5856096", "text": "public static float[] lerp(float v1x, float v1y, float v1z, float v2x, float v2y, float v2z, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\tif(alpha == 0.0f)\n\t\t{\n\t\t\tres[0] = v1x;\n\t\t\tres[1] = v1y;\n\t\t\tres[2] = v1z;\n\t\t\t\n\t\t\treturn res;\n\t\t}\n\t\t\n\t\tif(alpha == 1.0f)\n\t\t{\n\t\t\tres[0] = v2x;\n\t\t\tres[1] = v2y;\n\t\t\tres[2] = v2z;\n\t\t\t\n\t\t\treturn res;\n\t\t}\n\t\t\n\t\tfloat oneMinusAlpha = 1.0f - alpha;\n\t\t\n\t\tres[0] = oneMinusAlpha * v1x + alpha * v2x;\n\t\tres[1] = oneMinusAlpha * v1y + alpha * v2y;\n\t\tres[2] = oneMinusAlpha * v1z + alpha * v2z;\n\t\t\n\t\treturn res;\n\t}", "title": "" }, { "docid": "655955d7ccff04acf50fc5aa03eb79e4", "score": "0.5808816", "text": "public void forward(int start, int index1, int end, int time, double[][] p) {\n\t\talpha = new double[Maskit.T+1][M]; //alpha[0][] indicates alpha(\"start\",-1)\n\n\t\tfor (int i = 0; i < M; i++) {\n \tif (i == index1) {\n \t\talpha[start][i] = 1;\n \t}\n }\n for (int t = start+1; t <= time; t++) {\n for (int i = 0; i < alpha[0].length; i++) {\n alpha[t][i] = 0.0;\n if (t == start+1) {\n \talpha[t][i] = alpha[t-1][index1] * transition[t-1][index1][i] * (1-p[t-1][index1]);\t\t\n \t} else {\n \t\tfor (int j = 0; j < alpha[0].length; j++) {\n \t\talpha[t][i] += alpha[t-1][j] * transition[t-1][j][i] * p[t-1][j]; //p[t][i]:suppression probability \t\t\n \t\t}\n \t} \n } \n }\t\t\n\t}", "title": "" }, { "docid": "540655641e778219cfa058c87bbef6cb", "score": "0.57486165", "text": "public static <T extends Tup3fC> T lerp(float v1x, float v1y, float v1z, float v2x, float v2y, float v2z, float alpha, @ExtractionParam T res)\n\t{\n\t\tif(alpha == 0.0f)\n\t\t{\n\t\t\tres.set(v1x, v1y, v1z);\n\t\t\t\n\t\t\treturn res;\n\t\t}\n\t\t\n\t\tif(alpha == 1.0f)\n\t\t{\n\t\t\tres.set(v2x, v2y, v2z);\n\t\t\t\n\t\t\treturn res;\n\t\t}\n\t\t\n\t\tfloat oneMinusAlpha = 1.0f - alpha;\n\t\t\n\t\tres.set(oneMinusAlpha * v1x + alpha * v2x, oneMinusAlpha * v1y + alpha * v2y, oneMinusAlpha * v1z + alpha * v2z);\n\t\t\n\t\treturn res;\n\t}", "title": "" }, { "docid": "08f3e3f81294b780a65dd83fb7ec9327", "score": "0.56384593", "text": "public float getAlpha();", "title": "" }, { "docid": "10bd7587f3e84ed5903e4be907665400", "score": "0.56311595", "text": "private float[] exponentialSmoothing( float[] input, float[] output, float alpha ) {\n if ( output == null )\n return input;\n for ( int i=0; i<input.length; i++ ) {\n output[i] = output[i] + alpha * (input[i] - output[i]);\n }\n return output;\n }", "title": "" }, { "docid": "dd60bfeb1c6be4b57e941532cb6b9115", "score": "0.55574393", "text": "@Override\n\tprotected void computeAlpha(Hmm hmm, List<DataPoint> oseq) {\n\t\t// System.out.println(\"ForwardBackwardScaledCalculator:computeAlpha...\");\n\t\talpha = new double[oseq.size()][hmm.nbStates()];\n\n\t\tfor (int i = 0; i < hmm.nbStates(); i++)\n\t\t\tcomputeAlphaInit(hmm, oseq.get(0), i);\n\t\tscale(ctFactors, alpha, 0);\n\n\t\tIterator<DataPoint> seqIterator = oseq.iterator();\n\t\tif (seqIterator.hasNext())\n\t\t\tseqIterator.next();\n\n\t\tfor (int t = 1; t < oseq.size(); t++) {\n\t\t\tDataPoint observation = seqIterator.next();\n\n\t\t\tfor (int i = 0; i < hmm.nbStates(); i++)\n\t\t\t\tcomputeAlphaStep(hmm, observation, t, i);\n\t\t\t// scale the t-th alpha array by dividing [P(O1...Ot,St=qi) +\n\t\t\t// P(O1...Ot,St=qj], new alpha = P(St=qi|O1...Ot)\n\t\t\tscale(ctFactors, alpha, t);\n\t\t}\n\t}", "title": "" }, { "docid": "9063b5347bf7bd3aaa01b48248e54112", "score": "0.5500892", "text": "public static float[] lerp(@MinLength(3) float[] v1, @MinLength(3) float[] v2, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1[0], v1[1], v1[2], v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "445dae5a731637a0134e8c10e7e60c83", "score": "0.5492835", "text": "@Override\n public void update(double t) {\n\n _alpha -= 0.05;\n\n _y -= _velY * t;\n\n //Change x position with velX\n if(d == Direction.LEFT) {\n _x -= _velX * t;\n }\n else if (d == Direction.RIGHT){\n _x += _velX * t;\n }\n\n if (_alpha <= 0 ){\n _actv = false;\n }\n\n _dest.setPosition((int)_x, (int)_y);\n }", "title": "" }, { "docid": "93da9ef488af390d4e6afac4451abf7c", "score": "0.5486022", "text": "public static float[] lerp(@MinLength(3) float[] v1, float v2x, float v2y, float v2z, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1[0], v1[1], v1[2], v2x, v2y, v2z, alpha, res);\n\t}", "title": "" }, { "docid": "15a865163bac221e74950de032ac4efd", "score": "0.5396389", "text": "public static float[] lerp(float v1x, float v1y, float v1z, @MinLength(3) float[] v2, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1x, v1y, v1z, v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "1d700bcb717490c8f59637ea6fa1683c", "score": "0.5395354", "text": "public DoubleMatrix alpha(int[] emissions) {\n\t\t// if(alpha != null)\n\t\t// return alpha;\n\t\t//\n\t\talpha_scaling = new double[emissions.length];\n\n\t\t// int emission = emissions[e];\n\t\tDoubleMatrix alpha = new DoubleMatrix(number_of_states,\n\t\t\t\temissions.length);\n\t\talpha_scaling[0] = 0;\n\t\tfor (int i = 0; i < number_of_states; ++i) {\n\t\t\tdouble val = pi.get(0, i) * B.get(i, emissions[0]);\n\t\t\talpha.set(0, i, val);\n\t\t\talpha_scaling[0] += val;\n\t\t}\n\n\t\t// scale the α0(i)\n\t\t// if(alpha_scaling[0] != 0)\n\t\talpha_scaling[0] = 1 / alpha_scaling[0];\n\n\t\tfor (int i = 0; i < number_of_states; ++i) {\n\t\t\tdouble val = alpha.get(0, i) * alpha_scaling[0];\n\t\t\talpha.set(0, i, val);\n\t\t}\n\n\t\tfor (int t = 1; t < alpha.height; ++t) {\n\n\t\t\talpha_scaling[t] = 0;\n\t\t\tfor (int i = 0; i < number_of_states; ++i) {\n\n\t\t\t\tdouble val = 0;\n\t\t\t\tfor (int j = 0; j < number_of_states; j++) {\n\t\t\t\t\tval += A.get(j, i) * alpha.get(t - 1, j);\n\t\t\t\t}\n\n\t\t\t\talpha.set(t, i, val * B.get(i, emissions[t]));\n\t\t\t\talpha_scaling[t] += alpha.get(t, i);\n\t\t\t}\n\n\t\t\t// scale the αt(i)\n\t\t\t// if(alpha_scaling[t] != 0)\n\t\t\talpha_scaling[t] = 1 / alpha_scaling[t];\n\t\t\tfor (int i = 0; i < number_of_states; ++i)\n\t\t\t\talpha.set(t, i, alpha.get(t, i) * alpha_scaling[t]);\n\t\t}\n\n\t\t// System.err.println(\"Alpha:\");\n\t\t// System.err.println(alpha);\n\n\t\treturn alpha;\n\t}", "title": "" }, { "docid": "8745bfd2208dcd7e9642ab0e865a20bc", "score": "0.536204", "text": "static float easeInElastic(float t, float a, float p)\n\t{\n\t return easeInElastic_helper(t, 0, 1, 1, a, p);\n\t}", "title": "" }, { "docid": "3cd6647c9385ffef5fa5f9e3fd157001", "score": "0.53297687", "text": "public static float[] lerp(Tup3fR v1, @MinLength(3) float[] v2, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1.getV0(), v1.getV1(), v1.getV2(), v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "6679e0f95e8e54f7c26d6ab0ffc1fc34", "score": "0.5315392", "text": "public static <T extends Tup3fC> T lerp(@MinLength(3) float[] v1, @MinLength(3) float[] v2, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1[0], v1[1], v1[2], v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "529f014d8ea71bf131f85e273b85e704", "score": "0.53005", "text": "public static float[] lerp(Tup3fR v1, float v2x, float v2y, float v2z, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1.getV0(), v1.getV1(), v1.getV2(), v2x, v2y, v2z, alpha, res);\n\t}", "title": "" }, { "docid": "8799cbadf2ae74bc0d534fd374474fbc", "score": "0.5289331", "text": "public static float[] lerp(@MinLength(3) float[] v1, Tup3fR v2, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1[0], v1[1], v1[2], v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "6358a31cb2aceb555c8946ac73d6a874", "score": "0.52688193", "text": "public static <T> T lerpFunc(float v1x, float v1y, float v1z, float v2x, float v2y, float v2z, float alpha, FloatFunction3<T> res)\n\t{\n\t\tif(alpha == 0.0f)\n\t\t{\n\t\t\treturn res.apply(v1x, v1y, v1z);\n\t\t}\n\t\t\n\t\tif(alpha == 1.0f)\n\t\t{\n\t\t\treturn res.apply(v2x, v2y, v2z);\n\t\t}\n\t\t\n\t\tfloat oneMinusAlpha = 1.0f - alpha;\n\n\t\treturn res.apply(oneMinusAlpha * v1x + alpha * v2x, oneMinusAlpha * v1y + alpha * v2y, oneMinusAlpha * v1z + alpha * v2z);\n\t}", "title": "" }, { "docid": "5a7f47b3ca4da9915bb46b654c956208", "score": "0.52412224", "text": "public static float[] lerp(Tup3fR v1, Tup3fR v2, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1.getV0(), v1.getV1(), v1.getV2(), v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "0399ea89e56581414c96cf596833b022", "score": "0.5231857", "text": "public static <T extends Tup3fC> T lerp(@MinLength(3) float[] v1, float v2x, float v2y, float v2z, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1[0], v1[1], v1[2], v2x, v2y, v2z, alpha, res);\n\t}", "title": "" }, { "docid": "721cb3688a999a35b831333b32f6abc2", "score": "0.52299935", "text": "public static float[] lerp(float v1x, float v1y, float v1z, Tup3fR v2, float alpha, @ExtractionParam @MinLength(3) float[] res)\n\t{\n\t\treturn lerp(v1x, v1y, v1z, v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "525b83e5f457837f7b0ce3a64b656946", "score": "0.5209644", "text": "public static <T extends Tup3fC> T lerp(float v1x, float v1y, float v1z, @MinLength(3) float[] v2, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1x, v1y, v1z, v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "9350df6185d0aa3d218c3440ddc8eb4b", "score": "0.516751", "text": "static float easeInOutElastic(float t, float a, float p)\n\t{\n\t if (t==0) return 0.0f;\n\t t*=2.0;\n\t if (t==2) return 1.0f;\n\n\t float s;\n\t if(a < 1.0f) {\n\t a = 1.0f;\n\t s = p / 4.0f;\n\t } else {\n\t s = p / (2 * M_PI) * (float)Math.asin(1.0 / a);\n\t }\n\n\t if (t < 1) return -.5f*(a*(float)Math.pow(2.0f,10*(t-1)) * (float)Math.sin( (t-1-s)*(2*M_PI)/p ));\n\t return a*(float)Math.pow(2.0f,-10*(t-1)) * (float)Math.sin( (t-1-s)*(2*M_PI)/p )*.5f + 1.0f;\n\t}", "title": "" }, { "docid": "b5c4c22d9f2d4f64e5b028be5229c11e", "score": "0.5129913", "text": "public void preApply(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33)\n/* */ {\n/* 383 */ float r00 = n00 * this.m00 + n01 * this.m10 + n02 * this.m20 + n03 * this.m30;\n/* 384 */ float r01 = n00 * this.m01 + n01 * this.m11 + n02 * this.m21 + n03 * this.m31;\n/* 385 */ float r02 = n00 * this.m02 + n01 * this.m12 + n02 * this.m22 + n03 * this.m32;\n/* 386 */ float r03 = n00 * this.m03 + n01 * this.m13 + n02 * this.m23 + n03 * this.m33;\n/* */ \n/* 388 */ float r10 = n10 * this.m00 + n11 * this.m10 + n12 * this.m20 + n13 * this.m30;\n/* 389 */ float r11 = n10 * this.m01 + n11 * this.m11 + n12 * this.m21 + n13 * this.m31;\n/* 390 */ float r12 = n10 * this.m02 + n11 * this.m12 + n12 * this.m22 + n13 * this.m32;\n/* 391 */ float r13 = n10 * this.m03 + n11 * this.m13 + n12 * this.m23 + n13 * this.m33;\n/* */ \n/* 393 */ float r20 = n20 * this.m00 + n21 * this.m10 + n22 * this.m20 + n23 * this.m30;\n/* 394 */ float r21 = n20 * this.m01 + n21 * this.m11 + n22 * this.m21 + n23 * this.m31;\n/* 395 */ float r22 = n20 * this.m02 + n21 * this.m12 + n22 * this.m22 + n23 * this.m32;\n/* 396 */ float r23 = n20 * this.m03 + n21 * this.m13 + n22 * this.m23 + n23 * this.m33;\n/* */ \n/* 398 */ float r30 = n30 * this.m00 + n31 * this.m10 + n32 * this.m20 + n33 * this.m30;\n/* 399 */ float r31 = n30 * this.m01 + n31 * this.m11 + n32 * this.m21 + n33 * this.m31;\n/* 400 */ float r32 = n30 * this.m02 + n31 * this.m12 + n32 * this.m22 + n33 * this.m32;\n/* 401 */ float r33 = n30 * this.m03 + n31 * this.m13 + n32 * this.m23 + n33 * this.m33;\n/* */ \n/* 403 */ this.m00 = r00;this.m01 = r01;this.m02 = r02;this.m03 = r03;\n/* 404 */ this.m10 = r10;this.m11 = r11;this.m12 = r12;this.m13 = r13;\n/* 405 */ this.m20 = r20;this.m21 = r21;this.m22 = r22;this.m23 = r23;\n/* 406 */ this.m30 = r30;this.m31 = r31;this.m32 = r32;this.m33 = r33;\n/* */ }", "title": "" }, { "docid": "2100db90b40a153e7fcb99c3b3b27e0a", "score": "0.5122096", "text": "static float easeOutInElastic(float t, float a, float p)\n\t{\n\t if (t < 0.5) return easeOutElastic_helper(t*2, 0f, 0.5f, 1.0f, a, p);\n\t return easeInElastic_helper(2*t - 1.0f, 0.5f, 0.5f, 1.0f, a, p);\n\t}", "title": "" }, { "docid": "5745aa6dd67ff20441d064540e645ce9", "score": "0.51192445", "text": "public static void evaporate() {\n\t\tfor (@SuppressWarnings(\"unchecked\")\n\t\tIterator<Integer> xIter = new Range(0, dim).iterator(); xIter.hasNext();) {\n\t\t\tfinal int x = xIter.next();\n\t\t\tfor (@SuppressWarnings(\"unchecked\")\n\t\t\tIterator<Integer> yIter = new Range(0, dim).iterator(); yIter.hasNext();) {\n\t\t\t\tfinal int y = yIter.next();\n\t\t\t\tdosync(new AFn() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Object invoke() throws Exception {\n\t\t\t\t\t\tRef p = place(vector(x, y));\n\t\t\t\t\t\treturn p.alter(assocSingle, list(keyword(\"pher\"), evap_rate * pherAt(p)));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ab19f9e163c9a7a0d851cd645515c4d9", "score": "0.511542", "text": "public double getAlpha() { return alpha; }", "title": "" }, { "docid": "54ae8bd825bc69807cf97034ee45ee55", "score": "0.5109018", "text": "public static native double GetAlpha(long lpjFbxLayerElementTexture);", "title": "" }, { "docid": "679f1624c566a0d3dffe0e4544a0ab56", "score": "0.5107531", "text": "public void calcInterpolatedPoint(float t, Vec3 result) {\n setTimeVector(t, mTimeVector);\n result.x = mTimeVector.dot(mDx);\n result.y = mTimeVector.dot(mDy);\n result.z = mTimeVector.dot(mDz);\n }", "title": "" }, { "docid": "45795f0edcdd4cbf9f8b1c3f466ab799", "score": "0.5079602", "text": "public static <T extends Tup3fC> T lerp(@MinLength(3) float[] v1, Tup3fR v2, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1[0], v1[1], v1[2], v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "54a31ca58925c4254d9855bd42fe10c7", "score": "0.50630987", "text": "public static <T extends Tup3fC> T lerp(Tup3fR v1, float v2x, float v2y, float v2z, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1.getV0(), v1.getV1(), v1.getV2(), v2x, v2y, v2z, alpha, res);\n\t}", "title": "" }, { "docid": "43d1767864074fc30515e27423dc818b", "score": "0.50299424", "text": "static float easeOutElastic(float t, float a, float p)\n\t{\n\t return easeOutElastic_helper(t, 0, 1, 1, a, p);\n\t}", "title": "" }, { "docid": "44fc6b21a2d71eca667bf635e75846f3", "score": "0.50282156", "text": "static float easeInExpo(float t)\n\t{\n\t return ((t==0 || t == 1.0) ? t : (float)Math.pow(2.0, 10 * (t - 1)) - 0.001f);\n\t}", "title": "" }, { "docid": "cdf3253bfb2192fe6cce3c5ab4098a6f", "score": "0.5025096", "text": "public static <T extends Tup3fC> T lerp(Tup3fR v1, Tup3fR v2, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1.getV0(), v1.getV1(), v1.getV2(), v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "09d90509b6584c03ef034b71234545ce", "score": "0.50228465", "text": "public static double linearInterpolate(double x0, double x1, double alpha) {\n\t\treturn x0 * (1 - alpha) + alpha * x1;\n\t}", "title": "" }, { "docid": "f5aa7867238d1299a0e970c9d9e3a7f8", "score": "0.5015807", "text": "public void setAlpha(float alpha) {\n this.alpha = alpha;\n }", "title": "" }, { "docid": "f76506874a8a31a4f9ecab0788589203", "score": "0.5012297", "text": "public static <T extends Tup3fC> T lerp(Tup3fR v1, @MinLength(3) float[] v2, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1.getV0(), v1.getV1(), v1.getV2(), v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "c3542f7a42a3d240c24366ebefa3e610", "score": "0.5003555", "text": "@Test\n public void testAccelerateParticle()\n {\n System.out.println(\"accelerateParticle\");\n Particle p = null;\n double dt = 0.0;\n GeneralPoint instance = null;\n instance.accelerateParticle(p, dt);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "bc762639563bf0b6f143bce73c9299c2", "score": "0.5003232", "text": "private float[] highPass(float x, float y, float z) {\n\t\tfloat[] filteredValues = new float[3];\n\t\t\n\t\tgravity[0] = ALPHA * gravity[0] + (1 - ALPHA) * x;\n\t\tgravity[1] = ALPHA * gravity[1] + (1 - ALPHA) * y;\n\t\tgravity[2] = ALPHA * gravity[2] + (1 - ALPHA) * z;\n\t\t\n\t\tfilteredValues[0] = x - gravity[0];\n\t\tfilteredValues[1] = y - gravity[1];\n\t\tfilteredValues[2] = z - gravity[2];\n\t\t\n\t\treturn filteredValues;\t\t\t\t\n\t}", "title": "" }, { "docid": "b421b6a1cd757f7d41d341313ab69c93", "score": "0.49915394", "text": "public static <T> T lerpFunc(@MinLength(3) float[] v1, @MinLength(3) float[] v2, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1[0], v1[1], v1[2], v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "f53f95bcdb0b01e9cdc606ee9a354655", "score": "0.4989516", "text": "public float getValueTile(float _x, float _y, float _freq) {\n//\t\t\t\r\n//\t\t\t\r\n\r\n \tfloat magOfEffect = (float) Math.abs(Math.sin(((_y+1) / maxV) * Math.PI));\r\n \tfloat range = magOfEffect * repeat * _freq;\r\n \t//return ((m_dxloop/2f) - (range/2f)) + (range * (_x/m_dxloop));\r\n\t\t\t\r\n\t\t\tfloat scale = 1f;\r\n\t\t\t\r\n\t\t\tfloat m_loopx0 = 0f;\r\n\t\t\tfloat m_loopy0 = 0f;\r\n\t\t\tfloat m_dxloop = range;//(repeat * _freq);\r\n\t\t\tfloat m_dyloop = (repeat * _freq);\r\n\t\t\t\r\n float _x2 = ((512f/2f) - (range/2f)) + (range * ((_x*_freq)/range));\r\n\r\n\t\t\t\r\n\t\t\tfloat s = (float) _x2 / m_dxloop;\r\n\t\t\tfloat t = (float) _y / m_dyloop;\r\n\t\t\t\r\n\t\t\tfloat nx = (float) (m_loopx0 + Math.cos(s * 2 * Math.PI)*m_dxloop/(2*Math.PI));\r\n\t\t\tfloat ny = (float) (m_loopy0 + Math.cos(t * 2 * Math.PI)*m_dyloop/(2*Math.PI));\r\n\t\t\tfloat nz = (float) (m_loopx0 + Math.sin(s * 2 * Math.PI)*m_dxloop/(2*Math.PI));\r\n\t\t\tfloat nw = (float) (m_loopy0 + Math.sin(t * 2 * Math.PI)*m_dyloop/(2*Math.PI));\r\n\t\t\t\r\n\t\t\t\r\n// \tfloat s = (float)_x / maxU;\r\n// \tfloat t = (float)_y / maxV;\r\n// \t\r\n// final float x1 = 0;//_x;\r\n// //final float x2 = _x + (1f/maxU);\r\n// \r\n// final float y1 = 0;// _y;\r\n// // final float y2 = _y + (1f/maxV);\r\n// \r\n// \tfloat dx = (_x/maxU);\r\n// \tfloat dy = (_y/maxV);\r\n// \t\r\n// \tfloat nx = (float) (x1+Math.cos(s*2*Math.PI)*dx/(2*Math.PI));\r\n// \tfloat ny = (float) (y1+Math.cos(t*2*Math.PI)*dy/(2*Math.PI));\r\n// \tfloat nz = (float) (x1+Math.sin(s*2*Math.PI)*dx/(2*Math.PI));\r\n// \tfloat nw = (float) (y1+Math.sin(t*2*Math.PI)*dy/(2*Math.PI));\r\n// \t\r\n\t\t\treturn SimplexNoise.noise(nx*scale, ny*scale, nz*scale, nw*scale);\r\n\t\t\t\r\n\t\t\t//return SimplexNoise.noise(_x, _y);\r\n\t\t\t\r\n//\t\t\tint Xint = (int)_x;\r\n//\t\t\tint Yint = (int)_y;\r\n//\t\t\tfloat Xfrac = _x - Xint;\r\n//\t\t\tfloat Yfrac = _y - Yint;\r\n//\r\n//\t\t\t//noise values\r\n//\t\t \tfloat n01 = noise(Xint-1, Yint-1);\r\n//\t\t\tfloat n02 = noise(Xint+1, Yint-1);\r\n//\t\t\tfloat n03 = noise(Xint-1, Yint+1);\r\n//\t\t\tfloat n04 = noise(Xint+1, Yint+1);\r\n//\t\t\tfloat n05 = noise(Xint-1, Yint);\r\n//\t\t\tfloat n06 = noise(Xint+1, Yint);\r\n//\t\t\tfloat n07 = noise(Xint, Yint-1);\r\n//\t\t\tfloat n08 = noise(Xint, Yint+1);\r\n//\t\t\tfloat n09 = noise(Xint, Yint);\r\n//\t\t\t\r\n//\t\t\tfloat n12 = noise(Xint+2, Yint-1);\r\n//\t\t\tfloat n14 = noise(Xint+2, Yint+1);\r\n//\t\t\tfloat n16 = noise(Xint+2, Yint);\r\n//\t\t\t\r\n//\t\t\tfloat n23 = noise(Xint-1, Yint+2);\r\n//\t\t\tfloat n24 = noise(Xint+1, Yint+2);\r\n//\t\t\tfloat n28 = noise(Xint, Yint+2);\r\n//\t\t\t\r\n//\t\t\tfloat n34 = noise(Xint+2, Yint+2);\r\n//\r\n//\t\t //find the noise values of the four corners\r\n//\t\t\tfloat x0y0 = 0.0625f*(n01+n02+n03+n04) + 0.125f*(n05+n06+n07+n08) + 0.25f*(n09); \r\n//\t\t\tfloat x1y0 = 0.0625f*(n07+n12+n08+n14) + 0.125f*(n09+n16+n02+n04) + 0.25f*(n06); \r\n//\t\t\tfloat x0y1 = 0.0625f*(n05+n06+n23+n24) + 0.125f*(n03+n04+n09+n28) + 0.25f*(n08); \r\n//\t\t\tfloat x1y1 = 0.0625f*(n09+n16+n28+n34) + 0.125f*(n08+n14+n06+n24) + 0.25f*(n04); \r\n//\r\n//\t\t //interpolate between those values according to the x and y fractions\r\n//\t\t\tfloat v1 = interpolate(x0y0, x1y0, Xfrac); //interpolate in x direction (y)\r\n//\t\t\tfloat v2 = interpolate(x0y1, x1y1, Xfrac); //interpolate in x direction (y+1)\r\n//\t\t float fin = interpolate(v1, v2, Yfrac); //interpolate in y direction\r\n//\r\n//\t\t return fin;\r\n\t\t}", "title": "" }, { "docid": "e45c6237038107591023a55e60933ffa", "score": "0.4984485", "text": "public static native void SetAlpha(long lpjFbxLayerElementTexture, double pAlpha);", "title": "" }, { "docid": "60162cd63cd01c4b7d2b2e7f6df49a98", "score": "0.4976533", "text": "private void updateTextureCoordInfo() {\r\n\r\n\t\t// Finds the current texture for the particle age\r\n\t\tfloat lifeFactor = elapsedTime / lifeLength;\r\n\t\tint stageCount = texture.getNumberOfRows() * texture.getNumberOfRows();\r\n\t\tfloat atlasProgression = lifeFactor * stageCount;\r\n\r\n\t\t// Gets the x and y coordinates on the texture\r\n\t\tint index1 = (int) Math.floor(atlasProgression);\r\n\t\tint index2 = index1 < stageCount - 1 ? index1 + 1 : index1;\r\n\r\n\t\t// Gets the decimal part of the progression as a blend factor\r\n\t\tthis.blend = atlasProgression % 1;\r\n\r\n\t\t// Gets the two textures that the particle is between\r\n\t\tthis.setTextureOffset(texOffset1, index1);\r\n\t\tthis.setTextureOffset(texOffset2, index2);\r\n\r\n\t}", "title": "" }, { "docid": "6c9f11515c7cbc384e1a5725dbbb2b48", "score": "0.49735013", "text": "static float easeOutExpo(float t)\n\t{\n\t return (t==1.0f) ? 1.0f : 1.001f * (-(float)Math.pow(2.0f, -10 * t) + 1);\n\t}", "title": "" }, { "docid": "a2ea2d48ece262cb380532ab42c3f721", "score": "0.49610272", "text": "public static <T> T lerpFunc(@MinLength(3) float[] v1, float v2x, float v2y, float v2z, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1[0], v1[1], v1[2], v2x, v2y, v2z, alpha, res);\n\t}", "title": "" }, { "docid": "fd77f44cccceb44d77844693faa0a90a", "score": "0.49569336", "text": "public static <T extends Tup3fC> T lerp(float v1x, float v1y, float v1z, Tup3fR v2, float alpha, @ExtractionParam T res)\n\t{\n\t\treturn lerp(v1x, v1y, v1z, v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "6d3f9dd358a674008adb2aac6f263e83", "score": "0.4941519", "text": "static float InverseLerp(float a, float b, float f){\n return (f-a)/(b-a);\n }", "title": "" }, { "docid": "716ce3d61911e0df929f175315c69755", "score": "0.49339005", "text": "private void calcInnerPhasePlaneEllipse(){\n\tif(nPoints > 1 ){\n\t double x_avg = 0;\n\t double xp_avg = 0.;\n\t double x2_avg = 0.;\n\t double xp2_avg = 0.;\n\t double x_xp_avg = 0.;\n\t for(int i = 0; i < nPoints; i++){\n\t\tx_avg += pointsX[i];\n\t\txp_avg += pointsXP[i];\n\t\tx2_avg += pointsX[i]*pointsX[i];\n\t\txp2_avg += pointsXP[i]*pointsXP[i];\n\t\tx_xp_avg += pointsX[i]*pointsXP[i];\n\t }\n\t x_avg /= nPoints;\n\t xp_avg /= nPoints; \n\t x2_avg /= nPoints;\n\t xp2_avg /= nPoints;\n\t x_xp_avg /= nPoints;\n\t double D_x = x2_avg - x_avg*x_avg;\n\t double D_xp = xp2_avg - xp_avg*xp_avg;\n\t double emitt = Math.sqrt(D_x*D_xp - x_xp_avg*x_xp_avg);\n\t if( emitt > 0. ){\n\t\tdouble alpha = - x_xp_avg/emitt;\n\t\tdouble beta = D_x/emitt;\n\t\tinnerPhasePlaneEllipse.setEmittance(emitt);\n\t\tinnerPhasePlaneEllipse.setAlpha(alpha);\n\t\tinnerPhasePlaneEllipse.setBeta(beta);\n\t\tinnerPhasePlaneEllipse.calcCurvePoints();\n\t }\n\t}\n }", "title": "" }, { "docid": "4077334e6ddf032c98abd3c81718a829", "score": "0.4923495", "text": "public void effacer(Terrain t)\n {\n t.videCase(posx, posy);\n }", "title": "" }, { "docid": "11743d4e30c1bab376685c774f99855c", "score": "0.49226093", "text": "static public double f2(double t, double x, double y) {\n\t\treturn -k * Math.sin(w * t) * x + 2 * rho * y - 2 * rho * (Math.pow(x, 2)) * y;\n\t}", "title": "" }, { "docid": "de495c57407b78e5c8b3a4bc63af05dc", "score": "0.49018943", "text": "public void genAccMap(){\n int i;\n int j;\n int k;\n int G=15;\n\n for(i=-100;i<100;i++){\n double r;\n double Ax;\n double Ay;\n if(starOnly) {\n r = Math.sqrt(Math.pow(gravData[0][1] / MyGdxGame.PPM - i, 2) + Math.pow(gravData[0][2] / MyGdxGame.PPM - i, 2));\n Ax = G * -(i - gravData[0][1] / MyGdxGame.PPM) * (gravData[0][1] / MyGdxGame.PPM) / Math.pow(r, 3);\n Ay = G * -(i - gravData[0][2] / MyGdxGame.PPM) * (gravData[0][2] / MyGdxGame.PPM) / Math.pow(r, 3);\n } else {\n Ax = 0;\n Ay = 0;\n for(k=0;k<nP;k++){\n r = Math.sqrt(Math.pow(gravData[k+1][1] / MyGdxGame.PPM - i, 2) + Math.pow(gravData[k+1][2] / MyGdxGame.PPM - i, 2));\n Ax = Ax + (G * -(i - gravData[k+1][1] / MyGdxGame.PPM) * (gravData[k+1][1] / MyGdxGame.PPM) / Math.pow(r, 3));\n Ay = Ay + (G * -(i - gravData[k+1][2] / MyGdxGame.PPM) * (gravData[k+1][2] / MyGdxGame.PPM) / Math.pow(r, 3));\n }\n r = Math.sqrt(Math.pow(gravData[0][1] / MyGdxGame.PPM - i, 2) + Math.pow(gravData[0][2] / MyGdxGame.PPM - i, 2));\n Ax = Ax + G * -(i - gravData[0][1] / MyGdxGame.PPM) * (gravData[0][1] / MyGdxGame.PPM) / Math.pow(r, 3);\n Ay = Ay + G * -(i - gravData[0][2] / MyGdxGame.PPM) * (gravData[0][2] / MyGdxGame.PPM) / Math.pow(r, 3);\n }\n stellarAccMap[i+100][0] = Ax;\n stellarAccMap[i+100][1] = Ay;\n }\n }", "title": "" }, { "docid": "d7184fab1006bf9e5269081e2df2d783", "score": "0.48865342", "text": "private void deltaGamma(int timeIndex) {\n for (int i=1; i<assetSteps-1; i++) {\n values[timeIndex-1][2][i]=\n (values[timeIndex-1][0][i+1]-values[timeIndex-1][0][i-1])\n / (2*deltaS);\n values[timeIndex-1][3][i]=\n (values[timeIndex-1][0][i+1]-2*values[timeIndex-1][0][i]\n +values[timeIndex-1][0][i-1])\n / (deltaS*deltaS);\n } \n }", "title": "" }, { "docid": "feef1259188bf2893b2d41e26151b8ca", "score": "0.48851788", "text": "protected int getAlpha (int x, int y)\r\n {\r\n int pixel = curData[y*curWidth + x];\r\n return (pixel >> 24) & 0xff;\r\n }", "title": "" }, { "docid": "b691fe980762177b20a3de276cce5925", "score": "0.4879331", "text": "public static <T> T lerpFunc(float v1x, float v1y, float v1z, @MinLength(3) float[] v2, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1x, v1y, v1z, v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "e99890b08497a808fac6a2e402df02ea", "score": "0.4878685", "text": "public void setAlpha(float alpha) {\n\t\tthis.alpha = alpha;\n\t}", "title": "" }, { "docid": "123718b1ebecb0de55bbe364e4ca06e4", "score": "0.48779887", "text": "public static <T> T lerpFunc(Tup3fR v1, float v2x, float v2y, float v2z, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1.getV0(), v1.getV1(), v1.getV2(), v2x, v2y, v2z, alpha, res);\n\t}", "title": "" }, { "docid": "8a9ea0aac3673692fce44a5cbcfffe95", "score": "0.48776382", "text": "public static <T> T lerpFunc(Tup3fR v1, Tup3fR v2, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1.getV0(), v1.getV1(), v1.getV2(), v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "58ab357828db1c28635f4fb25b3ff1ed", "score": "0.48582745", "text": "public void func_70539_a(Tessellator tessellator, float f, float f1, float f2, float f3, float f4, float f5)\n/* */ {\n/* 115 */ tessellator.func_78381_a();\n/* */ \n/* 117 */ GL11.glPushMatrix();\n/* 118 */ double ePX = this.field_70169_q + (this.field_70165_t - this.field_70169_q) * f - field_70556_an;\n/* 119 */ double ePY = this.field_70167_r + (this.field_70163_u - this.field_70167_r) * f - field_70554_ao;\n/* 120 */ double ePZ = this.field_70166_s + (this.field_70161_v - this.field_70166_s) * f - field_70555_ap;\n/* 121 */ GL11.glTranslated(ePX, ePY, ePZ);\n/* 122 */ float size = 0.25F;\n/* */ \n/* 124 */ UtilsFX.bindTexture(\"textures/misc/beamh.png\");\n/* */ \n/* 126 */ GL11.glDepthMask(false);\n/* 127 */ GL11.glEnable(3042);\n/* 128 */ GL11.glBlendFunc(770, 1);\n/* */ \n/* 130 */ GL11.glDisable(2884);\n/* */ \n/* 132 */ tessellator.func_78371_b(5);\n/* 133 */ tessellator.func_78380_c(200);\n/* 134 */ tessellator.func_78369_a(this.field_70552_h, this.field_70553_i, this.field_70551_j, 0.8F);\n/* */ \n/* 136 */ float f9 = 0.0F;\n/* 137 */ float f10 = 1.0F;\n/* 138 */ for (int c = 0; c < this.points.size(); c++) {\n/* 139 */ Vec3 v = (Vec3)this.points.get(c);\n/* 140 */ float f13 = c / this.length;\n/* 141 */ double dx = v.field_72450_a;\n/* 142 */ double dy = v.field_72448_b;\n/* 143 */ double dz = v.field_72449_c;\n/* */ \n/* 145 */ tessellator.func_78374_a(dx, dy - size, dz, f13, f10);\n/* 146 */ tessellator.func_78374_a(dx, dy + size, dz, f13, f9);\n/* */ }\n/* */ \n/* 149 */ tessellator.func_78381_a();\n/* */ \n/* 151 */ tessellator.func_78371_b(5);\n/* 152 */ tessellator.func_78380_c(200);\n/* 153 */ tessellator.func_78369_a(this.field_70552_h, this.field_70553_i, this.field_70551_j, 0.8F);\n/* 154 */ for (int c = 0; c < this.points.size(); c++) {\n/* 155 */ Vec3 v = (Vec3)this.points.get(c);\n/* 156 */ float f13 = c / this.length;\n/* 157 */ double dx = v.field_72450_a;\n/* 158 */ double dy = v.field_72448_b;\n/* 159 */ double dz = v.field_72449_c;\n/* 160 */ tessellator.func_78374_a(dx - size, dy, dz - size, f13, f10);\n/* 161 */ tessellator.func_78374_a(dx + size, dy, dz + size, f13, f9);\n/* */ }\n/* */ \n/* 164 */ tessellator.func_78381_a();\n/* */ \n/* 166 */ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n/* 167 */ GL11.glEnable(2884);\n/* 168 */ GL11.glDisable(3042);\n/* 169 */ GL11.glDepthMask(true);\n/* */ \n/* 171 */ GL11.glPopMatrix();\n/* */ \n/* 173 */ Minecraft.func_71410_x().field_71446_o.func_110577_a(UtilsFX.getParticleTexture());\n/* */ \n/* 175 */ tessellator.func_78382_b();\n/* */ }", "title": "" }, { "docid": "7eacb8fc29e1a5e0ea94e99e01e519f6", "score": "0.4834261", "text": "void setAlpha(int v);", "title": "" }, { "docid": "c145716b0065bfe7481af79c0cfe6c0d", "score": "0.4833409", "text": "public void update() {\n/* 89 */ float posX = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecOrigin\").getAddress());\n/* 90 */ float posY = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecOrigin\").getAddress() + 4L);\n/* 91 */ float posZ = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecOrigin\").getAddress() + 8L);\n/* 92 */ this.pos = new Vector3f(posX, posY, posZ);\n/* */ \n/* */ \n/* 95 */ float velX = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecVelocity\").getAddress());\n/* 96 */ float velY = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecVelocity\").getAddress() + 4L);\n/* 97 */ float velZ = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecVelocity\").getAddress() + 8L);\n/* 98 */ this.velocity = new Vector3f(velX, velY, velZ);\n/* */ \n/* */ \n/* 101 */ float pitch = Main.INSTANCE.getEngine().readFloat(Main.INSTANCE.getMemory().getOffset(\"m_dwViewAngles\").getAddress());\n/* 102 */ float yaw = Main.INSTANCE.getEngine().readFloat((Main.INSTANCE.getMemory().getOffset(\"m_dwViewAngles\").getAddress() + 4));\n/* 103 */ float roll = Main.INSTANCE.getEngine().readFloat((Main.INSTANCE.getMemory().getOffset(\"m_dwViewAngles\").getAddress() + 8));\n/* 104 */ this.viewAngles = new Vector3f(yaw, pitch, roll);\n/* */ \n/* */ \n/* 107 */ float viewOffsetX = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecViewOffset\").getAddress());\n/* 108 */ float viewOffsetY = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecViewOffset\").getAddress() + 4L);\n/* 109 */ float viewOffsetZ = Main.INSTANCE.getTF2Process().readFloat(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_vecViewOffset\").getAddress() + 8L);\n/* 110 */ this.viewOffsets = new Vector3f(viewOffsetX, viewOffsetY, viewOffsetZ);\n/* */ \n/* */ \n/* 113 */ this.hp = Main.INSTANCE.getTF2Process().readUnsignedInt(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_iHealth\").getAddress());\n/* */ \n/* */ \n/* 116 */ this.flags = Main.INSTANCE.getTF2Process().readUnsignedInt(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_fFlags\").getAddress());\n/* */ \n/* */ \n/* 119 */ this.dormant = Main.INSTANCE.getTF2Process().readBoolean(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_bDormant\").getAddress());\n/* */ \n/* */ \n/* 122 */ this.team = Main.INSTANCE.getTF2Process().readUnsignedInt(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_iTeamNum\").getAddress());\n/* */ \n/* */ \n/* 125 */ this.cloak = Main.INSTANCE.getTF2Process().readUnsignedInt(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_iCloaked\").getAddress());\n/* */ \n/* */ \n/* 128 */ this.boneMatrix = Main.INSTANCE.getTF2Process().readUnsignedInt(getAddress() + Main.INSTANCE.getMemory().getOffset(\"m_dwBoneMatrix\").getAddress());\n/* */ }", "title": "" }, { "docid": "ce0b107b23a4a9a066f398741e777ed4", "score": "0.48319224", "text": "void alpha( CircularShifter cs );", "title": "" }, { "docid": "2a697ac031351170b6261deefca9ea2e", "score": "0.48250467", "text": "public FXArc(World par1World, double x, double y, double z, double tx, double ty, double tz, float red, float green, float blue, double hg)\n/* */ {\n/* 28 */ super(par1World, x, y, z, 0.0D, 0.0D, 0.0D);\n/* */ \n/* 30 */ this.field_70552_h = red;\n/* 31 */ this.field_70553_i = green;\n/* 32 */ this.field_70551_j = blue;\n/* */ \n/* 34 */ func_70105_a(0.02F, 0.02F);\n/* 35 */ this.field_70145_X = true;\n/* 36 */ this.field_70159_w = 0.0D;\n/* 37 */ this.field_70181_x = 0.0D;\n/* 38 */ this.field_70179_y = 0.0D;\n/* 39 */ this.tX = (tx - x);\n/* 40 */ this.tY = (ty - y);\n/* 41 */ this.tZ = (tz - z);\n/* */ \n/* */ \n/* */ \n/* 45 */ this.field_70547_e = 1;\n/* */ \n/* 47 */ double xx = 0.0D;\n/* 48 */ double yy = 0.0D;\n/* 49 */ double zz = 0.0D;\n/* */ \n/* 51 */ double gravity = 0.115D;\n/* 52 */ double noise = 0.25D;\n/* */ \n/* 54 */ Vec3 vs = Vec3.func_72443_a(xx, yy, zz);\n/* 55 */ Vec3 ve = Vec3.func_72443_a(this.tX, this.tY, this.tZ);\n/* 56 */ Vec3 vc = Vec3.func_72443_a(xx, yy, zz);\n/* */ \n/* 58 */ this.length = ((float)ve.func_72433_c());\n/* 59 */ Vec3 vv = Utils.calculateVelocity(vs, ve, hg, gravity);\n/* 60 */ double l = Utils.distanceSquared3d(Vec3.func_72443_a(0.0D, 0.0D, 0.0D), vv);\n/* */ \n/* 62 */ this.points.add(vs);\n/* */ \n/* 64 */ int c = 0;\n/* 65 */ while ((Utils.distanceSquared3d(ve, vc) > l) && (c < 50))\n/* */ {\n/* 67 */ Vec3 vt = vc.func_72441_c(vv.field_72450_a, vv.field_72448_b, vv.field_72449_c);\n/* 68 */ vc = Vec3.func_72443_a(vt.field_72450_a, vt.field_72448_b, vt.field_72449_c);\n/* 69 */ vt.field_72450_a += (this.field_70146_Z.nextDouble() - this.field_70146_Z.nextDouble()) * noise;\n/* 70 */ vt.field_72448_b += (this.field_70146_Z.nextDouble() - this.field_70146_Z.nextDouble()) * noise;\n/* 71 */ vt.field_72449_c += (this.field_70146_Z.nextDouble() - this.field_70146_Z.nextDouble()) * noise;\n/* 72 */ this.points.add(vt);\n/* 73 */ vv.field_72448_b -= gravity / 1.9D;\n/* 74 */ c++;\n/* */ }\n/* */ \n/* 77 */ this.points.add(ve);\n/* */ }", "title": "" }, { "docid": "eeb0b1e509daf197432746226d35a979", "score": "0.4824931", "text": "public static <T> T lerpFunc(@MinLength(3) float[] v1, Tup3fR v2, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1[0], v1[1], v1[2], v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "542228765bcc0a59182f15548fdcde6d", "score": "0.48183128", "text": "public YoMiniJerkUpAndDownAlphaToAlpha(YoDouble startOfRampUp, YoDouble endOfRamp, YoDouble startOfRampDown, YoDouble endOfRampDown)\n {\n this.startOfRampUp = startOfRampUp;\n this.endOfRamp = endOfRamp;\n this.startOfRampDown = startOfRampDown;\n this.endOfRampDown = endOfRampDown;\n\n minimumJerkTrajectory = new MinimumJerkTrajectory();\n }", "title": "" }, { "docid": "0348332a9b0979e9205489ba61fe68c5", "score": "0.48162872", "text": "private float getB1(float t)\r\n\t{\r\n\t\treturn (-2.0f*t*t + 2*t + 1 )/2.0f;\r\n\t}", "title": "" }, { "docid": "d4da6cca88d6ee2ffcd94ac40bffbfcb", "score": "0.4815509", "text": "private float getB0(float t)\r\n\t{\r\n\t\treturn ( t*t - 2.0f*t + 1.0f )/2.0f;\r\n\t}", "title": "" }, { "docid": "c82321a66bd200ee04c22ce1e0d33277", "score": "0.48074067", "text": "public void setAlpha(int x, int y, int alpha){\n pixels[x+(y*width)] = (alpha<<24) | (pixels[x+(y*width)] & 0x00FFFFFF);\n updateImagePixelAt(x,y);\n }", "title": "" }, { "docid": "af7dc450fad3fcc16d21bc996eeafe42", "score": "0.480728", "text": "static float easeInOutExpo(float t)\n\t{\n\t if (t==0.0) return 0.0f;\n\t if (t==1.0) return 1.0f;\n\t t*=2.0;\n\t if (t < 1) return 0.5f * (float)Math.pow(2.0f, 10 * (t - 1)) - 0.0005f;\n\t return 0.5f * 1.0005f * (-(float)Math.pow(2.0f, -10 * (t - 1)) + 2);\n\t}", "title": "" }, { "docid": "fd671a66b06859d9cf66816fe9cd1cb2", "score": "0.48030517", "text": "public static <T> T lerpFunc(Tup3fR v1, @MinLength(3) float[] v2, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1.getV0(), v1.getV1(), v1.getV2(), v2[0], v2[1], v2[2], alpha, res);\n\t}", "title": "" }, { "docid": "619575e66579d2a08c85715e60872b51", "score": "0.47977135", "text": "private void m89923L() {\n ArrayList<EffectPointModel> arrayList = this.f72396ac;\n if (!arrayList.equals(this.f72422w) && this.f72422w != null && arrayList.size() > this.f72422w.size()) {\n int[] iArr = new int[(arrayList.size() - this.f72422w.size())];\n for (int i = 0; i < iArr.length; i++) {\n iArr[i] = ((EffectPointModel) arrayList.get(this.f72422w.size() + i)).getIndex();\n }\n this.f72401b.setValue(C47479s.m148208a(iArr));\n }\n if (this.f72395ab != null) {\n this.f72403d.setValue(this.f72395ab.clone());\n } else {\n this.f72403d.setValue(C47520y.m148314a());\n }\n C47516v vVar = null;\n if (this.f72394aa != null) {\n this.f72419t = this.f72394aa.clone();\n } else {\n this.f72419t = null;\n }\n if (\"time_effect\".equals(this.f72421v)) {\n this.f72405f.mo70427a(true);\n if (this.f72395ab != null) {\n C47520y yVar = (C47520y) this.f72403d.getValue();\n if (yVar.f121995a.equals(\"1\")) {\n this.f72372F.setValue(Boolean.valueOf(true));\n this.f72405f.mo70429b(0, 1);\n this.f72405f.getSelelctLayout().setVisibility(8);\n this.f72405f.setOverlayColor(this.f72411l);\n } else if (yVar.f121995a.equals(\"2\")) {\n this.f72405f.setOverlayColor(this.f72412m);\n m89930a(2, this.f72405f.getTvSelelct());\n this.f72405f.mo70429b((int) yVar.f121996b, 2);\n this.f72405f.getSelelctLayout().setVisibility(0);\n vVar = C47516v.m148298b(0);\n this.f72405f.mo70428b(0);\n } else if (yVar.f121995a.equals(\"3\")) {\n this.f72405f.setOverlayColor(this.f72412m);\n m89930a(3, this.f72405f.getTvSelelct());\n this.f72405f.mo70429b((int) yVar.f121996b, 2);\n this.f72405f.getSelelctLayout().setVisibility(0);\n vVar = C47516v.m148298b(0);\n this.f72405f.mo70428b(0);\n } else if (yVar.f121995a.equals(\"0\")) {\n this.f72405f.getSelelctLayout().setVisibility(8);\n this.f72405f.setOverlayColor(this.f72412m);\n }\n if (vVar != null) {\n this.f72402c.setValue(vVar);\n }\n return;\n }\n this.f72405f.mo70429b(0, 1);\n this.f72405f.setOverlayColor(this.f72412m);\n this.f72405f.getSelelctLayout().setVisibility(8);\n return;\n }\n this.f72405f.mo70427a(false);\n this.f72405f.getSelelctLayout().setVisibility(8);\n }", "title": "" }, { "docid": "b0efec5219370d5fe9b9b56e16474267", "score": "0.47975087", "text": "public float transv(float x)\n { \t\n \treturn x * scale_ps* scalesite * corrv + offset;\n }", "title": "" }, { "docid": "6f743095db37fa92622d9731912a83d7", "score": "0.4797087", "text": "private void calculateAcceleration() {\n\n for (int i = 0; i < nAtoms; i++) {\n ax[i] = 0;\n ay[i] = 0;\n }\n\n ePot = 0;\n elasticEnergy = 0;\n for (int i = 0; i < nAtoms - 1; i++) {\n for (int j = i + 1; j < nAtoms; j++) {\n double dx = x[i] - x[j];\n double dy = y[i] - y[j];\n double rij2 = dx * dx + dy * dy;\n\n //if(rij2<rCut) {\n double fr2 = 1. / rij2;\n double fr6 = fr2 * fr2 * fr2;\n double fr = 48 * fr2 * fr6 * (fr6 - 0.5);\n\n ax[i] += fr * dx;\n ay[i] += fr * dy;\n\n ax[j] -= fr * dx;\n ay[j] -= fr * dy;\n ePot += 4*fr6*(fr6-1.0);\n //}\n\n }\n\n }\n\n for (int i=0; i<nAtoms;i++){\n double d = 0;\n if (x[i]<0.5){\n d = 0.5 - x[i];\n ax[i] += wallStiffness * d;\n elasticEnergy += 0.5 * wallStiffness * d * d;\n }\n if (x[i]>(boxWidth - 0.5)){\n d = boxWidth - 0.5 - x[i];\n ax[i] += wallStiffness * d;\n elasticEnergy += 0.5 * wallStiffness * d * d;\n }\n }\n\n for (int i=0; i<nAtoms;i++){\n double d = 0;\n if (y[i]<0.5){\n d = 0.5 - y[i];\n ay[i] += wallStiffness * d;\n elasticEnergy += 0.5 * wallStiffness * d * d;\n }\n if (y[i]>(boxWidth - 0.5)){\n d = boxWidth - 0.5 - y[i];\n ay[i] += wallStiffness * d;\n elasticEnergy += 0.5 * wallStiffness * d * d;\n }\n }\n\n\n }", "title": "" }, { "docid": "7f12bb3358eb38b36b4fbefb889cf11f", "score": "0.47710127", "text": "private void velocityUpdate() {\n this.particles.forEach(p -> {\n // v = (x - x_pre) / dt\n p.velocity = PVector.sub(p.position, p.previousPosition);\n p.velocity = p.velocity.div(dt);\n });\n }", "title": "" }, { "docid": "dab20592d37d51cadf678927ef5b9e4b", "score": "0.47692347", "text": "public Variable cPEFC(Variable va){\r\n\t\tassignSubDomainParams(va);\r\n\t\t\r\n\t\tVariable PEFC=new Variable(\"pefc\",va.isTFirst(),new Range(t,z,y,1));\r\n\t\tPEFC.setUndef(undef);\r\n\t\tPEFC.setCommentAndUnit(\"planetary eddy angular momentum flux (m s^-1 day^-1)\");\r\n\t\t\r\n\t\tfloat[][][] lats=((CylindricalSpatialModel)sm).getLat();\r\n\t\tfloat[][][][] efdata=PEFC.getData();\r\n\t\tfloat[][][][] vadata= va.getData();\r\n\t\t\r\n\t\tif(PEFC.isTFirst()){\r\n\t\t\tfor(int l=0;l<t;l++)\r\n\t\t\tfor(int k=0;k<z;k++){\r\n\t\t\t\t/*** Calculate average ***/\r\n\t\t\t\tfor(int j=0;j<y;j++){\r\n\t\t\t\t\tfloat[] f=new float[x];\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<x;i++)\r\n\t\t\t\t\tf[i]=2*omegaEarth*(float)sin(lats[l][j][i]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint count=0;\tfloat fm=StatisticsUtil.cArithmeticMean(f);\r\n\t\t\t\t\tfor(int i=0;i<x;i++)\r\n\t\t\t\t\tif(vadata[l][k][j][i]!=undef){\r\n\t\t\t\t\t\tefdata[l][k][j][0]+=-(f[i]-fm)*vadata[l][k][j][i];\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(count!=0) efdata[l][k][j][0]*=60f*60f*24f/count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tfor(int l=0;l<t;l++)\r\n\t\t\tfor(int k=0;k<z;k++){\r\n\t\t\t\t/*** Calculate average ***/\r\n\t\t\t\tfor(int j=0;j<y;j++){\r\n\t\t\t\t\tfloat[] f=new float[x];\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<x;i++)\r\n\t\t\t\t\tf[i]=2*omegaEarth*(float)sin(lats[l][j][i]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint count=0;\tfloat fm=StatisticsUtil.cArithmeticMean(f);\r\n\t\t\t\t\tfor(int i=0;i<x;i++)\r\n\t\t\t\t\tif(vadata[k][j][i][l]!=undef){\r\n\t\t\t\t\t\tefdata[k][j][0][l]+=-(f[i]-fm)*vadata[k][j][i][l];\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(count!=0) efdata[k][j][0][l]*=60f*60f*24f/count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tPEFC.getRange().setTRange(va.getRange());\r\n\t\tPEFC.getRange().setYRange(va.getRange());\r\n\t\tPEFC.getRange().setXRange(va.getRange().getXRange()[0]);\r\n\t\tPEFC.getRange().setZRange(va.getRange());\r\n\t\t\r\n\t\treturn PEFC;\r\n\t}", "title": "" }, { "docid": "8b2387f62e3c01c7e52468c816e6fe16", "score": "0.47621128", "text": "protected void altersingle(int alpha, int i, int b, int g, int r)\n {\n \n /* alter hit neuron */\n int[] n = network[i];\n n[0] -= (alpha * (n[0] - b)) / initalpha;\n n[1] -= (alpha * (n[1] - g)) / initalpha;\n n[2] -= (alpha * (n[2] - r)) / initalpha;\n }", "title": "" }, { "docid": "025ac50f50d0abdb6f87dacabc61e05d", "score": "0.4753154", "text": "List<Velocity> initialBallVelocities();", "title": "" }, { "docid": "b1a956de6b87cdd1933331dd014c507f", "score": "0.47439533", "text": "public static <T> T lerpFunc(float v1x, float v1y, float v1z, Tup3fR v2, float alpha, FloatFunction3<T> res)\n\t{\n\t\treturn lerpFunc(v1x, v1y, v1z, v2.getV0(), v2.getV1(), v2.getV2(), alpha, res);\n\t}", "title": "" }, { "docid": "f48e631c01000c2805f567a48530f115", "score": "0.47415006", "text": "protected void updateVelocity(final int i) {\r\n final TransformationSolution particle = particles[i];\r\n final TransformationSolution localBestParticle = localBestParticles[i];\r\n final TransformationSolution leader = selectLeader();\r\n\r\n final int variablesLength = particle.getVariables().length;\r\n\r\n // empty the list\r\n velocities[i].getSwapList().clear();\r\n\r\n // delete some SOs with a probability named gamma\r\n final int swapListLength = velocities[i].getSwapList().size();\r\n for(int j = swapListLength - 1; j >= 0; j--) {\r\n if(PRNG.nextDouble() < gamma) {\r\n velocities[i].getSwapList().remove(j);\r\n }\r\n }\r\n\r\n for(int j = 0; j < variablesLength; j++) {\r\n if(particle.getVariable(j).compareTo(localBestParticle.getVariable(j)) != 0) {\r\n final SwapOperator SO = new SwapOperator(j, localBestParticle.getVariable(j).copy(), alpha);\r\n velocities[i].getSwapList().add(SO);\r\n }\r\n }\r\n for(int j = 0; j < variablesLength; j++) {\r\n if(particle.getVariable(j).compareTo(leader.getVariable(j)) != 0) {\r\n final SwapOperator SO = new SwapOperator(j, leader.getVariable(j).copy(), beta);\r\n velocities[i].getSwapList().add(SO);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "4bd31b30698d7316d0fd3001a9b5a85e", "score": "0.4729874", "text": "@Override\n\t\t\tpublic float getInterpolation(float t)\n\t\t\t{\n\t\t\t\tfinal float inner = (t * 1.55f) - 1.1f;\n\t\t\t\treturn 1.2f - inner * inner;\n\t\t\t}", "title": "" }, { "docid": "532fe5aafa2198b71c4752cd5b2e9c54", "score": "0.47269002", "text": "private void setEqGridAlpha(float alpha) {\r\n for (int i = 3; i < this.colorArray.length; i += 4) {\r\n this.colorArray[i] = alpha;\r\n }\r\n }", "title": "" }, { "docid": "5c8301e18afb50c1915fce9d248a1cdc", "score": "0.47242254", "text": "public void procesar_aceleraciones()\n\t{\n\t\tdouble alpha = 0.8;\n\t\tfor (int i = 0; i < 3; i++)\n\t\t{\n\t\t\tgravity[i] = 0;\n\t\t}\n\t\t // Isolate the force of gravity with the low-pass filter.\n\t\t gravity[0] = alpha * gravity[0] + (1 - alpha) * raw_accel_x;\n\t\t gravity[1] = alpha * gravity[1] + (1 - alpha) * raw_accel_y;\n\t\t gravity[2] = alpha * gravity[2] + (1 - alpha) * raw_accel_z;\n\n\t\t // Remove the gravity contribution with the high-pass filter.\n\t\t accel_x = raw_accel_x - gravity[0];\n\t\t accel_y = raw_accel_y - gravity[1];\n\t\t accel_z = raw_accel_z - gravity[2];\n\t\t\n\t}", "title": "" }, { "docid": "9adae66bf1e40d05e52f807227466d71", "score": "0.4721773", "text": "public void update(float tpf) {\n }", "title": "" }, { "docid": "fdf909fb054f5cece5ce619be6a1633b", "score": "0.47182825", "text": "protected void invTranslate(float tx, float ty, float tz)\n/* */ {\n/* 648 */ preApply(1.0F, 0.0F, 0.0F, -tx, \n/* 649 */ 0.0F, 1.0F, 0.0F, -ty, \n/* 650 */ 0.0F, 0.0F, 1.0F, -tz, \n/* 651 */ 0.0F, 0.0F, 0.0F, 1.0F);\n/* */ }", "title": "" }, { "docid": "99d5f89f0159c068c0455689db183310", "score": "0.47168022", "text": "protected abstract Vector getPoint(double t);", "title": "" }, { "docid": "844c89ef58ddec511c2040a4fe7255fa", "score": "0.47148424", "text": "private void b(int paramInt1, int paramInt2, float paramFloat)\r\n/* 95: */ {\r\n/* 96:106 */ ckx localckx = ckx.getInstance();\r\n/* 97:107 */ VertexBuffer localciv = localckx.getBuffer();\r\n/* 98: */ \r\n/* 99:109 */ this.j.N().a(bub.b);\r\n/* 100:110 */ localciv.begin();\r\n/* 101:111 */ localciv.setColor(1.0F, 1.0F, 1.0F, 1.0F);\r\n/* 102:112 */ int j = this.l;\r\n/* 103:113 */ float f1 = 0.0F - (this.h + paramFloat) * 0.5F * this.s;\r\n/* 104:114 */ float f2 = this.m - (this.h + paramFloat) * 0.5F * this.s;\r\n/* 105:115 */ float f3 = 0.015625F;\r\n/* 106: */ \r\n/* 107:117 */ float f4 = (this.h + paramFloat - 0.0F) * 0.02F;\r\n/* 108: */ \r\n/* 109:119 */ float f5 = (this.r + this.m + this.m + 24) / this.s;\r\n/* 110:120 */ float f6 = (f5 - 20.0F - (this.h + paramFloat)) * 0.005F;\r\n/* 111:121 */ if (f6 < f4) {\r\n/* 112:122 */ f4 = f6;\r\n/* 113: */ }\r\n/* 114:124 */ if (f4 > 1.0F) {\r\n/* 115:125 */ f4 = 1.0F;\r\n/* 116: */ }\r\n/* 117:127 */ f4 *= f4;\r\n/* 118:128 */ f4 = f4 * 96.0F / 255.0F;\r\n/* 119:129 */ localciv.setColor(f4, f4, f4);\r\n/* 120:130 */ localciv.addVertexWithUV(0.0D, this.m, this.e, 0.0D, f1 * f3);\r\n/* 121:131 */ localciv.addVertexWithUV(j, this.m, this.e, j * f3, f1 * f3);\r\n/* 122:132 */ localciv.addVertexWithUV(j, 0.0D, this.e, j * f3, f2 * f3);\r\n/* 123:133 */ localciv.addVertexWithUV(0.0D, 0.0D, this.e, 0.0D, f2 * f3);\r\n/* 124:134 */ localckx.draw();\r\n/* 125: */ }", "title": "" }, { "docid": "a886467b5b048d00c26035b40f392154", "score": "0.4709267", "text": "public void setAlpha(float alpha) {\n\t\t\tthis.alphaComponent = alpha;\n\t\t}", "title": "" }, { "docid": "cd20f238a2996a319903697f1e5fcc4a", "score": "0.46932483", "text": "private double Calculateacceleration(double Vi, double V, double t){\n\t\tdouble acceleration=0;\n\t\t\n\t\tacceleration = V-Vi/Math.pow(t, 2);\n\t\treturn acceleration;\n\t}", "title": "" }, { "docid": "4e8dde7854b9f768dd55b6c857a8b2c2", "score": "0.4685488", "text": "protected abstract Vector getTangent(double t);", "title": "" }, { "docid": "422ba8481d594be6b572ed2fe321a8fe", "score": "0.46709296", "text": "private Point2D curveFunction() {\n\n double x = sin(t) + pow(cos(t/35), 3) * cos(8*t) * 55 / t;\n double y = cos(t) * 2 + cos(2*t) + pow(sin(t/2), 4);\n\n return new Point2D(x, -y).multiply(100);\n }", "title": "" }, { "docid": "673aa94b65e5c9c27c135b67204b87c4", "score": "0.46707287", "text": "@Override\n\tpublic double getValue(double x, double y, double t) {\n\t\treturn 1 - Math.abs( noise.getValue(x, y, t)-0.5 )*2;\n\t}", "title": "" }, { "docid": "5c171ed15ccb762f4d39c0265e276ed3", "score": "0.46683004", "text": "void update(Actor actor, float tpf);", "title": "" }, { "docid": "72f71256ee37d421924d8335cb836d49", "score": "0.4664491", "text": "public float getAlpha()\n\t{\n\t\treturn alpha;\n\t}", "title": "" }, { "docid": "c0d08a7a0fcbff07b8c921073d55da5c", "score": "0.466189", "text": "private void setLPFStaticAlpha(float alpha)\r\n\t{\r\n\t\tthis.lpfStaticAlpha = alpha;\r\n\r\n\t\tif (lowPassFilter != null)\r\n\t\t{\r\n\t\t\tlowPassFilter.setAlpha(this.lpfStaticAlpha);\r\n\t\t}\r\n\r\n\t\t// Update the text views on the UI.\r\n\t\tTextView textViewAlpha = (TextView) this\r\n\t\t\t\t.findViewById(R.id.value_lpf_alpha);\r\n\t\ttextViewAlpha.setText(String.valueOf(this.lpfStaticAlpha));\r\n\t}", "title": "" }, { "docid": "d12c8902f552270399ae15199fd4ba50", "score": "0.46568456", "text": "private void compute(){\n sg = 0.;\r\n tbar = 0.;\r\n g = new double[n];\r\n for(int i = 0; i < n; i++){\r\n g[i] = 1. / Math.pow(deltay[i], 2.);\r\n sg = sg + g[i];\r\n tbar = tbar + g[i] * t[i];\r\n }\r\n tbar = tbar / sg;\r\n// compute b and a for nr = 1\r\n b = new double[nr][nr];\r\n a = new double[n][nr];\r\n b[0][0] = 1. / Math.sqrt(sg);\r\n for(int i = 0; i < n; i++){\r\n a[i][0] = b[0][0];\r\n }\r\n// compute b and a for nr >= 2\r\n if(nr >= 2){\r\n s = 0.;\r\n for(int i = 0; i < n; i++){\r\n s = s + g[i] * Math.pow(t[i] - tbar, 2.);\r\n }\r\n b[1][1] = 1. / Math.sqrt(s);\r\n b[1][0] = - b[1][1] * tbar;\r\n for(int i = 0; i < n; i++){\r\n a[i][1] = b[1][0] + b[1][1] * t[i];\r\n }\r\n } \r\n// compute b and a for nr > 2\r\n if(nr > 2){\r\n for(int j = 2; j < nr; j++){\r\n alpha = 0.;\r\n beta = 0.;\r\n gamma2 = 0.;\r\n for(int i = 0; i < n; i++){\r\n alpha = alpha + g[i] * t[i] * Math.pow(a[i][j-1],2.);\r\n beta = beta + g[i] * t[i] * a[i][j-1] * a[i][j-2];\r\n }\r\n for(int i = 0; i < n; i++){\r\n gamma2 = gamma2 + g[i] * Math.pow((t[i] - alpha) * a[i][j-1] - beta * a[i][j-2], 2.);\r\n }\r\n gamma1 = 1. / Math.sqrt(gamma2);\r\n b[j][0] = gamma1 *( - alpha * b[j-1][0] - beta * b[j-2][0]);\r\n if(j >= 3){\r\n for(int k = 1; k <= j - 2; k++){\r\n b[j][k] = gamma1 *(b[j-1][k-1] - alpha * b[j-1][k] - beta * b[j-2][k]);\r\n }\r\n }\r\n b[j][j-1] = gamma1 * (b[j-1][j-2] - alpha * b[j-1][j-1]);\r\n b[j][j] = gamma1 * b[j-1][j-1];\r\n for(int i = 0; i < n; i++){\r\n a[i][j] = b[j][0];\r\n for(int k = 1; k <= j; k++){\r\n a[i][j] = a[i][j] + b[j][k] * Math.pow(t[i], (double)(k));\r\n }\r\n }\r\n }\r\n }\r\n// compute x and chi2\r\n x = new double[nr];\r\n chi2 = new double[nr];\r\n for(int j = 0; j < nr; j++){\r\n for(int i = 0; i < n; i++){\r\n x[j] = x[j] + g[i] * a[i][j] * y[i];\r\n }\r\n for(int i = 0; i < n; i++){\r\n s = 0.;\r\n for(int k =0; k <= j; k++){\r\n s = s + a[i][k] * x[k];\r\n }\r\n chi2[j] = chi2[j] + g[i] * Math.pow(y[i] - s, 2.);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "867bb2822e0dd1f818b4fa22abaafd43", "score": "0.46461138", "text": "public float getAlpha() {\r\n\t\treturn alpha;\r\n\t}", "title": "" }, { "docid": "be120d67717a00a6d295589018f880ef", "score": "0.46456116", "text": "public static double fade(double t) {\n return t * t * t * (t * (t * 6 - 15) + 10);\t\t\t// 6t^5 - 15t^4 + 10t^3\n }", "title": "" }, { "docid": "76b2bd9fec5c34e46c2c602c4b654d96", "score": "0.46408242", "text": "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onAlphaChange() {\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "0045e6bc7b33cc571882df87a95ad642", "score": "0.4638575", "text": "public void update() {\n orbs_visual += (orbs - orbs_visual) * (1 - (float) Math.pow(lerp, Main.dt));\n //orbs_visual = orbs_visual + (orbs - orbs_visual) * lerpAlpha + (orbs - orbs_visual) * lerpAlpha;\n }", "title": "" }, { "docid": "21b2a54e8fc686414385dacdf47eccc3", "score": "0.46300325", "text": "public void update(double dt,double fx ,double fy){\n\t\t// First step is to calculated the accelerate\n\t\tdouble accX = fx/this.mass;\n\t\tdouble accY = fy/this.mass;\n\t\t// Second step is to calculate the new velocity\n\t\tthis.xxVel = this.xxVel + accX*dt;\n\t\tthis.yyVel = this.yyVel + accY*dt;\n\t\t// Third step is to calculate the new position\n\t\tthis.xxPos = this.xxPos + this.xxVel*dt;\n\t\tthis.yyPos = this.yyPos + this.yyVel*dt;\n\t}", "title": "" }, { "docid": "0a59d1376aa29b661c67611217a59911", "score": "0.46287346", "text": "private void attractParticles(Particle p1, Particle p2) {\n\n float dx = p1.positionX - p2.positionX;\n float dy = p1.positionY - p2.positionY;\n float dist = (float) Math.sqrt(dx * dx + dy * dy);\n\n if (dist <= particleSettings.lineDistance) {\n\n float ax = dx / (particleSettings.attractRotateX * 1000);\n float ay = dy / (particleSettings.attractRotateY * 1000);\n\n p1.velocityX -= ax;\n p1.velocityY -= ay;\n\n p2.velocityX += ax;\n p2.velocityY += ay;\n }\n\n }", "title": "" }, { "docid": "3cf08be0180f4dbc9c67d13e3544c5da", "score": "0.46269095", "text": "public double[] getParticleVelocity2D(Particle p, int triangleID, double[] tofillVelocity, double[] tofillBarycentric) {\n if (timeInterpolatedValues) {\n// if (actualVelocity == null) {\n// actualVelocity = new double[triangleNodes.length][];\n// }\n if (!actualVelocitySet[triangleID]) {\n synchronized (actualVelocity[triangleID]) {\n if (!actualVelocitySet[triangleID]) {\n float[] vt_t = getTriangleVelocity(triangleID, timeIndexInt);//triangleID, timeIndexInt, (float) timeFrac, toFillSurfaceVelocity[0][0]);\n float[] vt_tp = getTriangleVelocity(triangleID, timeIndexInt + 1);//triangleID, timeIndexInt, (float) timeFrac, toFillSurfaceVelocity[0][0]);\n// tofillVelocity[0] = vt_t[0] + (vt_tp[0] - vt_t[0]) * timeFrac;\n// tofillVelocity[1] = vt_t[1] + (vt_tp[1] - vt_t[1]) * timeFrac;\n actualVelocity[triangleID][0] = vt_t[0] + (vt_tp[0] - vt_t[0]) * timeFrac;\n actualVelocity[triangleID][1] = vt_t[1] + (vt_tp[1] - vt_t[1]) * timeFrac;\n\n// actualVelocity[triangleID][0] = tofillVelocity[0];\n// actualVelocity[triangleID][1] = tofillVelocity[1];\n actualVelocitySet[triangleID] = true;\n actualVelocityUsed = true;\n }\n }\n }\n tofillVelocity[0] = actualVelocity[triangleID][0];\n tofillVelocity[1] = actualVelocity[triangleID][1];\n\n } else {\n float[] vt_t = getTriangleVelocity(triangleID, timeIndexInt);\n tofillVelocity[0] = vt_t[0];\n tofillVelocity[1] = vt_t[1];\n }\n return tofillVelocity;\n }", "title": "" } ]
ea58af030c9b4f1072ef9ee9aa53ae60
this method adds the order by statements to the query model
[ { "docid": "65846519c55d92c6da3c4f5b21e4eab2", "score": "0.7062411", "text": "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "title": "" } ]
[ { "docid": "45b846177b001323b923e8d54beec705", "score": "0.70872843", "text": "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "title": "" }, { "docid": "dbf9847547916e9bf8a9c3b6c11c82c9", "score": "0.7077213", "text": "OrderByClause createOrderByClause();", "title": "" }, { "docid": "d54eda88b90af24050abd442c532ead8", "score": "0.68467194", "text": "protected void prepareOrderBy(String query, QueryConfig config) {\n }", "title": "" }, { "docid": "c86aa3c1da89692fe8eb0c4c14bbec38", "score": "0.6693314", "text": "OrderByClauseArgs createOrderByClauseArgs();", "title": "" }, { "docid": "74967d2d13cf7c29173e4fdc99d836d3", "score": "0.66781896", "text": "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "4b9a5b96320c982efe0cb166a9f767a1", "score": "0.6569838", "text": "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "title": "" }, { "docid": "729c42dfb6ceb84c7236f31377646b98", "score": "0.65543216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4e86dab859f430e298b8a7210432407d", "score": "0.6547216", "text": "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "title": "" }, { "docid": "4a98b33109c90ebd6c0dbaea7032a2e9", "score": "0.6519816", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "4a98b33109c90ebd6c0dbaea7032a2e9", "score": "0.6519816", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "980a8a72a792945dc294bc3895f39bc0", "score": "0.6476985", "text": "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" }, { "docid": "8ed89bddfe8a674e91ee7b09b66f9504", "score": "0.6470471", "text": "public String getOrderByClause() {\n return orderByClause;\n }", "title": "" } ]
b82a48b5a24b586620c67d94634a5ccf
skip header of csv file
[ { "docid": "fa65d5f2b6d0aa394f02b4fcb77f9e82", "score": "0.0", "text": "public void map(LongWritable key, Text value, OutputCollector<WeekBoroughWritable, IntWritable> output,\n\t\t\tReporter reporter) throws IOException {\n\t\tif (key.get() == 0)\n\t\t\treturn;\n\t\tString line = value.toString();\n\t\tString[] parts = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\", -1);\n\t\t// discard not legal lines\n\t\tif (parts.length < 29)\n\t\t\treturn;\n\t\t// count casualties\n\t\tint killed = Integer.valueOf(parts[CSV.NUMBER_OF_PERSONS_KILLED]);\n\t\t// get borough\n\t\tString borough = parts[CSV.BOROUGH];\n\t\t// discard missing borough\n\t\tif (borough.length()==0)\n\t\t\treturn;\n\t\t// obtain week number and year\n\t\tDate date = new Date();\n\t\tString format = \"MM/dd/yyyy\";\n\t\tSimpleDateFormat df = new SimpleDateFormat(format);\n\t\ttry {\n\t\t\tdate = df.parse(parts[CSV.DATE]);\n\t\t} catch (ParseException e) {\n\t\t\t// cannot understand date!\n\t\t\treturn;\n\t\t}\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tint week = cal.get(Calendar.WEEK_OF_YEAR);\n\t\tint year = cal.get(Calendar.YEAR);\n\t\toutput.collect(new WeekBoroughWritable(week, year, borough), new IntWritable(killed>0?1:0));\n\t\t// value is 1 if accident is letal, 0 otherwise\n\t}", "title": "" } ]
[ { "docid": "e75c59dcf47124eb0a911ab1450e3ed5", "score": "0.6747277", "text": "public static void skipHeader(Scanner chessFile, String filename, int headerLength) throws FileNotFoundException\r\n\t{\r\n\t\tfor (int i = 0; i < headerLength; ++i)\r\n\t\t{\r\n\t\t\tchessFile.nextLine();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6bcbb581f9ed425b62949ac27906347f", "score": "0.6453035", "text": "private void header() {\n csvData.getHeader().add(name());\n// List<String> names = new ArrayList<>();\n// names.add(name());\n String str = null;\n while (true) {\n str = COMMA();\n if (str != null) {\n csvData.getHeader().add(name());\n } else {\n break;\n }\n }\n System.out.println(csvData.getHeader());\n }", "title": "" }, { "docid": "26d25b5f0eed6c4158f60b325c7630a3", "score": "0.6040246", "text": "public void dumpRecordCsvHeader(Writer writer) throws IOException\n {\n writer.write(\"dateTime, lat, lon, dist, cycles, heading, speed, intSpeed, movement, calories,\"); \n writer.write(\"status, ele1, ele2, eleCorr, cumEle1, cumEle2,\");\n writer.write(\"heartrate,\");\n writer.write(\"ehpe, evpe,hdop,\");\n writer.write(\"battery,\");\n writer.write(\"unknownint1, unknownint2,unknownint3,unknownint4,unknownint5,unknownint6,unknwonfloat1,unknownfloat2\");\n writer.write(\"\\n\");\n }", "title": "" }, { "docid": "e26449f795d94dadec1bd7924aabffc5", "score": "0.59208804", "text": "public void skipNextField() throws IOException {\n // Not a known use case for LazyBinary -- so don't optimize.\n readNextField();\n }", "title": "" }, { "docid": "97fb38ec4efa3dd4c5325b49aeeb4e0a", "score": "0.59047455", "text": "public void resetHeader() {\n if (writer != null && writer.isPaused()) {\n return;\n }\n super.resetHeader();\n }", "title": "" }, { "docid": "31810e656d8b281ae61cd4ff686ccd46", "score": "0.585555", "text": "@Test\n public void whenFieldNamesAreNotSpecified_thenTheyShouldBeRetrievedFromTheHeaderRecord() throws Exception {\n\n Path dataSource = Paths.get(\"src/test/resources/persons_with_header.csv\");\n\n RecordCollector<Person> recordCollector = new RecordCollector<>();\n Job job = JobBuilder.aNewJob()\n .reader(new FlatFileRecordReader(dataSource))\n .mapper(new DelimitedRecordMapper<>(Person.class))\n .processor(recordCollector)\n .build();\n\n JobReport jobReport = new JobExecutor().execute(job);\n\n assertThat(jobReport).isNotNull();\n assertThat(jobReport.getMetrics().getErrorCount()).isEqualTo(1);\n assertThat(jobReport.getMetrics().getFilterCount()).isEqualTo(0);\n assertThat(jobReport.getMetrics().getWriteCount()).isEqualTo(2);\n assertThat(jobReport.getStatus()).isEqualTo(JobStatus.COMPLETED);\n assertThat(jobReport.getMetrics().getReadCount()).isEqualTo(3);\n\n List<Record<Person>> records = recordCollector.getRecords();\n assertPersons(Utils.extractPayloads(records));\n\n }", "title": "" }, { "docid": "06a60f4f93da4972ad6f17c15819b2fd", "score": "0.5808706", "text": "private void verifyHeader(DelimitedFileReader reader) throws IOException {\n assertTrue(reader.hasNextLine());\n List<String> header = reader.nextLine();\n getColumnNamesFromHeader(header);\n }", "title": "" }, { "docid": "b6950847770ddca7220bfea000f8fdde", "score": "0.5694468", "text": "private static void skipLines(Scanner inFile, int lineNum) {\r\n\t\tfor (int i = 0; i < lineNum; i++) {\r\n\t\t\tif (inFile.hasNextLine())\r\n\t\t\t\tinFile.nextLine();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "83805f26af6a3e80da9897c656eacf9e", "score": "0.56498575", "text": "private void SelectFineCSV(ArrayList<File> csvFiles){\n\t\tArrayList<File> tmparr = new ArrayList<File>();\n\n\t\tfor(File a : csvFiles){\n\t\t\ttry{\n\t\t\t\tfr =new FileReader(a);\n\t\t\t\tbr = new BufferedReader(fr);\n\t\t\t\tbr.readLine();\n\t\t\t\tString str= br.readLine();\n\t\t\t\tif(str.equals(INITIAL.getCsvHeader()) && a.canRead() ){ // TODO is im really need the a.canRead()??\n\t\t\t\t\ttmparr.add(a);\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t\tcsvFiles = tmparr;\n\t}", "title": "" }, { "docid": "169ef0114edafcb4afdc0c26d11b4d5b", "score": "0.56450003", "text": "@Test\n public void TestFetchDataSkip() throws IOException {\n EntityBlockReader v = (EntityBlockReader)conn.run(\"table(1..222288 as id,take(`Q`EW`,222288) as sym, take(date([1,NULL]),222288) as date)\",(ProgressListener) null,4,4,10000);\n v.skipAll();\n assertFalse(v.hasNext());\n }", "title": "" }, { "docid": "e795b253665bf6a94d0b66b972a392fb", "score": "0.56412524", "text": "public final void skipRestOfLine() {\n\t\tint charactersInFile = fileStorageObj.getCharactersInFile();\n\t\tboolean endOfLineFound = false;\n\n\t\tif (position < charactersInFile) {\n\t\t\tdo {\n\t\t\t\tchar currentCharacter = fileStorageObj.readCharacterAt(position);\n\t\t\t\tif (position == charactersInFile -1) {\n\t\t\t\t\tendOfLineFound = true;\n\t\t\t\t\tendOfDictionaryReached = true;\n\t\t\t\t}\n\t\t\t\telse if (currentCharacter == '\\n') {\n\t\t\t\t\tcolumnNumber = 0;\n\t\t\t\t\tendOfLineFound = true;\n\t\t\t\t\t++position;\n\t\t\t\t} else {\n\t\t\t\t\t++position;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (!endOfLineFound);\n\t\t}\n\t}", "title": "" }, { "docid": "9f524608f19a4e6202295fc7648678fd", "score": "0.5611518", "text": "@Test\n public void testCSVWithoutRecordId() throws IOException, UnsupportedDataFileException {\n DataFile dataFile = org.gbif.validation.TestUtils.getDataFile(TEST_NO_ID_CSV_FILE_LOCATION, \"no-id\",\n FileFormat.TABULAR);\n\n DwcDataFile dwcFile = prepareDataFile(dataFile, folder.newFolder().toPath());\n Optional<List<ValidationResultElement>> result = prerequisiteEvaluator.evaluate(dwcFile);\n\n assertTrue(result.isPresent());\n assertEquals(EvaluationType.CORE_ROWTYPE_UNDETERMINED, getFirstValidationIssue(result.get()).getIssue());\n }", "title": "" }, { "docid": "afe50992d943c86318e94be7e8465864", "score": "0.55723", "text": "public BlobSource withSkipHeaderLineCount(Object skipHeaderLineCount) {\n this.skipHeaderLineCount = skipHeaderLineCount;\n return this;\n }", "title": "" }, { "docid": "6d19954e7b64509497655edef0231ab7", "score": "0.556088", "text": "public String csvHeader() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// the first header field is empty\n\t\tsb.append(delimiter);\n\t\tfor (int col = 0; col < colAmount; col++) {\n\t\t\tsb.append(colsToColNames.get(col));\n\t\t\tsb.append(delimiter);\n\t\t}\n\t\tsb.setLength(sb.length() - 1);\n\t\tsb.append('\\n');\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "0640ff1b8214ec5ee26f7b350974971d", "score": "0.5527169", "text": "boolean skip();", "title": "" }, { "docid": "0f1585950ab0435e5ffcfc144928db85", "score": "0.5527105", "text": "public Object skipHeaderLineCount() {\n return this.skipHeaderLineCount;\n }", "title": "" }, { "docid": "f1b5023f3fcfddf4002022f35dfa628b", "score": "0.5501202", "text": "public void skip() {\n skipping = true;\n }", "title": "" }, { "docid": "0de4d652a36b59852c31326442cc97cf", "score": "0.54436874", "text": "public void readAllExceptFirstLine_CommonsCSV(String filePath) {\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\t// Integers which contain the choices\r\n\t\t\tint menuNumber = -1;\r\n\t\t\tint sideNumber = -1;\r\n\t\t\tint drinkNumber = -1;\r\n\t\t\t\r\n\t\t\t// String of summary\r\n\t\t\tString orderLine = null;\r\n\t\t\t\r\n\t\t\t// Various choices\r\n\t\t\tString[] menus = {\"Menu Poulet\", \"Menu Boeuf\", \"Menu Végétarien\"};\r\n\t\t\tString[] side = {\" avec des légumes frais\", \" avec des frites\", \" avec du riz\"};\r\n\t\t\tString[] sideVegetarian = {\" avec des légumes frais\",\" avec du riz\", \" sans riz\"};\r\n\t\t\tString[] drink = {\" et avec de l'eau plate\", \" et avec de l'eau gazeuse\", \" et avec du soda\"};\r\n\t\t\t\r\n\t\t\tReader in = new FileReader(filePath);\r\n\t\t\tIterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in);\r\n\t\t\t\t\t\t\r\n\t\t\tfor (CSVRecord record : records) {\r\n\t\t\t\t\r\n\t\t\t\t// Conversion String to integer\r\n\t\t\t\tmenuNumber = Integer.parseInt(record.get(\"menu\"));\r\n\t\t\t\tsideNumber = Integer.parseInt(record.get(\"accompagnement\"));\r\n\t\t\t\tdrinkNumber = Integer.parseInt(record.get(\"boisson\"));\r\n\r\n\t\t\t\t// MENU and SIDE: If the menu is the vegetarian menu\r\n\t\t\t\tif (menuNumber == 3)\r\n\t\t\t\t\torderLine = menus[menuNumber-1] + sideVegetarian[sideNumber-1];\r\n\t\t\t\telse\r\n\t\t\t\t\torderLine = menus[menuNumber-1] + side[sideNumber-1];\r\n\r\n\t\t\t\t// DRINK: For all the menus except the beef menu\r\n\t\t\t\tif (drinkNumber != -1 && menuNumber != 2) orderLine += drink[drinkNumber];\r\n\t\t\t\t\r\n\t\t\t\t// Display of the order line\r\n\t\t\t\tSystem.out.println(orderLine);\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Impossible de trouver le fichier order.csv\");\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Une erreur est survenue, veuillez rééssayer plus tard!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fc1ad27b3511fd4ae8f19f2a93a726ce", "score": "0.5401847", "text": "public String[] getCsvHeader() {\n\t\treturn csvHeader;\n\t}", "title": "" }, { "docid": "721f421c5cbeb04283f3f0d69ac9d634", "score": "0.53973424", "text": "protected void skipLines(Scanner inputStream) {\n\t}", "title": "" }, { "docid": "c8aadd0585d44883f8731cab3760bdbc", "score": "0.53769815", "text": "@Override\n\tprotected void setHeaders() throws YADAIOException\n\t{\n\t\tString line = \"\";\n\t\tStringBuffer fh = new StringBuffer();\n\t\t\n\t\tboolean areHeadersSet = false;\n\t\t\n\t\ttry\n\t\t{\n\t\t\twhile(!areHeadersSet && (line = ((BufferedReader)this.reader).readLine()) != null)\n\t\t\t{\n\t\t\t\tMatcher m = COL_HEAD_RX.matcher(line);\n\t\t\t\tif(m.matches())\n\t\t\t\t{\n\t\t\t\t\tareHeadersSet = true;\n\t\t\t\t\tsetColumnHeader(line);\n\t\t\t\t\tsetFileHeader(fh.toString());\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfh.append(line);\n\t\t\t\t\tfh.append(NEWLINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetColHeaderArray();\n\t\t\tsetFileHeaderMap();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tthrow new YADAIOException(e.getMessage(),e);\n\t\t}\n\t}", "title": "" }, { "docid": "606f71a4e5eb25bb92711879d348cad2", "score": "0.53755283", "text": "public void testHeaderList() throws IOException\n {\n DataFile df = null;\n File file = new File(\"headerlist-test.csv\");\n file.deleteOnExit();\n\n df = DataFileFactory.createWriter(\"8859_1\", false);\n df.setDataFormat(new CSVFormat());\n df.open(file);\n\n // add headers\n DataRow row = df.next();\n row.add(\"col 1\");\n row.add(\"col 2\");\n row.add(\"abc\");\n row = df.next();\n row.add(1);\n row.add(2);\n row.add(3);\n df.close();\n\n df = DataFileFactory.createReader(\"8859_1\");\n df.containsHeader(true);\n df.open(file);\n List headers = df.getHeaderList();\n assertEquals(\"col 2\", headers.get(1));\n assertEquals(\"col 1\", headers.get(0));\n assertEquals(\"abc\", headers.get(2));\n row = df.next();\n assertEquals(3, row.getInt(\"abc\"));\n assertEquals(2, row.getInt(\"col 2\"));\n assertEquals(1, row.getInt(\"col 1\"));\n df.close();\n }", "title": "" }, { "docid": "927a21aa4303dd7a33015a151fb26219", "score": "0.537447", "text": "public void testAtEntryPointLevelCSV() {\n JSefaTestUtil.assertRepeatedRoundTripSucceeds(CSV, createSubDTO());\n }", "title": "" }, { "docid": "74e7c56dd7f9e7ae1e76ac6b86f6ed9f", "score": "0.5373241", "text": "public void readCSV(BufferedReader reader) throws IOException {\n boolean header=false; //added by Chip, May 2, 2014;\n boolean tsv = false; //added by Chip, May 2, 2014;\n\n String line = null;\n int row = 0;\n if (rowCount == 0) {\n setRowCount(10);\n }\n //int prev = 0; //-1;\n try {\n while ( (line = reader.readLine ()) != null) {\n //added by Chip, May 2, 2014 to ignore lines that are comments\n if (line.charAt(0) == '%') {\n //println(\"Table_CSV: readCSV: ignoring commented line...\");\n continue;\n }\n\n if (row == getRowCount()) {\n setRowCount(row << 1);\n }\n if (row == 0 && header) {\n setColumnTitles(tsv ? PApplet.split(line, '\\t') : splitLineCSV(line));\n header = false;\n } \n else {\n setRow(row, tsv ? PApplet.split(line, '\\t') : splitLineCSV(line));\n row++;\n }\n\n // this is problematic unless we're going to calculate rowCount first\n if (row % 10000 == 0) {\n /*\n if (row < rowCount) {\n int pct = (100 * row) / rowCount;\n if (pct != prev) { // also prevents \"0%\" from showing up\n System.out.println(pct + \"%\");\n prev = pct;\n }\n }\n */\n try {\n // Sleep this thread so that the GC can catch up\n Thread.sleep(10);\n } \n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n } \n catch (Exception e) {\n throw new RuntimeException(\"Error reading table on line \" + row, e);\n }\n // shorten or lengthen based on what's left\n if (row != getRowCount()) {\n setRowCount(row);\n }\n }", "title": "" }, { "docid": "435052bdba3c28b9a877111184a45f53", "score": "0.5365296", "text": "public CSVReader withHeader(final boolean readHeader){\n this.hasHeader = readHeader;\n return this;\n }", "title": "" }, { "docid": "2dc9e371200d3b38ead8c5b0195fcd67", "score": "0.5321278", "text": "public static void main(String[] args) {\n\n System.out.println(\"Read Data Line by Line With Header \\n\");\n readDataLineByLine(CSV_FILE_PATH);\n System.out.println(\"_______________________________________________\");\n\n // System.out.println(\"Read All Data at Once and Hide the Header also \\n\");\n // readAllDataAtOnce(CSV_FILE_PATH);\n // System.out.println(\"_______________________________________________\");\n\n //System.out.println(\"Custom Seperator here semi-colon\\n\");\n // readDataFromCustomSeperator(CSV_FILE_CUSTOM_SEPERATOR);\n // System.out.println(\"_______________________________________________\");\n }", "title": "" }, { "docid": "dd2c96e1ae5b54436e7c1e3190b004ff", "score": "0.5304698", "text": "@Test\n public void testSomeMethod9() throws IOException\n {\n UserSettings settings = new CsvReader.UserSettings();\n settings.setSkipEmptyLines(true);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(\"head1\\n\\\"\\\"\\n\\\"value\\\"\".getBytes());\n CsvReader instance = new CsvReader(inputStream, settings);\n for (Map<String, String> line : instance) {\n assertThat(line.get(\"head1\"), is(\"value\"));\n assertThat(line.size(), is(1));\n assertThat(instance.getCurrentLineNumber(), is(1L));\n }\n assertThat(instance.getCurrentLineNumber(), is(1L));\n }", "title": "" }, { "docid": "9332c76872c6acda59221f70466b27ab", "score": "0.53031373", "text": "int skip();", "title": "" }, { "docid": "50e8494b1ae5e0f3312f0d602acfe87b", "score": "0.52991825", "text": "@Override\n\tpublic void skipTo(WritableComparableKey key) throws IOException {\n\t}", "title": "" }, { "docid": "bafe53193791bd92b6b48c2f3271be61", "score": "0.52802896", "text": "private void clearCsvLines() {\n this.csvLines_ = GeneratedMessageLite.emptyProtobufList();\n }", "title": "" }, { "docid": "b6b8e4110ecf3d0085d8d89ed5d176a2", "score": "0.5273493", "text": "public void Skip() {\n erroSintatico(\"Ocorreu a execução da recuperação de erro pelo método Skip\");\n advance();\n }", "title": "" }, { "docid": "8462aa5cb0b4572a50c6faf146e211c8", "score": "0.52697295", "text": "public static void write_csv_header(FileWriter out_csv) throws IOException {\n\t\tout_csv.append(\"ID\");\n out_csv.append(\",\");\n out_csv.append(\"Type\");\n out_csv.append(\",\");\n out_csv.append(\"Name\");\n out_csv.append(\",\");\n out_csv.append(\"Latitude\");\n out_csv.append(\",\");\n out_csv.append(\"Longitude\");\n out_csv.append(\"\\n\");\n\t}", "title": "" }, { "docid": "81b8e2cbd81c02b5c696a71e2ba66916", "score": "0.5269127", "text": "public void extractFeaturesFromCSVHeader(String header, int first, int removeFromLast, String outputFullPath, String separator) throws IOException{\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(outputFullPath));\n\t\t//prepare the output\n\t\tString[] split = header.split(separator);\n\t\tint j = 0;\n\t\tfor(int i=first; i<(split.length-removeFromLast); i++){\n\t\t\tthis.addLine(\"feature \"+j+\",\"+split[i], out);\n\t\t\tj++;\n\t\t}\n\t\tout.close();\n\t}", "title": "" }, { "docid": "be92c81e918ff5fea8bf15b5ab651a9b", "score": "0.52608216", "text": "public void writeHeader(){\n\t\t//Same header as input file this filter doesn't change it.\n\t\toutput.push(header);\n\t}", "title": "" }, { "docid": "0e9bc60dba53d4452cec4d4906dcfa07", "score": "0.5224858", "text": "@Override\n\tpublic Iterator extractAllHeaderElements() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c62166068a8c6add452755ad25a970ec", "score": "0.5201252", "text": "default boolean skip() {\n return skip(1) > 0;\n }", "title": "" }, { "docid": "294b51d7927461a2d3388c7e69148c56", "score": "0.5179663", "text": "@Test( expected = IllegalArgumentException.class )\n\tpublic void skip1() throws Exception\n\t{\n\t\tFlexBuffer buf = new FlexBuffer();\n\t\tbuf.skip(-1, false);\n\t}", "title": "" }, { "docid": "a2ec7dc0daf096b42e7e134359dec419", "score": "0.51738584", "text": "public void resetHeader() {\n }", "title": "" }, { "docid": "75d28125274abf5b88dec9f640084384", "score": "0.51658404", "text": "@Override\n public void decompressCSV(String compressedCsvFilePath, boolean containsHeader, boolean quoted) {\n\n int index, rowsN, columnsN, currentPositionInFile;\n long bufStart, bufSize, fileSize, byteCounter = 0;\n byte n;\n\n FileChannel fileChannel = null;\n MappedByteBuffer IO = null;\n FenwickTreeFile fwt = null;\n PrintWriter pw = null;\n Queue<DecompressionWrapper> queues[];\n\n try {\n\n String header = null;\n\n if (containsHeader) {\n FilePreProcessor f = new FilePreProcessor(compressedCsvFilePath);\n header = f.removeHeaders(containsHeader);\n }\n\n rowsN = Analytics.rows(compressedCsvFilePath);\n columnsN = Analytics.columns(compressedCsvFilePath);\n\n fileChannel = new RandomAccessFile(compressedCsvFilePath, \"rw\").getChannel();\n fileSize = Files.size(Paths.get(compressedCsvFilePath));\n bufStart = 0;\n bufSize = fileSize < 100 * 1024 * 1024 ? fileSize : 100 * 1024 * 1024;\n\n IO = fileChannel.map(FileChannel.MapMode.READ_ONLY, bufStart, bufSize);\n\n queues = new LinkedList[columnsN];\n for (int i = 0; i < queues.length; i++) {\n queues[i] = new LinkedList<>();\n }\n\n IO.rewind();\n\n StringBuilder sb = new StringBuilder(256);\n index = 0;\n currentPositionInFile = 0;\n\n while (IO.hasRemaining()) {\n\n n = IO.get();\n\n if ((char) n == ',') {\n\n currentPositionInFile += sb.length();\n queues[index].add(new DecompressionWrapper(sb.toString()));\n sb.setLength(0);\n index = (index + 1) % columnsN;\n\n } else if ((char) n == OS_Properties.LINE_SEPARATOR.charAt(OS_Properties.OS_LS_INDEX)) {\n\n currentPositionInFile += sb.length();\n queues[index].add(new DecompressionWrapper(sb.toString()));\n sb.setLength(0);\n index = (index + 1) % columnsN;\n break;\n\n } else if (!OS_Properties.LINE_SEPARATOR.contains(String.valueOf((char) n))) {\n sb.append((char) n);\n }\n }\n\n StringBuilder sb2 = new StringBuilder(50 * 1024);\n DecompressionWrapper reference;\n String decompressedOutputFile = compressedCsvFilePath.replaceAll(\".csvcomp\", \"_d.csv\");\n File a = new File(decompressedOutputFile);\n a.createNewFile();\n pw = new PrintWriter(new FileWriter(a));\n\n fwt = new IndexingUnit(compressedCsvFilePath, rowsN, columnsN).getIndexedCommas();\n\n int[] lastIndex = new int[queues.length];\n for (int i = 0; i < lastIndex.length; i++) {\n lastIndex[i] = i;\n }\n\n SimpleBitMap bitmap = new SimpleBitMap(columnsN);\n while (bitmap.getCardinality() < bitmap.getSize()) {\n\n int min = Integer.MAX_VALUE, minPos = -1;\n\n for (int i = 0; i < queues.length; i++) {\n if (!queues[i].isEmpty()) {\n int count = queues[i].peek().count;\n if (count < min) {\n min = count;\n minPos = i;\n }\n }\n }\n\n if (minPos == -1) {\n break;\n }\n\n reference = queues[minPos].peek();\n\n while (reference.count > 0) {\n\n for (int i = 0; i < queues.length; i++) {\n if (!queues[i].isEmpty()) {\n\n sb2.append(queues[i].peek().getText());\n queues[i].peek().count--;\n\n if (i >= 0 && i < queues.length - 1) {\n sb2.append(',');\n } else if (i == queues.length - 1) {\n pw.println(sb2.toString());\n sb2.setLength(0);\n } else {\n // do nothing\n }\n }\n }\n\n }\n\n // remove the written content from the min-queue\n for (int i = 0; i < queues.length; i++) {\n if (!queues[i].isEmpty()) {\n DecompressionWrapper d = queues[i].peek();\n if (d.count == 0) {\n queues[i].poll();\n }\n }\n }\n\n for (int i = 0; i < queues.length; i++) {\n\n if (queues[i].isEmpty()) {\n\n int newFwtIndex = lastIndex[i] + columnsN;\n int newIndexInFile;\n if (newFwtIndex < fwt.N) {\n\n newIndexInFile = (int) fwt.read(newFwtIndex);\n lastIndex[i] = newFwtIndex;\n\n if (newIndexInFile < bufStart || newIndexInFile + 128 > bufStart + bufSize) {\n bufStart = newIndexInFile;\n bufSize = (fileSize - bufStart) < 100 * 1024 * 1024 ? (fileSize - bufStart) : 100 * 1024 * 1024;\n IO = fileChannel.map(MapMode.READ_ONLY, bufStart, bufSize);\n IO.rewind();\n }\n\n sb.setLength(0); //reset the string builder\n\n while (IO.hasRemaining()) {\n n = IO.get(newIndexInFile - (int) bufStart);\n if ((char) n == ',' || (char) n == OS_Properties.LINE_SEPARATOR.charAt(OS_Properties.OS_LS_INDEX)) {\n break;\n } else if (!OS_Properties.LINE_SEPARATOR.contains(String.valueOf((char) n))) {\n sb.append((char) n);\n }\n newIndexInFile++;\n }\n\n String aux = sb.toString();\n\n if (!aux.isEmpty() && !aux.equals(OS_Properties.LINE_SEPARATOR) && !aux.equals(\",\")) {\n\n currentPositionInFile += aux.length();\n try {\n queues[i].add(new DecompressionWrapper(aux));\n } catch (ArrayIndexOutOfBoundsException e) {\n //do nothing, it won't be created nor added to the queue\n currentPositionInFile -= aux.length();\n } catch (NumberFormatException ee) {\n }\n }\n sb.setLength(0); //reset the string builder\n\n } else {\n bitmap.set(i); //mark the queue as \"finished\"\n }\n }\n }\n }\n\n\n /* Write the header if it exists and then convert the escaped commas back to their inital format */\n if (containsHeader) {\n FilePreProcessor f = new FilePreProcessor(decompressedOutputFile);\n f.returnHeaderAndCommasToOriginalFile(header, quoted);\n }\n\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(CompressionUnit.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(CompressionUnit.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(CompressionUnit.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n\n if (pw != null) {\n pw.close();\n }\n try {\n if (fwt != null) {\n fwt.raf.close();\n fwt.fc.close();\n }\n\n if (fileChannel != null) {\n fileChannel.close();\n }\n } catch (IOException e) {\n }\n }\n }", "title": "" }, { "docid": "f97b9f9c179155abe050cac06d70b612", "score": "0.51283324", "text": "public void writeHeaderLine()throws IOException {\n out.write(lineNumber+\"\\t\");\n lineNumber++;\n }", "title": "" }, { "docid": "d69e4c1acefa4b1bf0755d82400f647a", "score": "0.51270074", "text": "protected void readFoodEmployeeCSV() {\n try {\n InputStream stream =\n getClass().getResourceAsStream(\"/edu/wpi/cs3733/d20/teamA/csvfiles/FoodEmployees.csv\");\n CSVReader reader = new CSVReader(new InputStreamReader(stream));\n List<String[]> data = reader.readAll();\n for (int i = 0; i < data.size(); i++) {\n String name = data.get(i)[0];\n int role = Integer.parseInt(data.get(i)[1]);\n APIController.addEmployee(\"UselessField\", name, role);\n }\n } catch (IOException | CsvException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ddd1a6c4d1e6191fa01755b6ffb88daf", "score": "0.5118882", "text": "protected void skipWhiteSpaces() throws IOException\n {\n\n int whitespace = source.read();\n\n //see brother_scan_cover.pdf, it adds whitespaces\n //after the stream but before the start of the\n //data, so just read those first\n while (ASCII_SPACE == whitespace)\n {\n whitespace = source.read();\n }\n\n if (ASCII_CR == whitespace)\n {\n whitespace = source.read();\n if (ASCII_LF != whitespace)\n {\n source.rewind(1);\n //The spec says this is invalid but it happens in the real\n //world so we must support it.\n }\n }\n else if (ASCII_LF != whitespace)\n {\n //we are in an error.\n //but again we will do a lenient parsing and just assume that everything\n //is fine\n source.rewind(1);\n }\n }", "title": "" }, { "docid": "c963417e3c7e2549704b90828cffffc0", "score": "0.51010346", "text": "public void skip(long skipNum) {\n\t\t\n\t}", "title": "" }, { "docid": "d242e6018b0d8653c21486c79fb0df1a", "score": "0.50903827", "text": "public String[] determineHeaderColumns(File file) throws FileNotFoundException, IOException {\n\n CSVReader reader_rawdata = new CSVReader(new FileReader(file));\n ArrayList<String[]> currentEntries = (ArrayList<String[]>) reader_rawdata.readAll();\n String[] headerColumns = currentEntries.get(0); /** set header from the first csv file */\n reader_rawdata.close();\n //currentEntries.remove(0); /** remove the header row */\n //master_entries_rawdata.addAll(currentEntries);\n return headerColumns;\n }", "title": "" }, { "docid": "504f01fab98afb36d8977fbe2037f216", "score": "0.5075803", "text": "public void skip() {\n skippedTxCntr.incrementAndGet();\n }", "title": "" }, { "docid": "2397730d5d90317e176039568cc702c9", "score": "0.50711894", "text": "private void reportTableColumnsHeader(Table fromTable, Table resultTable, int skipColumnIndex) throws IkatsOperatorException {\n\n Header resultHeader = resultTable.getColumnsHeader();\n int numberOfColumnsHeaders = fromTable.getColumnCount(true);\n\n if (fromTable.isHandlingColumnsHeader()) {\n // Report columns header\n List<TableElement> colHeaderElements = null;\n\n try {\n // Try to get header with links\n colHeaderElements = fromTable.getColumnsHeader().getDataWithLink();\n } catch (IkatsException e1) {\n logger.info(\"no link managed in header\", e1);\n // Else manage header with no links\n colHeaderElements = new ArrayList<>();\n try {\n // An a new element to the headers\n for (String stringHeader : fromTable.getColumnsHeader().getItems()) {\n colHeaderElements.add(new TableElement(stringHeader, null));\n }\n } catch (IkatsException e) {\n throw new IkatsOperatorException(\"Could not get columns header items from table \" + fromTable.getName(), e);\n }\n }\n\n for (int i = 0; i < numberOfColumnsHeaders; i++) {\n if (i == skipColumnIndex) {\n // Skip that column header\n continue;\n }\n\n try {\n TableElement headerElement = colHeaderElements.get(i);\n resultHeader.addItem(headerElement.data, headerElement.link);\n } catch (IkatsException e) {\n logger.error(\"Should not be raised\", e);\n throw new IkatsOperatorException(\"Could not merge\", e);\n }\n }\n } else {\n // Or fill with empty header if the first table do not have headers\n if (skipColumnIndex != -1) {\n numberOfColumnsHeaders -= 1;\n }\n\n for (int i = 0; i < numberOfColumnsHeaders; i++) {\n try {\n resultHeader.addItems((Object) null);\n // cast trick to avoid compiler warning\n } catch (IkatsException e) {\n logger.error(\"Should not be raised\", e);\n throw new IkatsOperatorException(\"Could not merge\", e);\n }\n }\n }\n\n // Finally, reset the result table columns header with the merged columns headers\n resultTable.setColumnsHeader(resultHeader);\n }", "title": "" }, { "docid": "585d4a6858559614c0c7b9fe22151193", "score": "0.50632834", "text": "@Test\n public void noPaginationWithNonJDBCFormat() throws IOException {\n String query =\n StringUtils.format(\"SELECT firstname, email, state FROM %s LIMIT 2000\", TEST_INDEX_ACCOUNT);\n String csvResult = executeFetchQuery(query, 100, \"csv\");\n String[] rows = csvResult.split(NEW_LINE);\n // all the 1001 records (+1 for header) are retrieved instead of fetch_size number of records\n assertThat(rows.length, equalTo(1001));\n\n String rawResult = executeFetchQuery(query, 100, \"raw\");\n rows = rawResult.split(NEW_LINE);\n // all the 1000 records (NO headers) are retrieved instead of fetch_size number of records\n assertThat(rows.length, equalTo(1000));\n }", "title": "" }, { "docid": "f6c3dbe1b7e883c209e075321efe1f57", "score": "0.50623846", "text": "private String skipTo(BufferedReader reader, String line, String desired) throws IOException {\n while (null != line && !line.startsWith(desired)) {\n line = reader.readLine();\n }\n return line;\n }", "title": "" }, { "docid": "685100dea0c70d35b8cd90747587e8e6", "score": "0.50534505", "text": "public void testCsvWithComments() {\n CsvEditorSettings.getInstance().setDefaultValueSeparator(CsvValueSeparator.COMMA);\n doTest(true);\n CsvEditorSettings.getInstance().setDefaultValueSeparator(CsvEditorSettings.VALUE_SEPARATOR_DEFAULT);\n }", "title": "" }, { "docid": "ef07a28519db852118affce2d099cd30", "score": "0.50436324", "text": "public void prepareHeader() {\n\tlog.info(\"Timestamp\" + \"\\t\\t\\t\\t\\t\\t\" + \"TestCaseID\" + \"\\t\\t\\t\\t\" + \"TestStep\" + \"\\t\\t\" + \"BDD_Step\" + \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" + \"Status\" + \"\\t\\t\"\n\t + \"Remarks\" + \"\\n\");\n }", "title": "" }, { "docid": "274802980d3ab702af5e6572c68dec7d", "score": "0.50342923", "text": "public void setSkip(int skip) {\n this.skip = skip;\n }", "title": "" }, { "docid": "7fc79b68798e42c7f2c28237789a8ca6", "score": "0.5032273", "text": "@Override\n CsvImporter call() throws CsvImportException;", "title": "" }, { "docid": "fdff6e7ebea399e17ee9c1865bca21a8", "score": "0.5030821", "text": "private void loadAllData() {\t\t\r\n\t\t// Reads header data then goes to first entry\r\n\t\tString line = reader.readNextLine();\r\n\t\tline = reader.readNextLine();\r\n\t\tint counter = 0;\r\n\t\twhile (line != null) {\r\n\t\t\tcounter++;\r\n//\t\t\tSystem.out.println(\"Reading Record: \" + counter);\r\n\t\t\t\r\n\t\t\tline = reader.readNextLine();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f9267cdd4192f486bd5885e4ee83f4ae", "score": "0.50292873", "text": "@Override\r\n public long skip(long n) throws IOException {\n return super.skip(n);\r\n }", "title": "" }, { "docid": "6e2c50a41a2d24617b598ba77a0cea88", "score": "0.502789", "text": "public ArrayList<String> readCSV(String file_path, Boolean ignore_header) {\r\n\t\t\r\n\t\tList<String> result = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\t\t//String current_directory = System.getProperty(\"user.dir\"); //To get current directory.\r\n\t\t\t\t\t\r\n\t\t\t\tFile _file = new File(file_path);\r\n\t\t\t\tif (!_file.exists()|| _file.isDirectory()) return null;\r\n\r\n\t\t\t\t\tScanner scanner = new Scanner(_file);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (int line_number = 0; scanner.hasNextLine(); line_number++) {\r\n\t\t\t\t\t\tString line_value = scanner.nextLine(); \r\n\t\t\t\t\t\tif (ignore_header && line_number ==0) continue; //If we need to ignore header, then ignore first line\r\n\t\t\t\t\t\tif (line_value.length() != 0) { //Empty lines are not read\r\n\t\t\t\t\t\t\tresult.add(line_value);\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\tscanner.close();\r\n\t\t\t\t\tCollections.shuffle(result);\r\n\t\t\t\t\treturn (ArrayList<String>) result;\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex.toString());\r\n\t\t\tSystem.out.println(0);\r\n\t\t\treturn null; \r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "dab6d24575939b324650f69423e1287e", "score": "0.5022992", "text": "public void skip(long skipNum);", "title": "" }, { "docid": "f4bc4f52f2692b7468c0ec0b6a16234f", "score": "0.50157064", "text": "private void skipAllWhitespaces() {\r\n\t\twhile(\"\\r\\n\\t \".indexOf(data[currentIndex]) != -1) {\r\n\t\t\tcurrentIndex++;\r\n\t\t\tif(currentIndex == data.length) return;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5312b5f8928e9d234d83a9315b67220c", "score": "0.50060296", "text": "private void skip(int amt) {\n off += amt;\n\n // See if we need a new buffer from the list.\n while (cur_buf != null && off >= cur_buf.getLength()) {\n off -= cur_buf.getLength();\n nextBuf();\n }\n }", "title": "" }, { "docid": "1bf49ff570549a7ab7eaa9d8b02c482c", "score": "0.5002828", "text": "public long skip(long byteCount) throws IOException {\n/* 291 */ return super.skip(byteCount);\n/* */ }", "title": "" }, { "docid": "4863517a9225c34f184b4f841170ed94", "score": "0.5000007", "text": "private Table readDataFromCSV(PApplet object) {\n\t\tPApplet.print(\"Reading CSV file\");\n\t\tTable data = object.loadTable(\"user_comments_agreegate.csv\", \"header\");\n\t\treturn data;\n\t}", "title": "" }, { "docid": "779c7706dc61d783b59aaff1ef9206ed", "score": "0.49998882", "text": "public boolean sourceIsCSV() {\n\t\treturn sourceType == MigrationConfiguration.SOURCE_TYPE_CSV;\n\t}", "title": "" }, { "docid": "61aafce887369ebc6637bedf4b763cef", "score": "0.49899444", "text": "public int importMembers(File csvFile)\n\t{\n\t\tBufferedReader br = null;\n String line;\n String delimiter = \",\";\n int currentLine = 0;\n try \n {\n \tbr = new BufferedReader(new FileReader(csvFile));\n while ((line = br.readLine()) != null) \n {\n \tcurrentLine++;\n String[] values = line.split(delimiter);\n int membershipNumber = 0;\n // System.out.println(values[3]);\n try\n {\tmembershipNumber = Integer.parseInt(values[3]);\t}\n catch(NumberFormatException ignored){ }\n try\n {\n String lastName = values[0].trim();\n String firstName = values[1].trim();\n String SCAName = values[2].trim();\n String expirationDate = values[4].trim();\n boolean isAnAdult = Boolean.parseBoolean(values[5].trim());\n if(userExists(firstName, lastName, membershipNumber))\n {\n \t\t\tString statement = \"DELETE FROM MEMBERDATA WHERE membershipNumber = ? AND firstName = ? AND lastName = ?\";\n \t\t\tPreparedStatement preparedStatement = con.prepareStatement(statement);\n \t\t\tpreparedStatement.setInt(1, membershipNumber);\n \t\t\tpreparedStatement.setString(2, firstName);\n \t\t\tpreparedStatement.setString(3, lastName);\n \t\t\tpreparedStatement.executeUpdate();\n \t\t\tSystem.out.println(\"Updated user \" + firstName + \" \" + lastName + \".\");\n }\n addMember(lastName, firstName, SCAName, membershipNumber, expirationDate, isAnAdult);\n }\n catch(NumberFormatException ignored){ }\n /*\n * Skips the line if this happens because it is almost certainly a header.\n * \n * If I were being paid or this program were to be used by people other than\n * Jerry, then I would have more checks. But that isn't the case so I won't\n * worry about it unless I have some down time later.\n *\n */\n }\n currentLine = -1;\n } \n catch (IOException | SQLException e){ e.printStackTrace(); }\n finally \n {\n if (br != null) \n {\n try \n { br.close(); }\n catch (IOException e) \n { e.printStackTrace(); }\n }\n }\n return currentLine;\n }", "title": "" }, { "docid": "aefb627360d708b0c60ad23518131556", "score": "0.4978215", "text": "public void addingCsvData() {\r\n\t\tfinal String COMMA_DELIMITER = \",\";\r\n\t\tfinal int ITEM_ID_INDEX = 0;\r\n\t\tfinal int ITEM_NAME_INDEX = 1;\r\n\t\tfinal int ITEM_PRICE_INDEX = 2;\r\n\t\tfinal int ITEM_QUANTITY_INDEX = 3;\r\n\r\n\t\tBufferedReader fileReader = null;\r\n\t\ttry {\r\n\r\n\t\t\tString line = \"\";\r\n\t\t\tFile readFile = new File(\"Items.csv\");\r\n\t\t\treadFile.createNewFile();\r\n\t\t\treadFile.setReadable(true);\r\n\r\n\t\t\tfileReader = new BufferedReader(new FileReader(readFile));\r\n\r\n\t\t\t// Reading the CSV file header to skip it so we can read the data\r\n\t\t\tfileReader.readLine();\r\n\t\t\t// Read the file line by line starting from the second line\r\n\t\t\twhile ((line = fileReader.readLine()) != null) {\r\n\t\t\t\tString[] cell = line.split(COMMA_DELIMITER);\r\n\t\t\t\tif (cell.length > 0) {\r\n\t\t\t\t\tItem item = new Item(Integer.parseInt(cell[ITEM_ID_INDEX]), cell[ITEM_NAME_INDEX],\r\n\t\t\t\t\t\t\tDouble.parseDouble(cell[ITEM_PRICE_INDEX]), Integer.parseInt(cell[ITEM_QUANTITY_INDEX]));\r\n\t\t\t\t\tinventry.add(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error in CsvFileReader !!!\");\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tfileReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error while closing fileReader !!!\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e8ce4bc045b9a09205873124fc49901f", "score": "0.4975377", "text": "public ArrayList<Presenter> readCsvFile() {\r\n\t\tBufferedReader reader;\r\n\t\tArrayList<Presenter> presenterList= new ArrayList<Presenter>();\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(\".\\\\src\\\\sample1.csv\"));\r\n\t\t\tString line;\r\n\t\t\tint index=0;\r\n\t while ((line=reader.readLine()) != null) {\r\n\t String[] fields = line.split(\",\");\r\n\t // Print the columns in array form\r\n\t index++;\r\n\t if(index==1)\r\n\t \tcontinue;\r\n\t //System.out.println(Arrays.toString(fields));\r\n\t Presenter presenter=getPresenter(fields);\r\n\t if(presenter!=null) {\r\n\t \tpresenterList.add(presenter);\r\n\t }\r\n\t \r\n\t }\r\n\t reader.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\treturn presenterList;\r\n \r\n\t}", "title": "" }, { "docid": "782e14a95f3a98d347a16d275e2fecb9", "score": "0.49681842", "text": "@Override\n\tpublic Iterator examineHeaderElements(String arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "758ff556115af11a7f2a6b8992cf05ab", "score": "0.49600393", "text": "public void deleteFirst(){\n if(size == 1){\n return;\n }\n else{\n header.next = header.next.next;\n }\n }", "title": "" }, { "docid": "9213e5cf2f5f0838609df5b38a8173a0", "score": "0.49568167", "text": "@Override\n\tpublic void skip() {\n\t\tSystem.out.println(\"Skip to next song\");\n\t}", "title": "" }, { "docid": "2f9e6e1fd628ca5edaa971ad11407619", "score": "0.49253508", "text": "private boolean readInternal(boolean headerOnly) throws Exception {\n char[] buffer = new char[this.getBufferSize()];\n String[] fieldSeperator = new String[]{ this.getColumnSeperator() };\n boolean readComplete = false;\n\n int lastBytesRead = 0;\n while (readComplete == false && lastBytesRead != -1)\n {\n // Keep on reading until found a Line limiter or EOF\n // This is the amount we have already read\n String alreadyRead = _sbRecord.toString();\n // See if line limiter is in the buffer\n int posLine = alreadyRead.indexOf(this.getRowSeperator());\n if (posLine > -1)\n {\n // Yes it is. So just get the line\n String line = alreadyRead.substring(0, (0) + (posLine));\n // Do we need to read the header?\n if (getFirstRowHasNames() && !_headerFound)\n {\n String[] fields = StringSupport.Split(line, fieldSeperator, StringSplitOptions.None);\n // Might need to remove quotes from the field names\n this.setFieldNames(processFieldNames(fields));\n _headerFound = true;\n if (headerOnly)\n {\n readComplete = true;\n }\n\n }\n else\n {\n // This is a row. Read the row and read field values\n _values = processRowElement(line,fieldSeperator);\n // We compleated reading the line from buffer and procees the values\n readComplete = true;\n }\n // Remove from buffer what we have already processed\n _sbRecord.delete(0, (0)+(line.length() + this.getRowSeperator().length()));\n }\n else\n {\n lastBytesRead = _reader.read(buffer, 0, this.getBufferSize());\n String textRead = new String(buffer);\n _sbRecord.append(textRead);\n _pos = _pos + lastBytesRead;\n }\n }\n return true && lastBytesRead != -1;\n }", "title": "" }, { "docid": "b3e9bdee6f2090bfd3084209cad6ea08", "score": "0.4925207", "text": "@Test public void testLoadCsvWithEmptyColumns() throws Exception {\n String url = \"empty_columns.csv\";\n testResult(db, \"CALL apoc.load.csv($url,{failOnError:false,mapping:{col_2:{type:'int'}}})\", map(\"url\",url), // 'file:test.csv'\n (r) -> {\n Map<String, Object> row = r.next();\n assertEquals(map(\"col_1\", \"1\",\"col_2\", null,\"col_3\", \"1\"), row.get(\"map\"));\n row = r.next();\n assertEquals(map(\"col_1\", \"2\",\"col_2\", 2L,\"col_3\", \"\"), row.get(\"map\"));\n row = r.next();\n assertEquals(map(\"col_1\", \"3\",\"col_2\", 3L,\"col_3\", \"3\"), row.get(\"map\"));\n assertEquals(false, r.hasNext());\n });\n testResult(db, \"CALL apoc.load.csv($url,{failOnError:false,nullValues:[''], mapping:{col_1:{type:'int'}}})\", map(\"url\",url), // 'file:test.csv'\n (r) -> {\n Map<String, Object> row = r.next();\n assertEquals(map(\"col_1\", 1L,\"col_2\", null,\"col_3\", \"1\"), row.get(\"map\"));\n row = r.next();\n assertEquals(map(\"col_1\", 2L,\"col_2\", \"2\",\"col_3\", null), row.get(\"map\"));\n row = r.next();\n assertEquals(map(\"col_1\", 3L,\"col_2\", \"3\",\"col_3\", \"3\"), row.get(\"map\"));\n assertEquals(false, r.hasNext());\n });\n testResult(db, \"CALL apoc.load.csv($url,{failOnError:false,mapping:{col_3:{type:'int',nullValues:['']}}})\", map(\"url\",url), // 'file:test.csv'\n (r) -> {\n Map<String, Object> row = r.next();\n assertEquals(map(\"col_1\", \"1\",\"col_2\", \"\",\"col_3\", 1L), row.get(\"map\"));\n row = r.next();\n assertEquals(map(\"col_1\", \"2\",\"col_2\", \"2\",\"col_3\", null), row.get(\"map\"));\n row = r.next();\n assertEquals(map(\"col_1\", \"3\",\"col_2\", \"3\",\"col_3\", 3L), row.get(\"map\"));\n assertEquals(false, r.hasNext());\n });\n }", "title": "" }, { "docid": "9a5b7aa87dbea68c3417dce089e3344b", "score": "0.49144867", "text": "@Override\n public void firstExportDataToGoogleDrive() throws IOException {\n googleDriveApi = new Quickstart(\"token\");\n fileId = googleDriveApi.uploadFile(\"upload_csv.csv\",\"text/csv\",sourceTestData);\n assertTrue(fileId != null);\n }", "title": "" }, { "docid": "364dea8e78ce4c19d9c8c423e31172ab", "score": "0.4914108", "text": "boolean isSkip();", "title": "" }, { "docid": "cc6e26cca9c0e4df8854ad213ec98867", "score": "0.4902283", "text": "public boolean isRowSkipped(Row row)\n {\n //if valid row arrives and we haven't started processing any real output yet\n //then skip the row\n if (row != null && sortedCollection == null)\n return true;\n if (row == null && sortedCollection != null)\n {\n //reset\n this.sortTree.clear();\n this.sortedCollection = null;\n this.sortedCollectionIterator = null;\n this.arrayListIterator = null;\n }\n return false;\n }", "title": "" }, { "docid": "34e5ffa8759a9fcee3f16416dae74fed", "score": "0.490071", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:32.667 -0500\", hash_original_method = \"3200AD1B535820580583A49AC076B7CA\", hash_generated_method = \"091B4BCA24C4E6AD35584E292DBA491D\")\n \npublic void removeHeader(String name) {\n if (qheaders != null)\n qheaders.delete(name);\n }", "title": "" }, { "docid": "64917c17ae51a88dfdf4a27e178b1147", "score": "0.48992422", "text": "private void skipComments() throws IOException {\n\t\t\tString line;\n\t\t\tline = ripc.readLine();\n\n\t\t\twhile( line!=null ) {\n\t\t\t\tline = line.trim();\n\t\t\t\tMatcher labels=labelRegex.matcher(line);\n\t\t\t\tif(labels.matches()) {\n\t\t\t\t\tnextLabels = new String[2];\n\t\t\t\t\tnextLabels[0] = labels.group(1);\n\t\t\t\t\tnextLabels[1] = labels.group(2);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tMatcher comments=commentRegex.matcher(line);\n\t\t\t\tif(!comments.matches()) {\n\t\t\t\t\t// Oops! Something's wrong\n\t\t\t\t\tthrow new IllegalStateException(\"Formatting error. Expected comment or label, found:\\n\"+line);\n\t\t\t\t}\n\n\t\t\t\tline = ripc.readLine();\n\t\t\t}\n\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "title": "" }, { "docid": "428047659d58b16e0ed9d859240b62c6", "score": "0.48929045", "text": "@Test\n public void testSomeMethod_otherUserSettings() throws IOException\n {\n UserSettings settings = new CsvReader.UserSettings();\n settings.setColumnDelimiter(',');\n settings.setTextQualifier('\\'');\n settings.setLineDelimiter('|');\n ByteArrayInputStream inputStream = new ByteArrayInputStream(\"head1,head2,head3|'val,ue1','val''ue2','val|ue3'\".getBytes());\n CsvReader instance = new CsvReader(inputStream, settings);\n for (Map<String, String> line : instance) {\n assertThat(line.get(\"head1\"), is(\"val,ue1\"));\n assertThat(line.get(\"head2\"), is(\"val'ue2\"));\n assertThat(line.get(\"head3\"), is(\"val|ue3\"));\n assertThat(line.size(), is(3));\n }\n assertThat(instance.getCurrentLineNumber(), is(1L));\n }", "title": "" }, { "docid": "1ea03fdfcb8709b05b40b4da3942a17c", "score": "0.48923185", "text": "public final void recordSkipped() {\r\n processed = true;\r\n }", "title": "" }, { "docid": "2ced2697dfb6877c5fd5e4a796b94f7e", "score": "0.48911595", "text": "private static JavaRDD<String> prepareData(JavaRDD<String> data) {\n final String header = data.first();\n JavaRDD<String> d = data.filter((Function<String, Boolean>) s -> !s.equalsIgnoreCase(header));\n return d;\n }", "title": "" }, { "docid": "08a77b1b0c1b37449a300b4ccbacb483", "score": "0.4879702", "text": "public void readCSV()\n {\n File thefile = new File(filename); // generate the file handle\n\n int linecount=0; // initially keeps track of lines read, eventually used to remember the number that was read;\n\n try {\n Scanner reader = new Scanner(thefile); // open the file with the Scanner\n\n // Read in the file, stop at file end or if we read too many lines\n while (reader.hasNextLine() && linecount < MAXLINES){\n String line=reader.nextLine(); \n CSVlines[linecount]=line;\n linecount++;\n }\n for (int i =0; i<linecount; i++){\n String values[] = CSVlines[i].split(\",\"); // process the line from the Scanner and break it up at each comma.\n\n // Now we will print it out again, again, this is just to prove a point. Real code doesn't need this.\n for (int j=0; j< values.length;j++)\n System.out.print(values[j]+\"****\");\n System.out.println(\"\");\n\n // However, we probably will want to put this into an array of Strings, which we may want to later do some\n // other processing on.\n for (int j=0; j< values.length;j++)\n AllLinesAllElements[i][j]=values[j];\n } // process the file we read, line by line.\n }catch (IOException e) {System.out.println(e);}\n }", "title": "" }, { "docid": "2c4305e7ec5334436946ac5287b4512c", "score": "0.48782685", "text": "static void readCSV() throws FileNotFoundException{\n \t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new File(\"data.csv\")).useDelimiter(\";|\\\\n\");\n \t\t\n \t\t// Pegando a primeira linha\n \t\tscan.nextLine();\n \t\t\n \t\t// Varrendo o Documento e adicionando cada Produto na Lista de Produtos\n \t\tint tl = 0;\n \t\twhile (scan.hasNext()) {\n \t\t\n \t\t\t//Coletando Atributos\n \t\t\tString status = scan.next();\n \t\t\tSystem.out.println(status);\n \t\t String user = scan.next();\n \t\t textos = status + textos;\n \t\t qtdTextos += 1;\n \t\t \n \t\t //Declarando produto com atributos coletados anteriormente \n \t\t Status st = new Status();\n \t\t \n \t\t st.setNomeUsuario(user);\n \t\t st.setId(tl);\n \t\t \n \t\t \n \t\t //Adicionando na Lista\n \t\t \n \t\t status = status.replace(\"RT\", \"\");\n \t\t status = status.replace(\"@\", \"\");\n \t\t status = status.replace(\"http\", \"\");\n \t\t status = status.replace(\".\", \"\");\n \t\t status = status.replace(\",\", \"\");\n \t\t status = status.replace(\";\", \"\");\n \t\t status = status.replace(\":\", \"\");\n \t\t status = status.replace(\"#\", \"\");\n \t\t status = status.replace(\"-\", \"\");\n \t\t status = status.replace(\" \", \" \");\n \t\t status = status.toLowerCase();\n \t\t st.setTweet(status);\n \t\t statuses.add(st);\n \t\t tl++;\n \t\t}\n \t\t\n \t\t}", "title": "" }, { "docid": "6c2946f20ae0a94f5fea170c5f482402", "score": "0.48769698", "text": "public void exportCsv() throws IIOException\n {\n try {\n MainController.model.exportCsv();\n }\n catch (Exception e) {}\n }", "title": "" }, { "docid": "81a324a3be5f68507a99b1e4dc2262b4", "score": "0.48663628", "text": "private void skipBlanks() {\t\t\n\t\t\n\t\twhile( currentIndex < data.length() ) {\t\t\t\n\t\t\tchar c = data.charAt( currentIndex );\n\t\t\tif( c==' ' || c=='\\t' || c=='\\r' || c=='\\n' ) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "7f49f150f226886840d0db2348aa90ce", "score": "0.4866349", "text": "@Test\n public void testSomeMethod3() throws IOException\n {\n UserSettings settings = new CsvReader.UserSettings();\n ByteArrayInputStream inputStream = new ByteArrayInputStream(\"head1\\n\\\"val;ue\\\"\".getBytes());\n CsvReader instance = new CsvReader(inputStream, settings);\n for (Map<String, String> line : instance) {\n assertThat(line.get(\"head1\"), is(\"val;ue\"));\n assertThat(line.size(), is(1));\n }\n assertThat(instance.getCurrentLineNumber(), is(1L));\n }", "title": "" }, { "docid": "0755a6f9e0182ce7ea0f56b2be7da100", "score": "0.48659846", "text": "public String getHeaderField(String name) throws IOException;", "title": "" }, { "docid": "6ed1a859174e2f63661438511ab187d0", "score": "0.4865966", "text": "public abstract void skip() throws TException;", "title": "" }, { "docid": "df09271f72ceb8847cb58a6eca19bfd7", "score": "0.4863673", "text": "private void loadHeaderRow() {\r\n \t\tDataTableHeader[] headings = binder.getHeaders();\r\n \t\tfor (int i = 0; i < headings.length; i++) {\r\n \t\t\taddHeaderItem(i, headings[i]);\r\n \t\t}\r\n \t\tStyleUtil.setGridRowStyle(instanceGrid, 0, false);\r\n \t}", "title": "" }, { "docid": "e9811034d74416842e20b284678bc2dd", "score": "0.4862857", "text": "public void getHeader() {\r\n\t\tString header[]= {\"Product ID\",\"Product Name\",\"Product Description\" , \"Product Price\" , \"Product Stock\"};\r\n\t\tdtm = new DefaultTableModel(header,0); \r\n\t}", "title": "" }, { "docid": "5f7343e5522b9b28ebc23cd61afbc0ef", "score": "0.48493835", "text": "@Test\n public void testSomeMethod6() throws IOException\n {\n UserSettings settings = new CsvReader.UserSettings();\n ByteArrayInputStream inputStream = new ByteArrayInputStream(\"head1\\n\\\"value\\\";\\\"junk\\\"\\n\\\"value\\\"\".getBytes());\n CsvReader instance = new CsvReader(inputStream, settings);\n int lineCounter = 1;\n for (Map<String, String> line : instance) {\n if (lineCounter == 1) {\n assertThat(line.get(\"head1\"), is(\"value\"));\n assertThat(line.size(), is(1));\n assertThat(instance.getCurrentLineNumber(), is(1L));\n lineCounter++;\n } else {\n assertThat(line.get(\"head1\"), is(\"value\"));\n assertThat(line.size(), is(1));\n }\n }\n assertThat(instance.getCurrentLineNumber(), is(2L));\n }", "title": "" }, { "docid": "fc3c9fa1824f35021603859b221bdb82", "score": "0.48434293", "text": "private void generateCsv(String nullFieldName, Object nullFieldValue, String id) throws Exception {\n File csvDir = new File(CSV_DIR_PATH);\n if (!csvDir.exists()) {\n boolean deleteCsvDirOk = csvDir.mkdirs();\n assertTrue(\"Could not delete directory: \" + CSV_DIR_PATH, deleteCsvDirOk);\n }\n File csvFile = new File(CSV_FILE_PATH);\n if (csvFile.exists()) {\n boolean deleteCsvFileOk = csvFile.delete();\n assertTrue(\"Could not delete existing CSV file: \" + CSV_FILE_PATH, deleteCsvFileOk);\n }\n\n Row row = new Row();\n row.put(\"OwnerId\", userId);\n row.put(\"Subject\", TASK_SUBJECT);\n row.put(nullFieldName, nullFieldValue);\n if (id != null) row.put(\"Id\", id);\n\n CSVFileWriter writer = null;\n try {\n writer = new CSVFileWriter(CSV_FILE_PATH, getController().getConfig(), AppUtil.COMMA);\n writer.open();\n writer.setColumnNames(new ArrayList<String>(row.keySet()));\n writer.writeRow(row);\n } finally {\n if (writer != null) writer.close();\n }\n }", "title": "" }, { "docid": "15f5c97ebf67fd7bd717fd6d5a5e6f3c", "score": "0.4840665", "text": "boolean isCSV(MultipartFile fileToImport);", "title": "" }, { "docid": "81e78a63f24782b85c507b2aa47a1c3d", "score": "0.48402375", "text": "public void beforeFirst() {\r\n currentRow = 0;\r\n }", "title": "" }, { "docid": "2499f8917a7b427d4bdfeea4edda5146", "score": "0.48315862", "text": "public abstract void printHeaderFileBeginning();", "title": "" }, { "docid": "a3d3a4d42c0e31c67bc0a357a5871433", "score": "0.482951", "text": "public static String createCSVwithRequiredFields(String fileName, String outputFileName, java.util.List<String> requiredFields) {\n String status = Constants.SUCCESS;\n List<String> originalFileHeaders = getHeaders(fileName);\n List<Integer> indices = requiredIndices(originalFileHeaders, requiredFields);\n indices.add(0, 0);\n try {\n CSVReader reader = new CSVReader(new FileReader(fileName));\n CSVWriter csvWriter = new CSVWriter(new FileWriter(outputFileName));\n\n String[] nextLine;\n List<List<String>> outputLines = new ArrayList<>();\n while ((nextLine = reader.readNext()) != null) {\n List<String> outputLine = new ArrayList<>();\n for (Integer index : indices) {\n outputLine.add(nextLine[index]);\n }\n outputLines.add(outputLine);\n csvWriter.writeNext(outputLine.toArray(new String[outputLine.size()]));\n }\n // This is the data from BMS unprocessed\n /* if (fileName.contains(\"BMS\") && !fileName.contains(\"selected\"))\n processBMSDate(outputLines, csvWriter);\n */\n reader.close();\n csvWriter.flush();\n csvWriter.close();\n } catch (IOException e) {\n sharedInformation.getLogger().error(e.getMessage() + e.getStackTrace());\n status = e.getMessage();\n }\n return status;\n }", "title": "" }, { "docid": "d01df94f5af049d509759eb4e789bda6", "score": "0.48273414", "text": "public void leercsv() {\r\n\t\tleerhab();\r\n\t\tFile f1 = new File(\"Archivos\\\\Mesagosto1.csv\");\r\n\t\tif (!f1.exists()) {\r\n\t\t\ttry {\r\n\r\n\t\t\t\tf1.createNewFile();\r\n\t\t\t\tString[][] a = agenda.fechasATexto();\r\n\r\n\t\t\t\tsepararceldas();\r\n\t\t\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(\"Archivos\\\\Mesagosto1.csv\"));) {\r\n\r\n\t\t\t\t\tfor (int l = 0; l < a.length; l++) {\r\n\t\t\t\t\t\tfor (int kj = 0; kj < a[l].length; kj++) {\r\n\r\n\t\t\t\t\t\t\tbw.write(a[l][kj] + \";\");\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbw.newLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbw.flush();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Hay un error en: \" + e);\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlector = new BufferedReader(new FileReader(\"Archivos\\\\Mesagosto1.csv\"));\r\n\t\t\t\t\tint j = 0;\r\n\t\t\t\t\twhile ((linea = lector.readLine()) != null) {\r\n\t\t\t\t\t\tpartes = linea.split(\";\");\r\n\t\t\t\t\t\tllenarma(j);\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tlector.close();\r\n\t\t\t\t\tlinea = null;\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Hay un error en: \" + e);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\":)\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tlector = new BufferedReader(new FileReader(\"Archivos\\\\Mesagosto1.csv\"));\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile ((linea = lector.readLine()) != null) {\r\n\t\t\t\t\tpartes = linea.split(\";\");\r\n\t\t\t\t\tllenarma(j);\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tlector.close();\r\n\t\t\t\tlinea = null;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Hay un error en: \" + e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e76ca1cd3ede5c04b2d9257e7d7372d2", "score": "0.48247513", "text": "public void skip() {\n\n\t\tif (this.Players.size() > 0) {\n\t\t\tthis.playerIndex++;\n\t\t\tthis.playerIndex = Math.abs(this.playerIndex % playerCount);\n\t\t}\n\t}", "title": "" }, { "docid": "5f022658bf625c70986cb930ba443136", "score": "0.48244292", "text": "public void setHeader(boolean header) {\n this.header = header;\n }", "title": "" }, { "docid": "6ac2cd37bb7601d0e1d05d1a81c6ca07", "score": "0.48188287", "text": "@Test\n public void testSomeMethod4() throws IOException\n {\n UserSettings settings = new CsvReader.UserSettings();\n ByteArrayInputStream inputStream = new ByteArrayInputStream(\"head1\\n\\\"val\\nue\\\"\".getBytes());\n CsvReader instance = new CsvReader(inputStream, settings);\n for (Map<String, String> line : instance) {\n assertThat(line.get(\"head1\"), is(\"val\\nue\"));\n assertThat(line.size(), is(1));\n }\n assertThat(instance.getCurrentLineNumber(), is(1L));\n }", "title": "" }, { "docid": "ab88bba8d679865ce0222a1655e3b2da", "score": "0.48046649", "text": "public void indicateSkipped()\r\n\t{\r\n\t\ttrxStatus = SKIPPED;\r\n\t}", "title": "" }, { "docid": "95157c528508016de68cd01eaf909bbe", "score": "0.48027584", "text": "@Override\n\tpublic CsvCharDetails getDelimiterDetails() {\n return delimiter;\n }", "title": "" }, { "docid": "12e4bb7e4686c943624247cf696789bb", "score": "0.48025295", "text": "@Test\n public void testExcludedKeys() throws Exception {\n KeyRing<UjoCSV> ring = KeyRing.ofExcluding(UjoCSV.class, UjoCSV.P1, UjoCSV.P2);\n assertEquals(1, ring.size());\n assertEquals(UjoCSV.P3.getName(), ring.getFirstKey().getName());\n }", "title": "" }, { "docid": "f1cff17570312443d2f0ac718bfd8d2f", "score": "0.48012725", "text": "public CSVFile() {\n\t\t// Use comma as default separator\n\t\tthis.separator = \",\";\n\t}", "title": "" }, { "docid": "586860ae887b86bceca35c691489e246", "score": "0.47998524", "text": "@Override\n\tpublic Iterator extractHeaderElements(String arg0) {\n\t\treturn null;\n\t}", "title": "" } ]
a1e551dbc3337982312918649d4dad68
Distribution over possible languages. repeated .speechkit.stt.v3.LanguageEstimation languages = 6;
[ { "docid": "1ab5ee3eea49e3bb8fa9bd8a42345c65", "score": "0.6410349", "text": "@java.lang.Override\n public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getLanguages(int index) {\n return languages_.get(index);\n }", "title": "" } ]
[ { "docid": "5a6ca062f60daebc3ccfc7d1d38d805a", "score": "0.692368", "text": "yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getLanguages(int index);", "title": "" }, { "docid": "06ad2d2fa3889ab9350cf428bef2f7c8", "score": "0.654052", "text": "java.util.List<yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation> \n getLanguagesList();", "title": "" }, { "docid": "b03023e2ddce7576c83dc49c2cf8d067", "score": "0.6437249", "text": "public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getLanguages(int index) {\n if (languagesBuilder_ == null) {\n return languages_.get(index);\n } else {\n return languagesBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "557172480e102930a0a9296bbcd4b473", "score": "0.63092595", "text": "yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder getLanguagesOrBuilder(\n int index);", "title": "" }, { "docid": "a8cb6e2f930d079917ff48d6087d3ad8", "score": "0.6299792", "text": "public interface LanguageModel {\n\n public void train(Collection<List<String>> trainingSentences);\n\n // This is actually not needed.\n // We forgot to remove it from the handout this year (2008).\n // But we will post on FAQ page shortly to announce this change.\n\n //public double getUnigramProbability(String word);\n\n public double getSentenceProbability(List<String> sentence);\n\n public double getWordProbability(List<String> sentence, int index);\n\n public List<String> generateSentence();\n\n}", "title": "" }, { "docid": "5606beba7cb66b30f5cb480bc1a9c850", "score": "0.6189286", "text": "int getSupportedLanguages();", "title": "" }, { "docid": "d595f77936c6a2bfd4aeb9e38f266349", "score": "0.6119064", "text": "@java.lang.Override\n public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder getLanguagesOrBuilder(\n int index) {\n return languages_.get(index);\n }", "title": "" }, { "docid": "715882ecd153001e8cd2e4065a0bf551", "score": "0.6047379", "text": "public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder getLanguagesOrBuilder(\n int index) {\n if (languagesBuilder_ == null) {\n return languages_.get(index); } else {\n return languagesBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "8d0cf9f9023c9750ce7943222294afd7", "score": "0.6030653", "text": "java.util.List<? extends yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder> \n getLanguagesOrBuilderList();", "title": "" }, { "docid": "b95301c10bc0b89037f252bd7da1c89a", "score": "0.5956732", "text": "int getLanguagesCount();", "title": "" }, { "docid": "c1fc4cffc20feb4b0f4a5f88bc00b7a8", "score": "0.59346235", "text": "@java.lang.Override\n public java.util.List<yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation> getLanguagesList() {\n return languages_;\n }", "title": "" }, { "docid": "433f993ccaa35fdd73569f4eb93d0481", "score": "0.59011006", "text": "@java.lang.Override\n public java.util.List<? extends yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder> \n getLanguagesOrBuilderList() {\n return languages_;\n }", "title": "" }, { "docid": "dc4037579aa377259fe5004cdc876a80", "score": "0.5870428", "text": "public Builder addAllLanguages(\n java.lang.Iterable<? extends yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation> values) {\n if (languagesBuilder_ == null) {\n ensureLanguagesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, languages_);\n onChanged();\n } else {\n languagesBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "fdcddadc566ec96e3bd83f3fae26c5ee", "score": "0.58445454", "text": "public Builder setLanguages(\n int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation value) {\n if (languagesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureLanguagesIsMutable();\n languages_.set(index, value);\n onChanged();\n } else {\n languagesBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "d05761314c80d695d87bca454c191bac", "score": "0.5844127", "text": "Collection getAutomaticLanguages();", "title": "" }, { "docid": "7beeb065225dda8c6b7cf0253961cbf8", "score": "0.5819205", "text": "@Parameterized.Parameters\n public static Collection getEnglishWords() {\n return Arrays.asList(new Object[][] {\n //Sample data with no repetitions to check right values are retrieved\n { \"working\", new ArrayList<String>(Arrays.asList(\"g\",\"gi\",\"gin\",\"gink\",\"gio\",\"girn\",\"giro\",\"giron\",\"gn\",\n \"gnow\",\"go\",\"goi\",\"gon\",\"gonk\",\"gor\",\"gorki\",\"gowk\",\n \"gown\",\"gr\",\"grin\",\"gro\",\"groin\",\"grow\",\"grown\",\"i\",\n \"ign\",\"ik\",\"ikon\",\"in\",\"ing\",\"ingrow\",\"ink\",\"ino\",\"inorg\",\n \"inro\",\"inwork\",\"io\",\"ion\",\"ir\",\"irk\",\"irok\",\"iron\",\"iw\",\n \"k\",\"kg\",\"kgr\",\"ki\",\"kin\",\"king\",\"kingrow\",\"kino\",\"kirn\",\n \"kn\",\"know\",\"ko\",\"koi\",\"kon\",\"kong\",\"kor\",\"kori\",\"korin\",\n \"kr\",\"kw\",\"n\",\"ng\",\"ni\",\"nig\",\"niog\",\"no\",\"nog\",\"noir\",\n \"nor\",\"nori\",\"nork\",\"now\",\"nr\",\"o\",\"og\",\"oik\",\"oink\",\"ok\",\n \"oki\",\"on\",\"oni\",\"or\",\"org\",\"orig\",\"ow\",\"owing\",\"owk\",\n \"own\",\"r\",\"rg\",\"rig\",\"rik\",\"rin\",\"ring\",\"rink\",\"rio\",\n \"rn\",\"ro\",\"rog\",\"roi\",\"roin\",\"rok\",\"ron\",\"rong\",\"row\",\n \"rowing\",\"w\",\"wg\",\"wi\",\"wig\",\"win\",\"wing\",\"wink\",\"wino\",\n \"wir\",\"wk\",\"wo\",\"wog\",\"wok\",\"won\",\"wong\",\"wonk\",\"work\",\n \"working\",\"worn\",\"wr\",\"wrig\",\"wring\",\"wro\",\"wrong\")) },\n //Sample data with repeated letters to check unique values are retrieved\n { \"aaabbddggee\", new ArrayList<String>(Arrays.asList(\"a\",\"aa\",\"aaa\",\"ab\",\"aba\",\"abada\",\"abb\",\"abba\",\"abbe\",\n \"abd\",\"abe\",\"abed\",\"abede\",\"abedge\",\"abegge\",\"ad\",\n \"ada\",\"adad\",\"adage\",\"add\",\"adda\",\"ade\",\"adead\",\"ae\",\n \"ag\",\"aga\",\"agad\",\"agada\",\"agade\",\"agag\",\"agba\",\"age\",\n \"aged\",\"agee\",\"b\",\"ba\",\"baa\",\"baaed\",\"bab\",\"baba\",\n \"babe\",\"bad\",\"badaga\",\"bade\",\"badge\",\"badged\",\"bae\",\n \"bag\",\"baga\",\"bagdad\",\"bagge\",\"bagged\",\"bb\",\"bd\",\"bde\",\n \"be\",\"bea\",\"bead\",\"beaded\",\"bebed\",\"bed\",\"bedad\",\"bede\",\n \"bedead\",\"bee\",\"beg\",\"begad\",\"begged\",\"bg\",\"d\",\"da\",\n \"dab\",\"dabb\",\"dabba\",\"dabbed\",\"dad\",\"dada\",\"dade\",\"dae\",\n \"dag\",\"dagaba\",\"dagga\",\"dagged\",\"db\",\"dd\",\"de\",\"dea\",\n \"dead\",\"deb\",\"debadge\",\"debag\",\"debagged\",\"debe\",\"deda\",\n \"dee\",\"deed\",\"deg\",\"degage\",\"degged\",\"dg\",\"dgag\",\"e\",\n \"ea\",\"ead\",\"ebb\",\"ebbed\",\"ed\",\"edda\",\"edea\",\"edge\",\n \"edged\",\"ee\",\"eg\",\"egad\",\"egba\",\"egg\",\"egged\",\"g\",\"ga\",\n \"gab\",\"gabbed\",\"gabe\",\"gabgab\",\"gad\",\"gadaba\",\"gadaea\",\n \"gadbee\",\"gade\",\"gadge\",\"gae\",\"gaea\",\"gaed\",\"gag\",\"gaga\",\n \"gage\",\"gaged\",\"gagee\",\"gd\",\"ge\",\"geb\",\"ged\",\"gedd\",\n \"gee\",\"geed\")) },\n //Sample data with letters and numbers to check numbers are skipped\n { \"w1o3r6k\", new ArrayList<String>(Arrays.asList(\"k\",\"ko\",\"kor\",\"kr\",\"kw\",\"o\",\"ok\",\"or\",\"ow\",\"owk\",\"r\",\"ro\",\n \"rok\",\"row\",\"w\",\"wk\",\"wo\",\"wok\",\"work\",\"wr\",\"wro\"))}\n });\n }", "title": "" }, { "docid": "44f85adc0f84b057e1581f882221af93", "score": "0.58008623", "text": "public Builder addLanguages(yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation value) {\n if (languagesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureLanguagesIsMutable();\n languages_.add(value);\n onChanged();\n } else {\n languagesBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "b58363e65dc03b856dcd5a92932908a8", "score": "0.57839036", "text": "private void kiesTaal(int keuze) {\n String lang; \n String country;\n // int keuze = 0;\n \n// do {\n// System.out.print(\"1 = Nederlands\\n2 = English\\n3 = Franšais\"\n// + \"\\nKies taal/Choose language/Choisissez la langue: \");\n// keuze = scan.nextInt();\n// }while(keuze < 1 || keuze > 3);\n if(keuze == 1){\n lang = \"nl\";\n country = \"BE\";\n }\n else if(keuze == 2) {\n lang = \"en\";\n country = \"UK\";\n }\n \n else {\n lang = \"nl\";\n country = \"BE\";\n }\n \n Locale locale = new Locale(lang, country);\n msg = ResourceBundle.getBundle(\"resources.lang\",locale);\n \n \n \n }", "title": "" }, { "docid": "74056f9c8b7f6d5fd2d9bb4b8c007222", "score": "0.5764746", "text": "public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder addLanguagesBuilder() {\n return getLanguagesFieldBuilder().addBuilder(\n yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.getDefaultInstance());\n }", "title": "" }, { "docid": "6c8fbbea98e5ff275978661a23cb9d5b", "score": "0.57475793", "text": "LanguagesType1 getLanguages();", "title": "" }, { "docid": "109bb09cee8736a80e2fe47ed0d2128d", "score": "0.57428724", "text": "public Builder addLanguages(\n int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation value) {\n if (languagesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureLanguagesIsMutable();\n languages_.add(index, value);\n onChanged();\n } else {\n languagesBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "dc25e649dfcfa6bf1be9c6c8a6de17e2", "score": "0.5701809", "text": "public java.util.List<yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation> getLanguagesList() {\n if (languagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(languages_);\n } else {\n return languagesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "b5af931ee242f71f82a7b50f93a69160", "score": "0.5679626", "text": "public interface LanguageModel extends Configurable {\n\n /** The property specifying the location of the language model. */\n @S4String(defaultValue = \".\")\n public final static String PROP_LOCATION = \"location\";\n\n /** The property specifying the unigram weight */\n @S4Double(defaultValue = 1.0)\n public final static String PROP_UNIGRAM_WEIGHT = \"unigramWeight\";\n /**\n * The property specifying the maximum depth reported by the language model\n * (from a getMaxDepth()) call. If this property is set to (-1) (the\n * default) the language model reports the implicit depth of the model.\n * This property allows a deeper language model to be used. For instance, a\n * trigram language model could be used as a bigram model by setting this\n * property to 2. Note if this property is set to a value greater than the\n * implicit depth, the implicit depth is used. Legal values for this\n * property are 1..N and -1.\n */\n @S4Integer(defaultValue = -1)\n public final static String PROP_MAX_DEPTH = \"maxDepth\";\n\n /** The property specifying the dictionary to use */\n @S4Component(type = Dictionary.class)\n public final static String PROP_DICTIONARY = \"dictionary\";\n\n /**\n * Create the language model\n *\n * @throws java.io.IOException if error occurrs\n */\n public void allocate() throws IOException;\n\n /**\n * Deallocate resources allocated to this language model\n *\n * @throws IOException if error occurrs\n */\n public void deallocate() throws IOException;\n\n /**\n * Gets the n-gram probability of the word sequence represented by the word\n * list\n *\n * @param wordSequence the wordSequence\n * @return the probability of the word sequence in log base\n */\n public float getProbability(WordSequence wordSequence);\n\n /**\n * Gets the smear term for the given wordSequence. Used in\n * {@link LexTreeLinguist}. See\n * {@link LexTreeLinguist#PROP_WANT_UNIGRAM_SMEAR} for details.\n *\n * @param wordSequence the word sequence\n * @return the smear term associated with this word sequence\n */\n public float getSmear(WordSequence wordSequence);\n\n /**\n * Returns the set of words in the language model. The set is unmodifiable.\n *\n * @return the unmodifiable set of words\n */\n public Set<String> getVocabulary();\n\n /**\n * Returns the maximum depth of the language model\n *\n * @return the maximum depth of the language model\n */\n public int getMaxDepth();\n}", "title": "" }, { "docid": "d81e2d79e095a7abb4daf007706a6a0e", "score": "0.56624407", "text": "public java.util.List<? extends yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder> \n getLanguagesOrBuilderList() {\n if (languagesBuilder_ != null) {\n return languagesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(languages_);\n }\n }", "title": "" }, { "docid": "8175651efd4528cdb8a5d6d7c51b4929", "score": "0.56353074", "text": "@java.lang.Override\n public int getLanguagesCount() {\n return languages_.size();\n }", "title": "" }, { "docid": "0896351a9aa78459ff5127601943fc69", "score": "0.5612345", "text": "private String[] getLanguageNames(int[] lang3)\n {\n String[] names = new String[3];\n for (int i = 0; i < 3; i++) {\n names[i] = cld2Library._ZN4CLD212LanguageNameENS_8LanguageE(lang3[i]);\n }\n return names;\n }", "title": "" }, { "docid": "7e2bd304becdf2a757ff7af16b5279b8", "score": "0.5597583", "text": "private void addWords(ArrayList<Language> langs)\r\n\t{\r\n\t\tString key=\"\", code, keys[];\r\n\t\tint hm = 0, len = words.size();\r\n\t\tWord word, nextWord, reversal;\r\n\t\tReversal reversalObject;\r\n\t\tLanguage language;\r\n\t\t\r\n\t\tLanguage vernacular = langs.get(0);\r\n\t\t\r\n\t\tfor (int w=0; w<len; w++)\r\n\t\t{ \r\n\t\t\tword = words.get(w);\r\n\t\t\tif (w<len-1) \r\n\t\t\t{\r\n\t\t\t\tnextWord = words.get(w+1);\r\n\t\t\t\tkey = word.getKey();\r\n\t\t\t\t\r\n\t\t\t\tif (key.equals(nextWord.getKey()))\r\n\t\t\t\t{\r\n\t\t\t\t\tword.setKey(key + \"_\" + ++hm);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif (hm!=0)\r\n\t\t\t\t\t\tword.setKey(word.getKey() + \"_\" + ++hm);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\thm = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvernacular.addWord(word); \r\n\t\t}\r\n\t\t\r\n\t\tfor (int i=0; i<reversals.size(); i++)\r\n\t\t{\r\n\t\t\treversalObject = reversals.get(i);\r\n\t\t\tcode = reversalObject.getLanguage();\r\n\t\t\tword = reversalObject.getWord();\r\n\t\t\tkey = reversalObject.getKey();\r\n\t\t\t\r\n\t\t\tif (key==null || key.length()==0) continue;\r\n\t\t\tkeys = key.split(\";\");\r\n\t\t\t\r\n\t\t\tkey = word.getKey();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (int j=0; j<keys.length; j++)\r\n\t\t\t{\r\n\t\t\t\tlanguage = null;\r\n\t\t\t\tfor (int k=0; k<langs.size(); k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (langs.get(k).getLanguageCode().equals(code))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlanguage = langs.get(k);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (language!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\treversal = (Word)word.clone();\r\n\t\t\t\t\treversal.setIndigenousData(languages.get(0), key);\r\n\t\t\t\t\treversal.setKey(keys[j].trim());\r\n\t\t\t\t\tlanguage.addWord(reversal);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} // end for reversals\r\n\t\t\r\n\t\tfor (int i=1; i<langs.size(); i++ )\r\n\t\t{\r\n\t\t\tlangs.get(i).sortWords();\r\n\t\t}\r\n\t\tdictionary.setLanguages(langs);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7855441dd567e18167d2e98356de378c", "score": "0.559671", "text": "private void setLanguage() throws IOException{\r\n while(true){\r\n\t \twrite(th.getLanguages().length+1, 's'); // Send the amount of languages + 1 of type string\r\n\t out.writeUTF(th.getLine(1)); // Select your language\r\n\t String[] temp = th.getLanguages(); // Get a list of all the languages\r\n\t for(int i = 1; i <= temp.length; i++){\r\n\t out.writeUTF(\"(\" + i + \")\" + temp[i-1]); // All the languages\r\n\t }\r\n\t write(-1, 'i'); // Receive 1 message of type integer\r\n\t int input = readInteger(); // Read the input\r\n\t input--;\r\n \tif(input < 0 || input > temp.length){ // If bad input do this\r\n \t\twrite(1, 's'); // Send 1 message of type string\r\n\t \tout.writeUTF(th.getLine(14) + temp.length); // The input must be between 1 and 'the amount of languages'\r\n \t}else{\r\n \t\tth.setLanguage(input); // Set the language\r\n \t\tbreak; // break the loop, the input was accepted\r\n \t}\r\n }\r\n }", "title": "" }, { "docid": "27256a0549cd6e52997619d023c94ef2", "score": "0.5576724", "text": "private ArrayList<Language> createLanguages()\r\n\t{\r\n\t\tLanguageFont font;\r\n\t\tLanguage language;\r\n\t\tArrayList<Language> dictionaryLanguages = new ArrayList<Language>();\r\n\t\tArrayList<String> uniqueLanguages = getLanguages();\r\n\t\tString name;\r\n\t\tint index;\r\n\t\t\r\n\t\tfor (String lang: uniqueLanguages)\r\n\t\t{\r\n\t\t\tindex = lang.indexOf(' ');\r\n\t\t\tname = lang.substring(index + 1);\r\n\t\t\tlang = lang.substring(0,index);\r\n\t\t\t\r\n\t\t\tfont = new LanguageFont(\"Times New Roman\", 12, name);\r\n\t\t\tlanguage = new Language(lang, font);\r\n\t\t\tdictionaryLanguages.add(language);\r\n\t\t}\r\n\t\treturn dictionaryLanguages;\r\n\t}", "title": "" }, { "docid": "10879d829d0113ce64a67b254dc76d43", "score": "0.55692554", "text": "int getLanguage();", "title": "" }, { "docid": "10879d829d0113ce64a67b254dc76d43", "score": "0.55692554", "text": "int getLanguage();", "title": "" }, { "docid": "9a74793809a67674844d8cff0a1eaa32", "score": "0.5559658", "text": "public Stemmer(String language){\n this.language = language; \n }", "title": "" }, { "docid": "83e4a491227da961d3b2dc922919fb25", "score": "0.5531429", "text": "public void setEngWords(String engWords) {\n this.engWords = engWords;\n }", "title": "" }, { "docid": "12fae616bcf783071f735bba25dd38b1", "score": "0.5472221", "text": "public void setAllLanguages( List<String> allLanguages )\n {\n this.allLanguages = allLanguages;\n }", "title": "" }, { "docid": "dbf70238a5bf18028646d518e4d2e9c3", "score": "0.54523087", "text": "public List<String> getLtrLanguages();", "title": "" }, { "docid": "2df9c5870171291ff0539ed22ac1a02b", "score": "0.5443797", "text": "public void setLanguage( String lang );", "title": "" }, { "docid": "4859cb23395ab7b964d0455984a4760c", "score": "0.5429465", "text": "public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder addLanguagesBuilder(\n int index) {\n return getLanguagesFieldBuilder().addBuilder(\n index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.getDefaultInstance());\n }", "title": "" }, { "docid": "48486860c192017579cee941391e319a", "score": "0.5428363", "text": "public static void setLanguage() {\n }", "title": "" }, { "docid": "445e9a96d59b8d1f2f9b1a53045fe6d4", "score": "0.5423024", "text": "public String getEngWords() {\n return engWords;\n }", "title": "" }, { "docid": "54c0debb7ee3039b83d4eda88eeae7a4", "score": "0.5395236", "text": "Collection getBonusLanguages();", "title": "" }, { "docid": "e0e417810264464bdc7141ce96a6b95c", "score": "0.5357464", "text": "public interface ILanguage {\n\n\t/**\n\t * Returns a formula corresponding to the initial but converted in a\n\t * translatable subclass of formula. The result has to be a subtype of formula.\n\t * @param f The formula to convert\n\t * @return the converted formula\n\t **/\n\tpublic ITranslatable formulaFactory(Formula f);\n\n\t/**\n\t * Returns a type corresponding to the initial one but converted in a\n\t * translatable type.\n\t * @param t The type to convert\n\t * @return the converted type\n\t **/\n\tpublic ITranslatable typeFactory(Type t) throws LanguageException ;\n\n\t/**\n\t * Returns quantified variables corresponding to the initial ones but \n\t * translatable.\n\t * @param qvf The quantified variables to convert\n\t * @return the converted quantified variables\n\t **/\n\tpublic ITranslatable quantifiedVarFactory(QuantifiedVarForm qvf);\n\n\t/**\n\t * Displays a goal in the lemma view.\n\t * @param g The goal to display\n\t * @return the string to print in the lemma view that correspond to the \n\t * goal.\n\t */\n\tpublic String displayGoal(Goal g, boolean applySubstitution);\n\n\t/**\n\t * Saves a terminal formula in a jpo file.\n\t * @param s The jpo file\n\t * @param f The formula to save\n\t * @throws IOException\n\t */\n\tpublic void save(IOutputStream s, TerminalForm f)\n\t\tthrows IOException, LanguageException;\n\n\t/**\n\t * Saves the result of a translation in a jpo file.\n\t * @param s The jpo file\n\t * @param result The result to save\n\t * @throws IOException\n\t */\n\tpublic void save(IOutputStream s, ITranslationResult result)\n\t\tthrows IOException;\n\n\t/**\n\t * Load a terminal formula from a jpo file.\n\t * @param s The jpo file\n\t * @return\n\t */\n\tpublic ITranslationResult load(JpoInputStream s) throws IOException;\n\n\t\n\t/**\n\t * Returns a formula corresponding to the initial but converted in a\n\t * translatable subclass of formula. The result has to be a subtype of formula.\n\t * @param f The formulas to convert\n\t * @return the converted formula\n\t **/\n\tpublic String[] displayHyp(VirtualFormula[] f) throws LanguageException;\n\n\t\n\tpublic String getName();\n\t\n\t\n}", "title": "" }, { "docid": "07d89a06b94b970d2eda41aa2a3fafa5", "score": "0.5322001", "text": "public void tamilLanguage() {\n\t\tSystem.out.println(\"In southIndia people will speak tamil in Tamilnadu\");\n\t}", "title": "" }, { "docid": "6dc27922f600fe69b8af8cd2af142d31", "score": "0.5304999", "text": "public static interface PU_LANGUAGE_TYPE {\n\t\t/**\n\t\t * \\ufffd\\ufffd\\ufffd\\ufffd<br>\n\t\t * <i>native declaration : E:\\video\\HWPuSDK.h:1063</i>\n\t\t */\n\t\tpublic static final int PU_LANGUAGE_TYPE_CHINESE = 0;\n\t\t/**\n\t\t * \\u04e2\\ufffd\\ufffd<br>\n\t\t * <i>native declaration : E:\\video\\HWPuSDK.h:1064</i>\n\t\t */\n\t\tpublic static final int PU_LANGUAGE_TYPE_ENGLISH = 1;\n\t\t/** <i>native declaration : E:\\video\\HWPuSDK.h:1065</i> */\n\t\tpublic static final int PU_LANGUAGE_TYPE_MAX = 2;\n\t}", "title": "" }, { "docid": "a48f3295803f4b5d8aa0cef425bd9a73", "score": "0.5297296", "text": "public static void loadLanguages() {\n //For every file specified, load them into the Language Registry\n for (Localizations localization : Localizations.values()) {\n \tString localizationFile = Localizations.LANG_RESOURCE_LOCATION + localization.getFile();\n try {\n BufferedReader paramReader = new BufferedReader(new InputStreamReader(DoggyTalentsMod.class.getResourceAsStream(localizationFile))); \n\t\t\tString line = \"\";\n\t\t\twhile((line = paramReader.readLine()) != null) {\n\t\t\t\tif(!line.isEmpty() && !line.startsWith(\"#\")) {\n\t\t\t\t\tString[] split = line.split(\"=\");\n\t\t\t\t\tString inGameName = split[1];\n\t\t\t\t\tint count = 2;\n\t\t\t\t\twhile(split.length > count) {\n\t\t\t\t\t\tinGameName += split[count] + (split.length - 1 != count ? \"=\" : \"\");\n\t\t\t\t\t\t++count;\n\t\t\t\t\t}\n\t\t\t\t\tLanguageRegistry.instance().addStringLocalization(split[0], LocalizationHelper.getLocaleFromFileName(localizationFile), inGameName);\n\t\t\t\t}\n\t\t\t}\n }\n catch(Exception e) {\n \te.printStackTrace();\n }\n \t//LanguageRegistry.instance().loadLocalization(localizationFile, LocalizationHelper.getLocaleFromFileName(localizationFile), LocalizationHelper.isXMLLanguageFile(localizationFile));\n }\n }", "title": "" }, { "docid": "9025f67dda898efc4f25df616decf9a4", "score": "0.5276844", "text": "List<LanguageData> getLanguages();", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.52590907", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "6726ca718ff1d44ee903cfb4e9f6419c", "score": "0.52490485", "text": "public int getSupportedLanguages() {\n return supportedLanguages_;\n }", "title": "" }, { "docid": "32990a21337289c29ba602b98739792e", "score": "0.52466685", "text": "public static HashMap<String, Language> initLanguages() {\n\t\tHashMap<String, Language> languagesInit = new HashMap<String, Language>();\r\n\r\n\t\tEnglishLanguage.init(languagesInit);\r\n\r\n\t\tCatalanLanguage.init(languagesInit);\r\n\r\n\t\tRussianLanguage.init(languagesInit);\r\n\r\n\t\tSpanishLanguage.init(languagesInit);\r\n\r\n\t\treturn languagesInit;\r\n\t}", "title": "" }, { "docid": "e7d85de10d670dd16fc2bccfc63a4f32", "score": "0.52423894", "text": "private static void MissingLanguageValidation() throws Exception {\n\t\tArrayList<Integer> missingLangs = new ArrayList<Integer>();\n\n\t\tMissingLanguageModel model_lang = new MissingLanguageModel(0.5);\n\t\tfor (int i = 0; i < 100000; i++) {\n\t\t\tArrayList<Sequence> testLang = new ArrayList<Sequence>();\n\t\t\tString seq = \"\";\n\t\t\tfor (int j = 0; j < 100; j++) {\n\t\t\t\tseq += \"1\";\n\t\t\t}\n\n\t\t\tSequence l = new Sequence(Integer.toString(0), seq);\n\t\t\ttestLang.add(l);\n\n\t\t\tSystem.out.println(i);\n\t\t\tArrayList<Sequence> tmpLang = new ArrayList<Sequence>();\n\t\t\ttmpLang = model_lang.generateMissingData(testLang, \"0 10 20 30 40 50 60 70 80 90\");\n\t\t\tint missingLang = 0;\n\t\t\tString s = tmpLang.get(0).getData();\n\t\t\tfor (char a : s.toCharArray()) {\n\t\t\t\tif (a=='?') {\n\t\t\t\t\tmissingLang ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmissingLangs.add(missingLang);\n\t\t}\n\t\tlistToCSV(missingLangs, \"Utilities/Thesis Graph Generation/missing_lang.csv\");\n\t}", "title": "" }, { "docid": "24a5bacd3bf62ae23bbffd2ec26192f8", "score": "0.52219063", "text": "@Test\n\tpublic void testPerformanceMultipleTranslationCalls() {\n\t\t\n\t\tfor(int counter=0; counter<TRANSLATION_LOOPS; counter++) {\n\t\t\tassertEquals(\"In addition, 20,000 new jobs are to be created in existing locations, and Apple also wants to open a new campus for its employees.\", googleTranslator.translate(Locale.ENGLISH, \"Zudem sollen 20.000 neue Jobs an bereits existierenden Standorten entstehen, ferner wolle Apple einen neuen Campus für seine Mitarbeiterinnen und Mitarbeiter eröffnen.\").get());\n\t\t\tassertEquals(\"One of the objectives of the recently enacted tax reform by President Donald Trump is to redirect these funds back to the United States.\", googleTranslator.translate(Locale.ENGLISH, \"Ziel der jüngst in Kraft getretenen Steuerreform von Präsident Donald Trump ist es unter anderem, diese Gelder wieder in die Vereinigten Staaten umzuleiten.\").get());\n\t\t}\n\t}", "title": "" }, { "docid": "02e909143253d0589fa22b91e65b145b", "score": "0.52211016", "text": "@Override\n public void setLanguage(Constants.Language lang) {\n switch (lang) {\n case ENGLISH:\n strTitle.setText(\"Simulation:\");\n btnBegin.setText(\"Begin\");\n btnPerformAllRuns.setText(\"Perform All Runs\");\n ltfNumRandomSurvivors.setLabelText(\"Number of Random Survivors: \");\n ltfNumDrones.setLabelText(\"Number of Drones: \");\n ltfTimeLimit.setLabelText(\"Time Limit (Seconds): \");\n ltfSimSpeed.setLabelText(\"Fast Forward: \");\n btnMax.setText(\"Max\");\n btnMin.setText(\"Min\");\n btnApply.setText(\"Apply\");\n break;\n\n case JAPANESE:\n strTitle.setText(\"Simulation:\");\n btnBegin.setText(\"Begin\");\n btnPerformAllRuns.setText(\"Perform All Runs\");\n ltfNumRandomSurvivors.setLabelText(\"Number of Random Survivors: \");\n ltfNumDrones.setLabelText(\"Number of Drones: \");\n ltfTimeLimit.setLabelText(\"Time Limit (Seconds): \");\n ltfSimSpeed.setLabelText(\"Fast Forward: \");\n btnMax.setText(\"Max\");\n btnMin.setText(\"Min\");\n btnApply.setText(\"Apply\");\n break;\n\n case BOTH:\n strTitle.setText(\"Simulation:\");\n btnBegin.setText(\"Begin\");\n btnPerformAllRuns.setText(\"Perform All Runs\");\n ltfNumRandomSurvivors.setLabelText(\"Number of Random Survivors: \");\n ltfNumDrones.setLabelText(\"Number of Drones: \");\n ltfTimeLimit.setLabelText(\"Time Limit (Seconds): \");\n ltfSimSpeed.setLabelText(\"Fast Forward: \");\n btnMax.setText(\"Max\");\n btnMin.setText(\"Min\");\n btnApply.setText(\"Apply\");\n break;\n }\n }", "title": "" }, { "docid": "b61a3ec7a370ac9b11a60ce270a02e14", "score": "0.5218856", "text": "@NotNull\n @Generated\n @Selector(\"recognitionLanguages\")\n public native NSArray<String> recognitionLanguages();", "title": "" }, { "docid": "81ace36796daef7aa05b75af92f57b1f", "score": "0.52114856", "text": "private static void GTRTreeBorrowingValidationThreeLanguages() throws Exception {\n\t\tTree tree = null;\n\t\tArrayList<Integer> zeroZeroZero = new ArrayList<Integer>();\n\t\tArrayList<Integer> oneZeroZero = new ArrayList<Integer>();\n\t\tArrayList<Integer> zeroOneZero = new ArrayList<Integer>();\n\t\tArrayList<Integer> zeroZeroOne = new ArrayList<Integer>();\n\t\tArrayList<Integer> oneOneZero = new ArrayList<Integer>();\n\t\tArrayList<Integer> oneZeroOne = new ArrayList<Integer>();\n\t\tArrayList<Integer> zeroOneOne = new ArrayList<Integer>();\n\t\tArrayList<Integer> oneOneOne = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < 10000; i++) {\n\t\t\tSystem.out.println(i);\n\t\t\tExplicitBinaryGTR gtr_mod = new ExplicitBinaryGTR(0.5, 0.5, 0.0, false);\n\t\t\tString seq = \"\";\n\t\t\tfor (int j = 0; j < 20; j++) {\n\t\t\t\tseq += Integer.toString(Randomizer.nextInt(2));\n\t\t\t}\n\t\t\tSequence l = new Sequence(\"\", seq);\n\t\t\ttree = randomYuleTree3Branch(3, 0.01);\n\t\t\ttree.getRoot().setMetaData(\"lang\", l);\n\t\t\ttree = gtr_mod.mutateOverTreeBorrowing(tree);\n\t\t\tList<Node> ext = tree.getExternalNodes();\n\t\t\tString l1 = ((Sequence) ext.get(0).getMetaData(\"lang\")).getData();\n\t\t\tString l2 = ((Sequence) ext.get(1).getMetaData(\"lang\")).getData();\n\t\t\tString l3 = ((Sequence) ext.get(2).getMetaData(\"lang\")).getData();\n\t\t\tInteger zeroZeroZeroInt = 0;\n\t\t\tInteger oneZeroZeroInt = 0;\n\t\t\tInteger zeroOneZeroInt = 0;\n\t\t\tInteger zeroZeroOneInt = 0;\n\t\t\tInteger oneOneZeroInt = 0;\n\t\t\tInteger oneZeroOneInt = 0;\n\t\t\tInteger zeroOneOneInt = 0;\n\t\t\tInteger oneOneOneInt = 0;\n\t\t\tfor (int j = 0; j < 20; j++) {\n\t\t\t\tif (l1.charAt(j) == '0' && l2.charAt(j) == '0' && l3.charAt(j) == '0') {\n\t\t\t\t\tzeroZeroZeroInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '1' && l2.charAt(j) == '0' && l3.charAt(j) == '0') {\n\t\t\t\t\toneZeroZeroInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '0' && l2.charAt(j) == '1' && l3.charAt(j) == '0') {\n\t\t\t\t\tzeroOneZeroInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '0' && l2.charAt(j) == '0' && l3.charAt(j) == '1') {\n\t\t\t\t\tzeroZeroOneInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '1' && l2.charAt(j) == '1' && l3.charAt(j) == '0') {\n\t\t\t\t\toneOneZeroInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '1' && l2.charAt(j) == '0' && l3.charAt(j) == '1') {\n\t\t\t\t\toneZeroOneInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '0' && l2.charAt(j) == '1' && l3.charAt(j) == '1') {\n\t\t\t\t\tzeroOneOneInt += 1;\n\t\t\t\t} else if (l1.charAt(j) == '1' && l2.charAt(j) == '1' && l3.charAt(j) == '1') {\n\t\t\t\t\toneOneOneInt += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tzeroZeroZero.add(zeroZeroZeroInt);\n\t\t\toneZeroZero.add(oneZeroZeroInt);\n\t\t\tzeroOneZero.add(zeroOneZeroInt);\n\t\t\tzeroZeroOne.add(zeroZeroOneInt);\n\t\t\toneOneZero.add(oneOneZeroInt);\n\t\t\toneZeroOne.add(oneZeroOneInt);\n\t\t\tzeroOneOne.add(zeroOneOneInt);\n\t\t\toneOneOne.add(oneOneOneInt);\n\t\t}\n\n\t\tlistToCSV(zeroZeroZero, \"Utilities/Thesis Graph Generation/gtr000.csv\");\n\t\tlistToCSV(oneZeroZero, \"Utilities/Thesis Graph Generation/gtr100.csv\");\n\t\tlistToCSV(zeroOneZero, \"Utilities/Thesis Graph Generation/gtr010.csv\");\n\t\tlistToCSV(zeroZeroOne, \"Utilities/Thesis Graph Generation/gtr001.csv\");\n\t\tlistToCSV(oneOneZero, \"Utilities/Thesis Graph Generation/gtr110.csv\");\n\t\tlistToCSV(oneZeroOne, \"Utilities/Thesis Graph Generation/gtr101.csv\");\n\t\tlistToCSV(zeroOneOne, \"Utilities/Thesis Graph Generation/gtr011.csv\");\n\t\tlistToCSV(oneOneOne, \"Utilities/Thesis Graph Generation/gtr111.csv\");\n\t}", "title": "" }, { "docid": "af851aa88d07c84a34a6e8e81392b078", "score": "0.5209743", "text": "private String[] getLanguageCodes(int[] lang3)\n {\n String[] codes = new String[3];\n for (int i = 0; i < 3; i++) {\n codes[i] = cld2Library._ZN4CLD212LanguageCodeENS_8LanguageE(lang3[i]);\n }\n return codes;\n }", "title": "" }, { "docid": "6a46eef2d87ca8614d51ac443bc34893", "score": "0.52069163", "text": "public int getNumTotalSuggestionsByLang(String lang);", "title": "" }, { "docid": "6e6796b8600252b3070574bc5b86f13c", "score": "0.5201608", "text": "public String[] getQueryLanguages () {\r\n return queryLanguages;\r\n }", "title": "" }, { "docid": "609c401bf98c8b1071f7db02d804b1e4", "score": "0.51976466", "text": "public void generateLanguage(String language) { // properties is not in order thus a file writer is used, maybe we can extend Properties class\n PrintWriter writer;\n try {\n writer = new PrintWriter(new File(\"resources/\" + language + \".properties\"));\n for (OptionNodeBuilder factory : optionNodePool.values()) {\n OptionNodeIterator iterator = new OptionNodeIterator(factory.optionNode);\n while (iterator.hasNext()) {\n Node node = iterator.next();\n writer.println(node.getTranslatable() + \"=undefined\");\n }\n }\n writer.flush();\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "de8f68c5042397177205d4693e5cfc05", "score": "0.51966596", "text": "boolean hasSupportedLanguages();", "title": "" }, { "docid": "053a89287aafe75ce83bcf96b99764e4", "score": "0.51893187", "text": "public LanguageTraslatorES() {\n }", "title": "" }, { "docid": "36240a7def5ecbb59974ee6a31cd70a9", "score": "0.5184861", "text": "@Test\n public void TestGetSamples() {\n Set<ULocale> uniqueRuleSet = new HashSet<ULocale>();\n for (ULocale locale : factory.getAvailableULocales()) {\n uniqueRuleSet.add(PluralRules.getFunctionalEquivalent(locale, null));\n }\n for (ULocale locale : uniqueRuleSet) {\n PluralRules rules = factory.forLocale(locale);\n logln(\"\\nlocale: \" + (locale == ULocale.ROOT ? \"root\" : locale.toString()) + \", rules: \" + rules);\n Set<String> keywords = rules.getKeywords();\n for (String keyword : keywords) {\n Collection<Double> list = rules.getSamples(keyword);\n logln(\"keyword: \" + keyword + \", samples: \" + list);\n // with fractions, the samples can be empty and thus the list null. In that case, however, there will be\n // FixedDecimal values.\n // So patch the test for that.\n if (list.size() == 0) {\n // when the samples (meaning integer samples) are null, then then integerSamples must be, and the\n // decimalSamples must not be\n FixedDecimalSamples integerSamples = rules.getDecimalSamples(keyword, SampleType.INTEGER);\n FixedDecimalSamples decimalSamples = rules.getDecimalSamples(keyword, SampleType.DECIMAL);\n assertTrue(getAssertMessage(\"List is not null\", locale, rules, keyword), integerSamples == null\n && decimalSamples != null && decimalSamples.samples.size() != 0);\n } else {\n if (!assertTrue(getAssertMessage(\"Test getSamples.isEmpty\", locale, rules, keyword),\n !list.isEmpty())) {\n rules.getSamples(keyword);\n }\n if (rules.toString().contains(\": j\")) {\n // hack until we remove j\n } else {\n for (double value : list) {\n assertEquals(getAssertMessage(\"Match keyword\", locale, rules, keyword) + \"; value '\"\n + value + \"'\", keyword, rules.select(value));\n }\n }\n }\n }\n\n assertNull(locale + \", list is null\", rules.getSamples(\"@#$%^&*\"));\n assertNull(locale + \", list is null\", rules.getSamples(\"@#$%^&*\", SampleType.DECIMAL));\n }\n }", "title": "" }, { "docid": "28bce59be438f44fb7db22abdf3f6d94", "score": "0.51818067", "text": "public void setWords()\n\t{\n\t\t\n\t\twords[0] = \"notions\";\n\t\twords[1] = \"measure\";\n\t\twords[2] = \"product\";\n\t\twords[3] = \"foliage\";\n\t\twords[4] = \"garbage\";\n\t\twords[5] = \"minutes\";\n\t\twords[6] = \"chowder\";\n\t\twords[7] = \"recital\";\n\t\twords[8] = \"concoct\";\n\t\twords[9] = \"brownie\";\t\t\n\t}", "title": "" }, { "docid": "523f5950a5b1e76b8b6f82ca7b2344ca", "score": "0.5180929", "text": "public void loadAllLang() {\n \tfor (Language language : loadedProperties.keySet()) {\n \t\tthis.loadLang(language);\n \t}\n }", "title": "" }, { "docid": "76f07af6ac7099042e283c02bad9941e", "score": "0.51749617", "text": "public void setContentLanguage(String[] languages) throws MessagingException {\n/* 411 */ setContentLanguage(this, languages);\n/* */ }", "title": "" }, { "docid": "6e199f44c90cd575791d2547f75075ee", "score": "0.51578015", "text": "Iterator<Text> getDescriptions(String lang);", "title": "" }, { "docid": "6dea0373e961f87649456b32b6b984bb", "score": "0.5153641", "text": "@Override\n public Languages getLanguage() {\n return this.languages;\n }", "title": "" }, { "docid": "303a6ad0c3722aa7d8f59456bd65ac52", "score": "0.5152303", "text": "private static boolean isEnglish(String plaintext) {\n\t\tString[] words = getwords(plaintext);\n\t\tDictionary d = Dictionary.buildDictionary(\"C:\\\\Omar\\\\eclipse workspace\\\\CipherBlankTemplate\\\\words.txt\");\n\t\tdouble wordcount = 0;\n\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\tif (d.isWord(words[i])) {\n\t\t\t\twordcount++;\n\t\t\t}\n\t\t}\n\n\t\tif ((wordcount / words.length) >= 0.5) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a4f20a457b2911655b502497b3c72913", "score": "0.515227", "text": "Set<String> getInstalledLanguages();", "title": "" }, { "docid": "37374125f4451c04ff04b07e19723ebd", "score": "0.51508206", "text": "public int getSupportedLanguages() {\n return supportedLanguages_;\n }", "title": "" }, { "docid": "687d54a8d72002093fbbb46e4a5575bc", "score": "0.5150082", "text": "public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder getLanguagesBuilder(\n int index) {\n return getLanguagesFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "80e76e28ef0e44151100bc28bfc8cd8c", "score": "0.5144821", "text": "static void addLanguageScriptData() throws IOException {\n Set<String> langRegistryCodes = sc.getGoodAvailableCodes(\"language\");\n// Set<String> iso639_2_missing = new TreeSet(langRegistryCodes);\n// iso639_2_missing.removeAll(Iso639Data.getAvailable());\n// iso639_2_missing.remove(\"root\");\n// if (iso639_2_missing.size() != 0) {\n// for (String missing : iso639_2_missing){ \n// System.out.println(\"*ERROR in StandardCodes* Missing Lang/Script data:\\t\" + missing + \", \" + sc.getData(\"language\", missing));\n// }\n// }\n\n Map<String,String> nameToTerritoryCode = new TreeMap();\n for (String territoryCode : sc.getGoodAvailableCodes(\"territory\")) {\n nameToTerritoryCode.put(sc.getData(\"territory\", territoryCode).toLowerCase(), territoryCode);\n }\n nameToTerritoryCode.put(\"iran\",nameToTerritoryCode.get(\"iran, islamic republic of\")); // \n\n BasicLanguageData languageData = new BasicLanguageData();\n\n\n BufferedReader in = CldrUtility.getUTF8Data(\"extraLanguagesAndScripts.txt\");\n while (true) {\n String line = in.readLine();\n if (line == null) break;\n String[] parts = line.split(\"\\\\t\");\n String alpha3 = parts[0];\n alpha3 = stripBrackets(alpha3);\n String languageSubtag = Iso639Data.fromAlpha3(alpha3);\n if (languageSubtag == null) {\n if (langRegistryCodes.contains(alpha3)) {\n languageSubtag = alpha3;\n } else {\n System.out.println(\"*WARNING*\tLanguage subtag <\" + alpha3 + \"> not found, on line:\\t\" + line);\n continue;\n }\n }\n String name = parts[1];\n Set<String> names = Iso639Data.getNames(languageSubtag);\n if (names == null) {\n Map<String,String> name2 = sc.getLangData(\"language\", languageSubtag);\n if (name2 != null) {\n String name3 = name2.get(\"Description\");\n if (name3 != null) {\n names = new TreeSet();\n names.add(name3);\n }\n }\n }\n // if (names == null || !names.contains(name)) {\n // System.out.println(\"Name <\" + name + \"> for <\" + languageSubtag + \"> not found in \" + names);\n // }\n\n // names all straight, now get scripts and territories\n // [Cyrl]; [Latn]\n Set<String> fullScriptList = sc.getGoodAvailableCodes(\"script\");\n\n String[] scriptList = parts[2].split(\"[;,]\\\\s*\");\n Set<String> scripts = new TreeSet();\n Set<String> scriptsAlt = new TreeSet();\n for (String script : scriptList) {\n if (script.length() == 0) continue;\n boolean alt = false;\n if (script.endsWith(\"*\")) {\n alt = true;\n script = script.substring(0,script.length()-1);\n }\n script = stripBrackets(script);\n if (!fullScriptList.contains(script)) {\n System.out.println(\"Script <\" + script + \"> for <\" + languageSubtag + \"> not found in \" + fullScriptList);\n } else if (alt) {\n scriptsAlt.add(script);\n } else {\n scripts.add(script);\n }\n }\n // now territories\n Set<String> territories = new TreeSet();\n if (parts.length > 4) {\n String[] territoryList = parts[4].split(\"\\\\s*[;,-]\\\\s*\");\n for (String territoryName : territoryList) {\n if (territoryName.equals(\"ISO/DIS 639\") || territoryName.equals(\"3\")) continue;\n String territoryCode = nameToTerritoryCode.get(territoryName.toLowerCase());\n if (territoryCode == null) {\n System.out.println(\"*ERROR*\tTerritory <\" + territoryName + \"> for <\" + languageSubtag + \"> not found in \" + nameToTerritoryCode.keySet());\n } else {\n territories.add(territoryCode);\n }\n }\n }\n // <language type=\"de\" scripts=\"Latn\" territories=\"IT\" alt=\"secondary\"/>\n // we're going to go ahead and set these all to secondary.\n if (scripts.size() != 0) {\n language2BasicLanguageData.put(languageSubtag, new BasicLanguageData().setType(BasicLanguageData.Type.secondary).setScripts(scripts).setTerritories(territories));\n }\n if (scriptsAlt.size() != 0) {\n language2BasicLanguageData.put(languageSubtag, new BasicLanguageData().setType(BasicLanguageData.Type.secondary).setScripts(scriptsAlt).setTerritories(territories));\n }\n }\n in.close();\n\n // add other data\n for (String languageSubtag : supplementalData.getBasicLanguageDataLanguages()) {\n Set<BasicLanguageData> otherData = supplementalData.getBasicLanguageData(languageSubtag);\n language2BasicLanguageData.putAll(languageSubtag, otherData);\n }\n }", "title": "" }, { "docid": "7536362d85e390162ad1816cf3b7d1c9", "score": "0.5142995", "text": "String getLanguage(Player p);", "title": "" }, { "docid": "0b092ed259362ac3bfd76198328b1e2b", "score": "0.51380724", "text": "public void setC_language(int i){\n c_language = i;\n }", "title": "" }, { "docid": "7c579a3d6f894c6e12164df155705a68", "score": "0.5126976", "text": "public String getLanguage();", "title": "" }, { "docid": "7c579a3d6f894c6e12164df155705a68", "score": "0.5126976", "text": "public String getLanguage();", "title": "" }, { "docid": "2d9c8cdf475a4c6f3d01a093d6f0d875", "score": "0.5125358", "text": "static ULocale[] parseAcceptLanguage(String acceptLanguage, boolean isLenient)\n/* */ throws ParseException\n/* */ {\n/* 1861 */ TreeMap<1ULocaleAcceptLanguageQ, ULocale> map = new TreeMap();\n/* */ \n/* 1863 */ StringBuilder languageRangeBuf = new StringBuilder();\n/* 1864 */ StringBuilder qvalBuf = new StringBuilder();\n/* 1865 */ int state = 0;\n/* 1866 */ acceptLanguage = acceptLanguage + \",\";\n/* */ \n/* 1868 */ boolean subTag = false;\n/* 1869 */ boolean q1 = false;\n/* 1870 */ for (int n = 0; n < acceptLanguage.length(); n++) {\n/* 1871 */ boolean gotLanguageQ = false;\n/* 1872 */ char c = acceptLanguage.charAt(n);\n/* 1873 */ switch (state) {\n/* */ case 0: \n/* 1875 */ if ((('A' <= c) && (c <= 'Z')) || (('a' <= c) && (c <= 'z')))\n/* */ {\n/* 1877 */ languageRangeBuf.append(c);\n/* 1878 */ state = 1;\n/* 1879 */ subTag = false;\n/* 1880 */ } else if (c == '*') {\n/* 1881 */ languageRangeBuf.append(c);\n/* 1882 */ state = 2;\n/* 1883 */ } else if ((c != ' ') && (c != '\\t'))\n/* */ {\n/* 1885 */ state = -1;\n/* */ }\n/* */ break;\n/* */ case 1: \n/* 1889 */ if ((('A' <= c) && (c <= 'Z')) || (('a' <= c) && (c <= 'z'))) {\n/* 1890 */ languageRangeBuf.append(c);\n/* 1891 */ } else if (c == '-') {\n/* 1892 */ subTag = true;\n/* 1893 */ languageRangeBuf.append(c);\n/* 1894 */ } else if (c == '_') {\n/* 1895 */ if (isLenient) {\n/* 1896 */ subTag = true;\n/* 1897 */ languageRangeBuf.append(c);\n/* */ } else {\n/* 1899 */ state = -1;\n/* */ }\n/* 1901 */ } else if (('0' <= c) && (c <= '9')) {\n/* 1902 */ if (subTag) {\n/* 1903 */ languageRangeBuf.append(c);\n/* */ }\n/* */ else {\n/* 1906 */ state = -1;\n/* */ }\n/* 1908 */ } else if (c == ',')\n/* */ {\n/* 1910 */ gotLanguageQ = true;\n/* 1911 */ } else if ((c == ' ') || (c == '\\t'))\n/* */ {\n/* 1913 */ state = 3;\n/* 1914 */ } else if (c == ';')\n/* */ {\n/* 1916 */ state = 4;\n/* */ }\n/* */ else {\n/* 1919 */ state = -1;\n/* */ }\n/* 1921 */ break;\n/* */ case 2: \n/* 1923 */ if (c == ',')\n/* */ {\n/* 1925 */ gotLanguageQ = true;\n/* 1926 */ } else if ((c == ' ') || (c == '\\t'))\n/* */ {\n/* 1928 */ state = 3;\n/* 1929 */ } else if (c == ';')\n/* */ {\n/* 1931 */ state = 4;\n/* */ }\n/* */ else {\n/* 1934 */ state = -1;\n/* */ }\n/* 1936 */ break;\n/* */ case 3: \n/* 1938 */ if (c == ',')\n/* */ {\n/* 1940 */ gotLanguageQ = true;\n/* 1941 */ } else if (c == ';')\n/* */ {\n/* 1943 */ state = 4;\n/* 1944 */ } else if ((c != ' ') && (c != '\\t'))\n/* */ {\n/* 1946 */ state = -1;\n/* */ }\n/* */ break;\n/* */ case 4: \n/* 1950 */ if (c == 'q')\n/* */ {\n/* 1952 */ state = 5;\n/* 1953 */ } else if ((c != ' ') && (c != '\\t'))\n/* */ {\n/* 1955 */ state = -1;\n/* */ }\n/* */ break;\n/* */ case 5: \n/* 1959 */ if (c == '=')\n/* */ {\n/* 1961 */ state = 6;\n/* 1962 */ } else if ((c != ' ') && (c != '\\t'))\n/* */ {\n/* 1964 */ state = -1;\n/* */ }\n/* */ break;\n/* */ case 6: \n/* 1968 */ if (c == '0')\n/* */ {\n/* 1970 */ q1 = false;\n/* 1971 */ qvalBuf.append(c);\n/* 1972 */ state = 7;\n/* 1973 */ } else if (c == '1')\n/* */ {\n/* 1975 */ qvalBuf.append(c);\n/* 1976 */ state = 7;\n/* 1977 */ } else if (c == '.') {\n/* 1978 */ if (isLenient) {\n/* 1979 */ qvalBuf.append(c);\n/* 1980 */ state = 8;\n/* */ } else {\n/* 1982 */ state = -1;\n/* */ }\n/* 1984 */ } else if ((c != ' ') && (c != '\\t'))\n/* */ {\n/* 1986 */ state = -1;\n/* */ }\n/* */ break;\n/* */ case 7: \n/* 1990 */ if (c == '.')\n/* */ {\n/* 1992 */ qvalBuf.append(c);\n/* 1993 */ state = 8;\n/* 1994 */ } else if (c == ',')\n/* */ {\n/* 1996 */ gotLanguageQ = true;\n/* 1997 */ } else if ((c == ' ') || (c == '\\t'))\n/* */ {\n/* 1999 */ state = 10;\n/* */ }\n/* */ else {\n/* 2002 */ state = -1;\n/* */ }\n/* 2004 */ break;\n/* */ case 8: \n/* 2006 */ if (('0' <= c) || (c <= '9')) {\n/* 2007 */ if ((q1) && (c != '0') && (!isLenient))\n/* */ {\n/* 2009 */ state = -1;\n/* */ }\n/* */ else {\n/* 2012 */ qvalBuf.append(c);\n/* 2013 */ state = 9;\n/* */ }\n/* */ }\n/* */ else {\n/* 2017 */ state = -1;\n/* */ }\n/* 2019 */ break;\n/* */ case 9: \n/* 2021 */ if (('0' <= c) && (c <= '9')) {\n/* 2022 */ if ((q1) && (c != '0'))\n/* */ {\n/* 2024 */ state = -1;\n/* */ } else {\n/* 2026 */ qvalBuf.append(c);\n/* */ }\n/* 2028 */ } else if (c == ',')\n/* */ {\n/* 2030 */ gotLanguageQ = true;\n/* 2031 */ } else if ((c == ' ') || (c == '\\t'))\n/* */ {\n/* 2033 */ state = 10;\n/* */ }\n/* */ else {\n/* 2036 */ state = -1;\n/* */ }\n/* 2038 */ break;\n/* */ case 10: \n/* 2040 */ if (c == ',')\n/* */ {\n/* 2042 */ gotLanguageQ = true;\n/* 2043 */ } else if ((c != ' ') && (c != '\\t'))\n/* */ {\n/* 2045 */ state = -1;\n/* */ }\n/* */ break;\n/* */ }\n/* 2049 */ if (state == -1)\n/* */ {\n/* 2051 */ throw new ParseException(\"Invalid Accept-Language\", n);\n/* */ }\n/* 2053 */ if (gotLanguageQ) {\n/* 2054 */ double q = 1.0D;\n/* 2055 */ if (qvalBuf.length() != 0) {\n/* */ try {\n/* 2057 */ q = Double.parseDouble(qvalBuf.toString());\n/* */ }\n/* */ catch (NumberFormatException nfe) {\n/* 2060 */ q = 1.0D;\n/* */ }\n/* 2062 */ if (q > 1.0D) {\n/* 2063 */ q = 1.0D;\n/* */ }\n/* */ }\n/* 2066 */ if (languageRangeBuf.charAt(0) != '*') {\n/* 2067 */ int serial = map.size();\n/* 2068 */ Comparable entry = new Comparable()\n/* */ {\n/* */ private double q;\n/* */ private double serial;\n/* */ \n/* */ public int compareTo(1ULocaleAcceptLanguageQ other)\n/* */ {\n/* 1845 */ if (this.q > other.q)\n/* 1846 */ return -1;\n/* 1847 */ if (this.q < other.q) {\n/* 1848 */ return 1;\n/* */ }\n/* 1850 */ if (this.serial < other.serial)\n/* 1851 */ return -1;\n/* 1852 */ if (this.serial > other.serial) {\n/* 1853 */ return 1;\n/* */ }\n/* 1855 */ return 0;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2069 */ };\n/* 2070 */ map.put(entry, new ULocale(canonicalize(languageRangeBuf.toString())));\n/* */ }\n/* */ \n/* */ \n/* 2074 */ languageRangeBuf.setLength(0);\n/* 2075 */ qvalBuf.setLength(0);\n/* 2076 */ state = 0;\n/* */ }\n/* */ }\n/* 2079 */ if (state != 0)\n/* */ {\n/* 2081 */ throw new ParseException(\"Invalid AcceptlLanguage\", n);\n/* */ }\n/* */ \n/* */ \n/* 2085 */ ULocale[] acceptList = (ULocale[])map.values().toArray(new ULocale[map.size()]);\n/* 2086 */ return acceptList;\n/* */ }", "title": "" }, { "docid": "aa3f90b6c1a8ed8fb2e851d81008e92f", "score": "0.51103956", "text": "private Language() {\n loadLanguage();\n }", "title": "" }, { "docid": "d820f0a954435c331a544d759f4abeab", "score": "0.5104708", "text": "Language()\n {\n super();\n }", "title": "" }, { "docid": "47ada457a27173c024ce73ec8626cd03", "score": "0.50987417", "text": "Language(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "de193c3fdd47ee36f552aa6b3a1707f3", "score": "0.5097921", "text": "com.google.protobuf.ByteString\n getLanguageBytes();", "title": "" }, { "docid": "73abcbec2963bcf46042b4fee3fbea15", "score": "0.50816554", "text": "private void checkEnglish()\n\t{\n\t\tString spanish = ConfigFile.spanish;\n\t\tif (spanish.equals(\"\"))\n\t\t\tspanish = \".*(estoy|espada|armadura|vamos|soy nuev|(algu?i?e?n)|donde est|juegos|tengo|ayudame|quien habl|como est|mierda).*\";\n\t\tString something = ConfigFile.language;\n\t\tif (something.equals(\"\"))\n\t\t\tsomething = \".*(alguem|beyler|olan var|esti roma|unde esti|magyar|hrvat|gelirim|kann ich|(t.?rk var ?m)|(t.?rk olan)|ceza |yiycem|e konu|nerdes|arkada|eu sunt|sunt roma|yazd.?m| ima li |srbije|burday.?m).*\";\n\t\tif ((\" \" + this.lowerText + \" \").matches(spanish))\n\t\t{\n\t\t\tif (this.channel.equals(\"global\"))\n\t\t\t\tthis.addWarning(\"solamente Ingles en global chat\");\n\t\t\telse\n\t\t\t\tthis.addWarning(\"English in \" + this.channel + \" chat\");\n\t\t}\n\t\telse if ((\" \" + this.lowerText + \" \").matches(something))\n\t\t\tthis.addWarning(\"English in \" + this.channel + \" chat\");\n\t}", "title": "" }, { "docid": "df5bbf840a3c2a549a49e97eb8332895", "score": "0.50812453", "text": "public String getDefaultLanguage();", "title": "" }, { "docid": "8befb6546b2b24f6e10125a5facf5003", "score": "0.5072366", "text": "@Override\n public void setLanguage(String language) {\n\n }", "title": "" }, { "docid": "261648ddf560f8af99578f3b1730daf3", "score": "0.505621", "text": "public abstract void startVoiceRecognition(String language);", "title": "" }, { "docid": "56986ba0492f92ce1b72960b5c57e98b", "score": "0.5043969", "text": "public ParametricStringMatcher()\r\n\t{\r\n\t\tAML aml = AML.getInstance();\r\n\t\tsLex = aml.getSource().getLexicon();\r\n\t\ttLex = aml.getTarget().getLexicon();\r\n\t\tlSet = AML.getInstance().getLanguageSetting();\r\n\t\tlanguages = new HashSet<String>();\r\n\t\tif(lSet.equals(LanguageSetting.MULTI))\r\n\t\t\tfor(String l : sLex.getLanguages())\r\n\t\t\t\tif(tLex.getLanguages().contains(l))\r\n\t\t\t\t\tlanguages.add(l);\r\n\t}", "title": "" }, { "docid": "b1d9fcddd9f56765aa8261f41489100c", "score": "0.50396085", "text": "@Override\n public Set<String> getSupportedLanguages() throws IOException {\n return null;\n }", "title": "" }, { "docid": "f8ed143e16da4a69e3d4cc3d43f44f0d", "score": "0.50371706", "text": "private void identifyLanguage(String string) {\n FirebaseLanguageIdentification languageIdentifier = FirebaseNaturalLanguage.getInstance().getLanguageIdentification();\n //2.Pass string to the identify Language Method\n languageIdentifier.identifyLanguage(string)\n .addOnSuccessListener(new OnSuccessListener<String>() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void onSuccess(@Nullable String languageCode) {\n if (languageCode != null) {\n if (!languageCode.equals(\"und\")) {\n languageOfText.append(\"Language With High Probability:\" + \"\\n\\n\");\n languageOfText.append(\"Language Code: \" + languageCode + \"\\n\\n\\n\");\n } else {\n languageOfText.setText(\"Can't identify language.\");\n }\n }\n }\n });\n //3. List of all possible language\n FirebaseLanguageIdentification allPossiblelanguageIdentifier =\n FirebaseNaturalLanguage.getInstance().getLanguageIdentification();\n allPossiblelanguageIdentifier.identifyPossibleLanguages(string).addOnCompleteListener(new OnCompleteListener<List<IdentifiedLanguage>>() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void onComplete(@NonNull Task<List<IdentifiedLanguage>> task) {\n List<IdentifiedLanguage> identifiedLanguageList = task.getResult();\n if (identifiedLanguageList != null) {\n languageOfText.append(\"All Possible Language Identified: \" + \"\\n\\n\");\n for (IdentifiedLanguage identifiedLanguage : identifiedLanguageList) {\n String language = identifiedLanguage.getLanguageCode();\n float confidence = identifiedLanguage.getConfidence();\n languageOfText.append(\"Language Code: \" + language + \" (\" + (\"\" + confidence * 100).subSequence(0, 4) + \"%\" + \")\" + \"\\n\\n\");\n }\n }\n }\n });\n }", "title": "" }, { "docid": "234d66c88d12eb1fce60565271169908", "score": "0.5033726", "text": "public Builder setLanguages(\n int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder builderForValue) {\n if (languagesBuilder_ == null) {\n ensureLanguagesIsMutable();\n languages_.set(index, builderForValue.build());\n onChanged();\n } else {\n languagesBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "9f815722b47f22a50f9e6f098833f8ff", "score": "0.5031136", "text": "public final Collection<String> getLanguages() {\n return languages;\n }", "title": "" }, { "docid": "8a37709dbd71636fe1ea8994240177bf", "score": "0.5026409", "text": "public final void mLANG() throws RecognitionException {\r\n try {\r\n final int _type = SparqlLexer.LANG;\r\n final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n if (this.input.LA(1) == 'L' || this.input.LA(1) == 'l') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n if (this.input.LA(1) == 'A' || this.input.LA(1) == 'a') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n if (this.input.LA(1) == 'N' || this.input.LA(1) == 'n') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n if (this.input.LA(1) == 'G' || this.input.LA(1) == 'g') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }", "title": "" }, { "docid": "a072eb5f686588c0ae18d4ae4f3c77a1", "score": "0.50247943", "text": "private Map<String, String> createEnglishLabels() {\n\t\tMap<String, String> language = new HashMap<>();\n\t\t\n\t\tlanguage.put(Labels.APP_TITLE, \"RuleRank Ultimate Desktop Edition\");\n\t\tlanguage.put(Labels.US_SETTINGS_ERROR, \"User settings are not correctly configured: \");\n\t\t\n\t\t// General buttons\n\t\tlanguage.put(Labels.BUTTON_SAVE, \"Save\");\n\t\tlanguage.put(Labels.BUTTON_CANCEL, \"Cancel\");\n\t\t\n\t\t// Dialogs\n\t\tlanguage.put(Labels.CONFIRM_DIALOG_TITLE, \"Confirm action\");\n\t\tlanguage.put(Labels.CONFIRM_DIALOG_YES, \"Yes\");\n\t\tlanguage.put(Labels.CONFIRM_DIALOG_NO, \"No\");\n\t\tlanguage.put(Labels.ABANDON_CHANGES_HEADER, \"Do you want to abandon changes in form?\");\n\t\t\n\t\tcreateEnglishMenuLabels(language);\n\t\tcreateEnglishToolbarLabels(language);\n\t\tcreateEnglishWorkspaceLabels(language);\n\t\tcreateEnglishUserSettingsLabels(language);\n\t\tcreateEnglishAboutLabels(language);\n\t\tcreateEnglishHelpLabels(language);\n\t\tcreateEnglishTabsLabels(language);\n\t\tcreateEnglishPropertiesLabels(language);\n\t\tcreateEnglishPropertiesMessages(language);\n\t\tcreateEnglishPropertiesValidationMessages(language);\n\t\tcreateEnglishPropertiesEmptyValidationMessages(language);\n\t\tcreateEnglishPropertiesTooltips(language);\n\t\tcreateEnglishParametersLabels(language);\n\t\tcreateEnglishPropertiesDialogsLabels(language);\n\t\tcreateEnglishExperimentRunnerLabels(language);\n\t\tcreateEnglishAttributeDialogLabels(language);\n\t\tcreateEnglishLearningTableLabels(language);\n\t\tcreateEnglishPCTLabels(language);\n\t\tcreateEnglishRulesLabels(language);\n\t\tcreateEnglishRulesStatisticsLabels(language);\n\t\tcreateEnglishRankingLabels(language);\n\t\tcreateEnglishTextTabLabels(language);\n\t\tcreateEnglishGraphTabLabels(language);\n\t\t\n\t\treturn language;\n\t}", "title": "" }, { "docid": "122e521f2d4b9f3e01454b514c455c3b", "score": "0.50169605", "text": "boolean hasLanguageRestriction();", "title": "" }, { "docid": "d64b3f23cc83fe58f25f5fb5c4278da6", "score": "0.501587", "text": "private void addLanguages() {\n ir_menuView.docs_language.getItems().clear();\n ir_menuView.docs_language.setDisable(false);\n TreeSet<String> languages = ir_modelMenu.getLanguages();\n while (!languages.isEmpty()) {\n ir_menuView.docs_language.getItems().addAll(languages.pollFirst());\n }\n }", "title": "" }, { "docid": "f570f869f2270d2d60c010319f323dff", "score": "0.5008374", "text": "public Builder setSupportedLanguages(int value) {\n bitField0_ |= 0x00000001;\n supportedLanguages_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2f166cc49f3e9f8be486bb666593d20f", "score": "0.50071526", "text": "public void variablesLocales() {\n\t}", "title": "" }, { "docid": "721665dd0b2f383efcc99b8c4b6a5de7", "score": "0.50011784", "text": "public Builder addLanguages(\n int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder builderForValue) {\n if (languagesBuilder_ == null) {\n ensureLanguagesIsMutable();\n languages_.add(index, builderForValue.build());\n onChanged();\n } else {\n languagesBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "fff33f46eab7b10f77ba7851d2cb6c4c", "score": "0.4999757", "text": "yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getLanguageRestriction();", "title": "" }, { "docid": "57b14ccb4c03b53ef349d03ab780bed0", "score": "0.49948657", "text": "public String getLang() {\n\t\treturn \"EN\";\n }", "title": "" }, { "docid": "7c8bfd34a2ad6d056cf2b5c30aea9f2a", "score": "0.498845", "text": "public double getLanguageLiteratePopulation(double weightIfNotOfficial) {\n double result = languageLiteracy * languagePopulation;\n if (!officialStatus.isMajor()) {\n result *= weightIfNotOfficial;\n }\n return result;\n }", "title": "" }, { "docid": "ac109f1b3ed9054ca3db541a783d71a1", "score": "0.4983849", "text": "public int getLanguagesCount() {\n if (languagesBuilder_ == null) {\n return languages_.size();\n } else {\n return languagesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.49809757", "text": "String getLang();", "title": "" } ]
48b15e356a9c56bfc756c1d89b10b2e4
creates a ndimensional vector
[ { "docid": "c90c3f53a062d4b04a7cb424f0073225", "score": "0.6828809", "text": "public Vector(int n){\n\t\tthis.n = n;\n\t\tthis.content = new double[n];\n\t}", "title": "" } ]
[ { "docid": "af0c723612a219673b0c2acc29fa1955", "score": "0.7136528", "text": "public NVector() {}", "title": "" }, { "docid": "7d30806f26eb160b14fe87109a280377", "score": "0.665296", "text": "public Vec() {\n\t\t//Set attributes\n\t\tnumComponents = 2;\n\t\t//Initialize array\n\t\tcomponents = new double[numComponents];\n\t}", "title": "" }, { "docid": "c520e7002c69066cf915a23f6e05e49e", "score": "0.62927765", "text": "public Vector (int dimension) {\n\t\tthis.dimension = dimension;\n\t\telements = new double[dimension];\n\t}", "title": "" }, { "docid": "6f5047e4efbe354daa2b26d1367a4b62", "score": "0.62707055", "text": "public INDArray getVector(int idx);", "title": "" }, { "docid": "0367e0d5824c52fde228179372624903", "score": "0.6251697", "text": "public Vec()\t\t{\tthis(0,0);\t\t}", "title": "" }, { "docid": "d417c05789d51cc585629309383b0012", "score": "0.624422", "text": "public Vector()//vetor nulo\n {\n Vx = 0;\n Vy = 0;\n //iniciamos os decimais\n Deci_X = 0;\n Deci_Y = 0;\n }", "title": "" }, { "docid": "38bf863cc0e16eb46d52f129979404e8", "score": "0.6179146", "text": "public DomainVec(Type[] array) { this.vec = new Vec<Type>(array); }", "title": "" }, { "docid": "5a942e6d0fcf619635cfc12d381c7bbf", "score": "0.61511934", "text": "private Vector vec(float x, float y, float z) {\n\t\treturn vecmath.vector(x, y, z);\n\t}", "title": "" }, { "docid": "d212295e9aa6044015771c73e629651f", "score": "0.61249727", "text": "public Vec(int nComps) {\n\t\t//Set attributes\n\t\tnumComponents = nComps;\n\t\t//Initialize array\n\t\tcomponents = new double[numComponents];\n\n\t\t//Set all components to 0\n\t\tfor(int i = 0; i < numComponents; i++){\n\t\t\tcomponents[i] = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "58fd7591b987e42d584956c8c93af46c", "score": "0.6055013", "text": "public static Vector makeVector(float[] column, Orientation orientation)\n\t{\n\t\treturn new Vector(column, orientation);\n\t}", "title": "" }, { "docid": "1e1c3affa9da07a9a4c5a33e5be15ed6", "score": "0.6029928", "text": "public static void main(String[] args) {\n\t int n = 14; \r\n\t Vector<Integer> vec = new Vector<Integer>(n+1);\r\n\t vec.addElement(3);\r\n\t vec.addElement(2);\r\n\t vec.addElement(1);\r\n\t vec.addElement(10);\r\n\t vec.addElement(1);\r\n\t vec.addElement(3);\r\n\t vec.addElement(9);\r\n\t vec.addElement(1);\r\n\t vec.addElement(5);\r\n\t vec.addElement(3);\r\n\t vec.addElement(4);\r\n\t vec.addElement(5);\r\n\t vec.addElement(9);\r\n\t vec.addElement(8);\r\n\t \r\n\t \r\n\r\n\t}", "title": "" }, { "docid": "4f83883e96eb76f4d5d9ded734167265", "score": "0.60093856", "text": "static List<List<Float>> generateVectors(int vectorCount, int dimension) {\n SplittableRandom splitCollectionRandom = new SplittableRandom();\n List<List<Float>> vectors = new ArrayList<>(vectorCount);\n for (int i = 0; i < vectorCount; ++i) {\n splitCollectionRandom = splitCollectionRandom.split();\n DoubleStream doubleStream = splitCollectionRandom.doubles(dimension);\n List<Float> vector =\n doubleStream.boxed().map(Double::floatValue).collect(Collectors.toList());\n vectors.add(vector);\n }\n return vectors;\n }", "title": "" }, { "docid": "6d358151657d9c5f9e8758b9108be0be", "score": "0.60067123", "text": "public double[] nextVector();", "title": "" }, { "docid": "ea4ab62e5f729d534f1afbb5687a3a23", "score": "0.5993018", "text": "public Vector(int dimensions)\n {\n if(dimensions <= 0)\n throw new IllegalArgumentException(DIMENSIONS_BELOW_ONE);\n\n this.coordinates = new double[dimensions];\n }", "title": "" }, { "docid": "67e12c68107d5afc84861da4ce45855a", "score": "0.597849", "text": "public VectorHelper()\r\n {\r\n final int tab[] = {5,6,1,3,12,21,8,15,0,7};\r\n this.size=10;\r\n this.vector=tab;\r\n }", "title": "" }, { "docid": "9d56153d6d6d65d6bb4dabba9af36d9b", "score": "0.5968327", "text": "public DomainVec() { this(new Vec<Type>()); }", "title": "" }, { "docid": "f987146f7115ddfac311165fd10e7bcf", "score": "0.59644145", "text": "public Vector(){\n this.x = 0;\n this.y = 0;\n }", "title": "" }, { "docid": "4a8333547ef9b31d725efb40c898a0ca", "score": "0.5954815", "text": "public Matrix vectorized() {\n\t\tfinal Matrix vec = new Matrix(rows * cols, 1);\n\t\tint k = 0;\n\t\tfor (int j = 0; j < cols; j++) {\n\t\t\tfor (int i = 0; i < rows; i++) {\n\t\t\t\tvec.putAt(k, 0, getAt(i, j));\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\treturn vec;\n\t}", "title": "" }, { "docid": "9bcab52e3423f6d6bee31e589fce776b", "score": "0.59340966", "text": "protected abstract double[] xVector(double x);", "title": "" }, { "docid": "c1464eba71f2cedb9cfb28edee4e62e6", "score": "0.5928568", "text": "public double lengthVector()\n/* */ {\n/* 145 */ return MathHelper.func_76133_a(this.xCoord * this.xCoord + this.yCoord * this.yCoord + this.zCoord * this.zCoord);\n/* */ }", "title": "" }, { "docid": "4edb8643b49f4a25f53bb8a00eedfaf5", "score": "0.58843863", "text": "public double getNewVector(double val_x, double val_y);", "title": "" }, { "docid": "1a16e72d99903db0adea378bc0e73d01", "score": "0.5809804", "text": "public MVector() {\n this (10);\n }", "title": "" }, { "docid": "301855c7731c5bf84c1cafc161bf0b10", "score": "0.5775344", "text": "public static vec3 create()\n {\n vec3 out = new vec3();\n out.m_Cells[0] = 0;\n out.m_Cells[1] = 0;\n out.m_Cells[2] = 0;\n return out;\n }", "title": "" }, { "docid": "73ae764f746b2340d19b3e2e4d0d6b08", "score": "0.57331336", "text": "@Override\n public Vector4 createNewInstance(int dim) {\n return createInstance(DIMENSIONALITY);\n }", "title": "" }, { "docid": "5595224084628bd19d3c6ba7ce6b22a4", "score": "0.5713254", "text": "public Vector4() {\n super(DIMENSIONALITY);\n }", "title": "" }, { "docid": "43cde602c418d3486cc5fa3dabd52b12", "score": "0.571087", "text": "public INDArray getVector(EncoderSet encoders) {\n //TODO: better use Nd4j.hstack(arrs)\n INDArray result = Nd4j.create(encoders.getEmbeddingVectorSize());\n int i = 0;\n for(Encoder enc : encoders) {\n INDArray vec = getVector(enc.getClass());\n result.get(NDArrayIndex.interval(i, i + enc.getEmbeddingVectorSize())).assign(vec);\n i += enc.getEmbeddingVectorSize();\n }\n return result;\n }", "title": "" }, { "docid": "7ef9bd0aa615c0ad03a15183f11b4dcd", "score": "0.57082593", "text": "public Vector3D getV();", "title": "" }, { "docid": "e88d825c530f8efc6abe0e8ce0f911d3", "score": "0.56992954", "text": "public static Vector4 createInstance(int dim) {\n return createInstance();\n }", "title": "" }, { "docid": "d40b972312c5eb54ab32e3fd61206233", "score": "0.5693261", "text": "public Vector()\n {\n \tthis(0,0);\n }", "title": "" }, { "docid": "7b1a0662c8466c657aa2faebabab2ef0", "score": "0.5684266", "text": "public Vector(final double ... _components) {\r\n\t\tcomponents = _components;\r\n\t\tdimension = components.length;\r\n\t\tlength = calculateLength();\r\n\t}", "title": "" }, { "docid": "a6d7fdc9ea6b9bb0e030b8c19ff86393", "score": "0.56680816", "text": "public CartesianVector() {\n super();\n }", "title": "" }, { "docid": "06c568662e849d03206c7409471b94e6", "score": "0.56442356", "text": "public static Vector randvec() {\n\t\tdouble s, x,y;\n\n\t\t/*\n\t\t * This is a variant of the algorithm for computing a random point\n\t\t * on the unit sphere; the algorithm is suggested in Knuth, v2,\n\t\t * 3rd ed, p136; and attributed to Robert E Knop, CACM, 13 (1970),\n\t\t * 326.\n\t\t */\n\t\t// translated to lua and then to java from http://mhda.asiaa.sinica.edu.tw/mhda/apps/gsl-1.6/randist/sphere.c\n\n\t\t// Begin with the polar method for getting x,y inside a unit circle\n\t\tdo {\n\t\t\tx = Math.random() * 2 - 1;\n\t\t\ty = Math.random() * 2 - 1;\n\t\t\ts = x*x + y*y;\n\t\t}\n\t\twhile (s > 1.0);\n\n\t\tdouble a = 2 * Math.sqrt(1 - s); // factor to adjust x,y so that x^2+y^2 is equal to 1-z^2\n\t\treturn new Vector(x*a, y*a, s * 2 - 1); // z uniformly distributed from -1 to 1\n\t}", "title": "" }, { "docid": "30e27c51b2b368b290cffb37db97cb59", "score": "0.564276", "text": "public String toString() { return \"Vector [\" + x + \" \" + y + \"]\"; }", "title": "" }, { "docid": "51efed4ff8c62c1e63b8ac25d3ed8260", "score": "0.56360686", "text": "public Vector2D toVector(){\n\t\tVector2D self = new Vector2D(end);\n\t\tself.subtract(start);\n\t\treturn self;\n\t}", "title": "" }, { "docid": "d4988a1e4b206fd3a220b2a75d05105a", "score": "0.5629938", "text": "public static Vector4 createInstance() {\n return new Vector4();\n }", "title": "" }, { "docid": "68ea497ef4fd34d15e9628b914dfe8bf", "score": "0.56297946", "text": "public Vector2D() {\n this(0, 0);\n }", "title": "" }, { "docid": "b85c6e4ae160d6c3d986265c3e8ce835", "score": "0.562733", "text": "int vectorSize();", "title": "" }, { "docid": "9fa66953d57090a105304e37e3d246e4", "score": "0.56070685", "text": "@Override\n public String getName() {\n return \"4D Vector\";\n }", "title": "" }, { "docid": "092b80f98134c90d903770fe1465d933", "score": "0.5594102", "text": "NcSDArray(Variable v, BaseType bt) {\n super(NcDDS.escapeName(v.getShortName()));\n this.ncVar = v;\n \n // set dimensions\n Iterator iter = v.getDimensions().iterator();\n while (iter.hasNext()) {\n Dimension dim = (Dimension) iter.next();\n appendDim(dim.getLength(), dim.getName());\n }\n \n // this seems to be how you set the type\n // it creates the \"primitive vector\"\n addVariable(bt);\n this.elemType = bt;\n }", "title": "" }, { "docid": "7efb5c4ef7a65d315f6ecfeb236041f2", "score": "0.55659974", "text": "public INDArray getVector(String identifier) {\n if(vectors != null && vectors.containsKey(identifier)) {\n final byte[] vec = vectors.get(identifier);\n return Nd4j.fromByteArray(vec);\n } else {\n log.error(\"Requesting unknown vector with identifier '\" + identifier + \"'\");\n return null;\n }\n }", "title": "" }, { "docid": "55526a0d6c1fe642fd677b7f6086f9ee", "score": "0.55506915", "text": "public static Vector3d zeros()\r\n\t{\r\n\t\treturn new Vector3d(0, 0, 0);\r\n\t}", "title": "" }, { "docid": "6ddef019efc074a970f12765c1ee031f", "score": "0.5539791", "text": "public static Vector3f create() {\n return new Vector3f();\n }", "title": "" }, { "docid": "7da7ca0d2b113d4d35ab756abb0df304", "score": "0.55284345", "text": "@Override\n\tpublic float[] getVector() {\n\t\treturn vector;\n\t}", "title": "" }, { "docid": "404cfecddd68379da5dc5efa5016cde2", "score": "0.55237293", "text": "Matrix<T> reflectV()\r\n\t{\n\t\t\r\n\t\tMatrix<T> out = new Matrix<T>(dim);\r\n\t\t\r\n\t\tfor (int i = 0; i < dim; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < dim; j++)\r\n\t\t\t{\r\n\t\t\t\tout.setItem(i, j, getItem(i, dim - j - 1));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn out;\r\n\t}", "title": "" }, { "docid": "359e455b0ed1261cb0c59b51fa796167", "score": "0.55142635", "text": "public Vec3d()\n {\n }", "title": "" }, { "docid": "4ce3c6a880ff7f396e1860c75aea1e70", "score": "0.5511444", "text": "public Vec(Vec v)\t{\tthis(v.x, v.y);\t}", "title": "" }, { "docid": "30a95c95f4cd8807fc0b35a492cb6c4e", "score": "0.55023956", "text": "public Vector getNormalized();", "title": "" }, { "docid": "e4194126d67229a749355b3bcbdb2291", "score": "0.5501736", "text": "public Vector()\n {\n }", "title": "" }, { "docid": "e15e568072c37ea04a5fae16d10801f7", "score": "0.5492414", "text": "public static Vector parseVector(Object[] array)\n\t{\n\t\treturn new Vector(Arrays.asList(array));\n\t}", "title": "" }, { "docid": "36e249addf2bb4ea84eb4f2792e78010", "score": "0.5487165", "text": "public Indexx(NRvector<T> arr)\r\n\t{\r\n\t\tindex(arr[0], arr.size());\r\n\t}", "title": "" }, { "docid": "4ab3df5f6fddbcc024367173f900bd22", "score": "0.54857624", "text": "public Vector getVector() {\n\t\treturn vector;\n\t}", "title": "" }, { "docid": "7e7d18b52fb313818fe751cb0f70e615", "score": "0.5485759", "text": "public Vec(Vec v){\n\t\tnumComponents = v.numComponents;\n\n\t\tcomponents = new double[numComponents];\n\n\t\tfor(int i = 0; i < numComponents; i++){\n\t\t\tcomponents[i] = v.components[i];\n\t\t}\n\t}", "title": "" }, { "docid": "9cb0bdfc2a928aafaaefdc678d1a945e", "score": "0.54812735", "text": "public Vector (double[] array, int dimension) {\n\t\tthis.dimension = dimension;\n\t\tthis.elements = new double[dimension];\n\t\tfor (int i = 0; i < dimension; i++) {\n\t\t\telements[i] = array[i];\n\t\t}\n\t}", "title": "" }, { "docid": "73ac82afb96c24ca1b905f5f65da76b4", "score": "0.54724175", "text": "public Vector getNormalizedVector()\n\t{\n\t\tfloat magnitude = getMagnitude();\n\t\t\n\t\tfloat[] oldData = this.getData();\n\t\tfloat[] nuevoData = new float[oldData.length];\n\n\t\tfor (int i = 0; i < oldData.length; i++)\n\t\t{\n\t\t\tnuevoData[i] = oldData[i] / magnitude;\n\t\t}\n\t\t\n\t\treturn new Vector(nuevoData, this.getOrientation());\n\t}", "title": "" }, { "docid": "69fbc65f8a027684ad07947078f72a7a", "score": "0.54636705", "text": "public Vector(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "title": "" }, { "docid": "588d7223f47757e579e02405b00cc0e8", "score": "0.5463098", "text": "public Vector(double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "title": "" }, { "docid": "fc8ebf18ef88da77fa44d26e6dff3397", "score": "0.54527813", "text": "public static TCVec3 createVectorHelper(double par0, double par2, double par4)\n/* */ {\n/* 27 */ return new TCVec3(vec3dPool, par0, par2, par4);\n/* */ }", "title": "" }, { "docid": "473a7d29e92f3c4cfc735e6a3950e22f", "score": "0.5442996", "text": "public Vector2D() {\n this.x = 0;\n this.y = 0;\n }", "title": "" }, { "docid": "8f2152a1012fc242ab959beec0e37547", "score": "0.5442499", "text": "protected Vector4(int dim) {\n this();\n }", "title": "" }, { "docid": "7968609344a5d115be05aa5f3b368f6d", "score": "0.54419416", "text": "public Vector(double x, double y, double z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "title": "" }, { "docid": "8a83ac59bb57300e235a90f15c862992", "score": "0.54362607", "text": "public Vector(int x, int y) \n {\n this._x = x;\n this._y = y;\n }", "title": "" }, { "docid": "4d20b8a64a8843055e56d2680cf24153", "score": "0.5426843", "text": "public static double[] unityVector(double[] a)\n\t{\n\t\tdouble norm=distance(a,new double[]{0,0});\n\t\tdouble x=a[0]/norm;\n\t\tdouble y=a[1]/norm;\n\t\treturn new double[]{x,y};\n\t}", "title": "" }, { "docid": "ea30c452ad417645fb7edade2f1ad1fa", "score": "0.5414157", "text": "public static void dMakeRandomVector (double[] A, int n, double range) {\n Misc.dMakeRandomVector(A, n, range);\n }", "title": "" }, { "docid": "571a54607e5eb46da12a13bf66c328ff", "score": "0.5404535", "text": "public Vector(double x, double y) \n\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = 0;\n\t}", "title": "" }, { "docid": "4a562f54f7b854ce04324b2c8c5ea59a", "score": "0.54013723", "text": "public Vector makeHomogenious();", "title": "" }, { "docid": "7360b4beaba167148459ddc9e4303e85", "score": "0.5390804", "text": "public Coleccion(double[][] vector) {\n\t\tthis.vector = vector;\n\t}", "title": "" }, { "docid": "fa9e55f1c595e99d79d9e6dec1628f09", "score": "0.53897923", "text": "public double[] Dimxv ( double dm[][], double va[] )\n {\n double w;\n double vw[] = new double[3];\n\n TRACE(\"Dimxv\");\n/* Inverse of matrix dm * vector va -> vector vw */\n for ( int j = 0; j < 3; j++ ) {\n w = 0.0;\n for ( int i = 0; i < 3; i++ ) {\n w += dm[i][j] * va[i];\n }\n vw[j] = w;\n }\n ENDTRACE(\"Dimxv\");\n return vw;\n }", "title": "" }, { "docid": "b35f616f16eff44f04ad06be3002ea2f", "score": "0.5388632", "text": "public void vector() {\n\t\tVector<String> vectorString = new Vector<>();\n\t\t\n\t\tvectorString.add(\"one\");\n\t\tvectorString.add(\"two\");\n\t\t\n\t\tfor(int i=0;i<vectorString.size();i++) {\n\t\t\tSystem.out.println(vectorString.get(i));\n\t\t}\n\t\t\n//\t\tIterator<String> it = vectorString.iterator();\n//\t\twhile(it.hasNext()) {\t\t\n//\t\t\tit.remove();\n//\t\t\tbreak;\t\t\t\n//\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "bd5d74fd4d33035c57a24e3e885bd2f3", "score": "0.53724873", "text": "public Vector2D() {\n\t\tx = 0.0;\n\t\ty = 0.0;\n\t}", "title": "" }, { "docid": "ebaa6f6f4f8812df03bd9ebd6e6b23b0", "score": "0.5345293", "text": "public static Vector parseVector(List list)\n\t{\n\t\treturn new Vector(list);\n\t}", "title": "" }, { "docid": "0aa483de8005ff05be8bd516042b771b", "score": "0.53431183", "text": "public Vec(Point p)\t{\tthis(p.x, p.y);\t}", "title": "" }, { "docid": "aac2ded70335cd18eeea6fc14beb98a5", "score": "0.53428704", "text": "public DVec getInitialVeloVector() {\n\n\t\t// setup nodal initial velocity vector\n\t\tDVec vec = new DVec(6);\n\n\t\t// check if any initial velo available\n\t\tif (initialVelo_ != null) {\n\n\t\t\t// loop over initial velocities\n\t\t\tfor (int i = 0; i < initialVelo_.size(); i++) {\n\n\t\t\t\t// get initial velocity\n\t\t\t\tInitialVelo l = initialVelo_.get(i);\n\n\t\t\t\t// get initial velocity vector and scale with factor\n\t\t\t\tDVec dl = l.getComponents();\n\n\t\t\t\t// transform if initial velocity is in global coordinates\n\t\t\t\tif (l.getCoordinateSystem() == Node.global_) {\n\t\t\t\t\tDMat tr = getTransformation();\n\t\t\t\t\tdl = dl.transform(tr, DMat.toLocal_);\n\t\t\t\t}\n\n\t\t\t\t// add to nodal initial velocity vector\n\t\t\t\tvec = vec.add(dl);\n\t\t\t}\n\t\t}\n\n\t\t// return nodal initial velocity vector\n\t\treturn vec;\n\t}", "title": "" }, { "docid": "590ebb950eb253a29aa886c56b3d8206", "score": "0.53340983", "text": "public Vector vectorTo(Point p2) {\n return new Vector(p2.x - this.x, p2.y - this.y);\n }", "title": "" }, { "docid": "267bca509ecefd9a346c4c7b55a4282f", "score": "0.5330734", "text": "@Inject\n public UnitVectorNormalizer() {\n this(1.0e-6);\n }", "title": "" }, { "docid": "52c0839c8b2f409377c43e0105a30472", "score": "0.53177696", "text": "public Vector4() {\r\n\t}", "title": "" }, { "docid": "2e2a79a23e2d587a3122425e2603c3c0", "score": "0.53061193", "text": "public vec2()\n {\n X = 0;\n Y = 0;\n }", "title": "" }, { "docid": "f32939adfaa9ddc9c3b91407f8b94287", "score": "0.53020513", "text": "public Vec(double x, double y)\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "e63e54fc62d9b07c73259a4e3bcb7430", "score": "0.53013486", "text": "public MVector(int initialCapacity) {\n this (initialCapacity, 0);\n }", "title": "" }, { "docid": "bc0a9076e4ba038180240d67c0f50436", "score": "0.52974164", "text": "public MatrizSimetrica(int n) {\n\t\tthis.ordenMatriz = n;\n\t\t// La dimension del vector\n\t\t// Por ejemplo, si tengo 6 nodos, N=6\n\t\t// y la dimension será 15\n\t\t// Esto se puede verificar con un grafico\n\t\tthis.dimensionVector = (n * n - n) / 2;\n\n\t\t// Creo mi objecto vector de boolean con la dimension calculada\n\t\tmatrizSimetrica = new boolean[this.dimensionVector];\n\n\t\t// Inicializo todo en falso, excepto la ultima\n\t\tfor (int i = 0; i < n - 1; i++)\n\t\t\tmatrizSimetrica[i] = false;\n\t}", "title": "" }, { "docid": "85678d361bca6631adda03c2a425d163", "score": "0.5295864", "text": "public ga_Vector2D() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "title": "" }, { "docid": "089cddb71a4b023c45dd1db1ecacaf27", "score": "0.52953047", "text": "public Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "e600a5fe032fdfc49f46bafa18704aa3", "score": "0.5289689", "text": "public Vector2D unitVector() {\r\n float length = length();\r\n\r\n if (length == 0) {\r\n throw new Error(\"Length must be more that 0\");\r\n }\r\n\r\n return new Vector2D(getX()/length, getY()/length);\r\n }", "title": "" }, { "docid": "7b8fc2bae7b8200bb1157b697afe69df", "score": "0.52842015", "text": "BitvectorFormula makeBitvector(int length, IntegerFormula pI);", "title": "" }, { "docid": "6d7604f364c55556901c1bef188c22f8", "score": "0.5263247", "text": "public CartesianVector(double[] vals) {\n int i, dimension = vals.length;\n\n values = new double[dimension];\n for (i = 0; i < dimension; i++) {\n values[i] = vals[i];\n }\n }", "title": "" }, { "docid": "708993ec31b390c882af371f68ee964d", "score": "0.52565867", "text": "public Vector getVelocidad() {\n\t\tif (this.t == this.t0) {\n\t\t\treturn new Vector (0.0, 0.0);\n\t\t} else {\n\t\t\tdouble x = (this.pos.getX() - this.pos0.getX())/(this.t - this.t0);\n\t\t\tdouble y = (this.pos.getY() - this.pos0.getY())/(this.t - this.t0);\n\t\t\treturn new Vector (x, y);\n\t\t}\n\t}", "title": "" }, { "docid": "7909bebc582413e898f770789546951f", "score": "0.52473783", "text": "public Vector2d normalVector(){\r\n\t\tVector2d result = new Vector2d(this);\r\n\t\tresult.normalize();\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "5e5bc8fe904b0ff4d8b7f42ad8a28942", "score": "0.52469665", "text": "private static svm_node[] buildOneDenseVector1001(float[] probs){\n svm_node[] svmNodeArray = new svm_node[1001];\n for (int i = 0; i < 1001; i++){\n svmNodeArray[i] = buildOneIndexLabelEntry(i, probs[i]);\n }\n return svmNodeArray;\n }", "title": "" }, { "docid": "239ba1666aaaebe73ccc83f20146edb6", "score": "0.5243294", "text": "public ExtensibleVector(int size){\n tableau = new ArrayList();\n for (int i = 0; i<size; i++){\n tableau.add(new Rational(0, 1));\n }\n }", "title": "" }, { "docid": "f826efcb58ddb66278d6f532f7ebdf6a", "score": "0.5241333", "text": "public Vector(double... coordinates)\n {\n if(coordinates == null)\n throw new IllegalArgumentException(\"coordinates can not be null!\");\n \n if(coordinates.length <= 0)\n throw new IllegalArgumentException(\"coordinates must have atleast one member, 0 dimensions isnt valid!\");\n\n\t\tthis.coordinates = (double[]) coordinates.clone();\n }", "title": "" }, { "docid": "75964a6b853296db5f862c1179b714b5", "score": "0.5239562", "text": "private static Vector _sum(Vector[] v, int n) {\n return n == 0 ? Vector.ZERO : v[n - 1].plus(_sum(v, n - 1));\n }", "title": "" }, { "docid": "296c42c09103fe517ec60b61773fd3e4", "score": "0.5237904", "text": "BitvectorFormula makeBitvector(int length, long pI);", "title": "" }, { "docid": "6258a8b409f21c7b66eb9496cff6c55d", "score": "0.52373755", "text": "public static Vector Enum2Vector(Enumeration e) {\n Vector v = new Vector();\n while (e.hasMoreElements()) {\n v.add(e.nextElement());\n }\n return v;\n }", "title": "" }, { "docid": "47496b5d854e913bc24767c5b167c8bf", "score": "0.5232562", "text": "BitvectorFormula makeBitvector(int length, BigInteger pI);", "title": "" }, { "docid": "fff5733c45ee154f0e734fb322783ecb", "score": "0.52299523", "text": "private PostingVector addNewVector() {\n\n if (postingsVectorsUpto == threadState.postingsVectors.length) {\n final int newSize;\n if (threadState.postingsVectors.length < 2)\n newSize = 2;\n else\n newSize = (int) (1.5*threadState.postingsVectors.length);\n PostingVector[] newArray = new PostingVector[newSize];\n System.arraycopy(threadState.postingsVectors, 0, newArray, 0, threadState.postingsVectors.length);\n threadState.postingsVectors = newArray;\n }\n \n p.vector = threadState.postingsVectors[postingsVectorsUpto];\n if (p.vector == null)\n p.vector = threadState.postingsVectors[postingsVectorsUpto] = new PostingVector();\n\n postingsVectorsUpto++;\n\n final PostingVector v = p.vector;\n v.p = p;\n\n if (doVectorPositions) {\n final int upto = threadState.vectorsPool.newSlice(ByteBlockPool.FIRST_LEVEL_SIZE);\n v.posStart = v.posUpto = threadState.vectorsPool.byteOffset + upto;\n }\n\n if (doVectorOffsets) {\n final int upto = threadState.vectorsPool.newSlice(ByteBlockPool.FIRST_LEVEL_SIZE);\n v.offsetStart = v.offsetUpto = threadState.vectorsPool.byteOffset + upto;\n }\n\n return v;\n }", "title": "" }, { "docid": "b17f7c817ebe43f80dba5c8000799473", "score": "0.5225557", "text": "public Neco3D(Neco3D vec) {\n this.xyz = vec.getInternalVector();\n }", "title": "" }, { "docid": "35beaab83c9f6af683a9a3d4440f2baa", "score": "0.52215755", "text": "private static Vector<Vector<Long>> get_column(Vector<Vector<Long>> v){\n\t\t\n\t\tVector<Vector<Long>> temp = new Vector<Vector<Long>>();\n\t\t\n\t\t\n\t\tfor(int j = 0; j < v.size(); j++){\n\t\t\tVector<Long> Add_vector = new Vector<Long>();\n\t\tfor(int i = 0; i < v.size(); i++){\n\t\t\tVector<Long> inter = new Vector<Long>();\n\t\t\tinter = v.get(i);\n\t\t\tAdd_vector.add(inter.get(j));\n\t\t\t\n\t\t}\n\t\ttemp.add(Add_vector);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn temp;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "0282e81e403268d3a1d2a410fb54df31", "score": "0.5218737", "text": "public double lengthVector()\n {\n return (double)MathHelper.sqrt(this.xCoord * this.xCoord + this.yCoord * this.yCoord + this.zCoord * this.zCoord);\n }", "title": "" }, { "docid": "c536b20f87f4cd22f21eadfc1524057e", "score": "0.52036464", "text": "public static void main(String[] args) {\n Vector v = new Vector(5121, 10);\r\n System.out.println(\"capacity: \" + v.capacity());\r\n System.out.println(\"size: \" + v.size());\r\n for(int i=1;i<=5121;i++) {\r\n v.add(i);\r\n }\r\n v.add(\"程咬金\");\r\n System.out.println(v);\r\n System.out.println(\"capacity: \" + v.capacity());\r\n System.out.println(\"size: \" + v.size());\r\n }", "title": "" }, { "docid": "3eedab1a89aa04c3ed06fb9267a13f43", "score": "0.52029157", "text": "public MathVector(int i) {\n values = new double[i];\n size = i;\n }", "title": "" }, { "docid": "5d2dfe3ace38b9f1bb1250ce7a4ee334", "score": "0.51815945", "text": "public INDArray getVector(Class<? extends IEncoder> type) {\n return getVector(type.getCanonicalName());\n }", "title": "" } ]
691b464bbf4abee3aaf2591262e40358
/ drawPlustAtSpot showImageMousePos() show the mouse positions in the image. Only report if debugging...
[ { "docid": "745d84ad2927cb4a714c3d97e2c81e48", "score": "0.7528222", "text": "private void showImageMousePos(MouseEvent e, String msg, int x, int y)\n { /* showImageMousePos */\n /*\n if(mae.CONSOLE_FLAG)\n {\n if(msg==null)\n msg= \"\";\n Util.showMsg(\"[\" + msg + \"] \" + \" x=\" + x + \", y=\" + y +\n (ctrlMod)\n ? \" CTRL\" : (shiftMod ? \" SHIFT\" : \"\")) +\n \" (x,y)Img= (\" + xImg + \",\" + yImg + \")\" +\n \" (x,y)Base= (\" + xBase + \",\" + yBase + \")\" +\n \" (x,y)Obj= (\" + xObj + \",\" + yObj + \")\");\n }\n */\n }", "title": "" } ]
[ { "docid": "68329a0ff33fd033d4bc5bb00898a5dc", "score": "0.7144402", "text": "private void showMouseCoords(String msg, int x, int y, int imgNbr)\n { /* showMouseCoords */\n /*\n if(mae.CONSOLE_FLAG)\n Util.showMsg(\"[\" + msg + \"] (x,y)= (\" + x+ \",\" + y +\n \") (xRelMap,yRelMap)= (\" + xRelMap + \",\" + yRelMap + \")\");\n */\n }", "title": "" }, { "docid": "383b101b609c12f6333a0476a488df8d", "score": "0.65973234", "text": "public Coord getMouseLocation();", "title": "" }, { "docid": "2fed5258751c55202e0728cc9239561b", "score": "0.64465064", "text": "Point getMouseCanvasPosition();", "title": "" }, { "docid": "3b19cff6657ede5fa6677364dc1e9eb1", "score": "0.6185622", "text": "public void mouseMoved(MouseEvent e)\n { /* mouseMoved */\n if(!mae.mReady || mae.maxPreloadImgs==0 || cdb==null)\n return;\n \n int\n oldXobj= xyObj.x, /* save real object if any */\n oldYobj= xyObj.y,\n oldGID = cdb.objGID,\n x= e.getX(),\n y= e.getY();\n mapRelXYtoImage(e,x,y); /* get xyObj for mouseover only! */\n \n if(mae.useMouseOverFlag)\n { /* test if move mouse over HP entry or spot */\n int hpNbr= getHPnbrInImage(e); /* Test if clicked on HP[] entry\n * HP-E list in left of image */\n /* Setup mae.hps.(sMod, sModX, sModY) based on whether\n * using ratio mode or swapCy5Cy3DataFlags\n */\n mae.hps.setHPxyModStrings();\n if(hpNbr>0)\n { /* display full data for sample */\n MaHybridSample msP= mae.hps.msList[hpNbr];\n Util.showFeatures(\"Sample #\"+hpNbr+\" \"+msP.sampleID,\n msP.fullStageText+mae.hps.sModXY);\n showedHPmouseOverFlag= true;\n xyObj.x= oldXobj; /* restore real object if any */\n xyObj.y= oldYobj;\n cdb.objGID = oldGID;\n return;\n } /* display full data for Sample */\n \n /* Test if clicked on spot in image */\n Point xyMouseOver= new Point(xObj,yObj); /* save coordinates [FUTURE]*/\n /* lookup spot position */\n String s= cdb.lookupHPcoords(xObj,yObj,mae.spotRad,true, mae.ms);\n if(s.length()>0)\n { /* display Gene MouseOver */\n mae.sf.showValidSpotInfo(xyMouseOver,mae.ms);\n showedGeneMouseOverFlag= true;\n }\n } /* test if move mouse over HP entry or spot */\n \n xyObj.x= oldXobj; /* restore real object if any */\n xyObj.y= oldYobj;\n cdb.objGID = oldGID;\n }", "title": "" }, { "docid": "9845511755da2a368509d12d0a546865", "score": "0.6051313", "text": "@Override\r\n\tpublic long getTrackedMouseInfo(){\n\t\tif(Math.abs(customMouseHelper.deltaXForced) < 100){\r\n\t\t\tmousePosX = Math.max(Math.min(mousePosX + customMouseHelper.deltaXForced, 250), -250);\r\n\t\t}\r\n\t\tif(Math.abs(customMouseHelper.deltaYForced) < 100){\r\n\t\t\tmousePosY = Math.max(Math.min(mousePosY + customMouseHelper.deltaYForced, 250), -250);\r\n\t\t}\r\n\t\t//Take a unit off of the mouse value to make it more snappy.\r\n\t\tif(mousePosX > 0){\r\n\t\t\t--mousePosX;\r\n\t\t}else if(mousePosX < 0){\r\n\t\t\t++mousePosX;\r\n\t\t}\r\n\t\tif(mousePosY > 0){\r\n\t\t\t--mousePosY;\r\n\t\t}else if(mousePosY < 0){\r\n\t\t\t++mousePosY;\r\n\t\t}\r\n\t\treturn (((long) 2*mousePosX) << Integer.SIZE) | (2*mousePosY & 0xffffffffL);\r\n\t}", "title": "" }, { "docid": "8cc6042a876a886c7066eaa3f16e2131", "score": "0.6048631", "text": "public JGPoint getMousePos() { return new JGPoint(mousepos.x,mousepos.y); }", "title": "" }, { "docid": "233be48e496ade56289e606a12139b08", "score": "0.60363823", "text": "Point getImgPos()\n { /* getImgPos */\n Point xyImg= new Point(xImg, yImg);\n \n return(xyImg);\n }", "title": "" }, { "docid": "62a3ad84df7d692ebcfccd8ea6d7d98f", "score": "0.5986333", "text": "public void displayInfo(){\n System.out.println(\"Position X:\" + xPosition + \" Position Y:\" + yPosition);\n }", "title": "" }, { "docid": "3e8edd36410ca41141345afbe2b2051e", "score": "0.5956056", "text": "private void updateMousePosition() {\r\n\t\t\r\n\t\tthis.mouseX = Mouse.getEventX() * this.width / this.mc.displayWidth;\r\n\t\tthis.mouseY = this.height - Mouse.getEventY() * this.height / this.mc.displayHeight - 1;\r\n\t\tthis.xOffset = (this.width - 330) / 2;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ba358e0d68f2d91358fd669a89f627d2", "score": "0.5901277", "text": "public String showPoint(){\n\t\treturn showPoint(true);\n\t}", "title": "" }, { "docid": "1db03d923380871fa9fb1e4bde2059fc", "score": "0.58845156", "text": "public void mouseMoved(MouseEvent e)\n/* */ {\n/* 412 */ if ((this.isReady == false) || (this.actPoints == null)) {\n/* 413 */ return;\n/* */ }\n/* */ \n/* 416 */ int px = e.getX();\n/* 417 */ int py = e.getY();\n/* 418 */ setCursor(Cursor.getPredefinedCursor(0));\n/* 419 */ for (int i = 0; i < this.actPoints.size(); i++) {\n/* 420 */ Point onePt = (Point)this.actPoints.elementAt(i);\n/* 421 */ if ((px < onePt.x + 3) && (px > onePt.x - 3) && (py < onePt.y + 3) && (py > onePt.y - 3)) {\n/* 422 */ this.selPoint = onePt;\n/* 423 */ this.selIndex = i;\n/* */ \n/* 425 */ setCursor(Cursor.getPredefinedCursor(8));\n/* 426 */ this.mainApp.leaveTable();\n/* 427 */ return;\n/* */ }\n/* */ }\n/* 430 */ this.selIndex = -1;\n/* */ }", "title": "" }, { "docid": "1545580b005207a61577f24f55894ec9", "score": "0.5858946", "text": "public Point getToolTipLocation(MouseEvent paramMouseEvent) {\n/* 3048 */ return null;\n/* */ }", "title": "" }, { "docid": "7a85de07d3e7dafac5e02d3d1aaf042d", "score": "0.5845785", "text": "@Override\n public void onFrame(Controller controller) {\n Frame frame = controller.frame();\n Pointable[] pointers = getPointers(frame);\n\n Pointable cursor = pointers[0];\n Pointable scroller = pointers[1];\n Pointable clicker = pointers[2];\n if (cursor != null && scroller==null) {\n Vector v = iScreen.intersect(cursor, true, 1);\n\n float pointerX = v.getX() * iScreen.widthPixels();\n float pointerY = v.getY() * iScreen.heightPixels();\n System.out.println(\"Position: \" + pointerX + \", \" + pointerY);\n\n pointerY = iScreen.heightPixels() - pointerY;\n int x = Math.round(pointerX);\n int y = Math.round(pointerY);\n if (Math.abs(cursor.tipVelocity().getX()) > 5 && Math.abs(cursor.tipVelocity().getY()) > 7) {\n //System.out.println(\"Position: \" + + \", \" + cursor.tipVelocity().magnitude());\n robot.mouseMove(x, y);\n }\n }else\n if (cursor != null && scroller!=null) {\n Vector v = iScreen.intersect(cursor, true, 1);\n\n float pointerX = v.getX() * iScreen.widthPixels();\n float pointerY = v.getY() * iScreen.heightPixels();\n System.out.println(\"Position: \" + pointerX + \", \" + pointerY);\n\n pointerY = iScreen.heightPixels() - pointerY;\n int x = Math.round(pointerX);\n int y = Math.round(pointerY);\n //System.out.println(\"Distance: \" + scroller.tipPosition().distanceTo(cursor.tipPosition()));\n\n if (scroller.tipPosition().distanceTo(cursor.tipPosition()) < 150 && scroller.tipPosition().distanceTo(cursor.tipPosition()) > 40\n ) {\n System.out.println(\"Speed: \" + cursor.tipVelocity().getY());\n\n if(cursor.tipVelocity().getY()>50){\n robot.mouseWheel(-1);\n }\n if(cursor.tipVelocity().getY()>100){\n robot.mouseWheel(-3);\n }\n if(cursor.tipVelocity().getY()>150){\n robot.mouseWheel(-5);\n }\n if(cursor.tipVelocity().getY()>200){\n robot.mouseWheel(-7);\n }\n if(cursor.tipVelocity().getY()>250){\n robot.mouseWheel(-9);\n }\n if(cursor.tipVelocity().getY()>300){\n robot.mouseWheel(-11);\n }\n if(cursor.tipVelocity().getY()>450){\n robot.mouseWheel(-13);\n }\n if(cursor.tipVelocity().getY()>500){\n robot.mouseWheel(-15);\n }\n \n \n if(cursor.tipVelocity().getY()<-50){\n robot.mouseWheel(1);\n }\n if(cursor.tipVelocity().getY()<-100){\n robot.mouseWheel(3);\n }\n if(cursor.tipVelocity().getY()<-150){\n robot.mouseWheel(5);\n }\n if(cursor.tipVelocity().getY()<-200){\n robot.mouseWheel(7);\n }\n if(cursor.tipVelocity().getY()<-250){\n robot.mouseWheel(9);\n }\n if(cursor.tipVelocity().getY()<-300){\n robot.mouseWheel(11);\n }\n if(cursor.tipVelocity().getY()<-450){\n robot.mouseWheel(13);\n }\n if(cursor.tipVelocity().getY()<-500){\n robot.mouseWheel(15);\n }\n }\n }\n //if (thumb.tipPosition().distanceTo(cursor.tipPosition())<5){\n // robot.mouseWheel(Math.round(cursor.tipVelocity().getY()*-1));\n //} \n //if (cursor)\n /*System.out.println(\"Frame id: \" + frame.id()\n + \", timestamp: \" + frame.timestamp()\n + \", hands: \" + frame.hands().count()\n + \", fingers: \" + frame.fingers().count()\n + \", tools: \" + frame.tools().count());\n\n if (!frame.hands().empty()) {\n // Get the first hand\n Hand hand = frame.hands().get(0);\n\n // Check if the hand has any fingers\n FingerList fingers = hand.fingers();\n if (!fingers.empty()) {\n // Calculate the hand's average finger tip position\n Vector avgPos = Vector.zero();\n for (Finger finger : fingers) {\n avgPos = avgPos.plus(finger.tipPosition());\n }\n avgPos = avgPos.divide(fingers.count());\n System.out.println(\"Hand has \" + fingers.count()\n + \" fingers, average finger tip position: \" + avgPos);\n }\n\n // Get the hand's sphere radius and palm position\n System.out.println(\"Hand sphere radius: \" + hand.sphereRadius()\n + \" mm, palm position: \" + hand.palmPosition());\n\n // Get the hand's normal vector and direction\n Vector normal = hand.palmNormal();\n Vector direction = hand.direction();\n\n // Calculate the hand's pitch, roll, and yaw angles\n System.out.println(\"Hand pitch: \" + Math.toDegrees(direction.pitch()) + \" degrees, \"\n + \"roll: \" + Math.toDegrees(normal.roll()) + \" degrees, \"\n + \"yaw: \" + Math.toDegrees(direction.yaw()) + \" degrees\\n\");\n }\n \n */\n\n\n }", "title": "" }, { "docid": "81586fc7bc8b9a68f24be2488ed032c6", "score": "0.58300245", "text": "public void mousePressed (MouseEvent event)\n{\nclickedPoint = event.getPoint();\n//System.out.println (&quot;Mouse Pressed at point x = &quot; + clickedPoint.getX()\n//+ &quot;, y = &quot; + clickedPoint.getY() + &quot;.&quot;);\ncanvas.repaint();\n}", "title": "" }, { "docid": "b031a0487995d61028471ce26f98315a", "score": "0.5764355", "text": "public void setShowPixelInfo(boolean show) {\n\t\tgc.setShowPixelInfo(show);\n\t}", "title": "" }, { "docid": "2405cbf20d5fe9578fa66ce5854fcc52", "score": "0.57565993", "text": "public void mouseMoved(MouseEvent mouseEvent) {\r\n int nPts = 0;\r\n float mx = mouseEvent.getX() - offsetX;\r\n float my = mouseEvent.getY() - offsetY;\r\n float xN, yN, x1N, y1N;\r\n float min = 0, max = 255;\r\n\r\n if ((mx >= dim.width) || (mx < 0) || (my >= dim.height) || (my < 1)) {\r\n return;\r\n }\r\n\r\n if ((mode == RED) || (mode == ALL)) {\r\n RGBT.getRedFunction().exportArrays(x, y);\r\n nPts = RGBT.getRedFunction().size();\r\n min = 0;\r\n max = 255.0f;\r\n }\r\n\r\n if (mode == GREEN) {\r\n RGBT.getGreenFunction().exportArrays(x, y);\r\n nPts = RGBT.getGreenFunction().size();\r\n min = 0;\r\n max = 255.0f;\r\n }\r\n\r\n if (mode == BLUE) {\r\n RGBT.getBlueFunction().exportArrays(x, y);\r\n nPts = RGBT.getBlueFunction().size();\r\n min = 0;\r\n max = 255.0f;\r\n }\r\n\r\n int theStart = 0, theEnd = nPts;\r\n\r\n if (mode == NO_THRESHOLD) {\r\n theStart = 1;\r\n theEnd--;\r\n }\r\n\r\n for (int i = theStart; i < theEnd; i++) {\r\n xN = (int) (((x[i] - min) / (max - min) * 255) + 0.5);\r\n yN = (int) (y[i] + 0.5);\r\n\r\n if (MipavMath.distance(mx, xN, my, yN) < 5) { // Are we close to a point ??\r\n\r\n if (mouseEvent.isShiftDown()) { // are we in going to remove this point\r\n setCursor(resizeCursor);\r\n addPointFlag = false;\r\n index = i; // save index to point\r\n\r\n return;\r\n } else {\r\n setCursor(moveCursor);\r\n addPointFlag = false;\r\n index = i; // save index to point\r\n\r\n return;\r\n }\r\n }\r\n }\r\n\r\n if (thresholdMode == NO_THRESHOLD) {\r\n\r\n for (int i = 0; i < (nPts - 1); i++) {\r\n xN = (int) (((x[i] - min) / (max - min) * 255) + 0.5);\r\n yN = (int) (y[i] + 0.5);\r\n x1N = (int) (((x[i + 1] - min) / (max - min) * 255) + 0.5);\r\n y1N = (int) (y[i + 1] + 0.5);\r\n\r\n if ((MipavMath.distance(mx, xN, my, yN) + MipavMath.distance(mx, x1N, my, y1N) -\r\n MipavMath.distance(xN, x1N, yN, y1N)) < 0.5) { // Are we close to a line.\r\n\r\n if ((MipavMath.distance(mx, xN, my, yN) > 5) && (MipavMath.distance(mx, x1N, my, y1N) > 5)) {\r\n setCursor(handCursor);\r\n addPointFlag = true;\r\n index = i; // save index to point after which to insert a point\r\n\r\n return;\r\n }\r\n } else {\r\n addPointFlag = false;\r\n index = -99;\r\n }\r\n }\r\n }\r\n\r\n setCursor(crosshairCursor);\r\n addPointFlag = false;\r\n index = -99;\r\n }", "title": "" }, { "docid": "9bd4e91d32065020bb24125f37681b68", "score": "0.57558155", "text": "public boolean isMouseOver() {\n\t\tif(position!=null) {\n\t\t\tif ( Math.abs(position[0]-processing.mouseX) < WIDTH/2 && Math.abs(position[1]-processing.mouseY) < HEIGHT/2 ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "99d516340df4e8de31bbbbfaf661e4d5", "score": "0.5728309", "text": "@Override //Override apenas para o metodo de demonstracao\n public void mousePressed(MouseEvent e) {\n clickX = e.getX();\n clickY = e.getY();\n System.out.println(\"X :\" + clickX + \", y: \" + clickY);\n }", "title": "" }, { "docid": "d317dd7013c8dc741412633125b89453", "score": "0.57196987", "text": "private void drawImageOnPosition(Graphics g, Position position, Image image){\r\n \r\n \r\n g.drawImage(image, \r\n (windowMode == CreateRoomWindow.AS_HOST) ? \r\n position.getMouseX() + MapGUI.PIECES_START_X:\r\n position.transpoze().getMouseX() + MapGUI.PIECES_START_X\r\n ,\r\n (windowMode == CreateRoomWindow.AS_HOST) ?\r\n position.getMouseY() + MapGUI.PIECES_START_Y : \r\n position.transpoze().getMouseY() + MapGUI.PIECES_START_Y,\r\n MapGUI.PIECE_WIDTH, \r\n MapGUI.PIECE_HEIGHT\r\n , null);\r\n }", "title": "" }, { "docid": "5269a0591641cec01cc36f711546b04e", "score": "0.5719109", "text": "private Place getMouseCords() {\n\t\treturn this.mousespot;\r\n\t}", "title": "" }, { "docid": "94eb14e9c92628ec8cf8a963d14a6899", "score": "0.56542915", "text": "public final void showPoints(int flags)\r\n {\r\n }", "title": "" }, { "docid": "d9b30e0e325da7a294241c0aa91fd4ad", "score": "0.56529695", "text": "public void mousePressed()\n{\n if (mouseButton == RIGHT)\n {\n imgX = mouseX-mX;\n imgY = mouseY-mY;\n }\n}", "title": "" }, { "docid": "3126f34d66f9f561c6314323dc25a04d", "score": "0.56402296", "text": "public void setMouseCursor(Image image, int hotSpotX, int hotSpotY)\r\n\t\t\tthrows SlickException {\r\n\t}", "title": "" }, { "docid": "691395654614137d2bdb6f8ba74fb16a", "score": "0.5633639", "text": "public void onMouseMove(Point2D.Double newMousePosition);", "title": "" }, { "docid": "049f72f758c4ff98b03532eeef6da6e8", "score": "0.5628662", "text": "public int getX() {\n return mouse_x;\n }", "title": "" }, { "docid": "7ae7d57b21c090572ecf2f2d05534955", "score": "0.5626981", "text": "public void mouseMoved (\n\tfinal MouseEvent e\n) {\n\tactive = true;\n\tfinal int x = display.getWindow().getCanvas().offScreenX(e.getX());\n\tfinal int y = display.getWindow().getCanvas().offScreenY(e.getY());\n\tIJ.showStatus(display.getLocationAsString(x, y) + getValueAsString(x, y));\n}", "title": "" }, { "docid": "2013c8947a7678c2515b30c99f68e0fd", "score": "0.5611673", "text": "public void grabP(MouseEvent me){\r\n\t\tSystem.out.println(\"a\");\r\n\t\tp = new Point((int)me.getSceneX(),(int)me.getSceneY());\r\n\t}", "title": "" }, { "docid": "d1e0130469a21dd75d4303cd237554d1", "score": "0.5602839", "text": "public void mouseMoved(Vec2d position)\n\t{\n\t}", "title": "" }, { "docid": "03a4bae8e83bcc144b4f2df2370f6a67", "score": "0.5590678", "text": "private void Lbl_Inicio_Principal_Panel_01MousePressed(java.awt.event.MouseEvent evt) {\n posx = evt.getX();\r\n posy = evt.getY();\r\n }", "title": "" }, { "docid": "3c35bf1964b753fd16fdafb710f83e8d", "score": "0.5589208", "text": "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"mouse pos: \"+e.getX()+\" , \"+e.getY());\n for (Point pos : blockToBoardPosition.values()) {\n // ...\n if( e.getX() - pos.x > 0 && e.getY() - pos.y > 0\n && e.getX() - pos.x < 60 && e.getY() - pos.y < 60\n && seletedLabel != null){\n seletedLabel.setLocation(pos.x,pos.y);\n System.out.println(\"seletedLabel pos: \"+pos.x+\" , \"+pos.y);\n break;\n }\n }\n seletedLabel = null;\n }", "title": "" }, { "docid": "8f7cb949ba7bbf2d8819820469f8e96d", "score": "0.55890226", "text": "public void mouseReleased(MouseEvent e)\n { /* mouseReleased */\n if(!mae.mReady || mae.maxPreloadImgs==0)\n return;\n \n int\n modifiers= e.getModifiers(),\n x= e.getX(),\n y= e.getY(),\n hpNbr;\n Point\n xyHPlist[]= mae.dwPI.hpXYpseudoImgList;\n DrawPseudoImage\n dwPI= mae.dwPI;\n \n /* Save the previous object state in case we do not change it\n * so that it may be restored.\n **/\n int\n oldXobj= xyObj.x, /* save real object if any */\n oldYobj= xyObj.y;\n boolean\n oldIsValidObjectFlag= cdb.isValidObjFlag; /* save real object status */\n mapRelXYtoImage(e,x,y);\n \n /* [1] Test if clicked on HP[i] on HP-E list in left of image */\n hpNbr= getHPnbrInImage(e);\n if(hpNbr==0)\n { /* toggle setting HP-X and HP-Y active sample */\n dwPI.setHPXflag= !dwPI.setHPXflag;\n Util.showMsg(\"Set sample to HP-\"+\n ((dwPI.setHPXflag) ? \"X\" : \"Y\"));\n Util.showFeatures(\"\",\"\");\n mae.updatePseudoImgFlag= true;\n }\n else if(hpNbr>=1)\n { /* change to sample hpNbr */\n mae.curHP= hpNbr;\n mae.ms= mae.hps.msList[hpNbr]; /* set the new one */\n mae.is.syncScrollerAccess(); /* update scroller & canvas\n * access to rg,po,ms */\n /* change HP-X sample to current sample */\n String\n sXY;\n if(dwPI.setHPXflag)\n {\n mae.msX= mae.ms;\n mae.curHP_X= hpNbr;\n mae.curHP= hpNbr;\n sXY= \"X\";\n }\n else\n {\n mae.msY= mae.ms;\n mae.curHP_Y= hpNbr;\n mae.curHP= hpNbr;\n sXY= \"Y\";\n }\n /* Setup mae.hps.(sMod, sModX, sModY) based on whether\n * using ratio mode or swapCy5Cy3DataFlags\n */\n mae.hps.setHPxyModStrings();\n \n mae.updatePseudoImgFlag= true;\n Util.showMsg(\"Changed HP-\"+sXY+\" to [\"+mae.ms.hpName+\"]\"+\n mae.hps.sModXY);\n } /* change to sample hpNbr */\n \n if(mae.updatePseudoImgFlag)\n { /* update pseudo image */\n \n /* restore Object to previous object before clicked */\n xyObj.x= oldXobj; /* restore real object if any */\n xyObj.y= oldYobj;\n cdb.isValidObjFlag= oldIsValidObjectFlag;\n \n //mae.cdb.hpXYdata.setupDataStruct(mae.useHPxySetDataFlag);\n fc.computeWorkingGeneList();\n mae.repaint();\n repaint();\n \n return;\n } /* found it, change the current HP-X */\n \n /*\n if(mae.CONSOLE_FLAG)\n showImageMousePos(e, \"is.mouseReleased\", x, y);\n */\n \n /* [2] Test if clicked on spot in image */\n toPoint= new Point(xObj,yObj); /* save coordinates [FUTURE]*/\n xyObj= toPoint;\n \n /* Optimize spot position only for original image */\n String s= cdb.lookupHPcoords(xObj,yObj,mae.spotRad,true, mae.ms);\n \n if(cdb.isValidObjFlag)\n { /* only update other interested parties if data is valid */\n xObj= cdb.objX; /* data is valid */\n yObj= cdb.objY;\n }\n else\n { /* restore Object to previous object before clicked */\n xyObj.x= oldXobj; /* restore real object if any */\n xyObj.y= oldYobj;\n cdb.isValidObjFlag= oldIsValidObjectFlag;\n }\n \n if(cdb.isValidObjFlag)\n { /* if still valid, then refresh it */\n /* Note: popup registry will repaint this window AFTER\n * it recomputes the working gene list with the new data values.\n */\n mae.pur.updateCurGene(cdb.objMID, modifiers, null);\n mae.sf.showValidSpotInfo(xyObj,mae.ms);\n }\n \n repaint();\n }", "title": "" }, { "docid": "03847e7a9dd548bcb34696b951131384", "score": "0.5584143", "text": "private Point getAdjustedMouseLoc(){\r\n\t\treturn new Point((int) MouseInfo.getPointerInfo().getLocation().getX()-frame.getX()-PANEL_OFFSET.width,\r\n\t\t\t\t\t\t (int) MouseInfo.getPointerInfo().getLocation().getY()-frame.getY()-PANEL_OFFSET.height);}", "title": "" }, { "docid": "9f854c6bd7073a0fa8e3765cbaa4935b", "score": "0.55775857", "text": "static void displayPoint(Point p) {\n System.out.println(\"(\" + p.x + \", \" + p.y + \")\");\n }", "title": "" }, { "docid": "a949cfcbab74d9dce16d1159b6f1797d", "score": "0.5558269", "text": "private void updateToShow(){\n toShowX = (int) (x- GameState.frameStartX+radiusOfImage*RADICAL2*Math.cos((angleDeg+225)*p/180));\n toShowY = (int) (y-GameState.frameStartY+radiusOfImage*RADICAL2*Math.sin((angleDeg+225)*p/180));\n }", "title": "" }, { "docid": "20bb7f29c900460d0dbaa4b014e496c0", "score": "0.55530626", "text": "@Override\n public void mouseMoved(MouseEvent e) {\n mx = e.getX();\n my = e.getY();\n //System.out.println(\"X:\" + mx + \", Y:\" + my);\n }", "title": "" }, { "docid": "556c2e9ecf829b7dc9a9d567dcba7aea", "score": "0.5548016", "text": "public Point getPopupLocation(MouseEvent paramMouseEvent) {\n/* 3064 */ return null;\n/* */ }", "title": "" }, { "docid": "7ddb36a9886dfc8920e053ef45bbcc82", "score": "0.55479985", "text": "@Override public void mouseClicked(MouseEvent e)\n {\n\t double X = (((e.getX() - .5)*(2.0/1024.0))-1.0)*10.0;\n\t double Y = (((e.getY() - .5)*(2.0/1024.0))-1.0)*-10.0;\n\t System.out.println(\"Camera Space Coordinates:\" + String.format(\"%.2f\",X)+\",\"+String.format(\"%.2f\",Y));\n }", "title": "" }, { "docid": "1c9bac59fb880a0aa088e89bb3b9dc6b", "score": "0.55433965", "text": "void displaySpot(double x, double y);", "title": "" }, { "docid": "d3742af9921506dd63fa0a3675d56038", "score": "0.55375046", "text": "public boolean\nmouseEnter(\n Event evt,\n int x,\n int y)\n{\n String strDimensions = \"(\" + framePixelWidth + \"x\" + framePixelHeight +\")\";\n showStatus(statusText[stringStatus] + \" \" + strDimensions);\n return true;\n}", "title": "" }, { "docid": "c20ac7a5937abb670987a7059101521c", "score": "0.5529053", "text": "public void mousePressed(MouseEvent e) {\r\n\r\n\t\t// show the point where the user pressed the mouse\r\n\t\tpressed = true;\r\n\r\n\t\tSystem.out.println(\"mouse pressed at point:\" + e.getX() + \" \" + e.getY());\r\n\t}", "title": "" }, { "docid": "42b5919efcdfed64af906d4b9485d6a3", "score": "0.5523648", "text": "public void mouseMoved(MouseEvent e)\n\t\t{\t\n\t\t\tsuper.mouseMoved(e);\n\t\t\t\n\t\t\tint locx = offScreenX(e.getX());\n \tint locy = offScreenY(e.getY());\n\t\t\t\n\t\t\tif (!somaMode) {\n\t\t\t\t//check to see if the mouse is over a node, change the\n\t\t\t\t//cursor and display the node number if it is\n\t\t\t\tNode n = getNodeAt(locx, locy);\n\t\t\t\tif (n != null) {\n\t\t\t\t\tsetCursor(overNodeCursor);\n\t\t\t\t\tchangeStatusText(\"Node \" + n.id);\n\t\t\t\t} else {\n\t\t\t\t\tif (statusText != null) {\n\t\t\t\t\t\tchangeStatusText(null);\n\t\t\t\t\t\tsetCursor(defaultCursor);\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (lineMode) {\n\t\t\t\tif (!IJ.escapePressed()) {\n\t\t\t\t\tendPoint.x = e.getX();\n\t\t\t\t\tendPoint.y = e.getY();\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tlineMode = false;\n\t\t\t\t\tchangeStatusText(null);\n\t\t\t\t\tIJ.resetEscape();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint minx = min(startPoint.x, endPoint.x);\n\t\t\t\tint miny = min(startPoint.y, endPoint.y);\n\t\t\t\tint maxx = max(startPoint.x, endPoint.x);\n\t\t\t\tint maxy = max(startPoint.y, endPoint.y);\n\t\t\t\tint offset = 100;\t\t\t\t\n\t\t\t\trepaint(max(minx-offset, 0), max(miny-offset, 0),\n\t\t\t\t\t\tmin(maxx-minx+offset, img.getWidth()), min(maxy-miny+offset, img.getHeight()));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0ca1976ae64532fdf3828c2b12acac8b", "score": "0.55212283", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"mousePressed en \"+e.getPoint());\n\n\t\t\t}", "title": "" }, { "docid": "4953c698a367888b91553a33946940fc", "score": "0.550599", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tfloat XX = (e.getX() - windowWidth * 0.5f) * orthoX / windowWidth;\n\t\tfloat YY = -(e.getY() - windowHeight * 0.5f) * orthoX / windowWidth;\n\t\tSystem.out.printf(\"Point clicked: (%.3f, %.3f)\\n\", XX, YY);\n\n\t\tpx = XX;\n\t\tpy = YY;\n\n\t\t\n\n\t\t// mouseX0 = e.getX();\n\t\t// mouseY0 = e.getY();\n\t\tif (e.getButton() == MouseEvent.BUTTON1) { // Left button\n\n\t\t} else if (e.getButton() == MouseEvent.BUTTON3) { // Right button\n\t\t}\n\t}", "title": "" }, { "docid": "580fcf48b923d2a7a10cba9c7fb10b56", "score": "0.5502295", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\timagePane.setDrawingMode(true);\r\n\t\t\t\t//System.out.println(\"add worked??\" + imagePane.isDrawingMode()); \r\n\t\t\t}", "title": "" }, { "docid": "24acb05d662e419c679de54221a9f53a", "score": "0.5495442", "text": "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tSystem.out.println(e.getX() + \", \" + e.getY());\n\t}", "title": "" }, { "docid": "029a9a21108dd2f9b97853eb4ba65e14", "score": "0.54813033", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tDecimalFormat df = new DecimalFormat(\"0.00\"); // Formating output to two decimal places\n\t\txLabel.setText(\"X: \" + e.getX());\n\t\tyLabel.setText(\"Y: \" + e.getY());\n\t\tredLabel.setText(\n\t\t\t\tString.format(\"Red: %s\", df.format(picture_view.getPicture().getPixel(e.getX(), e.getY()).getRed())));\n\t\tgreenLabel.setText(String.format(\"Green: %s\",\n\t\t\t\tdf.format(picture_view.getPicture().getPixel(e.getX(), e.getY()).getGreen())));\n\t\tblueLabel.setText(\n\t\t\t\tString.format(\"Blue: %s\", df.format(picture_view.getPicture().getPixel(e.getX(), e.getY()).getBlue())));\n\t\tbrightnessLabel.setText(String.format(\"Brightness: %s\",\n\t\t\t\tdf.format(picture_view.getPicture().getPixel(e.getX(), e.getY()).getIntensity())));\n\t}", "title": "" }, { "docid": "cf153e149f170601daf08c42264137d6", "score": "0.5462102", "text": "public int getVisiblePoints()\r\n {\r\n return (flags & WHICH_TO_SHOW_MASK) >> 10;\r\n }", "title": "" }, { "docid": "7f0df2f7a7bbdb3e70b6ceaaae63b34d", "score": "0.54577637", "text": "public boolean isMouse(Coord c);", "title": "" }, { "docid": "b608396b2e8a20e3bef786a67d171db4", "score": "0.5451678", "text": "public void setShowPoint(boolean showPoint) {\r\n isShowPoint = showPoint;\r\n }", "title": "" }, { "docid": "7c78b4312acf06bac243aaec9f0b5265", "score": "0.5446901", "text": "public synchronized void mousePressed(MouseEvent e) \r\n\t{\r\n\t\tIJ.showMessage(\"TODO!!\");\r\n\t\t/* get the coordinates of mouse while it was clicked*/\r\n\t\tint x = e.getX();\r\n\t\tint y = e.getY();\r\n\t\t/* covert them to offScreen coordinates using the ImageCanvas of this window*/\r\n\t\tint offscreenX = this.ic.offScreenX(x);\r\n\t\tint offscreenY = this.ic.offScreenY(y);\r\n\t\t\r\n\t\tboolean trajectory_clicked = false;\r\n\t\tint min_dis = Integer.MAX_VALUE;\r\n\t\t//Iterator iter = all_traj.iterator();\r\n\t\t/* find the best Trajectory to match the mouse click*/\r\n\t\t//while (iter.hasNext())\r\n\t\tTrajectory[] trajs = ((TrajectoryCanvas)getCanvas()).getTrajs();\r\n\t\tint chosen_traj=0;\r\n\t\tfor(int i=0; i< trajs.length; i++)\r\n\t\t{\r\n\t\t\tTrajectory curr_traj = trajs[i];\t\t\t\t\r\n\t\t\t// only trajectories that the mouse click is within their mouse_selection_area\r\n\t\t\t// and that are not filtered (to_display == true) are considered as a candidate\r\n\t\t\tif ((((TrajectoryCanvas)getCanvas()).getMouseSelectionArea(i)).contains(offscreenX, offscreenY) && curr_traj.isToDisplay())\r\n\t\t\t{\r\n\t\t\t\t// we have a least 1 candidate => a trajectory will be set\r\n\t\t\t\ttrajectory_clicked = true;\r\n\t\t\t\t// for each particle in a candidate trajectory, check the distance \r\n\t\t\t\t// from it to the mouse click point\r\n\t\t\t\tfor (int p = 0; p<curr_traj.getParticles().length; p++) \r\n\t\t\t\t{\r\n\t\t\t\t\tint dis = ((int)curr_traj.getParticles()[p].getX() - offscreenY)*\r\n\t\t\t\t\t\t\t\t((int)curr_traj.getParticles()[p].getX() - offscreenY) +\r\n\t\t\t\t\t\t\t\t((int)curr_traj.getParticles()[p].getY() - offscreenX)*\r\n\t\t\t\t\t\t\t\t((int)curr_traj.getParticles()[p].getY() - offscreenX);\r\n\t\t\t\t\t// if the distance for this particle is lower than the min distance found\r\n\t\t\t\t\t// for all trajectories until now - save this trajectory for now\r\n\t\t\t\t\tif (dis < min_dis) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmin_dis = dis;\r\n\t\t\t\t\t\tchosen_traj = curr_traj.getId();\t\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\t\r\n\t\t\r\n\t\tif (trajectory_clicked) \r\n\t\t{\r\n\t\t\t/* focus or mark the selected Trajectory according the the type of mouse click*/\r\n\t\t\tthis.imp.killRoi();\r\n\t\t\tthis.imp.updateImage();\r\n\t\t\t// show the number of the selected Trajectory on the per trajectory \r\n\t\t\t// panel in the results window\r\n\t\t\t//results_window.per_traj_label.setText(\"Trajectory \" + chosen_traj);\r\n\t\t\t\r\n\t\t\tif (e.getClickCount() == 2) \r\n\t\t\t{\r\n\t\t\t\t// \"double-click\" \r\n\t\t\t\t// Set the ROI to the trajectory focus_area\r\n\t\t\t\t//IJ.getImage().setRoi(((Trajectory)all_traj.elementAt(chosen_traj-1)).focus_area);\r\n\t\t\t\tIJ.getImage().setRoi(((TrajectoryCanvas)getCanvas()).getFocusArea((chosen_traj)));\r\n\t\t\t\t// focus on Trajectory (ROI)\r\n\t\t\t\t//generateTrajFocusView(chosen_traj-1, magnification_factor);\r\n\t\t\t\tgenerateTrajFocusView(chosen_traj, 1);\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t// single-click - mark the selected trajectory by setting the ROI to the \r\n\t\t\t\t// trajectory’s mouse_selection_area\r\n\t\t\t\tthis.imp.setRoi(((TrajectoryCanvas)getCanvas()).getMouseSelectionArea(chosen_traj));\r\n\t\t\t\tthis.particleTracker.trajectoryStackWindow_trajClicked(chosen_traj);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tchosen_traj = -1;\r\n\t\t\t//results_window.per_traj_label.setText(\"Trajectory (select from view)\");\r\n\t\t}\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "59bf5b202043f1e93faac13b5fe7f840", "score": "0.54126704", "text": "private void mousePressed(MouseEvent event){\n intialx = event.getX();\n intialy = event.getY();\n\n }", "title": "" }, { "docid": "40cdf928e53dfd3c6af0150afadffd30", "score": "0.5412636", "text": "void moveMouseOn(int x, int y);", "title": "" }, { "docid": "5f3b9babb45f82ed93841c0478fb3d69", "score": "0.54116315", "text": "public void printSpyCamLocations() {\r\n\r\n\t\tfor(int i = 0; i < ListOfCam.size(); i++){\r\n\t\t\tSystem.out.println(\"Spy cam at \" + ListOfCam.get(i));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "06f1bf31e1a63c3315e2d4a9a8cb43fb", "score": "0.5398928", "text": "@Override\n\t public void mousePressed(MouseEvent event) {\n\n\t Point p = event.getPoint();\n\n\t for (int i = 0; i < points.length; i++) {\n\n\t double x = points[i].getX() - SIZE / 2;\n\t double y = points[i].getY() - SIZE / 2;\n\n\t Rectangle2D r = new Rectangle2D.Double(x, y, SIZE, SIZE);\n\n\t if (r.contains(p)) {\n\n\t pos = i;\n\t //return;\n\t }\n\t }\n\t }", "title": "" }, { "docid": "67f058e3b30c6fe8069594eaa287e89c", "score": "0.5397317", "text": "private void graph_screenMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_graph_screenMouseMoved\n drawCoordinates(evt);\n }", "title": "" }, { "docid": "138079547bc617ce0b757d578eb37877", "score": "0.539467", "text": "public PVector getMouseCoord()\n\t{\n\t\treturn zoomer.getMouseCoord();\n\t}", "title": "" }, { "docid": "9d4431f56d930ad3345f3172f9b09c0f", "score": "0.5393216", "text": "int getMouseX();", "title": "" }, { "docid": "cf57cb10d0757a09de142c5210f0e9dc", "score": "0.5393167", "text": "@Test\n\tpublic void testGetKeyImagePosition() {\n\t\tPicture picture = hud.getKeyImage(1, 2, ColorRGBA.Red);\n\t\tVector3f location = picture.getLocalTranslation();\n\t\tassertEquals(145f, location.x, 1e-5);\n\t\tassertEquals(200f, location.y, 1e-5);\n\t}", "title": "" }, { "docid": "dd61adeb45b6e1bfff2cc6503b8ec714", "score": "0.5393144", "text": "@Override\n\t\t\tpublic void onPointClicked(PointEvent event) {\n\t\t\t\tGWT.log(\"From APP, coordinate are \" + event.getPoint());\n\t\t\t}", "title": "" }, { "docid": "18bbba2a91a71f74fe35addc176ee890", "score": "0.5385161", "text": "private void updateMouseOverInformation() {\n // update mouseOverView\n for (Place p : tab.getModel().getPlaces()) {\n if (((TimedPlaceComponent) p).isAgeOfTokensShown()) {\n ((TimedPlaceComponent) p).showAgeOfTokens(true);\n }\n }\n }", "title": "" }, { "docid": "b7d8ab4bd06bc2515ac08fb528df82c9", "score": "0.5384253", "text": "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\t\tSystem.out.println(\"moviendose:\" + e.getX() + \" \" + e.getY() + \"mouse clicked :\" + e.getClickCount());\r\n\t}", "title": "" }, { "docid": "5d480d7f2bf20803571a20f61cbef4a5", "score": "0.53813505", "text": "@Override\n public void mouseDragged(MouseEvent e){\n System.out.println(\"鼠标拖动到位置:\" + e.getX() + \",\" + e.getY());\n }", "title": "" }, { "docid": "3d4c99d1ebc008fb05ae32b523b09172", "score": "0.53735375", "text": "public Cursor createCustomCursor(Image img, Point hotSpot, String name)\n throws IndexOutOfBoundsException, HeadlessException {\n lockAWT();\n try {\n int w = img.getWidth(null), x = hotSpot.x;\n int h = img.getHeight(null), y = hotSpot.y;\n if (x < 0 || x >= w || y < 0 || y >= h) {\n // awt.7E=invalid hotSpot\n throw new IndexOutOfBoundsException(Messages.getString(\"awt.7E\")); //$NON-NLS-1$\n }\n return new Cursor(name, img, hotSpot);\n } finally {\n unlockAWT();\n }\n }", "title": "" }, { "docid": "069de77de8d85466c2abff911cb11ba0", "score": "0.5373013", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tSystem.out.println(e.getX()+\" \"+e.getY());\n\t\t\tint x=e.getX()/100;\n\t\t\tint y=e.getY()/100;\n\t\t\tSystem.out.println(x+\" \"+y);\n\t\t\tfor(int i=0;i<12;i++){\n\t\t\t\t///\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trepaint();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3f5a0a3e97e6bf9ac574f2d925d9d349", "score": "0.53688437", "text": "protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException {\n/* 126 */ super.mouseClicked(mouseX, mouseY, mouseButton);\n/* */ \n/* 128 */ if (this.showSpawnFields) {\n/* 129 */ this.spawnX.mouseClicked(mouseX, mouseY, mouseButton);\n/* 130 */ this.spawnY.mouseClicked(mouseX, mouseY, mouseButton);\n/* 131 */ this.spawnZ.mouseClicked(mouseX, mouseY, mouseButton);\n/* */ } \n/* */ }", "title": "" }, { "docid": "adc4b965124189eb9ad8520f67f1fabd", "score": "0.5365596", "text": "private void getPoints() {\n\t\tpointList.clearList();\r\n\t\tMenuElement visiblePoint;\r\n\t\tfor( int i = 0, l = Camera.getSize(); i < l; i++ ) {\r\n\t\t\tvisiblePoint = new MenuButton(1000 + i , 135, (i * 22) + 53, 190, 20, 0xff000000, Camera.getPointString(i));\r\n\t\t\tpointList.addElement(visiblePoint);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d9cc4efa6b9e3134824466105c41130d", "score": "0.5362822", "text": "@Override\n public void moveMouse(int iPosX, int iPosY) {\n // Check for x-coordinate\n if (iPosX - getIPosX() > iPointerDistX) {\n setIPosX(iPosX - iPointerDistX);\n }\n else if (iPosX - getIPosX() < iPointerDistX) {\n setIPosX(iPosX - iPointerDistX);\n }\n // Check for y-coordinate\n if (iPosY - getIPosY() > iPointerDistY) {\n setIPosY(iPosY - iPointerDistY);\n }\n else if (iPosY - getIPosY() < iPointerDistY) {\n setIPosY(iPosY - iPointerDistY);\n }\n }", "title": "" }, { "docid": "1c737f78bdb0ea39a21234792aa02034", "score": "0.536141", "text": "public void mouseClicked(MouseEvent e) {\n\t\t\n\t\tp = e.getPoint();\n\t\tSystem.out.println(p);\nmove(g, 20,20, 20, 20);\n\t\t\n\t}", "title": "" }, { "docid": "1aa4d0652eb9009b6c74c8ab7a898267", "score": "0.53576326", "text": "public int getXFinal(){ return mousePositionFinal[0]; }", "title": "" }, { "docid": "f906474042f3ca8034d872177d98ef24", "score": "0.535519", "text": "public void mousePressed(MouseEvent mouseEvent) {\r\n float mx = mouseEvent.getX() - offsetX; // see ViewJComponentHLUTBase\r\n float my = mouseEvent.getY() - offsetY;\r\n\r\n if (mode == RED) { // Add or remove points to red transfer function\r\n\r\n if ((addPointFlag == true) && (index != -99) && (mouseEvent.isShiftDown() == false)) {\r\n RGBT.getRedFunction().insertPoint(new Vector2f(mx, my), index + 1);\r\n }\r\n\r\n if ((addPointFlag == false) && (index != -99) && mouseEvent.isShiftDown()) {\r\n RGBT.getRedFunction().removePoint(index);\r\n }\r\n } else if (mode == GREEN) {\r\n\r\n if ((addPointFlag == true) && (index != -99) && (mouseEvent.isShiftDown() == false)) {\r\n RGBT.getGreenFunction().insertPoint(new Vector2f(mx, my), index + 1);\r\n }\r\n\r\n if ((addPointFlag == false) && (index != -99) && mouseEvent.isShiftDown()) {\r\n RGBT.getGreenFunction().removePoint(index);\r\n }\r\n } else if (mode == BLUE) {\r\n\r\n if ((addPointFlag == true) && (index != -99) && (mouseEvent.isShiftDown() == false)) {\r\n RGBT.getBlueFunction().insertPoint(new Vector2f(mx, my), index + 1);\r\n }\r\n\r\n if ((addPointFlag == false) && (index != -99) && mouseEvent.isShiftDown()) {\r\n RGBT.getBlueFunction().removePoint(index);\r\n }\r\n } else if (mode == ALL) {\r\n\r\n if ((addPointFlag == true) && (index != -99) && (mouseEvent.isShiftDown() == false)) {\r\n RGBT.getRedFunction().insertPoint(new Vector2f(mx, my), index + 1);\r\n RGBT.getGreenFunction().insertPoint(new Vector2f(mx, my), index + 1);\r\n RGBT.getBlueFunction().insertPoint(new Vector2f(mx, my), index + 1);\r\n }\r\n\r\n if ((addPointFlag == false) && (index != -99) && mouseEvent.isShiftDown()) {\r\n RGBT.getRedFunction().removePoint(index);\r\n RGBT.getGreenFunction().removePoint(index);\r\n RGBT.getBlueFunction().removePoint(index);\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "79b5cbf57b789aa0b8f33fb43355a034", "score": "0.5322361", "text": "@Override public void mouseDragged(MouseEvent e)\n {\n\t int x_d = e.getX();\n\t int y_d = e.getY();\n\n\t // calculate the pixel distance between the start point and end point.\n\t int pix_dis_x = x_d - x_p;\n\t int pix_dis_y = y_d - y_p;\n\n\t // transform the pixel coordinates into camera space coordinates.\n\t double Cam_x_p = (((x_p - .5)*(2.0/1024.0))-1.0)*10.0;\n\t double Cam_y_p = (((y_p - .5)*(2.0/1024.0))-1.0)*-10.0;\n\t double Cam_x_d = (((x_d - .5)*(2.0/1024.0))-1.0)*10.0;\n\t double Cam_y_d = (((y_d - .5)*(2.0/1024.0))-1.0)*-10.0;\n\n\t // calculate the distance in camera space.\n\t double cam_dis_x = Cam_x_d - Cam_x_p;\n\t double cam_dis_y = Cam_y_d - Cam_y_p;\n\n\t System.out.println(e.getX()+ \",\" + e.getY());\n\t System.out.println(\"Pix_Dis_X:\" + pix_dis_x + \",\" + \"Pix_Dis_Y:\" + pix_dis_y);\n\t System.out.println(\"Cam_Dis_X:\" + String.format(\"%.2f\",cam_dis_x) + \",\" + \"Cam_Dis_Y:\" + String.format(\"%.2f\",cam_dis_y));\n\n\t x_p = x_p + pix_dis_x;\n\t y_p = y_p + pix_dis_y;\n\n\n\t if(hit[0]==true)\n\t {\n\t\t for(Vertex v : scene.modelList.get(0).vertexList)\n\t\t {\n\t\t\t v.x += cam_dis_x;\n\t\t\t v.y += cam_dis_y;\n\t }\n }\n if(hit[1]==true)\n {\n\t\t for(Vertex v : scene.modelList.get(1).vertexList)\n\t\t {\n\t\t\t v.x += cam_dis_x;\n\t\t\t v.y += cam_dis_y;\n\t\t }\n\t }\n\t if(hit[2]==true)\n\t {\n\t\t for(Vertex v : scene.modelList.get(2).vertexList)\n\t\t {\n\t\t\tv.x += cam_dis_x;\n\t\t\tv.y += cam_dis_y;\n\t\t }\n\t }\n\t if(hit[3]==true)\n\t {\n\t\t for(Vertex v : scene.modelList.get(3).vertexList)\n\t\t {\n\t\t\t v.x += cam_dis_x;\n\t\t\t v.y += cam_dis_y;\n\t\t }\n\t }\n\t if(hit[4]==true)\n\t {\n\t\t for (Vertex v : scene.modelList.get(4).vertexList)\n\t\t {\n\t\t\t v.x += cam_dis_x;\n v.y += cam_dis_y;\n\t\t }\n\n\t\t x0circle += cam_dis_x;\n y0circle += cam_dis_y;\n\n\n\t }\n\n // Render.\n FrameBuffer fb = fbf.fbp.getFrameBuffer();\n fb.clearFB(Color.black);\n Pipeline.render(scene, fb.vp);\n fbf.fbp.update();\n fbf.repaint();\n }", "title": "" }, { "docid": "8e8cd8d4546df5f91ab85d0f285736dd", "score": "0.5318828", "text": "public static FullScreenMouseInfo getMouseInfo() {\n if (displayedWorld != null && lastMouseEvent != null) {\n return new FullScreenMouseInfo(lastMouseEvent, selfReference);\n }\n else {\n return null;//Greenfoot.getMouseInfo();\n }\n }", "title": "" }, { "docid": "0aed727c5f84191c32a60bfe98dd42cf", "score": "0.53092116", "text": "public void mouseClicked(MouseEvent e) {\n\n try {\n /*\n * int height=shape.getBufImage().getHeight(); int\n * width=shape.getBufImage().getWidth(); int x=shape.getX(); int\n * y=shape.getY(); myImage = new Robot().createScreenCapture(new\n * Rectangle(x,y,width,height));\n */\n myImage = shape.getBufImage();\n ImageIO.write(myImage, \"jpg\", new File(\"./image\" + count + \".jpg\"));\n count++;\n } catch (Exception e1) {\n // TODO Auto-generated catch block\n // System.out.println(\"Connection Lost! Please close the application.\");\n JOptionPane.showMessageDialog(null, \"Connection Lost! Closing thhe application\");\n System.exit(0);\n }\n }", "title": "" }, { "docid": "c909c307048fd5bdfd4153034960d3e4", "score": "0.5302515", "text": "private void jPanel2MousePressed(java.awt.event.MouseEvent evt) {\n xx = evt.getX();\n xy = evt.getY();\n }", "title": "" }, { "docid": "6badb1ad34c3ba3796ffff484385fbc9", "score": "0.5302371", "text": "public abstract boolean isMouseGrabbed();", "title": "" }, { "docid": "0696c96831bc0bfef26318d1ddcb07f3", "score": "0.53003037", "text": "public void mouseClicked(MouseEvent e) {\r\n\r\n\t\t// getClickCount gives the number of quick,\r\n\t\t// consecutive clicks made by the user\r\n\t\t// show the point where the mouse is i.e\r\n\t\t// the x and y coordinates\r\n\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"mouse clicked at point:\" + e.getX() + \" \" + e.getY() + \"mouse clicked :\" + e.getClickCount());\r\n\t}", "title": "" }, { "docid": "1691b125f95b5a21564cdb29de68c4bc", "score": "0.5283346", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n float x = event.getX();\n float y = event.getY();\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n Toast.makeText(getApplicationContext(), \"Touch Down x=\" + x +\" y=\" + y, Toast.LENGTH_SHORT).show();\n int parentOffset = getRelativeTop(findViewById(R.id.plotter_layout));\n shotCenterPoints.put(\"shot\" + shotIndex++, new Point((int) x, (int) y - parentOffset));\n break;\n case MotionEvent.ACTION_MOVE:\n\n //Handle Touch Move\n break;\n case MotionEvent.ACTION_UP:\n Toast.makeText(getApplicationContext(), \"Touch Up x=\" + x + \" y=\" + y, Toast.LENGTH_SHORT).show();\n break;\n }\n\n drawShots();\n return false;\n }", "title": "" }, { "docid": "36f566726dc4585d86ddf26e423a090e", "score": "0.52729356", "text": "private void TraceCoord(int _x, int _y) {\n\t\t\r\n\t}", "title": "" }, { "docid": "762e0024a1cc036b05cd5af6bc837208", "score": "0.5266483", "text": "@Override\n public void drawImage() {\n //CONVERT WORLD COORDS TO VIEW COORDS\n PointF viewCoords = Viewport.worldToViewCoordinates(getPosition());\n DrawingHelper.drawImage(getImageID(), viewCoords.x, viewCoords.y, getDirection(), (float).25, (float).25, 255);\n }", "title": "" }, { "docid": "1a61cb4787ac7403152e22ae4be5a5ed", "score": "0.5266157", "text": "void this_mousePressed(MouseEvent e) {\n offsetX = e.getX();\n offsetY = e.getY();\n }", "title": "" }, { "docid": "401548292804373cd23de5301502205a", "score": "0.52655786", "text": "public void mouseDragged(MouseEvent e)\n {\n System.out.println(\"easD\" + parent.activeOBJ.status);\n System.out.println(\"easD\" + status);\n if(cp==null)\n cp = new Point();\n // getXOnScreen() 與 getYOnScreen() 印出在螢幕中點擊的座標\n cp.x = e.getXOnScreen();\n cp.y = e.getYOnScreen();\n // g.drawRect(op.x+(cp.x-fp.x), op.y+(cp.y-fp.y),\n // d.width-1, d.height-1);\n if(op==null) op=new Point();\n op.x = op.x + (cp.x-lp.x);\n op.y = op.y + (cp.y-lp.y);\n easyOBJ.this.setLocation(op);\n// easyOBJ.this.setLocation(op.x+(cp.x-fp.x), op.y+(cp.y-fp.y));\n lp.x=cp.x;\n lp.y=cp.y;\n\n }", "title": "" }, { "docid": "17556bcba927cd4737897302e2e4c19c", "score": "0.52568", "text": "@Override\n public void mousePosEvent(long window) {\n menu.mousePosEvent(window);\n }", "title": "" }, { "docid": "b6a9bbd70fa9cb4549bacd94695d99e1", "score": "0.525356", "text": "public void setMouseInfo() {\n lastMouseInfo = mouseInfo;\n if (lastMouseEvent != null) {\n mouseInfo = new FullScreenMouseInfo(lastMouseEvent, this);\n }\n else {\n mouseInfo = null;\n }\n if (isMouseClicked) {\n mouseClickCounter++;\n if (mouseClickCounter >= 2) {\n isMouseClicked = false;\n }\n }\n }", "title": "" }, { "docid": "4f40ef56b8b8be547c372b4ed5885a55", "score": "0.52530533", "text": "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tmouseX = e.getX();\n\t\tmouseY = e.getY();\n\t\t\n\t\tif(mouseDown) {\n\t\t\tif(movingPoint == false){\n\t\t\t\tfor(int i =0;i<numberOfPoints;i++){\n\t\t\t\t\tif(savingPoints[fileIndex][i].contains(mouseX, mouseY) == true){\n\t\t\t\t\t\tmovingPointIndex = i;\n\t\t\t\t\t\toldPositionX = savingPoints[fileIndex][i].x;\n\t\t\t\t\t\toldPositionY = savingPoints[fileIndex][i].y;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmovingPoint = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tint scaledBox = (int)(boxSize*scaleFactor);\n\t\t\t\tint xPos = (int)(mouseX-oldMouseX) + (int)oldPositionX;\n\t\t\t\t\n\t\t\t\tint yPos = (int)(originalImageHeight*scaleFactor) - (int)scaledBox;\n\t\t\t\tif(movingPointIndex %2 == 0){\n\t\t\t\t\tyPos = scaledBox;\n\t\t\t\t}\n\n\t\t\t\tsavingPoints[fileIndex][movingPointIndex].setLocation(xPos,yPos);\n\t\t\t}\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "661ec12545eb4c93f5ee084324fc6132", "score": "0.5251821", "text": "@Override\r\n\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\tmousePress = e.getPoint();\r\n\r\n\t\t\t//get the \"minimum\"\r\n\t\t\timgPane.findMin(mousePress);\r\n\t\t\tSystem.out.println(imgPane.findMin(mousePress));\r\n\t\t}", "title": "" }, { "docid": "35f9d6dacf553c121eaa037e7560a349", "score": "0.5247871", "text": "private void annotationPreferencesHelpJButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_annotationPreferencesHelpJButtonMouseEntered\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n}", "title": "" }, { "docid": "fa3c3b66ad28973679ae28017e53607b", "score": "0.52437216", "text": "public String showPoint(boolean console){\n\t\tString s =\"AttackBonusPoint:\" + getPoint() + \"\\n\"; \n\t\tif(console)\n\t\t\tSystem.out.println(\"AttackBonusPoint:\" + getPoint());\n\t\treturn s;\n\t}", "title": "" }, { "docid": "3bd943b2e81059119040145e6f22f25d", "score": "0.5240927", "text": "void setImgPos(MaHybridSample ms, int xImg, int yImg)\n { /* setImgPos */\n msR= ms;\n this.xImg= xImg;\n this.yImg= yImg;\n \n /* Map (xImg,yImg) to the scrollbar cursors positions.\n * Then force it to recenter the image cursor at the (xImg, yImg)\n * by repainting it.\n */\n /* [BUG] recalculate correctly */\n int\n cWidth= getSize().width, /* canvas size */\n cHeight= getSize().height,\n xB= -(xImg - cWidth/2),\t /* MUST BE < 0!!! */\n yB= -(yImg - cHeight/2),\n dWidth= - (scWidth - cWidth),\n dHeight= - (scHeight - cHeight),\n hMax= is.hs.getMaximum(),\n vMax= is.vs.getMaximum(),\n hsVal= (xB * hMax) / dWidth, /* will be 0-100% */\n vsVal= (yB * vMax) / dHeight;\n\n /* Move scrollbars to the mapped (xImg,yImg) and thus the image\n * viewed in the canvas.\n */\n is.setScrollBar(hsVal,vsVal);\n \n repaint();\t\t/* move image */\n }", "title": "" }, { "docid": "a740f7cdfbc01b9d1456e21fe0ed3e71", "score": "0.5238105", "text": "public void setMouseCursor(BufferedImage image, Point cursorPoint) {\n panel.setMouseCursor(Toolkit.getDefaultToolkit().createCustomCursor(image, cursorPoint, \"cursor\"));\n }", "title": "" }, { "docid": "f3e7e77f498e9d863ff37fe216a1e62f", "score": "0.5237901", "text": "public boolean over(){\n\t\treturn p.mouseX>=x && p.mouseX<=x+w && p.mouseY>=y && p.mouseY<=y+h;\n\t}", "title": "" }, { "docid": "61db2d0a6dbac3b446668cf8a28edca8", "score": "0.52299535", "text": "public void onMousePositionEvent(MousePositionEventType eventType, \n\t\t\tPoint2D.Double mousePosition, double eventStepTime);", "title": "" }, { "docid": "f9cf2bc08055fc05f0a53fef2c7824d7", "score": "0.52245694", "text": "public void track() {\n depth = kinect.getRawDepth();\n\n // Being overly cautious here\n if (depth == null) return;\n\n float sumX = 0;\n float sumY = 0;\n float count = 0;\n\n for(int x = 0; x < kw; x++) {\n for(int y = 0; y < kh; y++) {\n // Mirroring the image\n int offset = kw-x-1+y*kw;\n // Grabbing the raw depth\n int rawDepth = depth[offset];\n\n // Testing against threshold\n if (rawDepth < threshold) {\n sumX += x;\n sumY += y;\n count++;\n }\n }\n }\n // As long as we found something\n if (count != 0) {\n loc = new PVector(sumX/count,sumY/count);\n }\n\n // Interpolating the location, doing it arbitrarily for now\n lerpedLoc.x = PApplet.lerp(lerpedLoc.x, loc.x, 0.3f);\n lerpedLoc.y = PApplet.lerp(lerpedLoc.y, loc.y, 0.3f);\n }", "title": "" }, { "docid": "f9160e4b38a79b08b11c6ca02881eba6", "score": "0.5211562", "text": "public void draw() {\n\n for (Point point : points) {\n System.out.println(\"X: \" + point.getX() + \" Y: \" + point.getY());\n }\n }", "title": "" }, { "docid": "30482c0cac2b56b5d10d4357c375aafc", "score": "0.5204446", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tstatusbar.setText(\"Mouse Pressed: (\"+e.getX()+\", \"+e.getY() +\")\");\n\t\tthis.xStart = e.getX();\n\t\tthis.yStart = e.getY();\n\t\t\n\t}", "title": "" }, { "docid": "5aede2db9d3de5dd6e381eca75a61d5c", "score": "0.52025217", "text": "int setMouseId();", "title": "" }, { "docid": "a26d4bb002d490eadfcbe61cbc61c0c6", "score": "0.5201236", "text": "public void mouseClicked(MouseEvent me) {\r\n\t\t\t\tcounter++;\r\n\t\t\t\tp = me.getPoint();\r\n\t\t\t\tx = p.x;\r\n\t\t\t\ty = p.y;\r\n\r\n\t\t\t\tGraphics g = pane.getGraphics();\r\n\t\t\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\t\t\tg2.setColor(Color.BLACK);\r\n\t\t\t\tEllipse2D.Double ellipse = new Ellipse2D.Double(x, y, 30, 30);\r\n\r\n\t\t\t\tg2.fill(ellipse);\r\n\t\t\t\tg2.drawString(Integer.toString(counter), x + 30, y - 10);\r\n\t\t\t\tSystem.out.println(x + y);\r\n\t\t\t\ta1.add(ellipse.getCenterX());\r\n\t\t\t\ta2.add(ellipse.getCenterY());\r\n\t\t\t\ta3.add(ellipse.getX());\r\n\t\t\t\ta4.add(ellipse.getY());\r\n\t\t\t\tnodes[counter - 1] = Integer.toString(counter);\r\n\t\t\t\tcom.addItem(Integer.toString(counter));\r\n\t\t\t\tcom2.addItem(Integer.toString(counter));\r\n\r\n\t\t\t}", "title": "" }, { "docid": "1a6912a851e0e6504e8f650dfed8c46f", "score": "0.5200409", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tint x = e.getX() / 50;\n\t\t\tint y = (e.getY() - 52) / 50;\n\t\t\tSystem.out.println(e.getY() + \",\" + e.getX());\n\t\t\tSystem.out.println(x + \",\" + y);\n\t\t\tchangeSingleBox(y, x);\n\t\t\tString temp = getFilename().substring(0, getFilename().length() - 4) + \"(mutated).txt\";\n\t\t\tif (!getFilename().contains(\"(mutated)\")) {\n\t\t\t\tupdateLabel(temp);\n\t\t\t}\n\t\t\tupdateChromosomePicture();\n\n\t\t}", "title": "" }, { "docid": "18d43ec6dad6ecf5ebdafaef3249fac6", "score": "0.5200037", "text": "public IImg appendOnMouseMove(String paramVal);", "title": "" }, { "docid": "9d8f4efc623047d71068216d35c74f49", "score": "0.5199962", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tsuper.mousePressed(e);\n\t\t\t\t// TODO(Past) While dragging the map, you need to get the location of\n\t\t\t\t// mousePressed.\n\t\t\t\t// TODO(Past) If player is clicked(judgement by player.getOnClick()), you don't\n\t\t\t\t// have to do dragging.\n\t\t\t\t/********************************************************************************************\n\t\t\t\t * START OF YOUR CODE\n\t\t\t\t ********************************************************************************************/\n\t\t\t\tPressedX = e.getX();\n\t\t\t\tPressedY = e.getY();\n\t\t\t\t/********************************************************************************************\n\t\t\t\t * END OF YOUR CODE\n\t\t\t\t ********************************************************************************************/\n\t\t\t}", "title": "" }, { "docid": "9f198f87d441038193decba70e23c87e", "score": "0.51973355", "text": "public static Vector getMousePos() {\n\n return mousePos;\n }", "title": "" } ]
8471b01f162871828c47f8d87e7a2be6
Open the creategame UI. You will get back an onActivityResult and figure out what to do.
[ { "docid": "73406d37ed708e4f05c2257cff63a4fa", "score": "0.0", "text": "public void onStartMatchClicked() {\n Intent intent = Games.TurnBasedMultiplayer.getSelectOpponentsIntent(mGoogleApiClient,\n 1, 7, true);\n startActivityForResult(intent, RC_SELECT_PLAYERS);\n }", "title": "" } ]
[ { "docid": "102f63b9f8167c79c194d05d136fd8bb", "score": "0.81101155", "text": "public void goToCreateGame(){\n presenter.setScreenCreateGame();\n Intent intent2 = new Intent(this, CreateGameActivity.class);\n this.startActivity(intent2);\n }", "title": "" }, { "docid": "2c1731477eb05d406d7f59aa6450bdc1", "score": "0.79730475", "text": "private void createGameClicked() {\n // Set up an Intent that will launch GameActivity\n Intent intent = new Intent(this, GameActivity.class);\n\n // Complete this function so that it populates the Intent with the user's settings (using putExtra)\n // If the user has set all necessary settings, launch the GameActivity and finish this activity\n }", "title": "" }, { "docid": "cd110ed95c413a522f088bd927fa7f86", "score": "0.7362799", "text": "public void newGame(View view) {\r\n Intent intent = new Intent(this, NewGameActivity.class);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "702e7f5f1ad32511680f2a1a70d993e1", "score": "0.72151124", "text": "public void startGame(View view){\n Intent i = new Intent(getApplicationContext(), NewGame.class);\n startActivity(i);\n\n }", "title": "" }, { "docid": "4dadd8838d0d3add3c7e740708a4ec65", "score": "0.70293456", "text": "public void startNewGameActivity(View view) {\n Intent intent = new Intent(this,NewGameActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "f53d5371bbeff4f51e5334dcef33ab1a", "score": "0.6956258", "text": "private void newGame() {\n Intent tmp = new Intent(this, SweeperChooseDimensionActivity.class);\n startActivity(tmp);\n }", "title": "" }, { "docid": "69e3b23539c6fc726fc6963bce4b4e49", "score": "0.6901858", "text": "@Override\n\tpublic void createNewGame() {\n\t\tString title = getNewGameView().getTitle();\n\t\tboolean randomTiles = getNewGameView().getRandomlyPlaceHexes();\n\t\tboolean randomNumbers = getNewGameView().getRandomlyPlaceNumbers();\n\t\tboolean randomPorts = getNewGameView().getUseRandomPorts();\n\t\ttry {\n\t\t\tGameHeader thisGame = serverProxy.createGame(title, randomTiles, randomNumbers, randomPorts);\n\t\t\tmodelFacade.setGameInfo(DataConverter.convertHeaderToInfo(thisGame));\n\t\t\tgetNewGameView().closeModal();\n\t\t\tif (getJoinGameView().isModalShowing()) getJoinGameView().closeModal();\n\t\t\tList<PlayerHeader> players = thisGame.getPlayers();\n\t\t\tfor (PlayerHeader player : players) {\n\t\t\t\tif (player.getUUID() == ClientManager.getLocalPlayer().getPlayerUUID()) {\n\t\t\t\t\tjoinAction.execute();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tgetSelectColorView().showModal();\n\t\t}\n\t\tcatch (GameInitializationException e) {\n\t\t\tgetMessageView().setTitle(\"Setup Error\");\n\t\t\tgetMessageView().setMessage(\"Could not initialize game.\");\n\t\t\tgetMessageView().showModal();\n\t\t}\n\t\tcatch (UserException e) {\n\t\t\tgetMessageView().setTitle(\"Invalid Action Error\");\n\t\t\tgetMessageView().setMessage(\"Invalid Action was performed.\");\n\t\t\tgetMessageView().showModal();\n\t\t}\n\t\tcatch (ServerException e) {\n\t\t\tgetMessageView().setTitle(\"Server Error\");\n\t\t\tgetMessageView().setMessage(\"Unable to connect to the server.\");\n\t\t\tgetMessageView().showModal();\n\t\t} \n\t}", "title": "" }, { "docid": "8b0521a20d3c8b1845c382cb1f2eb1f9", "score": "0.6821621", "text": "public void startNewGame()\n {\n // Display the Banner Page.\n System.out.println(\"Welcome to the city of Aaron.\");\n // Prompt for and get the user’s name.\n String name;\n System.out.println(\"Please type in your first name: \");\n name = keyboard.next();\n // Call the createNewGame() method in GameControlclass\n // pass the name as a parameter\n GameControl.createNewGame(name);\n \n // Display a welcome message\n System.out.println(\"Welcome \" + name + \" have fun!!!\");\n // Display the Game menu\n GameMenuView gmv = new GameMenuView();\n gmv.displayMenu();\n }", "title": "" }, { "docid": "204103e46b29331dc3659ab79054d6da", "score": "0.67291796", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tstartGame(which);\n\t\t\t\t\t}", "title": "" }, { "docid": "fdf13f9bbf6e26a984532e780347b53f", "score": "0.67053074", "text": "private void requestCreateGame() {\n\t\tif ( null == pageController ) return;\r\n\t\t\r\n\t\t//TODO catch validationexception and change error label instead of showing dialog\r\n\t\t//TODO validate as the user types\r\n\t\tpageController.setErrorLabel(\"\");\t\r\n\t\t\r\n\t\t//Validate input.\r\n\t\tfinal String gameName = FieldVerifier.validateGameName(screen.createGameNameField.getText());\r\n\t\t\r\n\t\tLong mapId = null;\r\n\t\tint selectedMap = screen.createGameMaps.getSelectedIndex();\r\n\t\tif ( -1 == selectedMap ) {\r\n\t\t\tthrow new ValidationException(\"Please select a map.\");\r\n\t\t} else {\r\n\t\t\tmapId = new Long(screen.createGameMaps.getValue(selectedMap));\r\n\t\t}\r\n\t\t\r\n\t\t//Disable button so we don't get double submits.\r\n\t\tscreen.createGameButton.setEnabled(false);\r\n\t\t\r\n\t\t//Send data to server.\r\n\t\tpageController.gameService.createGame(gameName, mapId, new CreateGameCallback());\r\n\t}", "title": "" }, { "docid": "62bd6f6a28ae9b66f689797d4353032c", "score": "0.67024845", "text": "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tGameView.getGameView().startGame();\r\n\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "ec693ae4aaad3da0c19cb255d6491e6c", "score": "0.6635959", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tGameView.getGameView().startGame();\r\n\r\n\t\t\t\t\t}", "title": "" }, { "docid": "e66ebf8acf90b3433076643b0586ed01", "score": "0.66272575", "text": "public void startGame(View view) {\n Intent intent = new Intent(this, GameActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "d222f9758fb9ea08dff7bc4eda9521c3", "score": "0.6610689", "text": "public void goToGamesPage(){\n Intent intent = new Intent(this, AddGame.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "3df2d588c82f953c6de3ac56c6852dc1", "score": "0.6605731", "text": "public void StartGame(View view) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "323ba9a8c3443ee6d69e25a2750b73e0", "score": "0.6529646", "text": "public void startGame(View view)\n\t{\n \tIntent intent = new Intent(this, GameRoomActivity.class);\n\n \tstartActivity(intent);\n\t}", "title": "" }, { "docid": "7c4dbd71c1e39382e5eb278efa37e4b1", "score": "0.64984566", "text": "public void newGameOnClick(View v){\n Intent intent = new Intent(this, CrosswordActivity.class);\n Log.e(\"SCREWED\",\"hagdkjhskgj\");\n startActivity(intent);\n }", "title": "" }, { "docid": "76e480cfe35f9b0d603a2441ddf88f6d", "score": "0.6471099", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), TwoPlayerGame.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "ba0ac884b60bfc01fd16e23926230a95", "score": "0.64244276", "text": "public void launchGame();", "title": "" }, { "docid": "29e02fa304e43f7c65dfe40ddb6e7a5b", "score": "0.6382837", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tLog.d(\"MainMenuonActivityResult\", \"Ended succesfully\");\n\t\t//Intent i = new Intent(getBaseContext(), GameOverTest.class);\n\t\t//startActivity(i);\n\t}", "title": "" }, { "docid": "bff9dd82682b30e41527d2b068be5399", "score": "0.63154525", "text": "private void createAndStartGame(String playerName) {\n\n\t\ttry {\n\t\t\tGame currentGame = GameControl.createNewGame(playerName);\n\t\t\tthis.console.println(\"\\n\\nWelcome to your new domain, \" + playerName + \"!\"\n\t\t\t\t\t+ \"\\nHere's what you need to know before you start:\"\n\t\t\t\t\t+ \"\\n\\n- Year: \" + currentGame.getCurrentYear()\n\t\t\t\t\t+ \"\\n- 0 people starved\"\n\t\t\t\t\t+ \"\\n- 5 people came to the city\"\n\t\t\t\t\t+ \"\\n- The current population is \" + currentGame.getCurrentPopulation()\n\t\t\t\t\t+ \"\\n- The city owns \" + currentGame.getAcresOwned() + \" acres of crop land\"\n\t\t\t\t\t+ \"\\n- 3 bushels per acre were harvested\"\n\t\t\t\t\t+ \"\\n- The total harvest was 3000 bushels of wheat\"\n\t\t\t\t\t+ \"\\n- The total tithe paid was \" + currentGame.getTithingPaidInBushels() + \" bushels of wheat\"\n\t\t\t\t\t+ \"\\n- 0 bushels of wheat were eaten by rats\"\n\t\t\t\t\t+ \"\\n- The total amount of wheat in storage is \" + currentGame.getWheatInStorage() + \" bushels\"\n\t\t\t\t\t+ \"\\n\\n ** Please be sure to complete all the tasks in the\"\n\t\t\t\t\t+ \"\\n'Manage Crops' menu before choosing to 'Live The Year' **\");\n\t\t\tpause(2000);\n\t\t} catch (GameControlException gce) {\n\t\t\tErrorView.display(this.getClass().getName(), gce.getMessage());\n\t\t} catch (MapControlException mce) {\n\t\t\tErrorView.display(this.getClass().getName(), mce.getMessage());\n\t\t}\n\n\t\t// Once the GameMenuView is created, we will call it here.\n\t\tGameMenuView gameMenu = new GameMenuView();\n\t\tgameMenu.displayView();\n\t}", "title": "" }, { "docid": "26430665f1db826941981836b10f90c7", "score": "0.629646", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_start_game);\n }", "title": "" }, { "docid": "59d08a071225374f3b31fd66e87e8431", "score": "0.6291155", "text": "public void currentGame(View view) {\n Intent intent = new Intent(this, CurrentGame.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "a627c86e51bc17f9af282ecadc8f8767", "score": "0.628745", "text": "public void createGame(final View view) {\n playerAlreadyInGame = false;\n mFirebaseDatabase.addListenerForSingleValueEvent(new ValueEventListener() {\n @RequiresApi(api = Build.VERSION_CODES.KITKAT) // Object.equals() only works with KitKat (API 19) and higher\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot snap: dataSnapshot.getChildren()) { // gets all games\n for(DataSnapshot list: snap.child(\"playerList\").getChildren()){ // gets list of players in each game\n if(Objects.equals(list.child(\"playerId\").getValue().toString(), auth.getCurrentUser().getUid())) {\n playerAlreadyInGame = true;\n break;\n }\n }\n }\n\n if (!playerAlreadyInGame){ // if user is not in a game, they can create a game as normal\n Intent intent = new Intent(view.getContext(), CreateGame.class);\n startActivity(intent);\n }\n else { // if user is in a game, they get a popup\n Context context = getApplicationContext();\n CharSequence text = \"You are already in a game! You must leave your game before you can create another!\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.setGravity(Gravity.CENTER|Gravity.CENTER, 0, 0);\n toast.show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {}\n });\n }", "title": "" }, { "docid": "c32b28b0286ef40f4b9ee55e9311a214", "score": "0.6286243", "text": "public void createGame(ActionEvent event) {\n\t\tString selection1 = player1.getSelectionModel().getSelectedItem();\r\n\t\tString selection2 = player2.getSelectionModel().getSelectedItem();\r\n\r\n\t\t// If the player wants to have 2 computers play, then warn them about the results\r\n\t\tif (selection1.equals(\"Computer\") && selection1.equals(selection2)) {\r\n\t\t\t// Create an alert\r\n\t\t\tAlert a = new Alert(AlertType.CONFIRMATION);\r\n\t\t\ta.setTitle(\"Confirm choice\");\r\n\t\t\ta.setHeaderText(\"Do you want to create a game without any human players?\");\r\n\t\t\ta.setContentText(\"If the game consists of a computer vs a computer then you will not be able to interact with the game at all.\");\r\n\r\n\t\t\t// Set the icon of the alert (getting stage from http://stackoverflow.com/questions/30728425/create-dialogs-with-default-images-in-javafx-info-warning-error)\r\n\t\t\tStage stage = (Stage) a.getDialogPane().getScene().getWindow();\r\n\t\t\tstage.getIcons().add(new Image(\"res/icon.png\"));\r\n\r\n\t\t\ta.showAndWait();\r\n\t\t\t\r\n\t\t\tif (a.getResult() == ButtonType.CANCEL) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Create game, set values, then send it to GUIMain\r\n\t\tGame g = new Game();\r\n\t\tg.setName(gameName.getText());\r\n\t\tg.setPlayer(Colour.values()[0], stringToPlayer(selection1));\r\n\t\tg.setPlayer(Colour.values()[1], stringToPlayer(selection2));\r\n\r\n\t\tGUIMain guiMain = (GUIMain) GUIBase.getControllers().get(\"main\");\r\n\t\tguiMain.setGame(g);\r\n\r\n\t\t// Get the stage and close it (also trigger handle event)\r\n\t\tStage stage = (Stage) GUIBase.getStages().get(\"new\");\r\n\t\tstage.getOnCloseRequest().handle(null);\r\n\t\tstage.close();\r\n\t}", "title": "" }, { "docid": "32e87d9d02fbe61c1232ca5af1f2ed1c", "score": "0.6247502", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.new_game:\n showDialog();\n default:\n }\n return true;\n }", "title": "" }, { "docid": "0a9be6392d1945d72db2ceb86c508994", "score": "0.61820555", "text": "public void onClickPlay(View view){\n //Save user name\n String firstName = mNameInput.getText().toString();\n mUser.setFirstName(firstName);\n //Start game\n Intent new_game = new Intent(MainActivity.this, GameActivity.class);\n startActivity(new_game);\n }", "title": "" }, { "docid": "585a101c927ddc9efa00b5e38a986bae", "score": "0.6181138", "text": "private void newGame() {\n if(game == null) {\n game = new Galgelogik();\n game.setBrugerNavn(getIntent().getStringExtra(\"brugerNavn\"));\n }\n else game.nulstil();\n gameBtn.setText(R.string.btn_guess);\n updateView();\n }", "title": "" }, { "docid": "b055ba8d7317de91665e38193a110a1e", "score": "0.6180155", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_game);\n\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n getWindow().setNavigationBarColor(getResources().getColor(R.color.colorPrimary));\n }\n\n //Error display dialogue when tapping a taken grid spot\n AlertDialog.Builder errorBuilder = new AlertDialog.Builder(GameActivity.this);\n errorBuilder.setTitle(\"Error\").setMessage(\"Pick something else!\");\n errorBuilder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n System.out.println(\"Test click\");\n }\n });\n intent = getIntent();\n gameLoaded = intent.hasExtra(\"data\");\n errorDialog = errorBuilder.create();\n\n winningBuilder = new AlertDialog.Builder(GameActivity.this);\n\n //Save dialogue\n AlertDialog.Builder saveBuilder = new AlertDialog.Builder(GameActivity.this);\n View view = LayoutInflater.from(this).inflate(R.layout.save_dialog,null);\n final EditText input = (EditText) view.findViewById(R.id.edit_dialog);\n saveBuilder.setTitle(\"Enter a name for your game.\").setView(view);\n saveBuilder.setPositiveButton(R.string.saveConfirm, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n fileName = input.getText().toString();\n try {\n String s = \"\";\n for(int in = 0; in < ROW_COL_SIZE; in++){\n for(int j = 0; j < ROW_COL_SIZE; j++){\n s += String.valueOf(array[in][j]);\n }\n }\n s += String.valueOf(curPlayer);\n outputStream = openFileOutput(fileName, Context.MODE_PRIVATE);\n outputStream.write(s.getBytes());\n outputStream.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n finishAndRemoveTask();\n }\n else{\n finishAffinity();\n }\n }\n });\n saveBuilder.setNegativeButton(R.string.doNotSave, null);\n final AlertDialog saveDialog = saveBuilder.create();\n\n AlertDialog.Builder tieBuilder = new AlertDialog.Builder(GameActivity.this);\n tieBuilder.setTitle(\"GAME OVER\");\n tieBuilder.setMessage(\"This is a tie game!\").setCancelable(false)\n .setPositiveButton(R.string.ok,new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id)\n {\n finish();\n }\n });\n tieDialog = tieBuilder.create();\n\n tile1 = (ImageButton) findViewById(R.id.imageButton1);\n tile2 = (ImageButton) findViewById(R.id.imageButton2);\n tile3 = (ImageButton) findViewById(R.id.imageButton3);\n tile4 = (ImageButton) findViewById(R.id.imageButton4);\n tile5 = (ImageButton) findViewById(R.id.imageButton5);\n tile6 = (ImageButton) findViewById(R.id.imageButton6);\n tile7 = (ImageButton) findViewById(R.id.imageButton7);\n tile8 = (ImageButton) findViewById(R.id.imageButton8);\n tile9 = (ImageButton) findViewById(R.id.imageButton9);\n saveButton = (Button) findViewById(R.id.saveButton);\n textView = (TextView) findViewById(R.id.player);\n\n if(gameLoaded){\n loadGame(intent.getStringExtra(\"data\"));\n }\n\n tile1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[0][0] != 0){\n errorDialog.show();\n }\n else {\n showSelectionDialog(0,0,tile1);\n }\n }\n });\n tile2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[0][1] != 0){\n errorDialog.show();\n }\n else {\n showSelectionDialog(0,1,tile2);\n }\n }\n });\n tile3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[0][2] != 0 ){\n errorDialog.show();\n }\n else{\n showSelectionDialog(0,2,tile3);\n }\n }\n });\n tile4.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[1][0] != 0 ){\n errorDialog.show();\n }\n else{\n showSelectionDialog(1,0,tile4);\n }\n }\n });\n tile5.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[1][1] != 0 ){\n errorDialog.show();\n }\n else{\n showSelectionDialog(1,1,tile5);\n }\n }\n });\n tile6.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[1][2] != 0 ){\n errorDialog.show();\n }\n else{\n showSelectionDialog(1,2,tile6);\n }\n }\n });\n tile7.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[2][0] != 0 ){\n errorDialog.show();\n }\n else{\n showSelectionDialog(2,0,tile7);\n }\n }\n });\n tile8.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[2][1] != 0 ){\n errorDialog.show();\n }\n else {\n showSelectionDialog(2,1,tile8);\n }\n }\n });\n tile9.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(array[2][2] != 0 ){\n errorDialog.show();\n }\n else {\n showSelectionDialog(2,2,tile9);\n }\n }\n });\n saveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n saveDialog.show();\n }\n });\n }", "title": "" }, { "docid": "627cb453daee793219b39ad981af70b2", "score": "0.6178403", "text": "public void onStartAGameClick(View view) {\n SharedPreferences prefs = getSharedPreferences(Settings.prefsName, MODE_PRIVATE);\n boolean savedGame = prefs.getBoolean(GhostGame.savedGameKey, false);\n if(!savedGame) {\n Intent goToPlayerSelect = new Intent(getApplicationContext(), PlayerSelect.class);\n startActivity(goToPlayerSelect);\n }\n else {\n DialogFragment myResumeGameDialogFragment = new ResumeGameDialogFragment();\n myResumeGameDialogFragment.show(getFragmentManager(), \"theResumeGameDialog\");\n }\n }", "title": "" }, { "docid": "7a4c51f77880b97d95fc1750d9adb1af", "score": "0.61349", "text": "public void PlayGames(View view)\n {\n Intent intent = new Intent(MainMenu.this, GamesMenu.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "d9f73ef05895ce0506b5042f8492a8ac", "score": "0.6131495", "text": "public void startGameClicked(View view) {\n Intent intent = new Intent(this, PlayView.class);\n\n startActivity(intent);\n }", "title": "" }, { "docid": "9b37192a7f7e89acad05e6ee172351cc", "score": "0.6115446", "text": "public void onNewGame(final View view) {\n // Create the message.\n String msg = getTurn() + \"\\n\";\n msg += view.getTag().toString();\n\n // Empty the instructions list, as a new game has begun.\n mInstructions.clear();\n mInstructions.add(msg);\n\n // Output New Game Message\n String newTurn = (getTurn().equals(getString(R.string.player_1)) ?\n \"Player 1 (\" + getString(R.string.xValue) + \")\" :\n \"Player 2 (\" + getString(R.string.oValue) + \")\") + \"'s Turn\";\n Snackbar start = Snackbar.make(findViewById(R.id.fragment_container), \"New Game! \" + newTurn, Snackbar.LENGTH_SHORT);\n start.show();\n\n //TODO: replace this with an implemented event handling system.\n sendMessage(msg);\n }", "title": "" }, { "docid": "c6ee7de1625131f479db3e45d5c02aca", "score": "0.6105903", "text": "private void newGame() {\n\t\tString fileName = \"map1.txt\";\n\t\tPlayer.getInstance().resetPlayer();\n\t\tfinal JFileChooser fc = new JFileChooser();\n\t\tfc.setCurrentDirectory(new File(\"map/blank.txt\"));\n\t\tint result = fc.showOpenDialog(null);\n\t\t\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t File selectedFile = fc.getSelectedFile();\n\t\t fileName = selectedFile.getName();\n\t\t}\n\t\ttry {\n\t\t\tswitchWindow(new GameWindow(this,fileName, client));\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "da275ea254453611edb39c648a22fdc8", "score": "0.6099771", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(), ScoreCardActivity.class);\n Uri gameUri = ContentUris.withAppendedId(Game.CONTENT_ID_URI_BASE, mGameID);\n intent.setData(gameUri); //set data uri for the new game\n v.getContext().startActivity(intent);\n }", "title": "" }, { "docid": "bebf264f3370baac8b4867eb0392fbad", "score": "0.60930055", "text": "@SuppressLint(\"NewApi\")\n @Override\n public void onClick(View view) {\n\n if(Multiplayer) {\n progressDialog = ProgressDialog.show(getActivity(), \"\", \"Please wait...\");\n theClient.createRoom(\"\" + System.currentTimeMillis(), username, 4, null);\n }\n\n }", "title": "" }, { "docid": "b871930a055c90c304a3eef944eec2e4", "score": "0.609209", "text": "public void startGameActivity(){\n\n Intent gameIntent = new Intent(MainActivity.this, GameActivity.class);\n gameIntent.putExtra(\"size\", size);\n gameIntent.putExtra(\"level\", level);\n\n startActivity(gameIntent);\n }", "title": "" }, { "docid": "c893a5992708f0132734755886146f20", "score": "0.6074387", "text": "public void startApp() {\n GameMain game = new GameMain(); // GameMain extends GameCanvas for the game UI\n Display.getDisplay(this).setCurrent(game);\n new Thread(game).start(); // GameMain implements Runnable to run the game thread\n }", "title": "" }, { "docid": "d3b0557845629e0f586fb8acd396bab2", "score": "0.60609514", "text": "private void startGame(boolean startWithPlayer1) {\n Intent i = new Intent(this, GameActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "e7f5900bac8f7e00750ed3c8c09598ae", "score": "0.60529417", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n Bundle b = getIntent().getExtras();\n // Creating the view from the Google-initiated WelcomePage requires getting the\n // setup info from the Bundle b.\n if(b.getBoolean(\"isGoogle\")) {\n gameTypeEnum = GameSelection.GameTypes.Online;\n if(b.getInt(\"gameMode\") == 0) {\n gameModeEnum = GameSelection.GameModes.Standard;\n } else {\n gameModeEnum = GameSelection.GameModes.Freestyle;\n }\n\n if(b.getInt(\"boardSize\") == 10) {\n boardSizeEnum = GameSelection.BoardSizes._10x10;\n } else if(b.getInt(\"boardSize\") == 15) {\n boardSizeEnum = GameSelection.BoardSizes._15x15;\n } else {\n boardSizeEnum = GameSelection.BoardSizes._20x20;\n }\n\n } else { // if not in Google mode, get the setup info straight from the SetupPage bundle.\n gameTypeEnum = (GameSelection.GameTypes) b.getSerializable(\"gameType\");\n gameModeEnum = (GameSelection.GameModes) b.getSerializable(\"gameMode\");\n boardSizeEnum = (GameSelection.BoardSizes) b.getSerializable(\"boardSize\");\n }\n\n // Setup board size\n switch(boardSizeEnum) {\n case _10x10: setContentView(R.layout.game_page);\n board_size = 10;\n break;\n case _15x15: setContentView(R.layout.game_page_15x15);\n board_size = 15;\n break;\n case _20x20: setContentView(R.layout.game_page_20x20);\n board_size = 20;\n break;\n default: setContentView(R.layout.game_page);\n break;\n }\n\n // Lock GamePage to Portrait Mode.\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n // Generic buttons. b2 is used to create the Google game.\n b1 = (Button) findViewById(R.id.button);\n b2=(Button)findViewById(R.id.button2);\n b3=(Button)findViewById(R.id.button3);\n b4=(Button)findViewById(R.id.button4);\n\n // Initialize the various layout elements.\n initializePlayers();\n initializeTimers();\n initializeLayout();\n\n // Initialize Bluetooth, if in Bluetooth mode.\n if (gameTypeEnum == GameSelection.GameTypes.OnlineBT) {\n initializeBluetoothConnection();\n\n }\n // Initialize Google Play Services, if in Online mode\n if (gameTypeEnum == GameSelection.GameTypes.Online) {\n initializeGooglePlayConnection(b);\n }\n // Initialize AI, if in AI mode.\n if (gameTypeEnum == GameSelection.GameTypes.AI) {\n initializeAI();\n\n }\n // TODO: This code was needed even in offline/bluetooth modes. Else we get a crash.\n // It should be in the if (gameTypeEnum == .Online), above?\n if (gameTypeEnum != GameSelection.GameTypes.Online) {\n\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(Games.API).addScope(Games.SCOPE_GAMES)\n // add other APIs and scopes here as needed\n .build();\n }\n }", "title": "" }, { "docid": "a9184d7a4a913466482fb6f62adeee25", "score": "0.60470515", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.about_button:\n\t\t\tIntent i = new Intent(this, About.class);\n\t\t\tstartActivity(i);\n\t\t\tbreak;\n\t\tcase R.id.new_button:\n\t\t\topenNewGameDialog();\n\t\t\t break;\n\t\tcase R.id.exit_button:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.continue_button:\n\t\t\tstartGame(Game.DIFFICULTY_CONTINUE);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "831dfd7cf7f3f141a2202ea2b2fd5c10", "score": "0.6036317", "text": "@Override\n public void onClick(View v) {\n if (v.getId() == R.id.new_game && !checkColours()) {\n Intent i = new Intent(MainActivity.this, GameBoard.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"player1\",spnPlayer1.getSelectedItemPosition());\n bundle.putInt(\"player2\",spnPlayer2.getSelectedItemPosition());\n bundle.putInt(\"playerStart\",spnPlayerStart.getSelectedItemPosition());\n i.putExtras(bundle);\n this.startActivity(i);\n }\n }", "title": "" }, { "docid": "8f1261ad1b8f62bac5766f9c06eafdf5", "score": "0.6033541", "text": "private void promptNewGame() {\n // prompt user for dimensions of new game board.\n NewGameDialog dialog = new NewGameDialog(applicationWindow);\n if (dialog.okWasClicked()) {\n // Ok was clicked so setup new game\n promptSetupNewGame(dialog.getRows(), dialog.getColumns());\n }\n }", "title": "" }, { "docid": "a0cf75f6d88147c57aef183fce3a9a8c", "score": "0.60289556", "text": "private void newSaveGame() {\n SaveGameDialog dialog = new SaveGameDialog(this, this.game.getCurrentLevelNumber(), this.game.getUser().getUserId());\n dialog.setVisible(true);\n }", "title": "" }, { "docid": "73fb83978226daa37ed3963f40553f86", "score": "0.60278666", "text": "public void loadGame(View view) {\r\n Intent intent = new Intent(this, LoadGameActivity.class);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "63de133057a70d9d75779c44e9237f99", "score": "0.59867746", "text": "public void startGame() {\n\t\tBoolean choice = MUI.getTwoButtons(\"Vælg: \", \"Nyt spil\", \"Indlæs tidligere spil\");\n\t\tif (choice){\n\t\t\tgDAO.newGame();\n\t\t\tcreatePlayers();\n\t\t\tgDAO.saveGame();\n\t\t\tplayerTurn();\n\n\t\t}\n\t\telse if (!choice) {\n\t\t\tgDAO.loadGame();\n\t\t\tloadPlayers();\n\t\t\tplayerTurn();\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a9919a8e3fb48120188f81a73bc5b8d2", "score": "0.5982529", "text": "public void startGame() {\n HangmanActivity hangmanActivity = new HangmanActivity();\n Intent toHangman = new Intent(StartActivity.this, HangmanActivity.class);\n toHangman.putExtra(\"offlineMode\", offlineMode.isChecked());\n toHangman.putExtra(\"wordlength\", mWordLength);\n toHangman.putExtra(\"difficulty\", difficulty);\n toHangman.putExtra(\"sound\", sound.isChecked());\n startActivity(toHangman);\n }", "title": "" }, { "docid": "6a8edbe18e7b8888dab86cc14a7856a7", "score": "0.5979551", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n newGame();\n }", "title": "" }, { "docid": "59330d1488d6dd78e1f390b5537f6601", "score": "0.5979058", "text": "public void onFinish() {\n startActivity(new Intent(GameActivity.this, MainActivity.class));\r\n }", "title": "" }, { "docid": "bd069be13329dd3d1a6d197ee0ea8187", "score": "0.5976423", "text": "public void onNewGameClick(View view) {\n if (this.splashViewListener != null) {\n this.splashViewListener.onNewGameClicked();\n }\n }", "title": "" }, { "docid": "976fd2327fca5079cfc512fc04304f0f", "score": "0.5936234", "text": "public void onStartNewGame() {\n // Set view to activity_main so that fragment knows where to inflate its own\n setContentView(R.layout.activity_main);\n // Replace the currently active fragment with gameFragment\n ft = fm.beginTransaction();\n ft.replace(R.id.container, gameFragment);\n ft.addToBackStack(null);\n ft.commit();\n\n }", "title": "" }, { "docid": "3fdcceaee81649a922f940a61c5daa13", "score": "0.59360707", "text": "@FXML\n\tpublic void newGameClicked(ActionEvent event)\n\t\t\tthrows IOException {\n\t\t// End the game(if currently in play).\n\t\tbyte[] newGameRequest = new byte[] {\n\t\t\t\tMessageType.END_GAME.getCode(), 0, 0 };\n\t\tNetwork.sendMessage(socket, newGameRequest);\n\t\t// Begin a new game.\n\t\tnewGameRequest = new byte[] {\n\t\t\t\tMessageType.NEW_GAME.getCode(), 0, 0 };\n\t\tNetwork.sendMessage(socket, newGameRequest);\n\t\thandleReply();\n\t}", "title": "" }, { "docid": "84776b1df4d94389846498c148fea53e", "score": "0.59304667", "text": "@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tsetContentView(R.layout.scoreloop);\n\n\t\t// \"Start Game\" button\n\t\t((Button) findViewById(R.id.button_start_game)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tshowDialog(DIALOG_GAME_MODE);\n\t\t\t\t// dialog will call startNewGame()\n\t\t\t}\n\t\t});\n\n\t\t// \"Resume Game\" button\n\t\t((Button) findViewById(R.id.button_resume_game)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tresumeGame();\n\t\t\t}\n\t\t});\n\n\t\t// \"Leaderboard\" button\n\t\t((Button) findViewById(R.id.button_leaderboard)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tstartActivity(new Intent(ScoreloopActivity.this, LeaderboardActivity.class));\n\t\t\t}\n\t\t});\n\n\t\t// \"Challenges\" button\n\t\t((Button) findViewById(R.id.button_challenges)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tstartActivity(new Intent(ScoreloopActivity.this, ChallengesActivity.class));\n\t\t\t}\n\t\t});\n\n\t\t// \"Achievements\" button\n\t\t((Button) findViewById(R.id.button_achievements)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tstartActivity(new Intent(ScoreloopActivity.this, AchievementsActivity.class));\n\t\t\t}\n\t\t});\n\n\t\t// \"Profile\" button\n\t\t((Button) findViewById(R.id.button_profile)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tstartActivity(new Intent(ScoreloopActivity.this, ProfileActivity.class));\n\t\t\t}\n\t\t});\n\n\t\t// \"Scoreloop Friends\" button\n\t\t((Button) findViewById(R.id.button_friends)).setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tstartActivity(new Intent(ScoreloopActivity.this, FriendsActivity.class));\n\t\t\t}\n\t\t});\n\n\t\t// \"Enable Scoreloop\" button - will be hidden if user has accepted\n\t\tenableScoreloopButton = ((Button) findViewById(R.id.button_enable_scoreloop));\n\t\tenableScoreloopButton.setOnClickListener(new View.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(final View v)\n\t\t\t{\n\t\t\t\tshowTOS();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "6a6c7bcc60963698323e30e00f2a231d", "score": "0.5923686", "text": "public void startGame(View view) {\n \t\tclient.broadcastStartGame();\n \t\tstartGameActivity(this.client.getReceivers(), true);\n \t}", "title": "" }, { "docid": "b16d19502b05a8812c86411bc99941c3", "score": "0.5919485", "text": "public void createState() {\n\t\tString name;\n\t\tTextInputDialog dialog1 = new TextInputDialog();\n\t\tdialog1.setTitle(\"Exam Creationg Prep \");\n\t\tdialog1.setHeaderText(\"Input the Name for the exam: \");\n\t\tdialog1.getDialogPane().setMinWidth(550);\n\t\t\n\t\tButton okButton1 = (Button) dialog1.getDialogPane().lookupButton(ButtonType.OK);\n\t\tTextField inputField1 = dialog1.getEditor();\n\t\t\n\t\tdialog1.showAndWait();\n\t\tString result1 = dialog1.getResult();\n\t\tif(result1==null) {\n\t\t\tSystem.out.println(\"Create canceled.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/*\n\t\tTextInputDialog dialog2 = new TextInputDialog();\n\t\tdialog2.setTitle(\"Exam Creationg Prep \");\n\t\tdialog2.setHeaderText(\"Input the number of questions: \");\n\t\tdialog2.getDialogPane().setMinWidth(550);\n\t\t\n\t\tButton okButton2 = (Button) dialog2.getDialogPane().lookupButton(ButtonType.OK);\n\t\tTextField inputField = dialog2.getEditor();\n\t\t\n\t\tdialog2.showAndWait();\n\t\tString result2 = dialog2.getResult();\n\t\tif(result2==null) {\n\t\t\tSystem.out.println(\"Create canceled.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint num = 0;\n\t\ttry {\n\t\t\tnum = Integer.parseInt(result2);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Create canceled, input was not an integer\");\n\t\t\treturn;\n\t\t}\n\t\t*/\n\t\t//popup.show(stage);\n\t\t\n\t\t//Exam exam = new Exam(result1);\n\t\t\n\t\tstage.setScene(scene_menu_create);\n\t\tmcreate.start(result1);\n\t}", "title": "" }, { "docid": "ef7ddb89679ff9e05690befc48aedfde", "score": "0.5912571", "text": "private void addNewGameButtonListener() {\n Button startButton = findViewById(R.id.NewGameButton);\n startButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n newGame();\n }\n });\n }", "title": "" }, { "docid": "2a70675af97ae6946dc66bb3882ca83a", "score": "0.5910124", "text": "public void handleGameStartOnClick(Context context, int type){\n \ttry {\n \t\tif (type == Constants.RACE_GAME_TYPE_DOUBLE_TIME && !StoreService.isDoubleTimePurchased(this) && PlayerService.getRemainingFreeUsesDoubleTime(this) < 1){\n \t\t\t((ApplicationContext)this.getApplication()).startNewActivity(this, Constants.ACTIVITY_CLASS_STORE);\n \t\t\treturn;\n \t\t}\n \t\telse if (type == Constants.RACE_GAME_TYPE_SPEED_ROUNDS && !StoreService.isSpeedRoundsPurchased(this) && PlayerService.getRemainingFreeUsesSpeedRounds(this) < 1){\n \t\t\t \t((ApplicationContext)this.getApplication()).startNewActivity(this, Constants.ACTIVITY_CLASS_STORE);\n \t\t\t \treturn;\n \t\t}\n \t\t\n \t\tGame game = GameService.createGame(context, this.player, this.game.getOpponentId(), type);\n\n \t\tif (type == Constants.RACE_GAME_TYPE_DOUBLE_TIME){ \n \t\t\tthis.trackEvent(Constants.TRACKER_ACTION_DOUBLE_TIME_GAME_STARTED,String.format(Constants.TRACKER_LABEL_OPPONENT_WITH_ID, this.game.getOpponentId()), (int) Constants.TRACKER_SINGLE_VALUE);\n \t\t}\n \t\telse if (type == Constants.RACE_GAME_TYPE_SPEED_ROUNDS){\n \t\t\tthis.trackEvent(Constants.TRACKER_ACTION_SPEED_ROUNDS_GAME_STARTED,String.format(Constants.TRACKER_LABEL_OPPONENT_WITH_ID, this.game.getOpponentId()), (int) Constants.TRACKER_SINGLE_VALUE);\n \t\t}\n \t\telse if (type == Constants.RACE_GAME_TYPE_90_SECOND_DASH){\n \t\t\tthis.trackEvent(Constants.TRACKER_ACTION_90_SECOND_GAME_STARTED,String.format(Constants.TRACKER_LABEL_OPPONENT_WITH_ID, this.game.getOpponentId()), (int) Constants.TRACKER_SINGLE_VALUE);\n \t\t}\n \n\t\t\t((ApplicationContext)this.getApplication()).startNewActivity(this, Constants.ACTIVITY_CLASS_GAME_SURFACE);\n\t \n \t\tthis.finish();\n\t\t\t\n\t\t} catch (DesignByContractException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tDialogManager.SetupAlert(this, this.getString(R.string.sorry), e.getMessage());\n\t\t}\n\n }", "title": "" }, { "docid": "403fe8bfdb749aed09c5afbe16764808", "score": "0.5893217", "text": "public void playTheGameClick(View view) {\n Intent intent = new Intent(this,Dictionary_Activity.class);\n\n startActivity(intent);\n }", "title": "" }, { "docid": "e3ba8a210e65fe3a1d89c02804e03d8a", "score": "0.58925146", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n Game.getGame();\n }", "title": "" }, { "docid": "91ca9b4bb4ba48dabb7c84b3ac6a0264", "score": "0.58889544", "text": "private void newGame(){\n gameBoard.resetSquares();\n board.setSelectionBackground(Color.white);\n board.setSelectionForeground(Color.black);\n match.resetMoveNumber();\n match.setPlayer1Turn();\n match.setValidMove(false);\n match.Player1Turn = true;\n match.lastSquare = new Square(-1,-1);\n messageDisplay.setText(\"New game started.\");\n }", "title": "" }, { "docid": "4512d67a92a6165d2dd163e2ddea8370", "score": "0.5885506", "text": "private void joinGame() {\n\n ResultsActivity.isResultActivity = false;\n MainActivity.myState = \"j\";\n SignInActivity.mStateString = \"j\";\n Intent intent = new Intent(MainActivity.this, ObtainContactActivity.class);\n startActivity(intent);\n finish();\n }", "title": "" }, { "docid": "4b826ac0c72d48425d84a7bbdf26b043", "score": "0.58827734", "text": "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tsetContentView(R.layout.main_menu);\r\n\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n\r\n\t\tButton newGame = (Button) findViewById(R.id.newGame_btn);\r\n\t\tButton instructions = (Button) findViewById(R.id.instructions_btn);\r\n\t\tButton scores = (Button) findViewById(R.id.highScores_btn);\r\n\t\tButton exit = (Button) findViewById(R.id.exit_btn);\r\n\t\tButton options = (Button) findViewById(R.id.options_btn);\r\n\r\n\t\tnewGame.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tIntent i = new Intent(MainMenu.this, GameType.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tinstructions.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tIntent i = new Intent(MainMenu.this, Instructions.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t\texit.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\t// Intent i = new Intent(MainMenu.this, MenuClass.class);\r\n\t\t\t\t// startActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t\tscores.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tIntent i = new Intent(MainMenu.this, HighScoreView.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t\toptions.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tIntent i = new Intent(MainMenu.this, GamePreferences.class);\r\n\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "title": "" }, { "docid": "f288c74a635eb06cf1ef642e3f21397f", "score": "0.5877348", "text": "@Override\n public void onClick(View view) {\n Intent takeToMCA = new Intent(MatchDashboardActivity.this,MatchCreateActivity.class);\n startActivity(takeToMCA);\n }", "title": "" }, { "docid": "4f132e34e578958633263da0fdbf7ab6", "score": "0.5870804", "text": "private void startGame(int i) {\n\t\tLog.d(\"Sudoku\", \"clicked on \" + i);\n\t\tIntent intent = new Intent(SudokuActivity.this, Game.class);\n\t\t//Diff between this and SudokuActivity.this?\n\t\tintent.putExtra(Game.KEY_DIFFICULTY,i);\n startActivity(intent);\n\t}", "title": "" }, { "docid": "3f4791ba339711ecc53acc925034377f", "score": "0.58668524", "text": "@Security.Authenticated(Secured.class)\n public static Result createGame() {\n GameForm gameForm = new GameForm();\n Form<GameForm> formdata = Form.form(GameForm.class).fill(gameForm);\n\n return ok(CreateGame.render(\"Create Game\", \"Create\", formdata));\n }", "title": "" }, { "docid": "2e28410f9a923279d8369174913a5e81", "score": "0.5860625", "text": "public void newGame() {\n\t\tfor (int i = 0; i < SIZE; i++) {\n\t\t\tfor (int j = 0; j < SIZE; j++) {\n\t\t\t\tgameButtons[i][j].setEnabled(true);\n\t\t\t\tgameButtons[i][j].setText(\"\");\n\t\t\t}\n\t\t}\n\t\tgameLabel.setText(\"New Game: X vs. O\");\n\t}", "title": "" }, { "docid": "4dff5be713fb14c71432685a4d3ab093", "score": "0.5841784", "text": "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_main);\r\n\t\t\r\n\t\tbtnNewGame = (Button) findViewById(R.id.btnNewGame);\r\n//\t\tbtnYangxi = (Button) findViewById(R.id.btnYangxi);\r\n\t\tbtnSave = (Button) findViewById(R.id.btnSave);\r\n\t\tbtnRead = (Button) findViewById(R.id.btnRead);\r\n\t\tscoreTextView = (TextView) findViewById(R.id.score);\r\n\t\tbestScoreTextView = (TextView) findViewById(R.id.bestScore);\r\n\t\t\r\n\t\tgameView = (GameView) findViewById(R.id.gameView);\r\n\r\n\t\tscore = new Score();\r\n\t\tgameView.setScore(score);\r\n\t\t\r\n\t\tbtnNewGame.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tstartNewGame();\r\n\t\t\t}\r\n\t\t});\r\n\t\t/*btnYangxi.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tyangxiGame();\r\n\t\t\t}\r\n\t\t});*/\r\n\t\tbtnSave.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tsaveGame();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRead.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\treadGame();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fe5ae1585880959d14e1322c57d28785", "score": "0.5840437", "text": "private void createGameAndStartGame(GameRequest gameRequest) {\n DatabaseReference gameReference = FirebaseDatabase.getInstance().getReference();\n DatabaseReference userReference = FirebaseDatabase.getInstance().getReference();\n\n gameReference = gameReference.child(\"games\").push();\n userReference = userReference.child(\"users\");\n\n String key = gameReference.getKey();\n\n gameReference.child(\"host\").setValue(gameRequest.getSourceUid());\n gameReference.child(\"opponent\").setValue(gameRequest.getTargetUid());\n gameReference.child(\"turn\").setValue(gameRequest.getSourceUid());\n\n userReference.child(gameRequest.getSourceUid()).child(\"games\").child(key).setValue(true);\n userReference.child(gameRequest.getTargetUid()).child(\"games\").child(key).setValue(true);\n\n Intent intent = new Intent(context, Game.class);\n intent.putExtra(Game.GAME, key);\n\n context.startActivity(intent);\n ((Activity) context).finish();\n }", "title": "" }, { "docid": "062fb38d4bda5865fed464f033c75d51", "score": "0.583531", "text": "public void makeGame();", "title": "" }, { "docid": "76ecdf2663ab34e57834189573029ae5", "score": "0.58336544", "text": "public static void createGame()\r\n\t{\r\n\t\tgameView = new GameView();\r\n\t\tgameState = new GameState();\r\n\t}", "title": "" }, { "docid": "a31879cc2cbc1f89491b27fd71e6053a", "score": "0.582752", "text": "public void newGame()\r\n\t{\r\n\t\tcontroller.newGame();\r\n\t\tstartGame();\r\n\t\tframe.repaint();\r\n\t}", "title": "" }, { "docid": "3744d38ec65665c5790356b67db5f0f1", "score": "0.58226657", "text": "public void switchToGame() {\n Intent tmp = new Intent(this, SlidingTilesGameActivity.class);\n tmp.putExtra(\"index\", indexToPass);\n tmp.putExtra(\"Username\", username);\n startActivity(tmp);\n }", "title": "" }, { "docid": "2ffc41d03d3d1eaf3116080728e6e30b", "score": "0.582134", "text": "public void Start_Game (int ok)\n\t{\n\t\tif (ok ==1 ) {\n\t\t\t\n\t\t\tGdx.app.setLogLevel(Application.LOG_ERROR);\n\t\t\tGdx.app.error(\"Snake-CatchTheWorms\", \"create(), setLogLevel(LOG_error)\");\n\t\t\tGdx.app.log(\"Snake-CatchTheWorms\", \"create(), going to LoadingScreen\");\n\t\t\tsetScreen(new LoadingScreen(this, assets));\n\t\t\tGdx.app.log(\"Snake-CatchTheWorms\", \"ended create()\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//it is a problem with the game :-)\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "6792928eaf3ee441c4c06210a4bb5e46", "score": "0.58203685", "text": "@Override\n public void onClick(View v) {\n ((GBActivity)getActivity()).switchToProjectCreateScreen();\n\n\n }", "title": "" }, { "docid": "1698a7fd9f4b122c43ac70da05f42702", "score": "0.58183134", "text": "private void turn() {\n\t\tIntent intent=new Intent(this,CreatInfoActivity.class);\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "638046818221fa4166adcbba613f71f5", "score": "0.58085746", "text": "@FXML\n\tvoid newGameClicked(MouseEvent event) throws IOException {\n\t\tSystem.out.println(\"Mouse clicked\");\n\n\t\t/*\n\t\t * Setting up new stage to switch from\n\t\t */\n\t\tStage stage;\n\t\tParent root;\n\t\tstage = (Stage) gameName.getScene().getWindow();\n\t\troot = FXMLLoader.load(getClass().getResource(\"NewGame.fxml\"));\n\t\tScene scene = new Scene(root);\n\t\tstage.setScene(scene);\n\t\tscene.getRoot().requestFocus();\n\t\tstage.show();\n\t}", "title": "" }, { "docid": "f0624e642148a18a9e60f1a99bc4a29c", "score": "0.58013624", "text": "public void onClick(View v) {\r\n String messageTitle = \"\";\r\n String messageText = \"\";\r\n // Checks if the monster exists within the screen (480 pixels wide)\r\n if (monsterView.monsterXLeft() >= 0 && monsterView.monsterXRight() <= 480) {\r\n cameraFeed.cap();\r\n messageTitle = \"SUCCESS, you caught a\" + monster.getName() + \"!\";\r\n messageText = \"You can rename it in your inventory tab!\";\r\n } else {\r\n messageTitle = \"You missed!\";\r\n messageText = \"That's too bad, wait a bit and see if you can catch him again\";\r\n }\r\n\r\n Builder builder = new AlertDialog.Builder(captureActivity);\r\n builder.setTitle(messageTitle);\r\n builder.setIcon(monster.getMonsterDrawable());\r\n builder.setMessage(messageText);\r\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface arg0, int arg1) {\r\n captureActivity.finish();\r\n }\r\n });\r\n builder.show();\r\n\r\n }", "title": "" }, { "docid": "96c669c7963a517ed54f2741676bbe3e", "score": "0.5800246", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_game);\n editText = (EditText)findViewById(R.id.name_level);\n\n button = (Button) findViewById(R.id.building3_button);\n System.out.println(button);\n\n button.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View v) {\n\n NAME = editText.getText().toString();\n System.out.println(editText.getText().toString());\n ToastUtil.createToast(\"Level saved!\", Toast.LENGTH_SHORT).show();\n done = true;\n Building3State building3State = (Building3State)gameStateManager.getState();\n building3State.done();\n //ActivityManager.getInstance().startActivity(0);\n\n\n }\n });\n }", "title": "" }, { "docid": "734ab981f73fb3feae84ec60d97652ed", "score": "0.57969207", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew AddLecturer().execute();\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent(LecturersAdd.this, MainActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8baec844fe1f44cad0248192bfdf9a1c", "score": "0.57895195", "text": "public void creerCompte(View v) {\n Intent i = new Intent( getApplicationContext(), CreateAccount.class );\n startActivity( i );\n\n }", "title": "" }, { "docid": "237c590f5917cf77ad0b251d0b330a1f", "score": "0.5782276", "text": "public NewGame processDialog(){\n\n String publisher = publisherTextField.getText().trim();\n String title = titleTextField.getText().trim();\n String genre = genreTextField.getText().trim();\n String description = descriptionTextArea.getText().trim();\n\n //if field was left empty, alert without adding game\n if(publisher.isEmpty() || title.isEmpty() || genre.isEmpty() || description.isEmpty()){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error adding new game\");\n alert.setHeaderText(\"Field missing information\");\n alert.setContentText(\"Press OK to continue\");\n Optional<ButtonType> result = alert.showAndWait();\n return null;\n }\n\n //new game to add to database\n NewGame newGame = new NewGame();\n newGame.setPublisher(publisher);\n newGame.setTitle(title);\n newGame.setGenre(genre);\n newGame.setDescription(description);\n\n return newGame;\n }", "title": "" }, { "docid": "e772e0f1f42b1c1f672bcfdea0a879f8", "score": "0.5772274", "text": "private void newSingleGame() {\n\t\t_game = new Game(this, _trie);\n\n\t\tPlayView _playView = new PlayView(this,_game);\n\t\t\n\t\t/*first of all stop the thread that was running*/\n\t\tif( _thread != null ) {\n\t\t\t_thread.exit();\n\t\t}\n\t\t_thread = new GameThread();\n\t\t_thread.setCounter(_game);\n\t\t_thread.addWorker(_playView);\n\t\t_thread.setStopper(this);\n\n\t\tViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(this.getWindow().getAttributes()\n\t\t\t\t.width, this.getWindow().getAttributes()\n\t\t\t\t.height);\n\t\tsetContentView( _playView , lp);\n\t\t_playView.setKeepScreenOn(true);\n\n\t}", "title": "" }, { "docid": "16b15c3f8af27bace8ac442c29be2d79", "score": "0.57689345", "text": "@Override\n @SuppressWarnings(\"ConstantConditions\")\n protected void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_new_game); // app/src/main/res/layout/activity_new_game.xml\n setTitle(R.string.create_game); // Change the title in the top bar\n // Now that setContentView has been called, findViewById and findFragmentById work\n\n // Find the Google Maps component for the area map\n SupportMapFragment areaMapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.areaSizeMap);\n // Start the process of getting a Google Maps object\n areaMapFragment.getMapAsync(newMap -> {\n // NONLINEAR CONTROL FLOW: Code in this block is called later, after onCreate ends\n // It's a \"callback\" - it will be called eventually when the map is ready\n\n // Set the map variable so it can be used by other functions\n areaMap = newMap;\n // Center it on campustown\n centerMap(areaMap);\n });\n\n /*\n * Setting an ID for a control in the UI designer produces a constant on R.id\n * that can be passed to findViewById to get a reference to that control.\n * Here we get a reference to the Create Game button.\n */\n Button createGame = findViewById(R.id.createGame);\n /*\n * Now that we have a reference to the control, we can use its setOnClickListener\n * method to set the handler to run when the user clicks the button. That function\n * takes an OnClickListener instance. OnClickListener, like many types in Android,\n * has exactly one function which must be filled out, so Java allows instances of it\n * to be written as \"lambdas\", which are like small functions that can be passed around.\n * The part before the arrow is the argument list (Java infers the types); the part\n * after is the statement to run. Here we don't care about the argument, but it must\n * be there for the signature to match.\n */\n createGame.setOnClickListener(unused -> createGameClicked());\n /*\n * It's also possible to make lambdas for functions that take zero or multiple parameters.\n * In those cases, the parameter list needs to be wrapped in parentheses, like () for a\n * zero-argument lambda or (someArg, anotherArg) for a two-argument lambda. Lambdas that\n * run multiple statements, like the one passed to getMapAsync above, look more like\n * normal functions in that they need their body wrapped in curly braces. Multi-statement\n * lambdas for functions with a non-void return type need return statements, again like\n * normal functions.\n */\n }", "title": "" }, { "docid": "41bac7f2a5c83706cf864e04654508d3", "score": "0.5767959", "text": "protected void createNewGame() {\n\t\tfruitAndNumberTextView.setText(\"\");\n\t\timageLayout.removeAllViews();\n\t\tfocusFruit = \"\";\n\t\tcreateImageGrid();\n\t}", "title": "" }, { "docid": "fb152c19caf3a22ba22211236ec4fc60", "score": "0.5764125", "text": "protected void gotoSelectGameActivity() {\n\t\tIntent intent = new Intent(MenuActivity.this,SelectGameActivity.class); //SelectGameActivity GameActivity.\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "cfd5f7e91bf64e19325b33b128009a74", "score": "0.5764123", "text": "public void openAddPlayer() {\n NewPlayerDialog newPlayerDialog = new NewPlayerDialog();\n newPlayerDialog.setCancelable(false);\n newPlayerDialog.show(getSupportFragmentManager(), \"New Player\");\n }", "title": "" }, { "docid": "f049ce643fff6e00aaa36c1cb36ae913", "score": "0.57623327", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState); \n Bundle extras = getIntent().getExtras();\n\t\tif (extras != null) {\n\t\t\tautoPlayInterval = extras.getLong(\"AUTOPLAYINTERVAL\",GameBoardOptions.DEFAUTOPLAYINTERVAL);\n\t\t\tautoPlayPause = extras.getBoolean(\"AUTOPLAYPAUSE\", true);\n\t\t\tboardLayout = extras.getString(\"BOARDLAYOUT\");\n\t\t}\n\t\t\n \t\tSharedPreferences prefs = getSharedPreferences(\"MainDGS\", 0);\n\t\ttheme = prefs.getString(\"com.hg.anDGS.Theme\", PrefsDGS.DEFAULT_THEME);\n\t\tdefaultDir = prefs.getString(\"com.hg.anDGS.DefaultDir\", PrefsDGS.DEFAULT_DIR);\n\n\t\tif (boardLayout == null) {\n\t\t\tboardLayout = PrefsDGS.PORTRAIT;\n\t\t}\n/*\n\t\tif (boardLayout.contains(PrefsDGS.LANDSCAPE)) {\n\t\t\tsetRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\t\t} else {\n\t\t\tsetRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t\t}\n*/\n\t\tthis.setTheme(commonStuff.getCommonStyle(theme));\n setContentView(R.layout.newgame);\n ctw = new ContextThemeWrapper(this, commonStuff.getCommonTheme(theme));\n \n\t\ttmHelp = findViewById(R.id.newGameTMHelp);\n\t\ttmHelp.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal Handler handler = new Handler();\n\t\t\t\thandler.post(new Runnable() { \n\t\t\t\t\tpublic void run() {\t\n\t\t\t\t\t\tdoHelp();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\t\n\t\tm_white_name = getString(R.string.white);\n\t m_black_name = getString(R.string.black);\n\t m_sgf_file = getString(R.string.game);\n\n newGame_button = findViewById(R.id.newGameButton);\n newGame_button.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_newGame();\n\t\t}});\n \n size_bar= this.findViewById(R.id.size_slider);\n size_bar.setOnSeekBarChangeListener(this);\n size_text= this.findViewById(R.id.size_label);\n size_text.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_size();\n\t\t}});\n \n handicap_bar= this.findViewById(R.id.handicap_slider);\n handicap_bar.setOnSeekBarChangeListener(this);\n handicap_text= this.findViewById(R.id.handicap_label);\n handicap_text.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_handicap();\n\t\t}});\n handicap_free= this.findViewById(R.id.handicap_free);\n\n komi_bar= this.findViewById(R.id.komi_slider);\n komi_bar.setOnSeekBarChangeListener(this);\n komi_text= this.findViewById(R.id.komi_label);\n komi_text.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_komi();\n\t\t}});\n \n white_name_button= findViewById(R.id.WhiteNameButton);\n white_name_button.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_white_name();\n\t\t}});\n white_name_label= this.findViewById(R.id.WhiteNameLabel);\n white_name_label.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_white_name();\n\t\t}});\n \n black_name_button= findViewById(R.id.BlackNameButton);\n black_name_button.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_black_name();\n\t\t}});\n black_name_label= this.findViewById(R.id.BlackNameLabel);\n black_name_label.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_black_name();\n\t\t}});\n \n sgf_file_button= findViewById(R.id.SGFFileButton);\n sgf_file_button.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_sgf_file();\n\t\t}});\n sgf_file_label= this.findViewById(R.id.SGFFileLabel);\n sgf_file_label.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdo_sgf_file();\n\t\t}});\n sgf_file_label.setText(\"game\");\n\n refresh_ui();\n }", "title": "" }, { "docid": "766cf0e17522db889a19102ae7f0663b", "score": "0.57611287", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\t\n\t\tcase R.id.startGame:\n\t\t\t\n\t\t\tbackPlay.playFour();\n\t\t\tIntent intent = new Intent(this,MainActivity.class);\n\t\t\t\n\t\t\tstartActivity(intent);\n\t\t\tbackPlay.playFive();\n\t\t\t\n\t\t\tbreak;\n\t\t\n\t\t\n\t\tcase R.id.setUp:\n\t\t\tbackPlay.playOne();\n\t\t\t\n Intent intent1 = new Intent(this,SettingPage.class);\n\t\t\t\n\t\t\tstartActivity(intent1);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.music:\n\t\t\tbackPlay.playOne();\n\t\t\t\n\t\t\tIntent intent2 = new Intent(this,MusicPage.class);\n\t\t startActivity(intent2);\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.aboutMe:\n\t\t\tbackPlay.playFour();\n\t\t\tbackPlay.playFive();\n\t\t\t\n Intent intent3 = new Intent(this,AboutActivity.class);\n\t\t\tstartActivity(intent3);\n\t\t\t\n\t\t\t//Toast.makeText(this, \"setup\", 0).show();\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.custom:\n\t\t\tbackPlay.playFour();\n\t\t\tbackPlay.playFive();\n\t\t\t\n\t\t\tif(Constant.CustomName!=null){\n\t\t\t\t\n\t\t\t\tIntent intent5 = new Intent(HomePage.this,CustomRecord.class);\n\t\t\t\tstartActivity(intent5);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\n Intent intent4 = new Intent(this,CustomLoginPage.class);\n\t\t\tstartActivity(intent4);\n\t\t\t\n\t\t\t}\n\t\t\t//Toast.makeText(this, \"setup\", 0).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "15b56a0cd1da9c1e44b30e30ec3ec40b", "score": "0.57562345", "text": "@Override\n\tpublic void create() {\n\t\tsuper.setScreen(new GameScreen());\n\t}", "title": "" }, { "docid": "30d12e53d8cdf22531e2e334d3a743a7", "score": "0.5754252", "text": "public void startGame()\n {\n currentGame.startAdventure();\n exit();\n }", "title": "" }, { "docid": "857bd0557e5d227a44d08cb45a5a152e", "score": "0.5750743", "text": "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashScreen.this, GameActivity.class);\n SplashScreen.this.startActivity(mainIntent);\n SplashScreen.this.finish();\n }", "title": "" }, { "docid": "6316b0d8191b3b144b7cad7f5e8f39b8", "score": "0.57481563", "text": "@Override\n public void onClick(View view) {\n Intent programmingButtonIntent = new Intent(NowPlayingActivity.this, ProgrammingActivity.class);\n\n //Start the new activity\n startActivity(programmingButtonIntent);\n }", "title": "" }, { "docid": "4804462978460d1f9b43c1f2e77de6ef", "score": "0.5746872", "text": "private void newGameSetup() {\r\n\t\tJLabel newGameLabel = new JLabel(\"New Game\");\r\n\t\tButtonGroup players = new ButtonGroup();\r\n\t\tnewGameSetupFormat();\r\n\t\tnewGameLabel.setForeground(Color.WHITE);\r\n\r\n\t\t// Adds the buttons and labels to the panels.\r\n\t\tlabels.add(newGameLabel);\r\n\t\tgameOptions.add(newBlankGame);\r\n\t\tgameOptions.add(loadGame);\r\n\t\tcommands.add(rowPrompt);\r\n\t\tcommands.add(colPrompt);\r\n\t\tcommands.add(rowInput);\r\n\t\tcommands.add(colInput);\r\n\t\tcommands.add(ok);\r\n\t\tcommands.add(close);\r\n\t\trowInput.setVisible(false);\r\n\t\tcolInput.setVisible(false);\r\n\t\trowPrompt.setVisible(false);\r\n\t\tcolPrompt.setVisible(false);\r\n\r\n\t\t// Makes the radio's mutually exclusive.\r\n\t\tplayers.add(newBlankGame);\r\n\t\tplayers.add(loadGame);\r\n\r\n\t\t// Makes the frame visible.\r\n\t\t// newGameWindow.setSize(300, 300);\r\n\t\tnewGameWindow.setUndecorated(true);\r\n\t\tnewGameWindow.pack();\r\n\t\tnewGameWindow.setLocationRelativeTo(null);\r\n\t\tnewGameWindow.setVisible(true);\r\n\t}", "title": "" }, { "docid": "32a54a3a2915ca69dffcb0f7b25e5d17", "score": "0.5745855", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.Create_farword:\n\t\t\tif(createProfile_name.getText().toString().trim().length()>0){\n\t\t\tnew Get_createProfile(ctx, bar, sp.getString(\"accesstoken\", \"\"),createProfile_name.getText().toString().trim(),sp).execute(\"main\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tToast.makeText(Create_profile.this, \"Please enter your name.\", \n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\t\n\t\t\t/*Intent mainIntent = new Intent(Create_profile.this,Home_page.class);\n\t\t\tstartActivity(mainIntent); \n\t\t\toverridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);\n\t\t\tfinish();*/\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.createProfile_lay:\n\t\t\timm.hideSoftInputFromWindow(createProfile_lay.getWindowToken(), 0);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "6da4a4b1ddadbdcf8bebe042f07453f1", "score": "0.5745278", "text": "public static void open() {\n\t\tMessageDialog dlg = new MessageDialog(Display.getCurrent().getActiveShell(),\n\t\t\t\tMessages.Question, null, Messages.NoProjectMessageDialog_MESSAGE,\n\t\t\t\tMessageDialog.QUESTION,\n\t\t\t\tnew String[] { Messages.NoProjectMessageDialog_BTN_OK, Messages.NoProjectMessageDialog_BTN_CANCEL },\n\t\t\t\t0) {\n\n\t\t\t@Override\n\t\t\tprotected void buttonPressed(int buttonId) {\n\t\t\t\tsuper.buttonPressed(buttonId);\n\n\t\t\t\tif (buttonId == 0) {\n\t\t\t\t\tnew CreateAction().run();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tdlg.open();\n\t}", "title": "" }, { "docid": "a6e87dd4f072aac73d50ac7b587daae2", "score": "0.57357585", "text": "@Override\r\n\t\tpublic void onClick(View v) {\n\r\n\t\t\tif (statusNow == STATUS_COVERED) {\r\n\t\t\t\tif (MainActivity.playerOpen.isPlaying()) {\r\n\t\t\t\t\tMainActivity.playerOpen.pause();\r\n\t\t\t\t\tMainActivity.playerOpen.seekTo(0);\r\n\t\t\t\t}\r\n\t\t\t\tMainActivity.playerOpen.start();\r\n\t\t\t\tsetOpened();\r\n\t\t\t\tcoverBack.setAlpha(0);\r\n\t\t\t\tif (isMine) {\r\n\t\t\t\t\tMainActivity.playerDie.start();\r\n\t\t\t\t\tMainActivity.playerBGM.pause();\r\n\t\t\t\t\tMainActivity.vibrator.vibrate(1500);\r\n\t\t\t\t\tMainActivity.time.stop();\r\n\t\t\t\t\tGameView.clearAll();\r\n\t\t\t\t\tMainActivity.emoji.setImageResource(R.drawable.sad);\r\n\t\t\t\t\tnew AlertDialog.Builder(getContext())\r\n\t\t\t\t\t\t\t.setCancelable(false)\r\n\t\t\t\t\t\t\t.setTitle(\"Game Over\")\r\n\t\t\t\t\t\t\t.setMessage(\"Sorry,you step on a mine.\")\r\n\t\t\t\t\t\t\t.setPositiveButton(\"Restart\",\r\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method\r\n\t\t\t\t\t\t\t\t\t\t\t// stub\r\n\t\t\t\t\t\t\t\t\t\t\tGameView.getGameView().startGame();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t.setNegativeButton(\"Death Replay\",\r\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}).show();\r\n\t\t\t\t} else { // not mine\r\n\r\n\t\t\t\t\tif (numberOfSurround == 0) {// 如果是空,周围全打开\r\n\t\t\t\t\t\t//GameView.recBlank(x, y, x, y);\r\n\t\t\t\t\t\tGameView.clearAround(x, y);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (GameView.checkGame())\r\n\t\t\t\t\t\twin();\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if (statusNow == STATUS_FLAGGED) {\r\n\t\t\t\tsetCovered();\r\n\t\t\t\tcoverBack.setBackgroundResource(R.drawable.square_blue);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "e5bb098fd17e0c0970055b977acf9bd8", "score": "0.57354236", "text": "public void newCharacterOnClick(View v) {\n Intent intent = new Intent(this, CreateCharacterActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "b2fffa4931de40d11175c1193a790fda", "score": "0.5729014", "text": "public void startSavedGame()\n {\n // get rid of \\n character left in the stream\n keyboard.reset();\n \n // prompt user and get a file path\n System.out.println(\"Enter filepath and filename to savefile: \");\n String filePath = keyboard.next();\n \n // call the getSavedGame( ) method in the GameControl class to load the game \n GameControl.getSavedGame(filePath);\n \n // display the game menu for the loaded game\n GameMenuView gmv = new GameMenuView();\n gmv.displayMenu();\n }", "title": "" }, { "docid": "90b1c8334ed908f35210f24c8b0c4fdf", "score": "0.5725473", "text": "@FXML\n public void handleNewGameButton (ActionEvent event) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"selectFaction.fxml\"));\n loader.setController(this);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n \n // set up the stage\n Stage newGameWindow = (Stage)((Node)event.getSource()).getScene().getWindow();\n newGameWindow.setTitle(\"Gloria Romanus\");\n newGameWindow.setWidth(1000);\n newGameWindow.setHeight(800);\n newGameWindow.setScene(scene);\n newGameWindow.show();\n }", "title": "" }, { "docid": "ba163ad7cc0eeb6e46506a8120b1ff2e", "score": "0.572411", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n openActivityMain();\n }", "title": "" }, { "docid": "c296cf5bbd2df967775f6c0ee53e0bd9", "score": "0.5720398", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmPopupWindow.showAtLocation(\n\t\t\t\t\t\tfindViewById(R.id.final_project_newgame),\n\t\t\t\t\t\tGravity.CENTER, 0, 0);\n\t\t\t}", "title": "" } ]
0c8643a53093c2c8eed157478a575970
Add a numbered rule.
[ { "docid": "8100258423aff5817b77b609056fbf20", "score": "0.0", "text": "public void add(double order, Rule rule) {\n\t\t\torders.add(new Double(order));\n\t\t\trules.add(rule);\n\t\t}", "title": "" } ]
[ { "docid": "3a800a3d07be747635aaf23f283332df", "score": "0.6476196", "text": "private static interface NumberRule\n/* */ extends Rule\n/* */ {\n/* */ void appendTo(Appendable param1Appendable, int param1Int) throws IOException;\n/* */ }", "title": "" }, { "docid": "a0c0c1b6493795502bbf09d126147316", "score": "0.59696406", "text": "public final void entryRuleNumber() throws RecognitionException {\n \n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n\n try {\n // InternalAle.g:1783:1: ( ruleNumber EOF )\n // InternalAle.g:1784:1: ruleNumber EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getNumberRule()); \n }\n pushFollow(FOLLOW_1);\n ruleNumber();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getNumberRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "title": "" }, { "docid": "9d9a203db3f9c90f664409a4d03d4c80", "score": "0.56550664", "text": "public final void mRULE_NUMBER() throws RecognitionException {\n try {\n int _type = RULE_NUMBER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:16871:13: ( ( '0' .. '9' )+ )\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:16871:15: ( '0' .. '9' )+\n {\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:16871:15: ( '0' .. '9' )+\n int cnt7=0;\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>='0' && LA7_0<='9')) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:16871:16: '0' .. '9'\n \t {\n \t matchRange('0','9'); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt7 >= 1 ) break loop7;\n EarlyExitException eee =\n new EarlyExitException(7, input);\n throw eee;\n }\n cnt7++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "c973c1e9fe6fa99c181688ac1e5e1446", "score": "0.5604412", "text": "public void setRuleId(Number value) {\n setAttributeInternal(RULEID, value);\n }", "title": "" }, { "docid": "f5fbadff412f7565c2dd222478d77fee", "score": "0.54759175", "text": "public final void entryRuleNumber() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1835:1: ( ruleNumber EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1836:1: ruleNumber EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getNumberRule()); \n }\n pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber3857);\n ruleNumber();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getNumberRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleNumber3864); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "title": "" }, { "docid": "57a7d2117eafec6f9a791d9d0071a0c3", "score": "0.5459692", "text": "void addRule(Rule rule);", "title": "" }, { "docid": "b8c180201dc89ad9cd165c039819bbc9", "score": "0.5374836", "text": "public final void ruleNumber() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:1799:2: ( ( ( rule__Number__Alternatives ) ) )\n // InternalAle.g:1800:2: ( ( rule__Number__Alternatives ) )\n {\n // InternalAle.g:1800:2: ( ( rule__Number__Alternatives ) )\n // InternalAle.g:1801:3: ( rule__Number__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getNumberAccess().getAlternatives()); \n }\n // InternalAle.g:1802:3: ( rule__Number__Alternatives )\n // InternalAle.g:1802:4: rule__Number__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__Number__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getNumberAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "title": "" }, { "docid": "b38f08e2e5332d08c8fc69f1a9b5b0da", "score": "0.5346005", "text": "public final void mRULE_NUMBER() throws RecognitionException {\n try {\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2113:22: ( '0' .. '9' )\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2113:24: '0' .. '9'\n {\n matchRange('0','9'); \n\n }\n\n }\n finally {\n }\n }", "title": "" }, { "docid": "e7d4ed42abadcaff3969d64d76b19bb4", "score": "0.5319519", "text": "public void setNumberOfRules(int number) {\n this.numclass = number;\n }", "title": "" }, { "docid": "4b3e3b02a0eb2efe837660d4c8d7c639", "score": "0.5309094", "text": "NumberExpr createNumberExpr(int number) throws JaxenException;", "title": "" }, { "docid": "7c036476a05b7537a61a8b9c79e62b0e", "score": "0.52957195", "text": "public final void mRULE_INT() throws RecognitionException {\n try {\n int _type = RULE_INT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2115:10: ( ( '-' )? ( RULE_NUMBER )+ )\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2115:12: ( '-' )? ( RULE_NUMBER )+\n {\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2115:12: ( '-' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='-') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2115:12: '-'\n {\n match('-'); \n\n }\n break;\n\n }\n\n // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2115:17: ( RULE_NUMBER )+\n int cnt2=0;\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../org.iobserve.rac.constraint/src-gen/org/iobserve/rac/constraint/parser/antlr/internal/InternalConstraintLang.g:2115:17: RULE_NUMBER\n \t {\n \t mRULE_NUMBER(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt2 >= 1 ) break loop2;\n EarlyExitException eee =\n new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "a114cd4a32b04fd99f21a57646edaa5d", "score": "0.5233484", "text": "public final EObject entryRuleNumber() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleNumber = null;\r\n\r\n\r\n try {\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:961:2: (iv_ruleNumber= ruleNumber EOF )\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:962:2: iv_ruleNumber= ruleNumber EOF\r\n {\r\n newCompositeNode(grammarAccess.getNumberRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleNumber_in_entryRuleNumber2013);\r\n iv_ruleNumber=ruleNumber();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleNumber; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleNumber2023); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "1f1fda43d75c57f1bf97c2f26f362611", "score": "0.5225026", "text": "@Override\r\n\tpublic void setNumberAttrib(int arg0) throws NotesApiException {\n\r\n\t}", "title": "" }, { "docid": "168e51d475b7568735d253d0b9ecd5bd", "score": "0.51623625", "text": "public final void rule__Label__NumberAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12995:1: ( ( RULE_INTEGER_NUMBER ) )\n // InternalPascal.g:12996:2: ( RULE_INTEGER_NUMBER )\n {\n // InternalPascal.g:12996:2: ( RULE_INTEGER_NUMBER )\n // InternalPascal.g:12997:3: RULE_INTEGER_NUMBER\n {\n before(grammarAccess.getLabelAccess().getNumberINTEGER_NUMBERTerminalRuleCall_1_0()); \n match(input,RULE_INTEGER_NUMBER,FOLLOW_2); \n after(grammarAccess.getLabelAccess().getNumberINTEGER_NUMBERTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a7d4b0ce17b2c659b7d30ef0fb294847", "score": "0.5145043", "text": "private void fillNumber(AnchorPane cell, int number) {\n String style = NUMBER_IDENTIFIER_CSS.concat(String.valueOf(number));\n if(number == 0)\n cell.getStyleClass().add(DEFAULT_CELL_COLOR);\n else\n cell.getStyleClass().add(style);\n\n }", "title": "" }, { "docid": "4bc86af3fb479f39b6eb42070a2009fe", "score": "0.5135578", "text": "public int nextRuleID() {\n return numRules++;\n }", "title": "" }, { "docid": "27d9e5438e06fc37ac5ce2b640afc104", "score": "0.51111925", "text": "@Nonnull\n public CascadingStyleSheet addRule (@Nonnegative final int nIndex, @Nonnull final ICSSTopLevelRule aRule)\n {\n ValueEnforcer.isGE0 (nIndex, \"Index\");\n ValueEnforcer.notNull (aRule, \"Rule\");\n\n if (nIndex >= getRuleCount ())\n m_aRules.add (aRule);\n else\n m_aRules.add (nIndex, aRule);\n return this;\n }", "title": "" }, { "docid": "ef8f8139759db8171e5e6e6cd8827e55", "score": "0.5103515", "text": "public final String entryRuleNumber() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNumber = null;\n\n\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n\n try {\n // InternalLPhy.g:5958:2: (iv_ruleNumber= ruleNumber EOF )\n // InternalLPhy.g:5959:2: iv_ruleNumber= ruleNumber EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getNumberRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleNumber=ruleNumber();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleNumber.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }", "title": "" }, { "docid": "4ca344ba95b06903bc71c25105946b3a", "score": "0.5058343", "text": "public void addToIndexNUMber(){\r\n indexNUMber++;\r\n }", "title": "" }, { "docid": "843034cfca3dc150c1ffe69181072432", "score": "0.5045612", "text": "public void insertRule(Rule rule);", "title": "" }, { "docid": "06a5c46fc5f764a6ef828f1e4b209424", "score": "0.50238353", "text": "public final void entryRuleNumberLiteral() throws RecognitionException {\n try {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:538:1: ( ruleNumberLiteral EOF )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:539:1: ruleNumberLiteral EOF\n {\n before(grammarAccess.getNumberLiteralRule()); \n pushFollow(FOLLOW_ruleNumberLiteral_in_entryRuleNumberLiteral1080);\n ruleNumberLiteral();\n _fsp--;\n\n after(grammarAccess.getNumberLiteralRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleNumberLiteral1087); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "f13d30318ccac8486764e4289253ebe3", "score": "0.49940276", "text": "public void add(int number) {\n list.add(number);\n }", "title": "" }, { "docid": "2fd651f500c1dca6da206a6c8b3dddc2", "score": "0.4989024", "text": "public final void ruleNumber() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1851:2: ( ( ( rule__Number__Alternatives ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1852:1: ( ( rule__Number__Alternatives ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1852:1: ( ( rule__Number__Alternatives ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1853:1: ( rule__Number__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getNumberAccess().getAlternatives()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1854:1: ( rule__Number__Alternatives )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1854:2: rule__Number__Alternatives\n {\n pushFollow(FOLLOW_rule__Number__Alternatives_in_ruleNumber3894);\n rule__Number__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getNumberAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "title": "" }, { "docid": "e9410677c8b9fba88c80971d3fe04e69", "score": "0.49815646", "text": "public void add(int number) {\n list.add(number);\n }", "title": "" }, { "docid": "0aa23613a11625c9e0c2e08ad75686fd", "score": "0.49407297", "text": "@Override\r\n\t@Transactional\r\n\tpublic void add(BalanceRule balanceRule) {\n\t\tPrizeSerial prizeSerial = prizeSerialService.getActivePrizeSerial();\r\n\t\tif(prizeSerial!=null){\r\n\t\t\tint order = balanceRule.getIndexorder();\r\n\t\t\tdao.executeUpdate(\"update BalanceRule t set t.indexorder=t.indexorder+1 where t.indexorder>=?1\",new Object[]{order});\r\n\t\t\tbalanceRule.setPrizeSerial(prizeSerial);\r\n\t\t\tprizeSerial.getBalancerules().add(balanceRule);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "48c124e8bbf08f203463f4cef47bbb41", "score": "0.49293664", "text": "public final String entryRuleNUMBERS() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNUMBERS = null;\n\n\n try {\n // InternalPhases.g:265:47: (iv_ruleNUMBERS= ruleNUMBERS EOF )\n // InternalPhases.g:266:2: iv_ruleNUMBERS= ruleNUMBERS EOF\n {\n newCompositeNode(grammarAccess.getNUMBERSRule()); \n pushFollow(FOLLOW_1);\n iv_ruleNUMBERS=ruleNUMBERS();\n\n state._fsp--;\n\n current =iv_ruleNUMBERS.getText(); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "0e809aa4de578e54605e5013ade1765c", "score": "0.4919416", "text": "public void add(NestedInteger ni) {\n\n }", "title": "" }, { "docid": "a068195dee13c1b3572428699ee7b314", "score": "0.4905634", "text": "public final void rulenumber() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:1856:2: ( ( ( rule__Number__NumberAssignment ) ) )\n // InternalPascal.g:1857:2: ( ( rule__Number__NumberAssignment ) )\n {\n // InternalPascal.g:1857:2: ( ( rule__Number__NumberAssignment ) )\n // InternalPascal.g:1858:3: ( rule__Number__NumberAssignment )\n {\n before(grammarAccess.getNumberAccess().getNumberAssignment()); \n // InternalPascal.g:1859:3: ( rule__Number__NumberAssignment )\n // InternalPascal.g:1859:4: rule__Number__NumberAssignment\n {\n pushFollow(FOLLOW_2);\n rule__Number__NumberAssignment();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getNumberAccess().getNumberAssignment()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "03cacbdaefbad160714e22cd02e3bb14", "score": "0.48956406", "text": "public final String entryRuleNumber() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNumber = null;\n\n\n try {\n // ../org.openhab.model.sitemap/src-gen/org/openhab/model/parser/antlr/internal/InternalSitemap.g:6167:2: (iv_ruleNumber= ruleNumber EOF )\n // ../org.openhab.model.sitemap/src-gen/org/openhab/model/parser/antlr/internal/InternalSitemap.g:6168:2: iv_ruleNumber= ruleNumber EOF\n {\n newCompositeNode(grammarAccess.getNumberRule()); \n pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber14980);\n iv_ruleNumber=ruleNumber();\n\n state._fsp--;\n\n current =iv_ruleNumber.getText(); \n match(input,EOF,FOLLOW_EOF_in_entryRuleNumber14991); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "d3d3128d8546de81caf3170d523ade53", "score": "0.4894224", "text": "public static void makeOrderNumber(){\n order.setOrderNumber(startingNumber);\n startingNumber++;\n }", "title": "" }, { "docid": "354fdbbc612bad1e793c0980a85ee8e5", "score": "0.48901612", "text": "public void addScore(int n)\r\n {\r\n score += n;\r\n }", "title": "" }, { "docid": "71ba127cf55416daad2d58be4d9fb7f3", "score": "0.48842555", "text": "public void setNumber(Label number) {\n\t\t\tthis.number = number;\n\t\t}", "title": "" }, { "docid": "a7e69134d2b4c5887800daad9fef874d", "score": "0.4872501", "text": "public void setNumber(int number) {\n // Increment by 1 for user visualization starting at piece\n // 1 instead of piece 0\n this.number = number + 1;\n }", "title": "" }, { "docid": "f2a29ca85e1e442b52e76ea7ff853a81", "score": "0.48585114", "text": "public final void rule__Number__NumberAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12905:1: ( ( ruleany_number ) )\n // InternalPascal.g:12906:2: ( ruleany_number )\n {\n // InternalPascal.g:12906:2: ( ruleany_number )\n // InternalPascal.g:12907:3: ruleany_number\n {\n before(grammarAccess.getNumberAccess().getNumberAny_numberParserRuleCall_0()); \n pushFollow(FOLLOW_2);\n ruleany_number();\n\n state._fsp--;\n\n after(grammarAccess.getNumberAccess().getNumberAny_numberParserRuleCall_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "78c06c0a8fe95e6701e5cb0ea15908f7", "score": "0.48548198", "text": "public void add(int number) {\n map.put(number, map.getOrDefault(number, 0) + 1);\n }", "title": "" }, { "docid": "ea2109290a6df4e1044cb28865ec7f16", "score": "0.48393467", "text": "public Builder setRuleId(int value) {\n bitField0_ |= 0x00000002;\n ruleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ea2109290a6df4e1044cb28865ec7f16", "score": "0.48380423", "text": "public Builder setRuleId(int value) {\n bitField0_ |= 0x00000002;\n ruleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ea2109290a6df4e1044cb28865ec7f16", "score": "0.48379207", "text": "public Builder setRuleId(int value) {\n bitField0_ |= 0x00000002;\n ruleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e3ebd324312532dff392c0232cd79911", "score": "0.48316613", "text": "public final void rule__Constant__NumberAssignment_0_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:13040:1: ( ( rulenumber ) )\n // InternalPascal.g:13041:2: ( rulenumber )\n {\n // InternalPascal.g:13041:2: ( rulenumber )\n // InternalPascal.g:13042:3: rulenumber\n {\n before(grammarAccess.getConstantAccess().getNumberNumberParserRuleCall_0_1_1_0()); \n pushFollow(FOLLOW_2);\n rulenumber();\n\n state._fsp--;\n\n after(grammarAccess.getConstantAccess().getNumberNumberParserRuleCall_0_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b50233c959ff33c5fcbf580cd36ab5fb", "score": "0.48267344", "text": "public Builder setLineItemNumber(int value) {\n \n lineItemNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b50233c959ff33c5fcbf580cd36ab5fb", "score": "0.48267344", "text": "public Builder setLineItemNumber(int value) {\n \n lineItemNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "77664b25e5e06a455e77d04736307a0f", "score": "0.4810485", "text": "public final void rule__Number__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14223:1: ( rule__Number__Group_1__0__Impl rule__Number__Group_1__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14224:2: rule__Number__Group_1__0__Impl rule__Number__Group_1__1\n {\n pushFollow(FOLLOW_rule__Number__Group_1__0__Impl_in_rule__Number__Group_1__028692);\n rule__Number__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Number__Group_1__1_in_rule__Number__Group_1__028695);\n rule__Number__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f122e0213498588edee69fc5ed118991", "score": "0.48094591", "text": "public ScGridColumn<AcConsignment> newNumberColumn()\n {\n return newNumberColumn(\"Number\");\n }", "title": "" }, { "docid": "02209623cb2347fd20460ea29334faa5", "score": "0.4800133", "text": "public EmailRecipientIdsRule(String featureName, int totalRecipientNum) {\n\t\tsuper(featureName, totalRecipientNum);\n\t}", "title": "" }, { "docid": "684288538cd110b0dbb38175a52635d9", "score": "0.47936025", "text": "public OSourceBlankLine(int num) {\n this.num = num;\n }", "title": "" }, { "docid": "47c186902d13e55e6343c91bf9f65eb9", "score": "0.4781046", "text": "public void addRule (Taclet rule) {\n \t\trules.add(rule);\n \t}", "title": "" }, { "docid": "f1df80b2f707c549a0b9a8341673296e", "score": "0.47787946", "text": "public TextLineNumber(JTextComponent component) {\n this(component, 3);\n }", "title": "" }, { "docid": "75c47a2b6759d4fad0d4b4c85a436997", "score": "0.47702613", "text": "public final void rule__Factor__NumberAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:11849:1: ( ( rulenumber ) )\n // InternalPascal.g:11850:2: ( rulenumber )\n {\n // InternalPascal.g:11850:2: ( rulenumber )\n // InternalPascal.g:11851:3: rulenumber\n {\n before(grammarAccess.getFactorAccess().getNumberNumberParserRuleCall_1_0()); \n pushFollow(FOLLOW_2);\n rulenumber();\n\n state._fsp--;\n\n after(grammarAccess.getFactorAccess().getNumberNumberParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "83cd07de3ee513546e2b49d02d30ac13", "score": "0.4759203", "text": "public final void rule__XNumberLiteral__ValueAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17525:1: ( ( ruleNumber ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17526:1: ( ruleNumber )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17526:1: ( ruleNumber )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17527:1: ruleNumber\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_ruleNumber_in_rule__XNumberLiteral__ValueAssignment_135320);\n ruleNumber();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b3a8b10c20e1a1706b0057cfaaecb1a3", "score": "0.47560468", "text": "public final void addRule(){\n\t\tif(this.table.size()==0){\n\t\t\tthis.table.add(new RuleRow(RuleRowType.TOP));\n\t\t}\n\t\telse{\n\t\t\tthis.table.add(new RuleRow(RuleRowType.MID));\n\t\t}\n\t}", "title": "" }, { "docid": "fe22b4f8407a8aca1139cb7ace7323a1", "score": "0.47551292", "text": "RuleListBuilder addRule(Double order, String before, byte result, String after, String line) {\n\t\t\tif (brokenIdentifierMatcher.reset(line).find()) {\n\t\t\t\tint pos = brokenIdentifierMatcher.start();\n\t\t\t\tthrow new IllegalArgumentException(\"Illegal identifier at:\" + line.substring(0,pos) + \"<<>>\" + line.substring(pos));\n\t\t\t}\n\t\t\tline = whiteSpace.reset(line).replaceAll(\" \");\n\t\t\t// insert comments before current line, in order.\n\t\t\tif (lastComments.size() != 0) {\n\t\t\t\tdouble increment = 0.0001;\n\t\t\t\tdouble temp = order.doubleValue() - increment*lastComments.size();\n\t\t\t\tfor (int i = 0; i < lastComments.size(); ++i) {\n\t\t\t\t\trawRules.put(new Double(temp), lastComments.get(i));\n\t\t\t\t\ttemp += increment;\n\t\t\t\t}\n\t\t\t\tlastComments.clear();\n\t\t\t}\n\t\t\trawRules.put(order, \"<rule id=\\\"\" + RuleList.nf.format(order) + \"\\\"\"\n\t\t\t\t\t+ (flagItems.reset(line).find() ? \" normative=\\\"true\\\"\" : \"\")\n\t\t\t\t\t+ \"> \" + line + \" </rule>\");\n\t\t\trules.put(order, new Rule(replaceVariables(before), result, replaceVariables(after), line));\n\t\t\treturn this;\t\n\t\t}", "title": "" }, { "docid": "9487947f3554292cafbad05c54f91276", "score": "0.4746395", "text": "public void add(N node);", "title": "" }, { "docid": "6f516401b623d9050b44d7c91243c46f", "score": "0.47428843", "text": "public void createNewTaskNumber(int newTaskStatus){\n\t\tint size = iStatusMap.size();\n\t\tint tN = size+1;\n\t\tString taskNo = Integer.toString(tN);\n\t\tiStatusMap.put(taskNo, newTaskStatus);\n\t}", "title": "" }, { "docid": "f19086f8d049775c655be46ce6887ddc", "score": "0.47279227", "text": "public final void rule__XNumberLiteral__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13138:1: ( rule__XNumberLiteral__Group__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13139:2: rule__XNumberLiteral__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XNumberLiteral__Group__1__Impl_in_rule__XNumberLiteral__Group__126564);\n rule__XNumberLiteral__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8564cd26fb96f2249ab9e4f08bc505cb", "score": "0.47267753", "text": "public void setNumber(int number) {\n\t\tthis.enNumber = number;\n\t}", "title": "" }, { "docid": "95437507d16f003d767b65367021a8a9", "score": "0.47138155", "text": "private int parseRule (String line, int prop_before, int ruleNr) {\n\t\tint propNr = prop_before;\n\t\tint split1 = -1;\n\t\tif(line.indexOf(\"{\") != -1) {\n\t\t\tsplit1 = line.indexOf(\"{\");\n\t\t} else {\n\t\t\tif(line.indexOf(\"[\") != -1)\n\t\t\t\tsplit1 = line.lastIndexOf(\"[\");\n\t\t\telse\n\t\t\t\tif(line.indexOf(\"(\") != -1) {\n\t\t\t\t\tsplit1 = line.lastIndexOf(\"(\");\n\t\t\t\t}\n\t\t}\n\t\tString po = line;\n\t\tString rest = \"\";\n\t\n\t\tif(split1 != -1) {\n\t\t\tpo = line.substring(0, split1);\n\t\t\trest = line.substring(split1);\n\t\t}\n\t\tString[] parts = po.split(\"-\");\n\t\tIndexProfile profile;\n\n\t\tif(parts.length == 2) {\n\t\t\tprofile = new IndexProfile(new Integer(parts[0]), new Integer(parts[1]));\n\t\t\tpropNr = new Integer(parts[0]);\n\t\t}\n\t\telse {\n\t\t\tprofile = new IndexProfile(propNr, new Integer(parts[0]) );\n\t\t}\n\t\tIndexRule rule = new IndexRule(profile);\n\t\trule.setNumber(ruleNr);\n\t\tif(rest.length()>0) {\n\t\t\tint supers = line.indexOf(\"[\");\n\t\t\t\t//parse subs\n\t\t\t\tString substr = rest;\n\t\t\t\tif(supers != -1) {\n\t\t\t\t\tif( rest.indexOf(\"[\") != -1)\n\t\t\t\t\t\tsubstr = rest.substring(0, rest.indexOf(\"[\"));\n\t\t\t\t\telse\n\t\t\t\t\t\tsubstr = rest;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t\tif(rest.indexOf(\"(\")!= -1)\n\t\t\t\t\t\tsubstr = rest.substring(0, rest.indexOf(\"(\"));\n\t\t\t\t\telse \n\t\t\t\t\tsubstr = rest;\n\t\t\t\tif(substr.length()>0) {\n\t\t\t\t\tsubstr = substr.substring(1);\n\t\t\t\t\tString[] subjects = substr.split(\"\\\\|\");\n\t\t\t\t\tint offset = 0;\n\t\t\t\t\tfor(String s : subjects) {\n\t\t\t\t\t\tprofile.addSubject(offset+Integer.parseInt(s));\n\t\t\t\t\t\toffset += Integer.parseInt(s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tif(supers != -1) {\n\t\t\t\t//parsing super rules\n\t\t\t\tString superstr = line.substring(supers+1);\n\t\t\t\tif(line.indexOf(\"(\")!=-1)\n\t\t\t\t\tsuperstr = line.substring(supers+1, line.indexOf(\"(\"));\n\t\t\t\n\t\t\t\t\n//\t\t\t\tSystem.out.println(\"parsing supers:\"+superstr);\n\t\t\t\tString[] rulesStr = superstr.split(\"\\\\|\");\n\t\t\t\tint offset = 0;\n\t\t\t\tfor(String s: rulesStr) {\n\t\t\t\t\trule.addParentIndex(offset+new Integer(s));\n\t\t\t\t\toffset += new Integer(s);\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t} //rest>0\n\t\tint d = line.indexOf(\"(\");\n\t\tif(d != -1) {\n\t\t\thasDeleteRules = true;\n\t\t\tString del = line.substring(d+1);\n\t\t\tString[] subjects = del.split(\"\\\\|\");\n\t\t\tint offset = 0;\n\t\t\tfor(String s : subjects) {\n\t\t\t\trule.deleteGraph.add(offset+new Integer(s));\n\t\t\t\toffset+=new Integer(s);\n\t\t\t}\n\t\t}\n\t\truleMap.put(ruleNr, rule);\n\t\treturn propNr;\t\t\n\t}", "title": "" }, { "docid": "497cff0397c8606b173c7c0aada3e7c5", "score": "0.47134584", "text": "private void doRule2(DescartesToken token) {\n this.addChild(1, token.getLineNum());\n this.addChild(32, token.getLineNum());\n this.addChild(33, token.getLineNum());\n }", "title": "" }, { "docid": "2370a752d3732bc01b86f4bac7dfd132", "score": "0.47134575", "text": "private static void addEmptyLine(Paragraph paragraph, int number) {\r\n for (int i = 0; i < number; i++) {\r\n paragraph.add(new Paragraph(\" \"));\r\n }\r\n }", "title": "" }, { "docid": "3f9daad004de9ff42b9c8866cdd54a97", "score": "0.4712195", "text": "void addNumberToSeq(int num){\n\t\t\tthis.seq.add(num);\n\t\t}", "title": "" }, { "docid": "6198d24a3e97978d7e3246bf7b0d954c", "score": "0.47107226", "text": "public void add(int number) {\n if (hm.containsKey(number)){\n hm.put(number,hm.get(number) + 1);\n } else {\n hm.put(number,1);\n }\n }", "title": "" }, { "docid": "d500d20fcfcaf348cfbadc61ad6be5f6", "score": "0.46871692", "text": "public void setNumber(int newValue) {\n\n setValue(newValue);\n }", "title": "" }, { "docid": "6f19ffd0345a1ab528862526edcada2f", "score": "0.4676938", "text": "public void add(int number) {\n if (this.num_counts.containsKey(number))\n this.num_counts.replace(number, this.num_counts.get(number) + 1);\n else\n this.num_counts.put(number, 1);\n }", "title": "" }, { "docid": "682aa9e13751595d3e88112986889341", "score": "0.4676523", "text": "public final void mRULE_NZ() throws RecognitionException {\n try {\n // InternalAnsic.g:26226:18: ( '1' .. '9' )\n // InternalAnsic.g:26226:20: '1' .. '9'\n {\n matchRange('1','9'); \n\n }\n\n }\n finally {\n }\n }", "title": "" }, { "docid": "fa7d39ee1f1945e334ce93b497b623bf", "score": "0.46747527", "text": "public void insertLine(int num, String line) {\n lines.add(num - 1, line);\n if (num <= lineNum) {\n lineNum++;\n }\n }", "title": "" }, { "docid": "4d0492a658413fc97e78aae6e24ddf1b", "score": "0.46703458", "text": "public void addNewMark(int i) {\n\t\tthis.marks.add(i);\n\t\t\n\t}", "title": "" }, { "docid": "59e9555bc26cac400f6399a68ec69b97", "score": "0.46555835", "text": "public final void rule__Number__Group_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14284:1: ( rule__Number__Group_1_1__0__Impl rule__Number__Group_1_1__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14285:2: rule__Number__Group_1_1__0__Impl rule__Number__Group_1_1__1\n {\n pushFollow(FOLLOW_rule__Number__Group_1_1__0__Impl_in_rule__Number__Group_1_1__028814);\n rule__Number__Group_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Number__Group_1_1__1_in_rule__Number__Group_1_1__028817);\n rule__Number__Group_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1602b255887325d722c26df2079e0eb9", "score": "0.46505433", "text": "public final void rule__ProtoDivisionBody__NumberingStyleAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:13802:1: ( ( ruleProtoSequenceNumberStyle ) )\n // InternalPubProto.g:13803:2: ( ruleProtoSequenceNumberStyle )\n {\n // InternalPubProto.g:13803:2: ( ruleProtoSequenceNumberStyle )\n // InternalPubProto.g:13804:3: ruleProtoSequenceNumberStyle\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProtoDivisionBodyAccess().getNumberingStyleProtoSequenceNumberStyleEnumRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleProtoSequenceNumberStyle();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProtoDivisionBodyAccess().getNumberingStyleProtoSequenceNumberStyleEnumRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "353751f5ab189b51dcc76a5bc0f986d9", "score": "0.46480286", "text": "public Node(int number) {\n\t\tthis.number = number;\n\t}", "title": "" }, { "docid": "55aac4970fe2a6205cfec53aeaedeefc", "score": "0.46466333", "text": "public XNumber(Name alias) {\n this(alias, X_NUMBER);\n }", "title": "" }, { "docid": "ceba153ddfff66973fd513e9120b9583", "score": "0.46436065", "text": "RuleId(long value) {\n super(value);\n }", "title": "" }, { "docid": "096ededc030e293b77f9a058b8fb1232", "score": "0.46403834", "text": "public void add(int number) {\n if (map.containsKey(number)) {\n map.replace(number, map.get(number) + 1);\n } else {\n map.put(number, 1);\n }\n }", "title": "" }, { "docid": "5bc5b655012c969b2daf58754836dc47", "score": "0.4634309", "text": "public final EObject ruleNumber() throws RecognitionException {\r\n EObject current = null;\r\n\r\n AntlrDatatypeRuleToken lv_value_0_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:972:28: ( ( (lv_value_0_0= ruleEInt ) ) )\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:973:1: ( (lv_value_0_0= ruleEInt ) )\r\n {\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:973:1: ( (lv_value_0_0= ruleEInt ) )\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:974:1: (lv_value_0_0= ruleEInt )\r\n {\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:974:1: (lv_value_0_0= ruleEInt )\r\n // ../org.xtext.example.mydsl1/src-gen/org/xtext/example/mydsl1/parser/antlr/internal/InternalMyDsl.g:975:3: lv_value_0_0= ruleEInt\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getNumberAccess().getValueEIntParserRuleCall_0()); \r\n \t \r\n pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleNumber2068);\r\n lv_value_0_0=ruleEInt();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getNumberRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_0_0, \r\n \t\t\"EInt\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n leaveRule(); \r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "6495d6ed3b3ef478112f07c6a3c20e77", "score": "0.46205932", "text": "public Builder setParagraphNumber(int value) {\n bitField0_ |= 0x00000010;\n paragraphNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e44553f1ab8b62e516a57a23ef5e9094", "score": "0.46164656", "text": "public void setLineNumber(int newLineNumber);", "title": "" }, { "docid": "3af121d02788ff7711e565b9ca6b486c", "score": "0.4610873", "text": "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "title": "" }, { "docid": "70beb359dcce882fab231c6e1ba9bd21", "score": "0.46091178", "text": "public void setNumber(int r, int c, int nbr);", "title": "" }, { "docid": "6b2592fa34a671a9066f66bbbfb2e0ad", "score": "0.46082628", "text": "public final void rule__Number__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14263:1: ( ( ( rule__Number__Group_1_1__0 )? ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14264:1: ( ( rule__Number__Group_1_1__0 )? )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14264:1: ( ( rule__Number__Group_1_1__0 )? )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14265:1: ( rule__Number__Group_1_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getNumberAccess().getGroup_1_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14266:1: ( rule__Number__Group_1_1__0 )?\n int alt102=2;\n int LA102_0 = input.LA(1);\n\n if ( (LA102_0==40) ) {\n int LA102_1 = input.LA(2);\n\n if ( ((LA102_1>=RULE_INT && LA102_1<=RULE_DECIMAL)) ) {\n alt102=1;\n }\n }\n switch (alt102) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14266:2: rule__Number__Group_1_1__0\n {\n pushFollow(FOLLOW_rule__Number__Group_1_1__0_in_rule__Number__Group_1__1__Impl28779);\n rule__Number__Group_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getNumberAccess().getGroup_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d64de881fe6117616125a861c34babab", "score": "0.46061012", "text": "public void setNumber(int value) {\n this.number = value;\n }", "title": "" }, { "docid": "d64de881fe6117616125a861c34babab", "score": "0.46061012", "text": "public void setNumber(int value) {\n this.number = value;\n }", "title": "" }, { "docid": "7b9e4c9818fc43e4bac850a29f8530cf", "score": "0.459826", "text": "public final void rule__Number__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14252:1: ( rule__Number__Group_1__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14253:2: rule__Number__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__Number__Group_1__1__Impl_in_rule__Number__Group_1__128752);\n rule__Number__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1128e8da308af5223311f8d363721810", "score": "0.45925847", "text": "protected NumberPreference createNumberPref(Composite composite, int numColumns, String name,\n \t\t\tIntegerKey integerEntry) {\n \t\treturn super.createNumberPref(composite, numColumns, name, integerEntry.getName(), 0, 9999);\n \t}", "title": "" }, { "docid": "a2cc9d1a6f4f1d1fd906c8cb5538f8f9", "score": "0.45916474", "text": "public ReferenceNumber updateRefrenceNumber(ReferenceNumber rn) {\n\t\trn.setCounter(rn.getCounter() + 1);\n\t\treturn refrenceNoRepo.save(rn);\n\t}", "title": "" }, { "docid": "d321637cf003b89a2ed561e85b710d9d", "score": "0.45822254", "text": "public void setNumber(String number) {\n this.number = number;\n }", "title": "" }, { "docid": "5de489e91ccd1c935e0c3c15384a1031", "score": "0.45798376", "text": "public SimpleObject(int num){\r\n\t\tthis.num = num + 1;\t\r\n\t}", "title": "" }, { "docid": "3b89559cf626ae923212c8592a0f6d06", "score": "0.4573023", "text": "public void add(int num) {\n if (num >= 0 && num <= 60) {\r\n this.scores.add(num);\r\n }\r\n }", "title": "" }, { "docid": "c56e481a8cf0ec41d20e221bf4b22378", "score": "0.45689818", "text": "public void setNumber(int n) { number = n; }", "title": "" }, { "docid": "b0bbff7713a77c43964112175430907e", "score": "0.45643786", "text": "public LineNumberList(RTextArea textArea, Color numberColor) {\r\n\r\n\t\t// Remember what text component we're keeping line numbers for.\r\n\t\tthis.textArea = textArea;\r\n\r\n\t\tif (numberColor!=null)\r\n\t\t\tsetForeground(numberColor);\r\n\t\telse\r\n\t\t\tsetForeground(new Color(128,128,128));\r\n\t\tColor bg = textArea.getBackground();\r\n\t\tsetBackground(bg==null ? Color.WHITE : bg);\r\n\r\n\t\ttextArea.addCaretListener(this);\r\n\t\ttextArea.addPropertyChangeListener(this);\r\n\t\ttextArea.getDocument().addDocumentListener(this);\r\n\r\n\t\t// Initialize currentLine; otherwise, the current line won't start\r\n\t\t// off as highlighted.\r\n\t\tcurrentLine = 1;\r\n\r\n\t\t// Have the line number space be just enough space for '1' through '9'.\r\n\t\tupdateCellHeights();\r\n\t\tupdateCellWidths();\r\n\r\n\t}", "title": "" }, { "docid": "23bce0f13dd4069c2c42e2d66f8c2283", "score": "0.4564173", "text": "public void addRule(AbstractStyleRule rule) {\n\t\t\n\t\tTableItem item = new TableItem(tbRules, SWT.NONE);\n\t\titem.setText(Constant.TB_ITEN_RULE_NAME_IDX, rule.getClass().getSimpleName());\n\t\titem.setText(Constant.TB_ITEN_RULE_DESC_IDX, rule.getDescription());\n\t\titem.setText(Constant.TB_ITEN_RULE_VIOLATIONS_IDX, \"\"+rule.getViolations());\n\t\titem.setData(rule);\n\t\tpackAll();\n\t\ttbRules.computeSize(SWT.FILL, SWT.FILL);\n\t}", "title": "" }, { "docid": "e9ef8fe0074d39eab14efabc20ec27e0", "score": "0.45613134", "text": "public void incNbOfNodes() {\r\n this.nbr_concept += 1;\r\n }", "title": "" }, { "docid": "bf72a65df45435508510aab6215eb3ed", "score": "0.4559567", "text": "public void ponNum1(int n1)\n {\n this.num1=n1;\n }", "title": "" }, { "docid": "6943da7512658f5f76df802133edb544", "score": "0.4558658", "text": "public Num(int v) { super(Integer.toString(v), Tag.NUM); }", "title": "" }, { "docid": "7b849dc558a1e6073aaa1badd2cf9f0a", "score": "0.45553946", "text": "private void appendNumber(char n){\n if (offsetCurNumber < 0) offsetCurNumber = textView.length();\n textView.append(String.valueOf(n));\n }", "title": "" }, { "docid": "445b5549c6ad058bfc4329896ab62f92", "score": "0.4554135", "text": "public void set_number( int newNumber ){\n this.number = newNumber;\n }", "title": "" }, { "docid": "aa0edff9d23c9aefada0f6763ca4b027", "score": "0.45536023", "text": "private void identfyDigit() {\n StringBuffer str = new StringBuffer();\n char ch = this.input[pos];\n int value;\n\n while (Character.isDigit(ch)){\n str.append(ch);\n pos++;\n ch = this.input[pos];\n }\n\n token = Symbol.NUMBER;\n value = Integer.valueOf(str.toString());\n //not verify int limits because here is for generate tokens\n tokens.add(new Token(Symbol.NUMBER, pos, line, str.toString()));\n }", "title": "" }, { "docid": "cb9e9ef577e5bd966b4ac72ecdc36666", "score": "0.4553014", "text": "public String textToNum(String pn) {\n\t\treturn pn;\n\t}", "title": "" }, { "docid": "0fa5871777bedfba447e4ed65ee300e6", "score": "0.45489922", "text": "public void setNumber(int num) {\n number = num;\n }", "title": "" }, { "docid": "665af639dff128b64ba59c461aa1298d", "score": "0.45425916", "text": "NumberExpr createNumberExpr(double number) throws JaxenException;", "title": "" }, { "docid": "b74ca84435e9776d6c1859cc570f27b3", "score": "0.45400938", "text": "public Rule Id() {\n\t\treturn Sequence(TestNot(Keyword()), Char(), ZeroOrMore(FirstOf(Char(), Digit(), Ch('_'))));\n\t}", "title": "" }, { "docid": "838a29966def4dc963362dad9ca97da8", "score": "0.45357943", "text": "public void addScore(int num)\n {\n score += num;\n GreenfootImage image = new GreenfootImage(100, 25);\n image.drawString(\"Score: \" + score, 20, 20);\n setImage(image);\n }", "title": "" }, { "docid": "2ea440a9e0a9aa07fbcae04d751aeadc", "score": "0.4535062", "text": "public void add(int num){\n boolean notThere = true;\n //this condition helps so that if there is a repeat in the same line, the number won't be added into the entry again\n for(int i : wordOccur){\n if(i == num){\n notThere = false;\n break;\n }\n }\n if(notThere == true){\n wordOccur.add(num);\n }\n }", "title": "" }, { "docid": "4e662e3115dd443a90729717b96882ef", "score": "0.45346287", "text": "public void addTask(double num, Task task) {\r\n schedule.put(num, task);\r\n }", "title": "" } ]
53fd87a254e5e42ab82ffe72e93c59b0
Retrieve all the agents AID that have a skill that matches the name
[ { "docid": "70e9be6a61515002375585576acb75df", "score": "0.66523105", "text": "protected ArrayList<AID> getAgentsWithSkill(String skillName) {\n\t\treturn getAgentsWithSkill(skillName, JadeUtils.JADE_SKILL_TYPE_DEFAULT);\n\t}", "title": "" } ]
[ { "docid": "943b48b2d1b6602e185d97d0201efe1a", "score": "0.6354329", "text": "@Override\n Optional<Set<Advert>> findAllBySkillIdName(String skill);", "title": "" }, { "docid": "91798ec28c2a296962a8cecf66b1a67f", "score": "0.6333652", "text": "protected ArrayList<AID> getAgentsWithSkill(String skillName, String skillType) {\n\t\tfinal ArrayList<AID> result = new ArrayList<AID>();\n\t\ttry {\n\t\t\tDFAgentDescription[] agentDescriptions = DFService.search(this, getAgentDescriptionWithService(skillName, skillType));\n\t\t\tfor (DFAgentDescription ad : agentDescriptions) {\n\t\t\t\tresult.add(ad.getName());\n\t\t\t}\n\t\t} catch (FIPAException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\n\t}", "title": "" }, { "docid": "5cf03555b0da6dd3224ce4fd464bf394", "score": "0.5436974", "text": "public int getSkillByName(final String name);", "title": "" }, { "docid": "3ce685476cc4b4995964227f97a9716a", "score": "0.5416697", "text": "List<Agent> findAgentsOnMission(Mission mission);", "title": "" }, { "docid": "b9f7504bfa723a0796234fd8d61945c2", "score": "0.5284017", "text": "Skill getSkillById(String id);", "title": "" }, { "docid": "f8aa5a3878cac83f81888cf1976126b4", "score": "0.52588886", "text": "public FakeSkill getFakeSkillsBySkillName(String skillName){\r\n\t\tFakeSkill result = null;\t\r\n\t\tString s = \"select s from kiwi.model.skill.FakeSkill s where s.fakeSkill = :skillName\";\r\n\t\t\tjavax.persistence.Query q = entityManager.createQuery(s);\r\n\t\t\tq.setParameter(\"skillName\", skillName);\r\n\t\t\ttry {\r\n\t\t\t\tresult = (FakeSkill)q.getSingleResult();\r\n\t\t\t} catch (NoResultException ex) {\r\n\t\t\t\tlog.warn(\"error while listing user skills\");\r\n\t\t\t} catch (PersistenceException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlog.warn(\"error while listing user skills: query failed\");\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t}", "title": "" }, { "docid": "e1811ff4e6a5ca63a94c5b6fc03293ff", "score": "0.52474284", "text": "SkillItem findByName(String skillItemName) throws SQLException;", "title": "" }, { "docid": "430bb1c398a944ed305981531831822d", "score": "0.50806564", "text": "public ArrayList<String> searchByActorHelper(String name)\n\t{\n\t\tString nameToLower = name.toLowerCase();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tIterator<Movie> it = movies.values().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMovie movie = it.next();\n\t\t\tfor(int i = 0; i < movie.getActors().size();i++)\n\t\t\t{\n\t\t\t\tif(nameToLower.equals(movie.getActors().get(i).getFullname().toLowerCase()))\n\t\t\t\t{\n\t\t\t\t\tresult.add(movie.getTitle());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "010714b5a2c63a1a010bf4ed324ff413", "score": "0.5058205", "text": "public boolean hasSkill(Skill skill);", "title": "" }, { "docid": "a99b9e2219d95ffe0257f41070169dec", "score": "0.498169", "text": "public boolean isCombat(int skill);", "title": "" }, { "docid": "58d66ddde354d020fa56a976a97f50c5", "score": "0.49472424", "text": "List<Ingredient> getMatchingIngredient(String name);", "title": "" }, { "docid": "edc89ef1a2b9326aca7ef8a6b4e006ae", "score": "0.49101758", "text": "@Override\r\n\tpublic List<CommonVO> searchSkill() throws Exception {\n\t\treturn sqlSession.selectList(\"com.career.common.searchSkill\");\r\n\t}", "title": "" }, { "docid": "5492df56e16e4b70feff1e1c03a78329", "score": "0.48364374", "text": "public Optional<Skill> getActiveSkill();", "title": "" }, { "docid": "3ee46e308e4f5907e03f886a871b4e32", "score": "0.48351294", "text": "int getSkillId();", "title": "" }, { "docid": "b4ca7db8075b5b7b47898ba743bb16dc", "score": "0.48228475", "text": "@Test\n\tpublic void personal_skill_test(){\n\t\tIntents i=ApiCall.searchIntent(\"Hello\");\n\t\tAssert.assertEquals(\"Hi\",i.getResponse());\n\t}", "title": "" }, { "docid": "1054cb3600e84cc9fa3ea742b08a3d23", "score": "0.4813122", "text": "public Agent getByName(String name) {\r\n List<Agent> results = getHibernateTemplate().find(\"from Agent where name= ?\", name);\r\n return results.size() > 0 ? results.get(0) : null;\r\n }", "title": "" }, { "docid": "72e3488646355468dff0e4592f68f377", "score": "0.48015454", "text": "public String[] getAbilities(){\n SQLiteDatabase pokedex = this.getReadableDatabase();\n String[] pokemonAbilities = new String[192];\n String[] search = {\"id\",\"identifier\"};\n\n Cursor find2 = pokedex.query(\n \"abilities\",\n search,\n null,\n null,\n null,\n null,\n null);\n\n find2.moveToFirst();\n\n while(!(find2.isAfterLast())){\n int id = Integer.parseInt(find2.getString(find2.getColumnIndex(\"id\")));\n if( id > 200){\n break;\n }\n int i = Integer.parseInt(find2.getString(find2.getColumnIndex(\"id\")));\n String j = find2.getString(find2.getColumnIndex(\"identifier\"));\n\n pokemonAbilities[i] = j;\n find2.moveToNext();\n }\n\n find2.close();\n pokedex.close();\n return pokemonAbilities;\n }", "title": "" }, { "docid": "11c1809ec56b18ce147a2d2b196bc597", "score": "0.47988832", "text": "@Override\n\tpublic boolean equals(Object o) {\n\t\tif(o instanceof Skill) {\n\t\t\tSkill s = (Skill) o;\n\t\t\treturn this.name.equals(s.name);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "28fbdaad44a542db04e1bf30843c2dbd", "score": "0.47868872", "text": "public ArrayList<Room> searchForAvailabiltiy(String hName) {\n loadRoomArray();\n for (int i = 0; i < rooms.size(); i++) {\n if (rooms.get(i).getHotelName().equals(hName)) {\n rmResults.add(rooms.get(i));\n System.out.println(rooms.get(i).toString());\n }\n }\n return rmResults;\n }", "title": "" }, { "docid": "7adf04ccfcb5a044b04d220280fcf6cc", "score": "0.47586533", "text": "public Set<Skill> getSkills();", "title": "" }, { "docid": "7e725a0d9497329a9d696e1300d66fbe", "score": "0.47530583", "text": "public boolean canFire(int skillId) {\r\n if (skillIds.length == 0) {\r\n return true;\r\n }\r\n for (int id : skillIds) {\r\n if (id == skillId) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "082d5d30b1f58960c25f600e0ff1d247", "score": "0.47357792", "text": "public List getAllAgents();", "title": "" }, { "docid": "49651352699f30be93d061699cb3924b", "score": "0.466446", "text": "public ArrayList<Technology> findWhereNameEquals(String name) throws TechnologyDaoException;", "title": "" }, { "docid": "3c7213089040d2d41d973eff270b2878", "score": "0.46340108", "text": "public String[] findAbilities(String[] pokemonAbilities, int id){\n SQLiteDatabase pokedex = this.getReadableDatabase();\n String[] specificAbilities = new String[3];\n int[] abilityIDs = {0,0,0};\n\n String[] search = {\"pokemon_id\", \"ability_id\"};\n String[] argument = {Integer.toString(id+1)};\n\n int index = 0;\n\n Cursor findIDs = pokedex.query(\n \"pokemon_abilities\",\n search,\n \"pokemon_id = ?\",\n argument,\n null,\n null,\n null);\n\n findIDs.moveToFirst();\n\n while(!(findIDs.isAfterLast())){\n abilityIDs[index] = Integer.parseInt(findIDs.getString(findIDs.getColumnIndex(\"ability_id\")));\n index++;\n findIDs.moveToNext();\n }\n\n specificAbilities[0] = pokemonAbilities[abilityIDs[0]];\n specificAbilities[1] = pokemonAbilities[abilityIDs[1]];\n specificAbilities[2] = pokemonAbilities[abilityIDs[2]];\n\n findIDs.close();\n pokedex.close();\n\n return specificAbilities;\n }", "title": "" }, { "docid": "0e59a6b4ade36e79d4466ba24c1cb8a1", "score": "0.46235764", "text": "List<Ingredient> getAllMatchingIngredients(String [] names);", "title": "" }, { "docid": "ed0e3b418d55e4c66b5ec520d7eebe99", "score": "0.46230465", "text": "public Skill get_single_skill(int skill_id)\n\t{\n\t\tfor (Skill skill : actual_skills)\n\t\t{\n\t\t\tif (skill.get_id() == skill_id)\n\t\t\t{\n\t\t\t\treturn skill;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2b42cd1c9501bd39364312bf82e1e973", "score": "0.46212003", "text": "private boolean containsAthlete(Athlete athlete){\n for (Athlete a:participatedAthletes) {\n if (a.getId() == athlete.getId())\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "f8053e32589882b0305ef911d11e16e5", "score": "0.4617709", "text": "@Path(\"{id}/skills\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Person findWithSkillsById(@PathParam(\"id\") Long id) {\n\t\treturn personService.findWithSkillsById(id);\n\t}", "title": "" }, { "docid": "122bee77ad680f7112f3616ae19d24be", "score": "0.45723978", "text": "public List<Skill> skillCheck() {\n\t\treturn new ArrayList<>();\n\t}", "title": "" }, { "docid": "1f81a77b16574963d8a945ab19ac8349", "score": "0.4569388", "text": "public ArrayList<Employee> searchByName(String name) {\r\n //store all matching staff or teacher\r\n ArrayList<Employee> empFound = new ArrayList<>();\r\n //your code\r\n for (Employee emp : listE) {\r\n \tString str = emp.getFullName().toLowerCase();\r\n \t//use indexOf to find the query name in str\r\n \t//if return -1 (name does not occur in str), emp will not be added into empFound\r\n \tif (str.indexOf(name.toLowerCase()) != -1) {\r\n \t\tempFound.add(emp);\r\n \t}\r\n }\r\n return empFound;\r\n }", "title": "" }, { "docid": "7c4ed51237aefc0bb652118f098c4274", "score": "0.4561051", "text": "public Phase[] findWhereNamePhaseEquals(String namePhase) throws PhaseDaoException;", "title": "" }, { "docid": "fc15f85ddbdd183b73a998ecacc7cbdb", "score": "0.4559588", "text": "Agent[] getAgents(AgentFilter agentFilter);", "title": "" }, { "docid": "4ee2d14d6bfe2f4a0ba239735638d242", "score": "0.45487678", "text": "LearningOutcome findByName(@Param(\"name\") String name);", "title": "" }, { "docid": "ab3c89ddf23ababfe92c9a5e57359540", "score": "0.45464498", "text": "public Achievement getAchievementByName(String achievementName){\n\n //TODO query database for Achievement object assocated with achievementName\n\n\n return null;\n }", "title": "" }, { "docid": "5b934023d2151bd91ad6de008c3ebca1", "score": "0.45357448", "text": "public ArrayList<String> searchTrainersByName(String name) {\n ArrayList<String> trainer = new ArrayList<>();\n ArrayList<Trainer> trainers = getTrainers();\n //check if the email already exists\n for (int i = 0; i < trainers.size(); i++) {\n if (trainers.get(i).getName().contains(name)) {\n trainer.add(trainers.get(i).getName());\n }\n }\n return trainer;\n }", "title": "" }, { "docid": "df77f973034165d729379b0e49518a7a", "score": "0.45243016", "text": "public List<Account> getCustomersByAgent(String agentName);", "title": "" }, { "docid": "d39981a8979a5be77d651a5fa9cb82aa", "score": "0.45194337", "text": "@Path(\"skills\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Person> findAllWithSkills() {\n\t\treturn personService.findAllWithSkills();\n\t}", "title": "" }, { "docid": "5c47e24b51f03530cfd823a4b2983731", "score": "0.45055985", "text": "List<Hero> findHeroesWithRole(final Long id);", "title": "" }, { "docid": "5777865b0d3d986e130512edef92618b", "score": "0.4497696", "text": "public List<Skill> getAll() {\n return (List<Skill>) hibernateTemplate.find(\"FROM Skill\");\n }", "title": "" }, { "docid": "8d54d918a820d87f74ae0fb5df6e0548", "score": "0.44917595", "text": "Iterable<Intent> getIntentsByAppId(ApplicationId id);", "title": "" }, { "docid": "020f21ac36f2506866061597505685e9", "score": "0.44876605", "text": "protected ArrayList<AID> discoverAgent(String serviceType, String name) {\n\t\tDFAgentDescription template = new DFAgentDescription();\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(serviceType);\n\t\tif (name != null) {\n\t\t\tsd.setName(name);\n\t\t}\n\t\ttemplate.addServices(sd);\n\n\t\tArrayList<AID> loadingBayAgent = new ArrayList<AID>();\n\n\t\ttry {\n\t\t\tDFAgentDescription[] result = DFService.search(baseAgent, template);\n\t\t\tif (result.length > 0) {\n\t\t\t\tfor (DFAgentDescription r : result) {\n\t\t\t\t\tloadingBayAgent.add(r.getName());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tloadingBayAgent = null;\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"[\" + getAID().getLocalName() + \"] : No agent with Service type (\" + serviceType + \") found!\");\n\t\t\t}\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\n\t\treturn loadingBayAgent;\n\t}", "title": "" }, { "docid": "0195d234116c8860ebc7f5836a22a2b7", "score": "0.4487613", "text": "public ArrayList<Technology> findWhereNameLike(String name) throws TechnologyDaoException;", "title": "" }, { "docid": "f308297909fe378974480b3c07fdfe82", "score": "0.44848517", "text": "public boolean getAI(String name) {\n return getPlayerByName(name).isAI();\n }", "title": "" }, { "docid": "77ec47a01f95bc88898c8b881762b20c", "score": "0.44779396", "text": "Map<Long, String> getTargetTypeWithAdxNameCriteria();", "title": "" }, { "docid": "f92304cf1a5194ccfd9755505005b309", "score": "0.44683316", "text": "public Agent[] getAsArrayOfAgents();", "title": "" }, { "docid": "35837144f829c9703bd593838b0539b9", "score": "0.44653514", "text": "public void selectSkill()\n {\n HashSet<SkillID> knownSkills = self.getSkillManager().getKnownSkills();\n \n ArrayList<SkillID> knownSkillsArray = new ArrayList(knownSkills);\n \n Random r = SylverRandom.random;\n int randomNumber = r.nextInt(knownSkillsArray.size());\n \n this.selectedSkill = self.getSkillManager().getSkill(knownSkillsArray.get(randomNumber));\n }", "title": "" }, { "docid": "8bd8bafb37b0889097314a6a6ed916b3", "score": "0.4456613", "text": "public static boolean getInventItem(String name)\r\n {\r\n for (int i = 0;i<inventory.size();i++){\r\n Item currentItem = inventory.get(i);\r\n if(currentItem.getName().equals (name)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "f091cd1183d383f172ff8e94b8dfb987", "score": "0.44544557", "text": "Ability getAbilityByName(String name);", "title": "" }, { "docid": "ba3c9d5ded228c49622014c79edc6780", "score": "0.44539985", "text": "boolean hasAchievementId();", "title": "" }, { "docid": "2138331f10455daf72338dbd933fd4a3", "score": "0.44443896", "text": "String getAID();", "title": "" }, { "docid": "17f76bc3a704dc5f315aebfc229488ce", "score": "0.44364712", "text": "SkillItem findById(int skillItemId) throws SQLException;", "title": "" }, { "docid": "651a7f98c669749ff46e7bbf93837bfa", "score": "0.4417604", "text": "public List<Skill>findByCategory_CategoryId(int id);", "title": "" }, { "docid": "377dc44940507faaeb1a206b334f6bec", "score": "0.4414398", "text": "@Override\n\tpublic List<Skill> findAll() {\n\t\treturn repository.findAll();\n\t}", "title": "" }, { "docid": "3321d1a0c4cb0f6743348e9aa8efa01a", "score": "0.43967512", "text": "ListAIResponse listAI();", "title": "" }, { "docid": "cb5fc7d2cbd8d4bca2f1029364c5f0ce", "score": "0.43769276", "text": "public Mentors[] findWhereFullNameEquals(String fullName) throws MentorsDaoException;", "title": "" }, { "docid": "766e877c47bee11bee90e319c1d1fc49", "score": "0.43758625", "text": "public boolean checkAmenitiesPresentByMeetingRoomName(String MeetingRoomName);", "title": "" }, { "docid": "cbc44c12519cb8b35dbecb956dd98725", "score": "0.4369829", "text": "public ArrayList<Skills> FetchSkillList(UserAccount ua) throws AdException {\n\t\t\r\n\t\ttry {\r\n begin(); \r\n \r\n \r\n ArrayList<Skills> skillList = new ArrayList<Skills>();\r\n\t \tQuery q = getSession().createQuery(\"from Skills where userid = :id \");\r\n\t \tq.setLong(\"id\",ua.getId());\r\n\t \tList list = q.list();\r\n\t \t\r\n\t \tSystem.out.println(\"Retrieved Skills:\"+list.size());\r\n\t \t\r\n\t \tIterator<Skills> skillIterator = list.iterator();\r\n\t\r\n\t \twhile (skillIterator.hasNext())\r\n { \t\t\r\n\t \t\t\tSkills s = (Skills) skillIterator.next();\r\n\t \t\t\tskillList.add(s); \r\n }\r\n commit();\r\n return skillList;\r\n } catch (HibernateException e) {\r\n rollback();\r\n throw new AdException(\"Could not retirieve skill list :\" +e.getMessage());\r\n }\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5f6d1fc8304693f48ca3aea705d3d1b7", "score": "0.4360356", "text": "@Override\n\tpublic Message learnSkill(Role role, int heroId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b6854de4ed6a720a7e81f05fb7dd1727", "score": "0.43564433", "text": "public int getSkillId() {\n return skillId_;\n }", "title": "" }, { "docid": "505cb24adcfc276cb6784fc3c7a2f6c4", "score": "0.4352936", "text": "List<Fire> findByName(String name);", "title": "" }, { "docid": "8397a07b5a0659288c8a11a61d44c058", "score": "0.43473127", "text": "@Given(\"^I know the associates ids$\")\n\tpublic static void i_know_the_associates_ids(WebDriver driver) throws Throwable {\n\t\tList<WebElement> filteredListElements = new ArrayList<>();\n\t\ttry {\n\t\t\tfilteredListElements = AssociateListTab.associateIdList(driver);\n\t\t\tfor (WebElement e : filteredListElements) {\n\t\t\t\tsearchValues.add(e.getText());\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tSystem.out.println(\"Failed to get filtered associate list\");\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "806680a1a78e953a14804624b0a1f234", "score": "0.4342397", "text": "@Override\n\tpublic Skill findById(int skillId) {\n\t\treturn repository.findOne(skillId);\n\t}", "title": "" }, { "docid": "b5d7bdeaac7d9c6e77aae038ddb6868a", "score": "0.43407083", "text": "List<SkillItem> findAll() throws SQLException;", "title": "" }, { "docid": "6fc1d3b6c326a236b5855f2a14d41ffc", "score": "0.43363008", "text": "public List<Agence> getAllAgences();", "title": "" }, { "docid": "145eb43343aab6dbc261c529fb393d0d", "score": "0.4334923", "text": "public Student searchStudentName(Name name){ \r\n for(int i = 0;i < studentList.size();i ++){\r\n if(studentList.get(i).getName().equalsToName(name)){\r\n return studentList.get(i);\r\n }\r\n }\r\n return null; \r\n }", "title": "" }, { "docid": "6053a6706d4b4b1fbc0343f8f3870910", "score": "0.4322078", "text": "public Vector<String> getSkills();", "title": "" }, { "docid": "7c939cf004f63a11185c5afff2e4c9a7", "score": "0.43189692", "text": "public MRAgentLookUpReply (Node node){\n //get userid nodes here\n NodeList children = node.getChildNodes();\n ArrayList agentListNodes = new ArrayList();\n for (int i=0; i<children.getLength(); i++){\n Node finger = children.item(i);\n if (finger.getNodeName().equals(\"AgentName\")){\n\tString agentid=XMLUtils.getAssociatedString(finger);\n\tagentListNodes.add(MessageAddress.getMessageAddress(agentid));\n }\n }\n \n }", "title": "" }, { "docid": "6ca73e3a745b4afcc8a0db9cb6e3b676", "score": "0.43171015", "text": "public static Set<GameInstance> getGame(String name) {\n return activeGames.values().stream().filter(i -> i.getName().equals(name)).collect(Collectors.toSet());\n }", "title": "" }, { "docid": "12d4c9df4163a72c296b1a4161637abf", "score": "0.4312768", "text": "public int getSkillId() {\n return skillId_;\n }", "title": "" }, { "docid": "78ad827a14d635845df15b5a647e615b", "score": "0.43124852", "text": "@Given(\"^I know associates batch name$\")\n\tpublic static void i_know_associates_batch_name(WebDriver driver) throws Throwable {\n\t\tList<WebElement> filteredListElements = new ArrayList<>();\n\n\t\tfilteredListElements = AssociateListTab.batchNameList(driver);\n\n\t\tfor (WebElement e : filteredListElements) {\n\t\t\t// Thread.sleep(1000);\n\t\t\tsearchValues.add(e.getText());\n\t\t}\n\t}", "title": "" }, { "docid": "97b6077a2564270f42d396f51aa34f2c", "score": "0.43043134", "text": "public boolean isInInventory(String name) {\r\n boolean found = false;\r\n for (Item item : inventory) {\r\n if (item.getName().equals(name)) {\r\n found = true;\r\n break;\r\n }\r\n }\r\n return found;\r\n\r\n }", "title": "" }, { "docid": "16c3f5dcd442e6af97e8af945b9d61e1", "score": "0.43015522", "text": "List<RolePOJO> findByName(String name);", "title": "" }, { "docid": "1749f5d8d813cc0e976c09ea99bdb398", "score": "0.43009427", "text": "public Employee findEmployee(String name){\n\t\tEmployee objSearch=null;\n\t\tboolean findEm=false;\n\t\tfor (int i=0;i<employees.size() && !findEm;i++){\n\t\t\tif (employees.get(i).getName().equalsIgnoreCase(name)){\n\t\t\t\tobjSearch=employees.get(i);\n\t\t\t\tfindEm=true;\t\n\t\t\t}\n\t\t}\n\t\treturn objSearch;\n\t}", "title": "" }, { "docid": "cf6f757e9132ba1dcca20e913266f2f6", "score": "0.43009263", "text": "SkillType getSkillType();", "title": "" }, { "docid": "47ce70726d5490e47b07171a9bb9fc9c", "score": "0.42960808", "text": "public ProjectPhase[] findWhereNamePhaseEquals(String namePhase) throws ProjectPhaseDaoException;", "title": "" }, { "docid": "421b36c335c112e10e41eb4de8b6701e", "score": "0.42945647", "text": "public Teacher searchTeacherName(Name name){ \r\n for(int i = 0;i < teacherList.size();i ++){\r\n if(teacherList.get(i).getName().equalsToName(name)){\r\n return teacherList.get(i);\r\n }\r\n }\r\n return null; \r\n }", "title": "" }, { "docid": "730288ee0dac945eed97316c23f4f9b0", "score": "0.42944846", "text": "public int getSkillIndex ( String input ) {\n\t\tfor ( int i = 0; i < skills.size(); i ++ ) {\n\t\t\tif ( input.equals( skills.get(i).getName() ) ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "0631ebe9eb68e9bffec975a06d9488f4", "score": "0.4288629", "text": "protected boolean getSkillUnlocked(String skillName) {\n\t\tpassiveSkill = allSkills.getMovementSkills();\n\t\tpassiveSkill.addAll(allSkills.getAttackSkills());\n\t\tpassiveSkill.addAll(allSkills.getDefenseSkills());\n\t\tfor (Passive p : passiveSkill) {\n\t\t\tif (p.getName().equals(skillName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "12b4787ac8d199409dfd9b0a0575b751", "score": "0.4287183", "text": "public int getMasteredSkills();", "title": "" }, { "docid": "eb1ec439c7cd797e07b753f0e018beac", "score": "0.42849338", "text": "public JSONObject awardsQuery() {\n\n ArrayList<String> query = new ArrayList<>();\n JSONObject object = new JSONObject();\n\n // list that will store the actors who have won all of the query's awards;\n List<ActorInputData> haveAll = new ArrayList<>();\n\n for (ActorInputData actor : actors) {\n\n // number of awards from given list that the actor has won;\n int awardsFound = 0;\n // total number of awards that the actor has won;\n int awardsNumber = 0;\n\n // calculate number of awards won from given list;\n for (String awardFromList : awards) {\n\n Map<ActorsAwards, Integer> awardsWon = actor.getAwards();\n\n for (Map.Entry<ActorsAwards, Integer> entry : awardsWon.entrySet()) {\n\n if (awardFromList.equalsIgnoreCase(entry.getKey().name())) {\n\n awardsFound++;\n }\n }\n }\n\n // verify if all the awards from given list are won;\n if (awardsFound == awards.size()) {\n\n Map<ActorsAwards, Integer> awardsWon = actor.getAwards();\n\n // calculate total number of awards won by the actor;\n for (Map.Entry<ActorsAwards, Integer> entry : awardsWon.entrySet()) {\n\n awardsNumber += entry.getValue();\n }\n\n haveAll.add(actor);\n actor.setAwardsWon(awardsNumber);\n }\n }\n\n // the case where the sort type is ascedent;\n if (sortType.equalsIgnoreCase(\"asc\")) {\n\n haveAll.sort(Comparator.comparing(ActorInputData::getAwardsWon).\n thenComparing(ActorInputData::getName));\n }\n\n // the case where the sort type is descedent;\n if (sortType.equalsIgnoreCase(\"desc\")) {\n\n haveAll.sort(Comparator.comparing(ActorInputData::getAwardsWon).\n thenComparing(ActorInputData::getName));\n Collections.reverse(haveAll);\n }\n\n // put the actors name in the query;\n for (ActorInputData actorInputData : haveAll) {\n\n query.add(actorInputData.getName());\n }\n\n object.put(Constants.ID_STRING, this.id);\n object.put(Constants.MESSAGE, \"Query result: \" + query);\n return object;\n }", "title": "" }, { "docid": "28338530fd3ac233c6784864e304c071", "score": "0.4272459", "text": "protected Vector<AID> getActor(String role) throws NoAgentsFound {\n int k = 0;\n Vector<AID> result = new Vector<AID>();\n boolean found = false;\n while (k < this.actors.length) {\n \tif (actors[k].role.equalsIgnoreCase(role))\n \t\tresult.add(actors[k].id);\n k++;\n }\n\n /*if (result == null) {\n try {\n DFAgentDescription[] dfad = this.ja.getAM().getYellowPages().getAgents(role);\n }\n catch (FIPAException fe) {\n fe.printStackTrace();\n }\n }*/\n if (result == null || result.isEmpty()) {\n throw new NoAgentsFound(\"No agent playing role \" + role + \" was found in the collection of initial \" +\n \"actors supplied to the state machine \" + this.getProtocol() + \" in agent \" + myAgent.getLocalName());\n }\n return result;\n }", "title": "" }, { "docid": "204c954baf11464dfebfa1f06c9d820c", "score": "0.4272087", "text": "public void useSkill() {\n\t\tthis.getCharacterSkill().activateMySkill();\n\t}", "title": "" }, { "docid": "a8b0ef48470e284f82a5f63388fc9faf", "score": "0.4265718", "text": "List<Achievement> getAchievements();", "title": "" }, { "docid": "6e91e8c915c0412595bb1ba44f48bf87", "score": "0.42636535", "text": "public Agence getAgenceById(int id_agence);", "title": "" }, { "docid": "7993f1d509ab0ab4145b7691cd792ac7", "score": "0.42539927", "text": "private List retrieveAIS(Long drugCode) throws Exception {\n\t\tList activeIngredients = null;\n\t\ttry {\n\n\t\t\tString query = \"select ais.* from WQRY_ACTIVE_INGREDIENTS ais \";\n\t\t\tquery = query + \"where ais.DRUG_CODE = \" + drugCode.longValue();\n\t\t\tquery = query + \" ORDER BY \"\n\t\t\t\t\t+ localizedSearchColumnFor(INGREDIENT_COLUMN)\n\t\t\t\t\t+ \", STRENGTH, STRENGTH_UNIT\";\n\t\t\tactiveIngredients = getSession().createSQLQuery(query).addEntity(\n\t\t\t\t\t\"u\", ActiveIngredients.class).list();\n\n\t\t} catch (HibernateException he) {\n\t\t\tlog.error(\"Stack Trace: \", he);\n\t\t\tStringBuffer message = new StringBuffer(\"Search By drugCode [\");\n\t\t\tmessage.append(drugCode);\n\t\t\tmessage.append(\"] failed\");\n\t\t\tthrow new Exception(message.toString());\n\t\t}\n\t\treturn activeIngredients;\n\t}", "title": "" }, { "docid": "07df9b8df66066c70d58d6f8d33f8313", "score": "0.42530233", "text": "public Mentors[] findWhereAptEquals(String apt) throws MentorsDaoException;", "title": "" }, { "docid": "6b2347fe95aae18e81ae77c928186f9a", "score": "0.4252193", "text": "public Mentors[] findWhereLoginNameEquals(String loginName) throws MentorsDaoException;", "title": "" }, { "docid": "1240ab71d199d1910277b9db49b0b2a9", "score": "0.42335245", "text": "public Arena getArenaWithName(Collection<Arena> arenas, String arenaName) {\r\n\t\tfor (Arena arena : arenas)\r\n\t\t\tif (arena.getName().equalsIgnoreCase(arenaName))\r\n\t\t\t\treturn arena;\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "86c1b0a0276065dad6ad144bda710b7c", "score": "0.42323768", "text": "public Employee searchEmployee(String name){\n for(int i = 0; i < employees.size(); i++)\n if(employees.get(i).getName() == name)\n return employees.get(i);\n return null;\n }", "title": "" }, { "docid": "e6792044d572e6e30c13a22b8339860b", "score": "0.42314976", "text": "boolean individualExists(String name) {\n ArrayList ontArr = config.getAdditionalOntologyPrefixes(true);\n Set<OWLIndividual> individuals = new HashSet<>(); \n for (Object ont : ontArr) {\n OWLOntology oOnt = Ontology.instance().getOntology((String)ont);\n Set<OWLNamedIndividual> inds = oOnt.getIndividualsInSignature();\n individuals.addAll(inds);\n }\n \n boolean found = false;\n for (OWLIndividual c : individuals) {\n if (found == false) {\n if (c.toString().endsWith(\"#\" + name + \">\")) {\n found = true;\n }\n }\n }\n \n return found;\n }", "title": "" }, { "docid": "e640a3aa9b5372402c567b81e67f1c60", "score": "0.421733", "text": "public Role findByName(String name);", "title": "" }, { "docid": "dd32d0020a2787f0c8edaf9d7ca29ae9", "score": "0.42168236", "text": "public Skills[] getSkills() {\n return skills;\n }", "title": "" }, { "docid": "e285a2b9964d5d0713895ca97caf03fd", "score": "0.42121947", "text": "@Override\n\tpublic hospital getHospitalbyName(String name) {\n\t\tString hql=\"from hospital h where h.name=?\";\n\t\tQuery query = SessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setString(0, name);\n\t\tList<hospital> result=query.list();\n\t\t\n\t\treturn result.get(0);\n\t}", "title": "" }, { "docid": "984ef95deea4e404cbef9daac0f04714", "score": "0.42090383", "text": "private void readSkills() throws IOException {\r\n FICHIER = \"skill\";\r\n Skill s;\r\n try {\r\n try (BufferedReader fichier_source = new BufferedReader(new FileReader(FICHIER + \".csv\"))) {\r\n String sk;\r\n while ((sk = fichier_source.readLine()) != null) {\r\n String[] csvLine = sk.split(\";\");\r\n String skCode = csvLine[0];\r\n String skName = csvLine[1];\r\n s = new Skill(skCode, skName);\r\n listSkill.add(s);\r\n }\r\n }\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found !\");\r\n }\r\n }", "title": "" }, { "docid": "213890ab9b05ed28c41be455a2878a3b", "score": "0.42061833", "text": "public Agent getAgent(int index);", "title": "" }, { "docid": "94b47ed004d668138844a7f516b09945", "score": "0.42025194", "text": "boolean hasQuestId();", "title": "" }, { "docid": "d27a3cb32f9bed12627e19fc7fbec0ee", "score": "0.4195262", "text": "List<CatPojo> findByEnemies(String enemy);", "title": "" }, { "docid": "80d8d1252869b79b98551fca2ef181e4", "score": "0.41882303", "text": "private void searchItemByName() {\r\n\t\tString name = getItemName();\r\n\t\tSystem.out.println(\"Searching for item name: \" + name + \"...\");\r\n\t\tSystem.out.println(this.shop.getInventory().searchItem(name));\r\n\t}", "title": "" }, { "docid": "c2270ca6cbe7d649fa2fd4757034ad76", "score": "0.4186973", "text": "List getEnemy();", "title": "" }, { "docid": "5597a6265f4f1ac41ffe890e6b20e1cc", "score": "0.41847783", "text": "private static List<Skier> searchBySkiArena(List<Skier> skier, String arena) {\n List<Skier> byArena = new ArrayList<Skier>();\n for (Skier s : skier) {\n if (s.getCurrent_location() != null && s.getCurrent_location().getName().equals(arena)) byArena.add(s);\n }\n return byArena;\n }", "title": "" } ]
f9adb2fe149a99c7787877140e5dfdb6
C type : AVCodecID
[ { "docid": "e669180ec59e0111242b22d453ce5699", "score": "0.678332", "text": "@Field(22) \n\tpublic IntValuedEnum<AVCodecID > audio_codec_id() {\n\t\treturn this.io.getEnumField(this, 22);\n\t}", "title": "" } ]
[ { "docid": "9759f51d640581a120690694a6186093", "score": "0.69213283", "text": "@Field(21) \n\tpublic IntValuedEnum<AVCodecID > video_codec_id() {\n\t\treturn this.io.getEnumField(this, 21);\n\t}", "title": "" }, { "docid": "c3fab2f0a263ced019f491a2544bbab4", "score": "0.6908187", "text": "MediaCodecInfo mo25522a(int i);", "title": "" }, { "docid": "43422cc5192d73b29af66c18a7135cae", "score": "0.6835482", "text": "public String getCodecString() { return name+\" (\"+codecname+\")\"; }", "title": "" }, { "docid": "6eb5f9878dce83dcef13e12749fa8d6c", "score": "0.6828232", "text": "public String getCodecName() { return codecname; }", "title": "" }, { "docid": "a7fb96409485f1b2971dd743fb4ea0c1", "score": "0.6701911", "text": "@Field(56) \n\tpublic Pointer<AVCodec > video_codec() {\n\t\treturn this.io.getPointerField(this, 56);\n\t}", "title": "" }, { "docid": "1708060c9d58081751a772a702119678", "score": "0.6664841", "text": "public String getCodec() {\n return codec;\n }", "title": "" }, { "docid": "23b7e2e8ae72a5e40287df62a528c1b0", "score": "0.6625121", "text": "public abstract ObjectCodec getCodec();", "title": "" }, { "docid": "d4030c5d43b2e0ca0c682de13543bae4", "score": "0.6518597", "text": "@Field(23) \n\tpublic IntValuedEnum<AVCodecID > subtitle_codec_id() {\n\t\treturn this.io.getEnumField(this, 23);\n\t}", "title": "" }, { "docid": "5e110e4ef6d2671c07bb62e6e8ce4db9", "score": "0.6461471", "text": "@Field(67) \n\tpublic IntValuedEnum<AVCodecID > data_codec_id() {\n\t\treturn this.io.getEnumField(this, 67);\n\t}", "title": "" }, { "docid": "2676d8ed75237dbcb205a474e5a11106", "score": "0.64484364", "text": "@Field(57) \n\tpublic Pointer<AVCodec > audio_codec() {\n\t\treturn this.io.getPointerField(this, 57);\n\t}", "title": "" }, { "docid": "78559dbaca4889894789ca7511b3f39e", "score": "0.64227545", "text": "@Field(58) \n\tpublic Pointer<AVCodec > subtitle_codec() {\n\t\treturn this.io.getPointerField(this, 58);\n\t}", "title": "" }, { "docid": "03dab2ba67a9bff6f6b62cbf9d790e15", "score": "0.63762295", "text": "public synchronized void setAniDBVideoCodec(int codec_id, String codec_tag) {\r\n\t\tcodec_tag = codec_tag.toUpperCase();\r\n\t\tswitch (codec_id) {\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_H264: this.anidbcodecid = AnidbCodec.AVC; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MPEG1VIDEO: this.anidbcodecid = AnidbCodec.MPEG1; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MPEG2VIDEO:\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MPEG2VIDEO_XVMC: this.anidbcodecid = AnidbCodec.MPEG2; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MPEG4: // the mother of all avi codecs\r\n\t\t\t\tif (codec_tag.equals(\"DX50\")) this.anidbcodecid = AnidbCodec.DX50;\r\n\t\t\t\telse if (codec_tag.equals(\"DX60\")) this.anidbcodecid = AnidbCodec.DX60;\r\n\t\t\t\telse if (codec_tag.equals(\"DIV3\")) this.anidbcodecid = AnidbCodec.DX30;\r\n\t\t\t\telse if (codec_tag.equals(\"DIV4\")) this.anidbcodecid = AnidbCodec.DX31;\r\n\t\t\t\telse if (codec_tag.equals(\"DIVX\")) this.anidbcodecid = AnidbCodec.DX40;\r\n\t\t\t\telse if (codec_tag.equals(\"XVID\")) this.anidbcodecid = AnidbCodec.XVID;\r\n\t\t\t\telse if (codec_tag.equals(\"FMP4\")) this.anidbcodecid = AnidbCodec.MPEG4ASP;\r\n\t\t\t\telse if (codec_tag.equals(\"MP41\")) this.anidbcodecid = AnidbCodec.MSMPEG4V1;\r\n\t\t\t\telse if (codec_tag.equals(\"MP42\")) this.anidbcodecid = AnidbCodec.MSMPEG4V2;\r\n\t\t\t\telse if (codec_tag.equals(\"MP43\")) this.anidbcodecid = AnidbCodec.MSMPEG4V3;\r\n\t\t\t\telse if (codec_tag.equals(\"WMV7\")) this.anidbcodecid = AnidbCodec.WMV1;\r\n\t\t\t\telse if (codec_tag.equals(\"WMV8\")) this.anidbcodecid = AnidbCodec.WMV2;\r\n\t\t\t\telse this.anidbcodecid = AnidbCodec.MPEG4SP;\r\n\t\t\t\tbreak;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_RV10: this.anidbcodecid = AnidbCodec.RV10; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_RV20: this.anidbcodecid = AnidbCodec.RV20; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_RV30: this.anidbcodecid = AnidbCodec.RV30; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MSMPEG4V1: this.anidbcodecid = AnidbCodec.MSMPEG4V1; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MSMPEG4V2: this.anidbcodecid = AnidbCodec.MSMPEG4V2; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_MSMPEG4V3: this.anidbcodecid = AnidbCodec.MSMPEG4V3; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_WMV1: this.anidbcodecid = AnidbCodec.WMV1; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_WMV2: this.anidbcodecid = AnidbCodec.WMV1; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_VC1: this.anidbcodecid = AnidbCodec.VC1; break;\r\n\t\t\tcase AVCodecLibrary.CODEC_ID_WMV3: this.anidbcodecid = AnidbCodec.WMV3; break;\r\n\t\t\tdefault: this.anidbcodecid = AnidbCodec.OTHER; break;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "534d7bf6d6b5d0b7ce1131154ca8f63b", "score": "0.630953", "text": "@Field(21) \n\tpublic void video_codec_id(IntValuedEnum<AVCodecID > video_codec_id) {\n\t\tthis.io.setEnumField(this, 21, video_codec_id);\n\t\t\n\t}", "title": "" }, { "docid": "51d7484e50a0eafa0278fc5e96290cee", "score": "0.62688833", "text": "@Field(59) \n\tpublic Pointer<AVCodec > data_codec() {\n\t\treturn this.io.getPointerField(this, 59);\n\t}", "title": "" }, { "docid": "d2e9e81d5efe7fd74c08c1664371b8b6", "score": "0.6175491", "text": "@Field(2) \n\tpublic Pointer<AVCodecContext > codec() {\n\t\treturn this.io.getPointerField(this, 2);\n\t}", "title": "" }, { "docid": "e30642a93f23a6a6720d55eb3dd6be82", "score": "0.6162224", "text": "public String codec() {\n return this.codec;\n }", "title": "" }, { "docid": "ba6cc63547dbbd273b26b82a452dd3ef", "score": "0.6159338", "text": "public VideoCodec getCodec() {\n\t\treturn defaultVideoCodec;\n\t}", "title": "" }, { "docid": "64846f403d0f8646050543bb24a4e24a", "score": "0.60468054", "text": "@Field(22) \n\tpublic void audio_codec_id(IntValuedEnum<AVCodecID > audio_codec_id) {\n\t\tthis.io.setEnumField(this, 22, audio_codec_id);\n\t\t\n\t}", "title": "" }, { "docid": "9b1e53334e7b0ec1b215b97d5fcd611c", "score": "0.58808833", "text": "public MediaCodecInfo mo25522a(int index) {\n return MediaCodecList.getCodecInfoAt(index);\n }", "title": "" }, { "docid": "caeca4bf7f686e7349112b3d9367dd91", "score": "0.5859435", "text": "@DISPID(202) //= 0xca. The runtime will prefer the VTID if present\r\n @VTID(11)\r\n com.github.wshackle.fanuc.robotserver.FRETypeCodeConstants type();", "title": "" }, { "docid": "74dc2c81a50bd463ab88bc06e184b9ce", "score": "0.5761402", "text": "SoundCodec createCodecFor(AbstractSound sound);", "title": "" }, { "docid": "b48548a6f42a1defdad4ea4dc3fba9e9", "score": "0.57152057", "text": "public IStreamCodecInfo getCodecInfo() {\n \t\treturn streamCodecInfo;\n \t}", "title": "" }, { "docid": "81e0f1f136de03b3092aacd364b3e3ba", "score": "0.56916296", "text": "public String getType() { return c_strType; }", "title": "" }, { "docid": "a6d9aa9cd6ca80ceb112cc31b4590e90", "score": "0.56874686", "text": "void setCodecInfo(CodecInfo codecInfo);", "title": "" }, { "docid": "1c2cb0e3e17e0b7553e5a127ffe324e2", "score": "0.5670015", "text": "@Override // com.megvii.meglive_sdk.p712e.p713a.p714a.AbstractRunnableC6361b\n /* renamed from: a */\n public final void mo42136a() {\n MediaCodecInfo mediaCodecInfo;\n String[] supportedTypes;\n this.f27261f = -1;\n this.f27259d = false;\n this.f27260e = false;\n int codecCount = MediaCodecList.getCodecCount();\n int i = 0;\n loop0:\n while (true) {\n if (i >= codecCount) {\n mediaCodecInfo = null;\n break;\n }\n mediaCodecInfo = MediaCodecList.getCodecInfoAt(i);\n if (mediaCodecInfo.isEncoder()) {\n for (String str : mediaCodecInfo.getSupportedTypes()) {\n if (str.equalsIgnoreCase(\"video/avc\") && m39110a(mediaCodecInfo, \"video/avc\") > 0) {\n break loop0;\n }\n }\n continue;\n }\n i++;\n }\n if (mediaCodecInfo != null) {\n this.f27263h = m39110a(mediaCodecInfo, \"video/avc\");\n MediaFormat createVideoFormat = MediaFormat.createVideoFormat(\"video/avc\", this.f27264i, this.f27265j);\n createVideoFormat.setInteger(\"color-format\", this.f27263h);\n createVideoFormat.setInteger(IjkMediaMeta.IJKM_KEY_BITRATE, ((int) ((((float) this.f27264i) * 13.333334f) * ((float) this.f27265j))) / 2);\n createVideoFormat.setInteger(\"frame-rate\", 25);\n createVideoFormat.setInteger(\"i-frame-interval\", 10);\n this.f27262g = MediaCodec.createEncoderByType(\"video/avc\");\n this.f27262g.configure(createVideoFormat, (Surface) null, (MediaCrypto) null, 1);\n this.f27262g.start();\n if (this.f27267l != null) {\n try {\n this.f27267l.mo42082a(this);\n } catch (Exception unused) {\n }\n }\n }\n }", "title": "" }, { "docid": "29bd2a5932216557b0730537587915c1", "score": "0.5662647", "text": "@Field(67) \n\tpublic void data_codec_id(IntValuedEnum<AVCodecID > data_codec_id) {\n\t\tthis.io.setEnumField(this, 67, data_codec_id);\n\t\t\n\t}", "title": "" }, { "docid": "4a2a61b785c3292cc3c800bd009c1066", "score": "0.56614256", "text": "public boolean requiresCustomCodec()\n/* */ {\n/* 396 */ return false;\n/* */ }", "title": "" }, { "docid": "a1b98e4a51ca2ae2a86ae1bd521e5b44", "score": "0.56605154", "text": "public void mo59177a(MediaCodec mediaCodec, MediaFormat mediaFormat) {\n }", "title": "" }, { "docid": "9d7f33ef577968a5cf5797219b6e5886", "score": "0.5658636", "text": "public boolean requiresCustomCodec()\n/* */ {\n/* 452 */ return false;\n/* */ }", "title": "" }, { "docid": "82c7c1ef4cadb92ecd1d2beb29cc6da2", "score": "0.563995", "text": "int getEncodingValue();", "title": "" }, { "docid": "82c7c1ef4cadb92ecd1d2beb29cc6da2", "score": "0.563995", "text": "int getEncodingValue();", "title": "" }, { "docid": "c1939c28baf2c14eea9b6a6f817e90ce", "score": "0.56359935", "text": "private interface C8333b {\n /* renamed from: a */\n int mo25521a();\n\n /* renamed from: a */\n MediaCodecInfo mo25522a(int i);\n\n /* renamed from: a */\n boolean mo25523a(String str, CodecCapabilities codecCapabilities);\n\n /* renamed from: b */\n boolean mo25524b();\n }", "title": "" }, { "docid": "1c14dd543045c185db358c7f1ed598b2", "score": "0.5630635", "text": "String getCtype();", "title": "" }, { "docid": "86b53dd121cf7158e58d9ca330ebab00", "score": "0.5617487", "text": "@Field(23) \n\tpublic void subtitle_codec_id(IntValuedEnum<AVCodecID > subtitle_codec_id) {\n\t\tthis.io.setEnumField(this, 23, subtitle_codec_id);\n\t\t\n\t}", "title": "" }, { "docid": "2215c2b9dc4d3cf385ac1bbced940382", "score": "0.5605878", "text": "public native String getWebcamFormat();", "title": "" }, { "docid": "7e2e958f4abcf938486c8dc3fa3ac139", "score": "0.56030875", "text": "public static void m142928g() {\n try {\n ArrayList<IjkMediaCodecInfo> arrayList = new ArrayList();\n MediaCodecInfo[] codecInfos = new MediaCodecList(1).getCodecInfos();\n for (MediaCodecInfo mediaCodecInfo : codecInfos) {\n if (!mediaCodecInfo.isEncoder()) {\n String[] supportedTypes = mediaCodecInfo.getSupportedTypes();\n if (supportedTypes != null) {\n for (String str : supportedTypes) {\n if (!str.isEmpty()) {\n if (str.equals(C6969H.m41409d(\"G7F8AD11FB07FA32CF00D\")) && !mediaCodecInfo.getName().equals(C6969H.m41409d(\"G46AEED54B83FA42EEA0BDE40F7F3C0996D86D615BB35B9\"))) {\n ZmLogUtils.m142933b(C6969H.m41409d(\"G538EFD0D9B35A826E20B826CF7F1C6D47D8CC75AAB29BB2CBC4E\") + str + C6969H.m41409d(\"G25C3DB1BB235F169\") + mediaCodecInfo.getName());\n f103992b = true;\n IjkMediaCodecInfo ijkMediaCodecInfo = IjkMediaCodecInfo.setupCandidate(mediaCodecInfo, C6969H.m41409d(\"G7F8AD11FB07FA32CF00D\"));\n if (ijkMediaCodecInfo != null) {\n arrayList.add(ijkMediaCodecInfo);\n ijkMediaCodecInfo.dumpProfileLevels(C6969H.m41409d(\"G7F8AD11FB07FA32CF00D\"));\n }\n }\n }\n }\n }\n }\n }\n if (!arrayList.isEmpty()) {\n IjkMediaCodecInfo ijkMediaCodecInfo2 = (IjkMediaCodecInfo) arrayList.get(0);\n for (IjkMediaCodecInfo ijkMediaCodecInfo3 : arrayList) {\n if (ijkMediaCodecInfo3.mRank > ijkMediaCodecInfo2.mRank) {\n ijkMediaCodecInfo2 = ijkMediaCodecInfo3;\n }\n }\n if (ijkMediaCodecInfo2.mRank >= 600) {\n f103991a = ijkMediaCodecInfo2.mCodecInfo.getName();\n }\n }\n } catch (Exception unused) {\n f103992b = false;\n }\n }", "title": "" }, { "docid": "322d7b714f4a72e69ecd6b010850bcaa", "score": "0.55969715", "text": "@Field(19) \n\tpublic Pointer<AVCodecParameters > codecpar() {\n\t\treturn this.io.getPointerField(this, 19);\n\t}", "title": "" }, { "docid": "78eb25d0e662aaa0868ef02360518063", "score": "0.55692357", "text": "public abstract int mo59176a(MediaCodec mediaCodec, int i, MediaCodec.BufferInfo bufferInfo, ByteBuffer byteBuffer, long j, long j2, long j3, long j4, int i2, long j5);", "title": "" }, { "docid": "52e076ee0146e9d29f0beb7dfdc24fb8", "score": "0.55318785", "text": "@Override\n protected @NotNull Codec getCodec(@NotNull final ChannelContext context) {\n return codec;\n }", "title": "" }, { "docid": "3e86aa63f6ed1184dbc005f86d06d35f", "score": "0.5515889", "text": "com.google.protobuf.ByteString getDescid();", "title": "" }, { "docid": "3f9011f271b2ec569b7f89b54dad436f", "score": "0.55120784", "text": "String getCodetype();", "title": "" }, { "docid": "e349a2d2c8503a79e8a239c5535450a7", "score": "0.54972416", "text": "private static Pair<Integer, Integer> m19627b(String codec, String[] parts) {\n Integer levelInteger;\n Integer profileInteger;\n String str = \"Ignoring malformed AVC codec string: \";\n String str2 = \"MediaCodecUtil\";\n if (parts.length < 2) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(codec);\n C8526n.m20534d(str2, sb.toString());\n return null;\n }\n try {\n if (parts[1].length() == 6) {\n Integer profileInteger2 = Integer.valueOf(Integer.parseInt(parts[1].substring(0, 2), 16));\n levelInteger = Integer.valueOf(Integer.parseInt(parts[1].substring(4), 16));\n profileInteger = profileInteger2;\n } else if (parts.length >= 3) {\n profileInteger = Integer.valueOf(Integer.parseInt(parts[1]));\n levelInteger = Integer.valueOf(Integer.parseInt(parts[2]));\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(codec);\n C8526n.m20534d(str2, sb2.toString());\n return null;\n }\n int profile = f18052c.get(profileInteger.intValue(), -1);\n if (profile == -1) {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unknown AVC profile: \");\n sb3.append(profileInteger);\n C8526n.m20534d(str2, sb3.toString());\n return null;\n }\n int level = f18053d.get(levelInteger.intValue(), -1);\n if (level != -1) {\n return new Pair<>(Integer.valueOf(profile), Integer.valueOf(level));\n }\n StringBuilder sb4 = new StringBuilder();\n sb4.append(\"Unknown AVC level: \");\n sb4.append(levelInteger);\n C8526n.m20534d(str2, sb4.toString());\n return null;\n } catch (NumberFormatException e) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(str);\n sb5.append(codec);\n C8526n.m20534d(str2, sb5.toString());\n return null;\n }\n }", "title": "" }, { "docid": "d8698e24a115c4f4e428bfb6314759f3", "score": "0.549507", "text": "public String getCodec() {\n\t\tint index = encoding.indexOf(\"/\");\n\t\tif (index != -1) {\n\t\t\treturn encoding.substring(index+1);\n\t\t} else {\n\t\t\treturn encoding;\n\t\t}\n }", "title": "" }, { "docid": "546c4941729e60014c72f8c5f8415f4a", "score": "0.54725933", "text": "public byte getnAudioEncoderType()\n\t{\n\t\treturn nAudioEncoderType;\n\t}", "title": "" }, { "docid": "4699b8d4574e39c26522fc7a43844357", "score": "0.5455125", "text": "public String getCodecate() {\n return codecate;\n }", "title": "" }, { "docid": "e9f7f723b56faaa9eb3c38edbc72e65d", "score": "0.5447", "text": "DTC_PB.DTCProtocolGPBV3.EncodingEnum getEncoding();", "title": "" }, { "docid": "e9f7f723b56faaa9eb3c38edbc72e65d", "score": "0.5447", "text": "DTC_PB.DTCProtocolGPBV3.EncodingEnum getEncoding();", "title": "" }, { "docid": "ddcdb11875d9589504c5aa254802e22e", "score": "0.5441295", "text": "private static java.util.ArrayList<com.google.android.exoplayer2.mediacodec.C8338a> m19623a(com.google.android.exoplayer2.mediacodec.MediaCodecUtil.C8332a r19, com.google.android.exoplayer2.mediacodec.MediaCodecUtil.C8333b r20, java.lang.String r21) throws com.google.android.exoplayer2.mediacodec.MediaCodecUtil.DecoderQueryException {\n /*\n r1 = r19\n r2 = r20\n java.util.ArrayList r0 = new java.util.ArrayList // Catch:{ Exception -> 0x010b }\n r0.<init>() // Catch:{ Exception -> 0x010b }\n r3 = r0\n java.lang.String r0 = r1.f18057a // Catch:{ Exception -> 0x010b }\n r4 = r0\n int r0 = r20.mo25521a() // Catch:{ Exception -> 0x010b }\n r5 = r0\n boolean r0 = r20.mo25524b() // Catch:{ Exception -> 0x010b }\n r6 = r0\n r0 = 0\n r7 = r0\n L_0x0019:\n if (r7 >= r5) goto L_0x0106\n android.media.MediaCodecInfo r0 = r2.mo25522a(r7) // Catch:{ Exception -> 0x010b }\n r8 = r0\n java.lang.String r0 = r8.getName() // Catch:{ Exception -> 0x010b }\n r9 = r0\n r10 = r21\n boolean r0 = m19625a(r8, r9, r6, r10) // Catch:{ Exception -> 0x0104 }\n if (r0 == 0) goto L_0x00f8\n java.lang.String[] r11 = r8.getSupportedTypes() // Catch:{ Exception -> 0x0104 }\n int r12 = r11.length // Catch:{ Exception -> 0x0104 }\n r14 = 0\n L_0x0033:\n if (r14 >= r12) goto L_0x00f5\n r0 = r11[r14] // Catch:{ Exception -> 0x0104 }\n r15 = r0\n boolean r0 = r15.equalsIgnoreCase(r4) // Catch:{ Exception -> 0x0104 }\n if (r0 == 0) goto L_0x00e9\n android.media.MediaCodecInfo$CodecCapabilities r0 = r8.getCapabilitiesForType(r15) // Catch:{ Exception -> 0x009b }\n boolean r16 = r2.mo25523a(r4, r0) // Catch:{ Exception -> 0x009b }\n r17 = r16\n boolean r16 = m19629b(r9) // Catch:{ Exception -> 0x009b }\n r18 = r16\n if (r6 == 0) goto L_0x005b\n boolean r13 = r1.f18058b // Catch:{ Exception -> 0x0057 }\n r2 = r17\n if (r13 == r2) goto L_0x0063\n goto L_0x005d\n L_0x0057:\n r0 = move-exception\n r16 = r5\n goto L_0x009e\n L_0x005b:\n r2 = r17\n L_0x005d:\n if (r6 != 0) goto L_0x0077\n boolean r13 = r1.f18058b // Catch:{ Exception -> 0x0072 }\n if (r13 != 0) goto L_0x0077\n L_0x0063:\n r16 = r5\n r13 = r18\n r1 = 0\n com.google.android.exoplayer2.mediacodec.a r5 = com.google.android.exoplayer2.mediacodec.C8338a.m19649a(r9, r4, r0, r13, r1) // Catch:{ Exception -> 0x0070 }\n r3.add(r5) // Catch:{ Exception -> 0x0070 }\n goto L_0x009a\n L_0x0070:\n r0 = move-exception\n goto L_0x009e\n L_0x0072:\n r0 = move-exception\n r16 = r5\n r1 = 0\n goto L_0x009e\n L_0x0077:\n r16 = r5\n r13 = r18\n r1 = 0\n if (r6 != 0) goto L_0x009a\n if (r2 == 0) goto L_0x009a\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0070 }\n r5.<init>() // Catch:{ Exception -> 0x0070 }\n r5.append(r9) // Catch:{ Exception -> 0x0070 }\n java.lang.String r1 = \".secure\"\n r5.append(r1) // Catch:{ Exception -> 0x0070 }\n java.lang.String r1 = r5.toString() // Catch:{ Exception -> 0x0070 }\n r5 = 1\n com.google.android.exoplayer2.mediacodec.a r1 = com.google.android.exoplayer2.mediacodec.C8338a.m19649a(r1, r4, r0, r13, r5) // Catch:{ Exception -> 0x0070 }\n r3.add(r1) // Catch:{ Exception -> 0x0070 }\n return r3\n L_0x009a:\n goto L_0x00eb\n L_0x009b:\n r0 = move-exception\n r16 = r5\n L_0x009e:\n int r1 = com.google.android.exoplayer2.util.C8509F.f18793a // Catch:{ Exception -> 0x0104 }\n r2 = 23\n java.lang.String r5 = \"MediaCodecUtil\"\n if (r1 > r2) goto L_0x00c6\n boolean r1 = r3.isEmpty() // Catch:{ Exception -> 0x0104 }\n if (r1 != 0) goto L_0x00c6\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0104 }\n r1.<init>() // Catch:{ Exception -> 0x0104 }\n java.lang.String r2 = \"Skipping codec \"\n r1.append(r2) // Catch:{ Exception -> 0x0104 }\n r1.append(r9) // Catch:{ Exception -> 0x0104 }\n java.lang.String r2 = \" (failed to query capabilities)\"\n r1.append(r2) // Catch:{ Exception -> 0x0104 }\n java.lang.String r1 = r1.toString() // Catch:{ Exception -> 0x0104 }\n com.google.android.exoplayer2.util.C8526n.m20531b(r5, r1) // Catch:{ Exception -> 0x0104 }\n goto L_0x00eb\n L_0x00c6:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0104 }\n r1.<init>() // Catch:{ Exception -> 0x0104 }\n java.lang.String r2 = \"Failed to query codec \"\n r1.append(r2) // Catch:{ Exception -> 0x0104 }\n r1.append(r9) // Catch:{ Exception -> 0x0104 }\n java.lang.String r2 = \" (\"\n r1.append(r2) // Catch:{ Exception -> 0x0104 }\n r1.append(r15) // Catch:{ Exception -> 0x0104 }\n java.lang.String r2 = \")\"\n r1.append(r2) // Catch:{ Exception -> 0x0104 }\n java.lang.String r1 = r1.toString() // Catch:{ Exception -> 0x0104 }\n com.google.android.exoplayer2.util.C8526n.m20531b(r5, r1) // Catch:{ Exception -> 0x0104 }\n throw r0 // Catch:{ Exception -> 0x0104 }\n L_0x00e9:\n r16 = r5\n L_0x00eb:\n int r14 = r14 + 1\n r1 = r19\n r2 = r20\n r5 = r16\n goto L_0x0033\n L_0x00f5:\n r16 = r5\n goto L_0x00fa\n L_0x00f8:\n r16 = r5\n L_0x00fa:\n int r7 = r7 + 1\n r1 = r19\n r2 = r20\n r5 = r16\n goto L_0x0019\n L_0x0104:\n r0 = move-exception\n goto L_0x010e\n L_0x0106:\n r10 = r21\n r16 = r5\n return r3\n L_0x010b:\n r0 = move-exception\n r10 = r21\n L_0x010e:\n com.google.android.exoplayer2.mediacodec.MediaCodecUtil$DecoderQueryException r1 = new com.google.android.exoplayer2.mediacodec.MediaCodecUtil$DecoderQueryException\n r2 = 0\n r1.<init>(r0)\n goto L_0x0116\n L_0x0115:\n throw r1\n L_0x0116:\n goto L_0x0115\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.mediacodec.MediaCodecUtil.m19623a(com.google.android.exoplayer2.mediacodec.MediaCodecUtil$a, com.google.android.exoplayer2.mediacodec.MediaCodecUtil$b, java.lang.String):java.util.ArrayList\");\n }", "title": "" }, { "docid": "1c49274fb65bd1f31b8191472997f1ca", "score": "0.5440091", "text": "private void m19639c() {\n if (this.f18060b == null) {\n this.f18060b = new MediaCodecList(this.f18059a).getCodecInfos();\n }\n }", "title": "" }, { "docid": "610d9fa5db1f2c2c459cac1c0d72e933", "score": "0.5432436", "text": "public Interface.CODES getTypeCode();", "title": "" }, { "docid": "e9008fbc855ac697d0bea2796b639764", "score": "0.54258746", "text": "public static CarrierEthernetBandwidthProfile.Type generateBandwidthProfileType(short ceVlanId) {\n // TODO: Add the CoS BW profile case\n return ((ceVlanId == -1) ?\n CarrierEthernetBandwidthProfile.Type.INTERFACE : CarrierEthernetBandwidthProfile.Type.EVC);\n }", "title": "" }, { "docid": "6637925c7ce208d898890c7030de2906", "score": "0.54219896", "text": "public VideoEncoding() {}", "title": "" }, { "docid": "2f90f6a9caee7bbc9c6bc74f7d149ecb", "score": "0.5414528", "text": "private static int m39110a(MediaCodecInfo mediaCodecInfo, String str) {\n try {\n Thread.currentThread().setPriority(10);\n MediaCodecInfo.CodecCapabilities capabilitiesForType = mediaCodecInfo.getCapabilitiesForType(str);\n Thread.currentThread().setPriority(5);\n for (int i = 0; i < capabilitiesForType.colorFormats.length; i++) {\n int i2 = capabilitiesForType.colorFormats[i];\n if (i2 == 19 || i2 == 21 || i2 == 2130706688) {\n return i2;\n }\n }\n return 0;\n } catch (Throwable th) {\n Thread.currentThread().setPriority(5);\n throw th;\n }\n }", "title": "" }, { "docid": "dd2264dd99d1c2d9eaf2de506eb4dff2", "score": "0.5401361", "text": "java.lang.String getCodeType();", "title": "" }, { "docid": "d261de8316c5ef33d2a868f5bfdfffa0", "score": "0.53994393", "text": "java.lang.String getS2CUid();", "title": "" }, { "docid": "abb035ac09f615e914ec90ac84475441", "score": "0.53878635", "text": "int getTypeid();", "title": "" }, { "docid": "f4d39231e4732fb9f3687009373ba0ca", "score": "0.5361661", "text": "public void setCODEC(final GeneticCODEC theCodec) {\n this.codec = theCodec;\n }", "title": "" }, { "docid": "911b18c54d2d960178f8a2df1a4d2ac7", "score": "0.5355042", "text": "java.lang.String getC2SToPlayerId();", "title": "" }, { "docid": "7af831733b6580f4090483a69f520c6c", "score": "0.5351991", "text": "public interface SoundCodecProvider {\n\t/**\n\t * Returns a codec for the supplied sound.\n\t * @param sound\n\t * @return\n\t */\n\tSoundCodec createCodecFor(AbstractSound sound);\n\n\t/**\n\t * Returns the type of file this codec provider is able to decode.\n\t * @return\n\t */\n\tObject getSoundType();\n}", "title": "" }, { "docid": "eba90b3d9c52f35d284ed989c8a85096", "score": "0.5316668", "text": "public interface ReferenceCodec {}", "title": "" }, { "docid": "51ff5b3d81fab864a18fe29aadc13add", "score": "0.5307405", "text": "public String getCaptureEncoderName();", "title": "" }, { "docid": "95b69024209ba8a421868470e56757a7", "score": "0.5299415", "text": "boolean hasMpegCenc();", "title": "" }, { "docid": "04604c5014aeca5bad2a27dc97377fd6", "score": "0.52910143", "text": "java.lang.String getS2CPlayerId();", "title": "" }, { "docid": "db2e4c7af1d9aeec7a1613cef5b6db81", "score": "0.52450216", "text": "private static int m19646a(C8338a mediaCodecInfo) {\n String name = mediaCodecInfo.f18061a;\n if (name.startsWith(\"OMX.google\") || name.startsWith(\"c2.android\")) {\n return -1;\n }\n if (C8509F.f18793a >= 26 || !name.equals(\"OMX.MTK.AUDIO.DECODER.RAW\")) {\n return 0;\n }\n return 1;\n }", "title": "" }, { "docid": "a8f46fe87a67edc744130ff5612bdbf9", "score": "0.52399385", "text": "public abstract byte getType();", "title": "" }, { "docid": "e4024ad8a8bde31de7ffd80cf5436f27", "score": "0.5238296", "text": "public abstract void GetCGHType(String CGHType);", "title": "" }, { "docid": "6c939d8c2b0a2248bb87cc729a433c0c", "score": "0.5237235", "text": "public String getC_CODE() {\r\n\t\treturn C_CODE;\r\n\t}", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" }, { "docid": "11e6e5d497304a73eb34f7e7f9cc4c39", "score": "0.52336264", "text": "int getS2CCode();", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "d7164b08111d3123755adc67b310298c", "score": "0.0", "text": "void mo45054a(long j);", "title": "" } ]
[ { "docid": "6dbd84c2d6cc660eb674e0befd23600a", "score": "0.6301801", "text": "public interface C4326z extends aa {\n /* renamed from: a */\n void mo2587a(String str);\n\n /* renamed from: b */\n void mo2591b(String str);\n}", "title": "" }, { "docid": "1d239752b83eb1ec789bfa67b2e89ebd", "score": "0.6221253", "text": "interface C1636a {\n /* renamed from: a */\n void mo12696a();\n }", "title": "" }, { "docid": "577c7045f33e4dc769135932c2f7d991", "score": "0.6162175", "text": "public interface C2357a {\n /* renamed from: a */\n void mo14966a();\n\n /* renamed from: b */\n void mo14967b();\n }", "title": "" }, { "docid": "ebe361a76f970c16841c78a56da11072", "score": "0.61400074", "text": "public interface byu extends bzd {\n /* renamed from: a */\n void mo2554a();\n}", "title": "" }, { "docid": "e68c3dfeb975b3d86e7a8efc4e74e8c1", "score": "0.6081342", "text": "public interface C21852a {\n /* renamed from: a */\n void mo58209a();\n }", "title": "" }, { "docid": "f133f52f0acc884c65dea37fdcec4f1b", "score": "0.60605484", "text": "public a a(ah.a ☃) {\r\n/* 128 */ this.e = ☃.b();", "title": "" }, { "docid": "2b45245640c1d7ca2d643902671024df", "score": "0.6034018", "text": "private interface C2041a {\n /* renamed from: a */\n void mo5343a(int i);\n }", "title": "" }, { "docid": "6a75678d49cdba26d90b2a0e1060d963", "score": "0.6031368", "text": "public interface C25510a {\n /* renamed from: a */\n void mo66257a();\n }", "title": "" }, { "docid": "a3f391c4f5bb4729964edc6078c7fff3", "score": "0.60184896", "text": "public interface C1959a {\n /* renamed from: a */\n void mo3330a();\n }", "title": "" }, { "docid": "ed746c2f51eeea456d741cebf4069edc", "score": "0.5989359", "text": "public interface C44735b {\n /* renamed from: a */\n void mo106785a(C44737a aVar, int i);\n }", "title": "" }, { "docid": "7b2c008f8b962c3ec471b3db9a4af9b8", "score": "0.5965172", "text": "public interface C27677a {\n /* renamed from: a */\n void mo45523a(C27680t c27680t);\n }", "title": "" }, { "docid": "ff0c968f47bb0577d67a90ab102b31f4", "score": "0.59570664", "text": "interface C2236e0 {\n /* renamed from: a */\n void mo8091a();\n}", "title": "" }, { "docid": "47979b757a630de9c32cddc0d82e7b49", "score": "0.59089094", "text": "public interface cdv {\n /* renamed from: a */\n Object mo2683a();\n}", "title": "" }, { "docid": "5ff3849f545bfdfc0f027c6d5a381218", "score": "0.58889955", "text": "public interface C18441a {\n /* renamed from: a */\n void mo47884a(C18440b bVar);\n }", "title": "" }, { "docid": "285dc9fb03f4bcf28f4e29a8b67fe639", "score": "0.58851874", "text": "public interface C0267a {\n /* renamed from: a */\n void mo4566a(int i);\n\n /* renamed from: a */\n void mo4567a(View view);\n }", "title": "" }, { "docid": "821b212feaab33eeb25ef0b458e8f207", "score": "0.58560354", "text": "public interface aob {\n /* renamed from: a */\n aoa mo1180a(aoj aoj, long j);\n\n /* renamed from: a */\n void mo1181a();\n}", "title": "" }, { "docid": "ca03f02e470b2aeb482624a58fdc2182", "score": "0.58347696", "text": "public interface C2324a {\n /* renamed from: a */\n void mo14911a();\n\n /* renamed from: a */\n void mo14912a(long j, int i);\n\n /* renamed from: a */\n void mo14913a(long j, long j2);\n\n /* renamed from: b */\n void mo14914b(long j, int i);\n }", "title": "" }, { "docid": "9efb52124cd0edddd697b09c61f5d536", "score": "0.58189654", "text": "public interface C1104c {\n /* renamed from: a */\n void mo1424a();\n}", "title": "" }, { "docid": "33c8f64bcb1c999cd3c34877f4ac4352", "score": "0.5793864", "text": "public interface C5862b extends C5595at {\n /* renamed from: a */\n void mo14352a(String str);\n}", "title": "" }, { "docid": "bf2f0e5c35414fd1b584b94f90e06eb3", "score": "0.5781927", "text": "public interface C43246a {\n /* renamed from: a */\n void mo100065a();\n\n /* renamed from: a */\n void mo100066a(String str);\n }", "title": "" }, { "docid": "fa7fedebaf60edd36c00454df85a7493", "score": "0.5776291", "text": "public interface C1617a {\n /* renamed from: a */\n void m8782a(List<C1614a> list, C1614a c1614a);\n}", "title": "" }, { "docid": "a3bcb6286b05d4231591cafd70b5a300", "score": "0.57601374", "text": "public interface C5404b {\n /* renamed from: a */\n void mo27032a(String str, int i, long j);\n}", "title": "" }, { "docid": "4b2b824b2efe1a356f5a1bd7e432122c", "score": "0.57488674", "text": "public interface C44086g {\n /* renamed from: a */\n Object mo27726a(C14932m c14932m);\n\n /* renamed from: b */\n Object mo27727b(C14932m c14932m);\n}", "title": "" }, { "docid": "4e53dc0f2106f9967c1cad0add2da363", "score": "0.57387894", "text": "public interface C15804a {\n /* renamed from: a */\n void mo52041a(View view);\n}", "title": "" }, { "docid": "cd115b4febd6dde7528b92fbe7b0bb1f", "score": "0.5729598", "text": "public interface C7808a {\n /* renamed from: a */\n void mo37800a();\n\n /* renamed from: a */\n void mo37801a(float f);\n\n /* renamed from: b */\n void mo37802b();\n\n /* renamed from: b */\n void mo37803b(float f);\n }", "title": "" }, { "docid": "598f9e3ebcc9014bda17e23a106ad1ad", "score": "0.5728441", "text": "public interface AbstractC25927a {\n /* renamed from: a */\n void mo110662a();\n\n /* renamed from: b */\n void mo110663b();\n }", "title": "" }, { "docid": "bc401f55b89da8523c7429eb711dc191", "score": "0.57151335", "text": "public interface AbstractC17433a {\n /* renamed from: a */\n void mo85073a();\n }", "title": "" }, { "docid": "f29128eecd0afc567340b7157f3b6c4c", "score": "0.57071304", "text": "public interface tf {\n\n /* compiled from: QueueConsumer */\n /* renamed from: tf$a */\n public interface a {\n te a();\n }\n\n void a(a aVar);\n}", "title": "" }, { "docid": "5fa1ddc10a9844f41418be6741cb84c6", "score": "0.57035404", "text": "public interface C0737c {\n /* renamed from: a */\n void mo1382a(String str);\n }", "title": "" }, { "docid": "80d2b0076e2b203f79c186a140c7a48c", "score": "0.5677858", "text": "public interface C3898a {\n /* renamed from: a */\n void mo7011a();\n\n /* renamed from: a */\n void mo7012a(C5541am amVar, int i);\n\n /* renamed from: b */\n void mo7013b(C5541am amVar, int i);\n }", "title": "" }, { "docid": "1c4130af235ef871d1f5cb45bca20543", "score": "0.56610346", "text": "public interface C19520a {\n /* renamed from: a */\n void mo51485a();\n\n /* renamed from: a */\n void mo51486a(String str);\n }", "title": "" }, { "docid": "d327557f14d4571c698be5d13a3b68ed", "score": "0.56571835", "text": "public interface C3899b {\n /* renamed from: a */\n void mo7014a(int i, String str);\n }", "title": "" }, { "docid": "db356280e55ba11c9412ebe94c7fb7eb", "score": "0.5655823", "text": "public interface C2015a {\n /* renamed from: a */\n void mo1756a(int i, String str, String str2, long j, long j2, boolean z);\n }", "title": "" }, { "docid": "78071e7836dd8666977bfc4f7cd986cb", "score": "0.5655634", "text": "public interface AbstractC23711a {\n /* renamed from: b */\n void mo104792b();\n }", "title": "" }, { "docid": "104aba62205eb1a3ac5f17843fd3cb0a", "score": "0.564598", "text": "public interface C0326a {\n /* renamed from: a */\n void mo6565a(bxvd bxvd);\n}", "title": "" }, { "docid": "ec0cf33b89c4c5e74646adafc69fe99e", "score": "0.56450653", "text": "public interface AbstractC11440b {\n /* renamed from: a */\n void mo67691a();\n }", "title": "" }, { "docid": "8ae0a6708e51019bac2073b709208e40", "score": "0.5633663", "text": "public void visitAlpha(Alpha a) {\n\t}", "title": "" }, { "docid": "1142fa4eb48afc8025e0d330e1a45f05", "score": "0.5630565", "text": "public interface C25591a {\n /* renamed from: a */\n void mo65742a();\n\n /* renamed from: a */\n void mo65743a(boolean z);\n\n /* renamed from: b */\n void mo65744b();\n }", "title": "" }, { "docid": "cd3b35a21a7127d71aa045bcd6ea97cf", "score": "0.5623508", "text": "public interface C41943f {\n /* renamed from: a */\n Set<String> mo102969a();\n\n /* renamed from: b */\n Set<String> mo102970b();\n}", "title": "" }, { "docid": "717d192ab4921e8a9219196450cc3ef6", "score": "0.56217855", "text": "public interface C2992a {\n /* renamed from: a */\n void m16314a(int i, String str, String str2);\n\n /* renamed from: a */\n void m16315a(String str);\n }", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "47825b9e7b4a5715cf72059df4ab604f", "score": "0.5594545", "text": "public interface AbstractC18374a {\n /* renamed from: a */\n void mo89070a();\n }", "title": "" }, { "docid": "13acda790e80735794e0071e955394ad", "score": "0.5578967", "text": "public interface AbstractC18375b {\n /* renamed from: a */\n void mo89071a();\n }", "title": "" }, { "docid": "346164e89f243688edecefcbd151249b", "score": "0.557235", "text": "public interface class_26 extends class_24 {\n // $FF: renamed from: a (java.lang.Object) java.util.Set\n Set method_54(Object var1);\n\n // $FF: renamed from: b (java.lang.Object) java.util.Set\n Set method_55(Object var1);\n}", "title": "" }, { "docid": "ce7ac64507924fd54c3e819d37ec933e", "score": "0.5570321", "text": "public interface C26004a {\n /* renamed from: a */\n void mo67126a();\n\n /* renamed from: a */\n void mo67127a(View view);\n\n /* renamed from: b */\n void mo67128b();\n\n /* renamed from: c */\n void mo67129c();\n\n /* renamed from: d */\n void mo67130d();\n }", "title": "" }, { "docid": "1b7c13d61de4ebfd4703a7700725d744", "score": "0.55612594", "text": "public interface C0353a {\n /* renamed from: a */\n String mo5065a(String str);\n\n /* renamed from: a */\n void mo5066a();\n\n /* renamed from: a */\n void mo5067a(String str, String str2);\n}", "title": "" }, { "docid": "272668f5d447a8f50a29024604020efc", "score": "0.55600274", "text": "public interface C9345a {\n /* renamed from: a */\n void mo8976a();\n\n /* renamed from: b */\n boolean mo8981b();\n}", "title": "" }, { "docid": "076f59d811d55b6b6c78c5dcf5b3016c", "score": "0.552097", "text": "public interface C5004a {\n /* renamed from: a */\n void mo4934a(C5003c c5003c);\n }", "title": "" }, { "docid": "9b433a2a32cd91fec25be1932849f82c", "score": "0.5520715", "text": "public interface AbstractC6075a {\n /* renamed from: a */\n void mo40646a(int i);\n }", "title": "" }, { "docid": "73ebf84c5f85799cbdd27a5a1d4f137f", "score": "0.55155194", "text": "public interface C9557a {\n /* renamed from: a */\n void mo5951a(int i, int i2, String str, C7472b c7472b);\n }", "title": "" }, { "docid": "cb2f003330990f9ca860465d79f23382", "score": "0.55154866", "text": "public interface C12002g {\n /* renamed from: a */\n void mo37682a(String str, String str2, String str3);\n}", "title": "" }, { "docid": "dc3cf60141711198f11a804de619daa3", "score": "0.550967", "text": "interface C0265c {\n /* renamed from: a */\n float mo862a(VelocityTracker velocityTracker, int i);\n }", "title": "" }, { "docid": "9dd4d57379a58a7fee4b6a99c06f4d0c", "score": "0.5504375", "text": "public interface C0185a {\n /* renamed from: a */\n boolean mo353a(C0161b bVar);\n\n /* renamed from: b */\n boolean mo355b(C0161b bVar);\n\n /* renamed from: c */\n boolean mo356c(C0161b bVar);\n}", "title": "" }, { "docid": "667419b1d0fe655bf3bf2f20c4f60ee0", "score": "0.5495053", "text": "public interface C39853a {\n /* renamed from: a */\n void mo17329a(C30972i c30972i);\n }", "title": "" }, { "docid": "7024622f076556c2eaf7b11da3007bc9", "score": "0.5491481", "text": "public interface C2138d {\n /* renamed from: a */\n void mo7822a(Exception exc);\n}", "title": "" }, { "docid": "4693785f0d41546b61b7bf54e637d825", "score": "0.5477574", "text": "public void a(al alVar) {\n this.a = alVar;\n }", "title": "" }, { "docid": "a36132ed4e0003eea9aca92743228612", "score": "0.5470544", "text": "public interface C0677b {\n /* renamed from: a */\n void mo1399a(boolean z);\n }", "title": "" }, { "docid": "d29f2bb79c477fac70effe8115abeeed", "score": "0.54632163", "text": "public interface C2319a {\n /* renamed from: a */\n void mo14899a(boolean z);\n }", "title": "" }, { "docid": "0cb2d37a5a100b4d46a4c44fe255b6f0", "score": "0.5455884", "text": "public interface C1842m<T, U> {\n /* renamed from: a */\n void mo12153a(T t, U u);\n}", "title": "" }, { "docid": "142626adc75d1fec259b7e3b4b22289e", "score": "0.5454075", "text": "public interface C0139c {\n /* renamed from: a */\n C0135c mo287a(C0137b bVar);\n }", "title": "" }, { "docid": "6ea8600eefcdfcacb146c59143286d63", "score": "0.5439424", "text": "public interface cuo {\n /* renamed from: a */\n void mo3516a(ChannelView channelView);\n}", "title": "" }, { "docid": "7d77dbe38e7e67686f9e95ea2c63ea80", "score": "0.5435525", "text": "public void removeAuswaehlbar(Auswaehlbar a);", "title": "" }, { "docid": "5f47dc35ab69786c9d72471e2c80bdf6", "score": "0.5422532", "text": "public interface C0678c {\n /* renamed from: a */\n void mo1411a(String[] strArr, int[] iArr);\n }", "title": "" }, { "docid": "c8ecb94cb61a0230297a370446a43d42", "score": "0.5416195", "text": "interface C15689a<T> {\n /* renamed from: a */\n void mo13994a(T t);\n\n /* renamed from: a */\n void mo13995a(Throwable th);\n\n /* renamed from: c */\n void mo13561c();\n }", "title": "" }, { "docid": "efab9790f62fd316573b0eacfa212488", "score": "0.54157853", "text": "protected oa a(EntityBat paramabo)\r\n/* 12: */ {\r\n/* 13:18 */ return a;\r\n/* 14: */ }", "title": "" }, { "docid": "ff296c6570a83d45ee440148957acad2", "score": "0.5412662", "text": "public interface C0821f extends C0819d {\n /* renamed from: a */\n int mo4643a();\n\n /* renamed from: b */\n long mo4644b();\n}", "title": "" }, { "docid": "ccefc589e9fde8fcdb4a2dfba904e1c4", "score": "0.54099566", "text": "void removeIs_a(WrappedIndividual oldIs_a);", "title": "" }, { "docid": "24573a0b84163f6c78788ff1b1b71558", "score": "0.5404214", "text": "public interface C4254a {\n /* renamed from: Vv */\n void mo9236Vv(String str);\n\n /* renamed from: a */\n void mo9237a(String str, String str2, byte[] bArr, int i, int i2);\n }", "title": "" }, { "docid": "e71a3f5dc26f9953ad8a84d83580818a", "score": "0.54002017", "text": "protected DoubleList a(eq.a ☃) {\r\n/* 30 */ if (☃ == this.c) {\r\n/* 31 */ return this.d;\r\n/* */ }", "title": "" }, { "docid": "d9aa082aeae07c9203b95b4717c77568", "score": "0.5385298", "text": "public interface C2325b {\n /* renamed from: a */\n void mo15046a(long j, long j2);\n\n /* renamed from: c */\n void mo15047c();\n\n /* renamed from: d */\n void mo15048d();\n\n /* renamed from: d_ */\n void mo15049d_();\n\n /* renamed from: e */\n void mo15050e();\n }", "title": "" }, { "docid": "db463c1aca83e5d8d66c30638359a5a7", "score": "0.53839284", "text": "public interface C3552a {\n /* renamed from: a */\n void mo40043a(C4217w wVar, C3554je jeVar);\n }", "title": "" }, { "docid": "c4d9aa2dafaab582fa15ba5627006b2d", "score": "0.53797084", "text": "void renamedAttrNode(Attr oldAt, Attr newAt) {\n}", "title": "" }, { "docid": "f305667174242b57a770e43dfc4988be", "score": "0.53698474", "text": "public interface C36070f {\n /* renamed from: a */\n void mo91797a(Aweme aweme);\n\n /* renamed from: a */\n void mo91798a(boolean z);\n\n /* renamed from: a */\n boolean mo91799a();\n}", "title": "" }, { "docid": "bb6412590a607b83175261c4264c2066", "score": "0.53676176", "text": "public void a(a aVar) {\n for (Marker next : aVar.f26619b) {\n if (next instanceof i) {\n a(aVar, (i) next);\n } else {\n a(aVar, next);\n }\n }\n }", "title": "" }, { "docid": "548a45d446ce77a3cba16116f15d6807", "score": "0.5365906", "text": "public double fixangle(double a) {\n return a - 360.0 * (Math.floor(a / 360.0));\n }", "title": "" }, { "docid": "5ea1815ffa203b410c1c161e6e07698d", "score": "0.5356528", "text": "public void a() {\r\n }", "title": "" }, { "docid": "74bb3970e79849cecd185af3fe6ed713", "score": "0.53519356", "text": "public interface C3982b {\n /* renamed from: a */\n boolean m16162a();\n\n /* renamed from: b */\n boolean m16163b();\n}", "title": "" }, { "docid": "19d4f36dd72a48b456e67ae1c6654686", "score": "0.5351132", "text": "public interface C21639w {\n /* renamed from: a */\n void mo57856a(String str);\n\n /* renamed from: a */\n void mo57857a(boolean z);\n\n /* renamed from: b */\n String mo57858b(String str);\n\n /* renamed from: b */\n boolean mo57859b(boolean z);\n}", "title": "" }, { "docid": "3da80e8ce7057edc2ffdfbe094ed12f1", "score": "0.53509444", "text": "public static void rotasjon(char[] a) {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "67dac2fbb3b41959bb4dbf91f6b39b04", "score": "0.53432566", "text": "public interface C12642n {\n /* renamed from: a */\n boolean mo30877a();\n\n /* renamed from: b */\n void mo30878b();\n}", "title": "" }, { "docid": "eb51cd37b0cfb454309df5cf9fee29bb", "score": "0.5339416", "text": "public interface C45795b {\n /* renamed from: a */\n void mo11054a();\n\n /* renamed from: a */\n void mo11055a(Bundle bundle);\n }", "title": "" }, { "docid": "24c6b32a233628067e736f6016b9ebe9", "score": "0.5339319", "text": "interface C1148bw {\n /* renamed from: a */\n C1181cy mo2901a();\n\n /* renamed from: b */\n C1197dm mo2902b();\n}", "title": "" }, { "docid": "bdf00d5fefe050d1449da652dfd1a56a", "score": "0.5338933", "text": "public interface AbstractC18485a {\n /* renamed from: a */\n void mo89627a();\n\n /* renamed from: b */\n void mo89628b();\n\n /* renamed from: c */\n void mo89629c();\n }", "title": "" }, { "docid": "19eb38cdf1912111c679a5c19eac5f6c", "score": "0.5338409", "text": "public interface C0735a {\n /* renamed from: a */\n void mo1367a(boolean z, C0738d c0738d);\n }", "title": "" }, { "docid": "ea58be4b586c244576b92412134f94a8", "score": "0.5327145", "text": "public void a() {\n super.a();\n }", "title": "" }, { "docid": "ea58be4b586c244576b92412134f94a8", "score": "0.5327145", "text": "public void a() {\n super.a();\n }", "title": "" }, { "docid": "14e20ef3ef2417c1bb5f0eae0ef6b7a4", "score": "0.53266287", "text": "public double fixangr(double a) {\n return a - (2 * Math.PI) * (Math.floor(a / (2 * Math.PI)));\n }", "title": "" }, { "docid": "0cc9efe7e39df44213def63b42eb9689", "score": "0.5325391", "text": "interface C14203w {\n /* renamed from: a */\n void mo44925a(C14152o0 o0Var);\n}", "title": "" }, { "docid": "9db046e3abbca248397bb7f39556436c", "score": "0.5325274", "text": "public interface C0583f {\n /* renamed from: a */\n void mo1742a();\n\n /* renamed from: a */\n void mo1743a(C0585h c0585h);\n\n /* renamed from: a */\n void mo1744a(Throwable th);\n\n /* renamed from: a */\n void mo1745a(C0585h[] c0585hArr);\n\n /* renamed from: b */\n void mo1746b();\n\n /* renamed from: b */\n void mo1747b(Throwable th);\n\n /* renamed from: c */\n void mo1748c();\n}", "title": "" }, { "docid": "8e5472259fa4dbc06fe970b4d3d845a4", "score": "0.5320961", "text": "public interface C20675b extends C45222r {\n /* renamed from: a */\n void mo55880a(String str, String str2, String str3, String str4);\n\n /* renamed from: a */\n void mo55881a(String str, Map<String, String> map);\n\n /* renamed from: a */\n void mo55882a(Throwable th, String str);\n}", "title": "" }, { "docid": "8617bf51a87343e002014c1a81ae5432", "score": "0.5319763", "text": "public interface C1536d {\n /* renamed from: a */\n void mo14060a(int i, Intent intent);\n}", "title": "" }, { "docid": "bc489f7e2ecaa5b30b804c67841a4c3d", "score": "0.5316933", "text": "public void a(a aVar) {\n this.f30055a = aVar;\n }", "title": "" }, { "docid": "d675ea1fac30fc0c2f96e5e84e63e1ad", "score": "0.5311989", "text": "public interface C0181d<T> {\n /* renamed from: a */\n void mo375a(C0166b bVar);\n\n /* renamed from: a */\n void mo376a(Throwable th);\n\n /* renamed from: a_ */\n void mo377a_(T t);\n\n /* renamed from: s_ */\n void mo378s_();\n}", "title": "" }, { "docid": "70748b49ad1cbbdbf296f2e80425643c", "score": "0.5306544", "text": "public interface C5932b {\n /* renamed from: a */\n int mo10350a();\n\n /* renamed from: a */\n void mo10351a(int i);\n\n /* renamed from: b */\n int mo10352b();\n\n /* renamed from: b */\n void mo10353b(int i);\n\n /* renamed from: c */\n String mo10354c();\n\n /* renamed from: c */\n void mo10355c(int i);\n\n /* renamed from: d */\n void mo10356d();\n\n /* renamed from: e */\n void mo10357e();\n }", "title": "" }, { "docid": "a2b675fe042e9832517ee653c2939552", "score": "0.5304334", "text": "public interface C13875d {\n /* renamed from: a */\n int mo43281a();\n\n /* renamed from: a */\n List<File> mo43282a(int i);\n\n /* renamed from: a */\n void mo43283a(String str) throws IOException;\n\n /* renamed from: a */\n void mo43284a(List<File> list);\n\n /* renamed from: a */\n void mo43285a(byte[] bArr) throws IOException;\n\n /* renamed from: a */\n boolean mo43286a(int i, int i2);\n\n /* renamed from: b */\n List<File> mo43287b();\n\n /* renamed from: c */\n boolean mo43288c();\n\n /* renamed from: d */\n void mo43289d();\n}", "title": "" }, { "docid": "e66a42376959d926898087b71eac29aa", "score": "0.53035426", "text": "private List<String> createCopy(ArrayList<String> ana){\r\n\t\tList<String> copy = new ArrayList<String>(); \r\n\t\t// Traverse through ana and copy the words over to the copy\r\n\t\tfor(String string : ana) {\r\n\t\t\tcopy.add(string);\r\n\t\t}\r\n\t\treturn copy;\r\n\t}", "title": "" }, { "docid": "fa70327528ea590cbed11230e9d18f32", "score": "0.5300446", "text": "public interface C3861b {\n /* renamed from: a */\n void mo10064a(boolean z);\n }", "title": "" }, { "docid": "be9ed006f1d6d3afee15ac53b8eb9aa7", "score": "0.5296647", "text": "public interface C10168q5 {\n /* renamed from: a */\n void mo25574a(String str, String str2, Bundle bundle, long j);\n}", "title": "" }, { "docid": "4357a2d990f30d11ad4511a82e89db4f", "score": "0.5292635", "text": "public interface C0836a {\n void a();\n\n void a(com.ss.c.a.a.a aVar);\n\n void a(boolean z);\n\n void b();\n }", "title": "" }, { "docid": "d9e006ef59af0b266752e1a7a8fb61b9", "score": "0.5284579", "text": "interface C0212n {\n /* renamed from: A */\n void mo2898A(String str);\n\n /* renamed from: a */\n int mo2899a(List<C0238x> list, C0182ab abVar, boolean z);\n\n /* renamed from: bA */\n boolean mo2902bA();\n}", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "27b313d9e5e92a54ab465015686cc395", "score": "0.0", "text": "protected void mo5421a(String str) {\n C2065a a = C1954e.m4637a(this.b, Integer.valueOf(0), Integer.valueOf(1));\n if (a != null) {\n mo5379a(a);\n } else {\n super.mo5421a(str);\n }\n }", "title": "" } ]
[ { "docid": "fc84bfffbb135cb8d4b6f8f6e4fc5d30", "score": "0.62497115", "text": "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "title": "" }, { "docid": "01ed565ecd5da249ab9411db2a325750", "score": "0.6242887", "text": "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "title": "" }, { "docid": "2ec4d662013bbc07c24377a284193414", "score": "0.61394435", "text": "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "title": "" }, { "docid": "098acf3d25743c26951b7c137d6b5241", "score": "0.61176854", "text": "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "title": "" }, { "docid": "43976bf51e52fb1bd1f4238d171e6204", "score": "0.6114027", "text": "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "title": "" }, { "docid": "437bb90fa6e00569dcd1e241c0eb51e7", "score": "0.60893", "text": "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "title": "" }, { "docid": "868d35bc809a72be50ff335e5a6db12e", "score": "0.6046901", "text": "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "title": "" }, { "docid": "29850e186fa126e94b2bbd6fa6c19fc3", "score": "0.6024682", "text": "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "title": "" }, { "docid": "6619c8b04c9f07c442e55e1218970e1e", "score": "0.60201293", "text": "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "title": "" }, { "docid": "3100a48282b7b764700b169c3b098b1b", "score": "0.5975212", "text": "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "title": "" }, { "docid": "c6c234dd83030caeed72c3ce20189880", "score": "0.59482527", "text": "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "title": "" }, { "docid": "bd7f4e1e4e645f4b452b70f4dbb8c6dc", "score": "0.59121317", "text": "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "title": "" }, { "docid": "3f00385c41e9bc67fa06398c1a0de7d9", "score": "0.5883635", "text": "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "title": "" }, { "docid": "71e1636aef9163f0d87af21a319420fa", "score": "0.587841", "text": "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "title": "" }, { "docid": "4691a93584fd0806b37e2b6e8189521b", "score": "0.58703005", "text": "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "title": "" }, { "docid": "b123edd15ba08fe12a51841736a84462", "score": "0.5868436", "text": "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "title": "" }, { "docid": "666d9df89e6736838e69c3c82d12b0aa", "score": "0.5864884", "text": "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "title": "" }, { "docid": "449b6491b2fe8f8468a85a35e28c8259", "score": "0.5857492", "text": "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "title": "" }, { "docid": "9b3a5fa71ba9a603811b29470ea4bfb6", "score": "0.58306104", "text": "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "title": "" }, { "docid": "d8dd89277ac7a5c007c8684a9c6cca20", "score": "0.5827752", "text": "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "title": "" }, { "docid": "9da98f366c702538238d77b2b4994183", "score": "0.58272064", "text": "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "title": "" }, { "docid": "e7eae714822cbcbca0c1db80e113402e", "score": "0.5794689", "text": "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "title": "" }, { "docid": "c2479159be12a21c77910c092fceb564", "score": "0.57890314", "text": "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "title": "" }, { "docid": "1c0deb99854e0f88c66a266283221013", "score": "0.57838726", "text": "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "title": "" }, { "docid": "5975b4003249e3b564fae60d5299cbd2", "score": "0.5775679", "text": "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "title": "" }, { "docid": "7a1052255f1048f551c1776d2f1e8159", "score": "0.57694733", "text": "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "title": "" }, { "docid": "dfcbab2d69a670d9daeb2a1df7b265d1", "score": "0.5769128", "text": "public void a() {\n ((a) this.a).a();\n }", "title": "" }, { "docid": "3612fb97c8d2b8f3fec6f2c351cf922f", "score": "0.57526815", "text": "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "title": "" }, { "docid": "299f0c9b74c537eb6fcf3585a35f07e0", "score": "0.56907034", "text": "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "title": "" }, { "docid": "86c447dd732ada573e3fc12f6a7e9493", "score": "0.5677874", "text": "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "title": "" }, { "docid": "9e81f92a0b590f23e83d0bf1a4109b2a", "score": "0.5670547", "text": "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "title": "" }, { "docid": "32ce16d3f6d76b47f657f11f3770e494", "score": "0.56666386", "text": "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d70b1635e035b918da0d7569839ec014", "score": "0.56592244", "text": "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "title": "" }, { "docid": "daf43e993efc8b98cdf3fe2b0afbb466", "score": "0.5658682", "text": "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "title": "" }, { "docid": "a4e9d056edb171d95dc9a1921a5fe442", "score": "0.56574154", "text": "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "title": "" }, { "docid": "644598039edddcf3faefa364a5ba3193", "score": "0.5654324", "text": "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "title": "" }, { "docid": "006a517dc3baa87b3270848f6e8b4626", "score": "0.5644676", "text": "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "title": "" }, { "docid": "aa2a16ebbeb265f4ac4992adabc88152", "score": "0.56399715", "text": "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "title": "" }, { "docid": "8f3c1e41ba8acc82c1050da792361542", "score": "0.5638734", "text": "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "title": "" }, { "docid": "4c84511dde13e0ba18a6422f80a84d8b", "score": "0.5630582", "text": "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56183887", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "bde0f552b3d5b8c4484911314c573f66", "score": "0.5615435", "text": "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "title": "" }, { "docid": "89e9dc8cf037d7625b831e559ac044f3", "score": "0.56069666", "text": "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "title": "" }, { "docid": "66a26f9ccca930416a6f89aa9bf1b173", "score": "0.5605207", "text": "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "title": "" }, { "docid": "b5b50bf3e7a20f1df72605a90e956a06", "score": "0.56005067", "text": "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "title": "" }, { "docid": "d725a917e4e6030ba9195f790ccfff65", "score": "0.559501", "text": "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "title": "" }, { "docid": "78a3486a59361b759c6be90b827a8425", "score": "0.55910283", "text": "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "title": "" }, { "docid": "22c9838acfcdee08174bf3617ea96f8a", "score": "0.5590222", "text": "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "title": "" }, { "docid": "319d09da803527a6a06bbf7cc2887316", "score": "0.55736613", "text": "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "title": "" }, { "docid": "b3dc8a3c14d2ee83e60c6560e422679c", "score": "0.5556682", "text": "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "title": "" }, { "docid": "9be89af1bb56da53326d2f09ae555d8b", "score": "0.5554544", "text": "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "title": "" }, { "docid": "091b31225464506d6bd1e08727e712d7", "score": "0.5550076", "text": "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "title": "" }, { "docid": "1288345207fb16885bf860a102e4eaa8", "score": "0.55493855", "text": "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "title": "" }, { "docid": "7b85dbcc8aa70db8e8a7481c51065d79", "score": "0.55446684", "text": "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "title": "" }, { "docid": "bf0f20a06091c30776990d814c848d2a", "score": "0.5538079", "text": "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "title": "" }, { "docid": "5fe376bb4764d8d4ad2567d147bc1fcc", "score": "0.5529058", "text": "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "title": "" }, { "docid": "b3b2fedc9f525bea8a2349e6dce201fb", "score": "0.5528109", "text": "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "title": "" }, { "docid": "c2a394a2b842d95cc0e883b841d9f283", "score": "0.552641", "text": "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "title": "" }, { "docid": "13217711f83a6833e3fef29d1814cd44", "score": "0.5525864", "text": "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "title": "" }, { "docid": "0d07baf9ce5331f454f1d47a24cee622", "score": "0.552186", "text": "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "title": "" }, { "docid": "0dc9e140b9547032b784f43a942c4e87", "score": "0.5519972", "text": "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "title": "" }, { "docid": "82288d49730f74b92af9749ca1fe8231", "score": "0.5509587", "text": "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "title": "" }, { "docid": "e8fa1b69564f29db70fe4f6fa46349fe", "score": "0.5507195", "text": "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "title": "" }, { "docid": "00d622ec17496c72311e952fde13ef3b", "score": "0.54881203", "text": "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "title": "" }, { "docid": "49ff4ba7b256475d4bfc81f6e66948f8", "score": "0.5485328", "text": "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "title": "" }, { "docid": "e528b25232e1e107445f9f7f31a381fc", "score": "0.54826045", "text": "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "title": "" }, { "docid": "6311a887a4ae923531409d83c7da50b8", "score": "0.5482066", "text": "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "title": "" }, { "docid": "c90cb1d49988bdadad52d6fff6740c8a", "score": "0.5481586", "text": "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "title": "" }, { "docid": "32227e5dc9e15ad3763e078cc1fb606f", "score": "0.5479751", "text": "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "title": "" }, { "docid": "18b0c3978bc1361e7463da1c55ec9fe6", "score": "0.54776895", "text": "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "title": "" }, { "docid": "2f7ac463983b04d3f3e56961fdb4ba43", "score": "0.54671466", "text": "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "title": "" }, { "docid": "4134d0fab03b3fa765ceb91b52ec0dbb", "score": "0.5463307", "text": "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "title": "" }, { "docid": "1a94ebbc41776ed2216a34180eb5a7f6", "score": "0.54505056", "text": "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "title": "" }, { "docid": "fc18815bc6e649fec1a5abc3890052ae", "score": "0.54436916", "text": "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "title": "" }, { "docid": "58de1edc0c1420fdff331cc22707123e", "score": "0.5440517", "text": "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "title": "" }, { "docid": "b1c89121f3910f51c93098ba9ec3a21b", "score": "0.5439747", "text": "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "title": "" }, { "docid": "63aa596b4b88e7f89cd3097e4e54cfca", "score": "0.5431944", "text": "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "title": "" }, { "docid": "9c2afd79755607e15de270eb193b236e", "score": "0.5422869", "text": "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "title": "" }, { "docid": "8fa65e13dc0cdff3a90d9f62507cb9a5", "score": "0.54217863", "text": "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "title": "" }, { "docid": "e60d809a85b4c98e16589f1529561044", "score": "0.5417556", "text": "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "title": "" }, { "docid": "d8fd4f06199d8efcef24fc1505addbcd", "score": "0.5403905", "text": "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "title": "" }, { "docid": "83bbf46e0144c3dcce2d271f13bee782", "score": "0.5400223", "text": "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "title": "" }, { "docid": "82ffdbe6aa6621b279c74468f80b5912", "score": "0.53998446", "text": "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "title": "" }, { "docid": "aeadc18012a7c861c02f1c65eb820994", "score": "0.5394735", "text": "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "title": "" }, { "docid": "2508060fe41b983c50d6ca46a915395e", "score": "0.5388649", "text": "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "title": "" }, { "docid": "087386378b393a0e96fa18f708ca65ce", "score": "0.5388258", "text": "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "title": "" }, { "docid": "9f1c9cd821755538a8a9bda91b904acc", "score": "0.5374842", "text": "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "title": "" }, { "docid": "6ecc192a1fb1f66ec2d6f47439a4d9f8", "score": "0.5368887", "text": "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "title": "" }, { "docid": "e181411550d85cf1e62f33e2fa38c92f", "score": "0.53591394", "text": "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "title": "" }, { "docid": "d99a3faf82861610af051d036f6e5a50", "score": "0.5357029", "text": "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "title": "" }, { "docid": "a0e21ee501dec77d3b013c6bba646f86", "score": "0.5355688", "text": "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "title": "" }, { "docid": "47b905976cd909c479269de128f16ffc", "score": "0.535506", "text": "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "title": "" }, { "docid": "d124618b4b65ff1a4c5f0386a0b0a101", "score": "0.5355034", "text": "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "title": "" }, { "docid": "40044121d9a1d21cd1c28865a7d0f30f", "score": "0.53494394", "text": "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "title": "" }, { "docid": "2b75e6696ca89a5bd713b64ef3c8ca12", "score": "0.5341044", "text": "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "title": "" }, { "docid": "8ffd671a8e9a13dff8feccdbbbcb8737", "score": "0.5326166", "text": "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "title": "" }, { "docid": "b370df3daf04308a9df898bf450c4c19", "score": "0.53236824", "text": "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "title": "" }, { "docid": "2942e8417b1b46bc317e65c06b2d0abd", "score": "0.53199095", "text": "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "title": "" }, { "docid": "337feecf03fd626594145801b5fc943e", "score": "0.53177035", "text": "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "title": "" }, { "docid": "0cbbba7c7ba683d273d25272a6e29808", "score": "0.53112453", "text": "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "title": "" }, { "docid": "ad4fcb3c5e30d79489772b08711b9163", "score": "0.5298229", "text": "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }", "title": "" } ]
06df973bcf987a68df7aac4caac109b4
Returns a new object of class 'Feature Ref'.
[ { "docid": "2a5d4edbbdc5fea87475edf60a72f20c", "score": "0.8582197", "text": "FeatureRef createFeatureRef();", "title": "" } ]
[ { "docid": "db20f16e7ec1b8c0a5f8e422f811f023", "score": "0.68690366", "text": "ISiteFeature createFeature();", "title": "" }, { "docid": "23e3eb85db7b64e7d72711080ad1fedc", "score": "0.6648972", "text": "public Object clone() {\r\n\t\tFeature clone = new Feature(this.node, this.functionCode, this.featureCode, this.sensorCode, this.channelBitmask, \r\n\t\t\t\t\t\t\t\t\tthis.ch1Value, this.ch2Value, this.ch3Value, this.ch4Value, this.featureLabel);\r\n\t\treturn clone;\r\n\t}", "title": "" }, { "docid": "e5ed1d1da804bcb0c74efd282dbd2ece", "score": "0.6618146", "text": "public org.webcat.schedulesheets.ComponentFeature createComponentFeaturesRelationship()\n {\n if (log.isDebugEnabled())\n {\n log.debug( \"createComponentFeaturesRelationship()\" );\n }\n EOClassDescription eoClassDesc = EOClassDescription\n .classDescriptionForEntityName( \"ComponentFeature\" );\n EOEnterpriseObject eoObject = eoClassDesc\n .createInstanceWithEditingContext( editingContext(), null );\n editingContext().insertObject( eoObject );\n addObjectToBothSidesOfRelationshipWithKey(\n eoObject, \"componentFeatures\" );\n return (org.webcat.schedulesheets.ComponentFeature)eoObject;\n }", "title": "" }, { "docid": "5b4784c963cc65d2eb27f52d03ba9942", "score": "0.65294594", "text": "public Feature() {}", "title": "" }, { "docid": "7b031001a621ffc8a4db718326e05829", "score": "0.63510686", "text": "com.google.cloud.aiplatform.v1beta1.Feature getFeature();", "title": "" }, { "docid": "0d22a54a1002ecc2e7dfa27d1b4d8cff", "score": "0.6343292", "text": "Reference createReference();", "title": "" }, { "docid": "1525f89e394dd4c91851c2b01a5f6d66", "score": "0.6330729", "text": "Feature feature(String featureName);", "title": "" }, { "docid": "eae4eaca9f82a431ebc6919cb819d835", "score": "0.6291004", "text": "public CoreferenceFeatures() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "81f361356264b162d8647c69749fdb66", "score": "0.6282269", "text": "public FeHyperRef makeNew(FeEdition edition) {\n\treturn FeSingleRef.construct(edition);\n/*\nudanax-top.st:24406:FeSingleRef methodsFor: 'protected:'!\n{FeHyperRef} makeNew: edition {FeEdition}\n\t\"Make a new HyperRef of the same type with different contents\"\n\t\n\t^FeSingleRef construct: edition!\n*/\n}", "title": "" }, { "docid": "287c0408b704610e51cf22c716333a65", "score": "0.6198759", "text": "protected abstract EStructuralFeature getFeature();", "title": "" }, { "docid": "f3ca39851aac9b0cacfe5105ff8811d4", "score": "0.6195136", "text": "Refinement createRefinement();", "title": "" }, { "docid": "021d175af4e316d19542c3977ed9796d", "score": "0.61638814", "text": "private Object createFeature() {\n for (int i=0; i<buffer.length; i++) {\n buffer[i] = (char) ('A' + random.nextInt(26));\n }\n final String city = new String(buffer);\n final Float latitude = random.nextFloat() * 180 - 90;\n final Float longitude = random.nextFloat() * 360 - 180;\n if (type != null) {\n final AbstractFeature feature = type.newInstance();\n feature.setPropertyValue(\"city\", city);\n feature.setPropertyValue(\"latitude\", latitude);\n feature.setPropertyValue(\"longitude\", longitude);\n return feature;\n } else if (isSimple) {\n final SimpleFeature feature = new SimpleFeature();\n feature.attributes.put(\"city\", city);\n feature.attributes.put(\"latitude\", latitude);\n feature.attributes.put(\"longitude\", longitude);\n return feature;\n } else {\n final ComplexFeature feature = new ComplexFeature();\n feature.properties.put(\"city\", Property.asList(city));\n feature.properties.put(\"latitude\", Property.asList(latitude));\n feature.properties.put(\"longitude\", Property.asList(longitude));\n return feature;\n }\n }", "title": "" }, { "docid": "ffed4ac3e4f86480233a3d25f2b665dc", "score": "0.60864246", "text": "public Feature createFeature(String name) {\n return featureMap.get(name);\n }", "title": "" }, { "docid": "f139b407f7bba141b23dd3c048d84409", "score": "0.60227996", "text": "Node createFeatureInstance(QName featureType) {\n Document entity = wfsClient.getFeatureByType(featureType, 1, null);\n NodeList features = entity.getElementsByTagNameNS(featureType.getNamespaceURI(), featureType.getLocalPart());\n if (features.getLength() == 0) {\n // TODO: try generating minimal instance from schema\n throw new NullPointerException(\"Unable to obtain feature instance of type \" + featureType);\n }\n Element feature = (Element) features.item(0);\n feature.setAttributeNS(Namespaces.GML, \"gml:id\", \"id-\" + System.currentTimeMillis());\n insertRandomIdentifier(feature);\n return feature.cloneNode(true);\n }", "title": "" }, { "docid": "aa07a4d34db0f23e2b4844f177c49dbf", "score": "0.59604955", "text": "public FeatureVector(Feature f) {\n this();\n addFeature(f);\n }", "title": "" }, { "docid": "9bdb8067ddbde42339c1d667a95ee4b2", "score": "0.59381294", "text": "@Override\r\n\tprotected EStructuralFeature getFeature() {\n\t\t\r\n\t\treturn feature;\r\n\t}", "title": "" }, { "docid": "a5ab72b553b553258b752d004c254de6", "score": "0.59313273", "text": "Feature getFeature();", "title": "" }, { "docid": "81b77f1e71f6d3e2cae23dc8c40e8733", "score": "0.5930544", "text": "RefDef getRefDef(String refName) throws UnifyException;", "title": "" }, { "docid": "bd0c5532414623fd338916b9e083252b", "score": "0.58652234", "text": "public Feature() {\r\n\t\tthis.functionCode = SPINEFunctionConstants.FEATURE;\r\n\t}", "title": "" }, { "docid": "284054c14c3bca83361db8ad32213218", "score": "0.58469784", "text": "FeatureDescriptor(FeatureDescriptor old) {\n expert = old.expert;\n hidden = old.hidden;\n preferred = old.preferred;\n name = old.name;\n shortDescription = old.shortDescription;\n displayName = old.displayName;\n classRef = old.classRef;\n\n addTable(old.table);\n }", "title": "" }, { "docid": "451fbdf1549513572fffd5d05fed89f3", "score": "0.58167386", "text": "public GarageFeatures() {\n }", "title": "" }, { "docid": "6a701b0feffc4e514f84eb20b753aa01", "score": "0.57591295", "text": "public static GetFeature create( String version, String id, RESULT_TYPE resultType,\n String outputFormat, String handle, int maxFeatures,\n int startPosition, int traverseXLinkDepth,\n int traverseXLinkExpiry, Query[] queries ) {\n return new GetFeature( version, id, handle, resultType, outputFormat, maxFeatures,\n startPosition, traverseXLinkDepth, traverseXLinkExpiry, queries,\n null );\n }", "title": "" }, { "docid": "32928b00dd24ff00fdcb1c97a0d6516d", "score": "0.56774986", "text": "public InteriorFeature() {\n this.interiorFeature = \"Generic\";\n }", "title": "" }, { "docid": "285035f4be901587b00dbebe58f89116", "score": "0.56566256", "text": "DSL_Object_Ref createDSL_Object_Ref();", "title": "" }, { "docid": "a209200e61c4a1fa47501b9551e4dc85", "score": "0.5632176", "text": "private static SimpleFeature makeSimpleFeature(Bundle formData, TreeViewController tv) throws JSONException, TerraMobileException {\n\n\n ArrayList<GpkgField> fields = tv.getSelectedEditableLayer().getFields();\n SimpleFeatureType ft = tv.getSelectedEditableLayer().getFeatureType();\n GeometryType geometryType = ft.getGeometryDescriptor().getType();\n Object[] attrs = new Object[fields.size()];\n String featureID=null;\n // if contains Geometry identification when update feature process is call\n if(formData.containsKey(FormUtilities.GEOM_ID)) {\n featureID=ft.getTypeName()+formData.getLong(FormUtilities.GEOM_ID);\n }\n\n SimpleFeatureImpl feature = new SimpleFeatureImpl(featureID, null, ft);\n\n GeometryFactory factory=new GeometryFactory();\n\n if(formData.containsKey(FormUtilities.ATTR_GEOJSON_TAGS)) {\n String geojsonTags = formData.getString(FormUtilities.ATTR_GEOJSON_TAGS);\n JSONObject geojsonGeometry = new JSONObject(geojsonTags);\n String geojsonGeometryType = geojsonGeometry.getString(FormUtilities.GEOJSON_TAG_TYPE);\n JSONArray geojsonCoordinates = geojsonGeometry.getJSONArray(FormUtilities.GEOJSON_TAG_COORDINATES);\n\n if ( !geometryType.getName().toString().equalsIgnoreCase(geojsonGeometryType) ) {\n throw new TerraMobileException(\"Geometry type is incompatible.\");\n }\n\n if(geojsonGeometryType.equalsIgnoreCase(FormUtilities.GEOJSON_TYPE_POINT)) {\n Coordinate coordinate = new Coordinate(geojsonCoordinates.getDouble(0), geojsonCoordinates.getDouble(1));\n Point point = factory.createPoint(coordinate);\n Name geomColName = ft.getGeometryDescriptor().getName();\n attrs[ft.indexOf(geomColName)] = point;\n\n }else if(geojsonGeometryType.equalsIgnoreCase(FormUtilities.GEOJSON_TYPE_MULTIPOINT)) {\n\n int geomSize = geojsonCoordinates.length();\n Coordinate[] coordinates = new Coordinate[geomSize];\n for (int i = 0; i < geomSize; i++) {\n JSONArray geojsonCoordinate = geojsonCoordinates.getJSONArray(i);\n Coordinate coordinate = new Coordinate(geojsonCoordinate.getDouble(0), geojsonCoordinate.getDouble(1));\n coordinates[i]=coordinate;\n }\n MultiPoint multiPoint = factory.createMultiPoint(coordinates);\n Name geomColName = ft.getGeometryDescriptor().getName();\n attrs[ft.indexOf(geomColName)] = multiPoint;\n\n }else {\n throw new TerraMobileException(\"Geometry type is wrong.\");\n }\n }\n\n ArrayList<String> formKeys = formData.getStringArrayList(LibraryConstants.FORM_KEYS);\n ArrayList<String> formTypes = formData.getStringArrayList(LibraryConstants.FORM_TYPES);\n\n if(formKeys==null || formTypes==null) {\n throw new TerraMobileException(\"Attributes form are missing.\");\n }\n\n // adding control attribute into form key list\n String statusKey;\n String objIdKey;\n int statusValue;\n try {\n statusKey = ResourceHelper.getStringResource(R.string.point_status_column);\n objIdKey = ResourceHelper.getStringResource(R.string.point_obj_id_column);\n String objIdValue=\"\";\n if(formData.containsKey(FormUtilities.ATTR_DATA_VALUES)) {\n Bundle existingFeatureData = formData.getBundle(FormUtilities.ATTR_DATA_VALUES);\n if(existingFeatureData!=null)\n objIdValue = existingFeatureData.getString(objIdKey);\n }\n\n if(objIdValue!=null && !objIdValue.isEmpty()) {// Update the feature that was loaded from official database\n statusValue = ResourceHelper.getIntResource(R.integer.point_status_changed);\n }else{\n statusValue = ResourceHelper.getIntResource(R.integer.point_status_unchanged);\n }\n\n } catch (InvalidAppConfigException e) {\n e.printStackTrace();\n statusKey = \"tm_status\";\n statusValue=0;// default status, unchanged\n }\n attrs[ft.indexOf(statusKey)]=statusValue;\n\n for (int i = 0, len = formKeys.size(); i < len; i++) {\n String key = formKeys.get(i);\n GpkgField field = getFieldByName(fields, key);\n if(field==null) continue;\n String dbType = field.getFieldType();\n\n dbType = EditableLayerService.mappingAffinityDBType(dbType);\n\n String formType = formTypes.get(i);\n int index = ft.indexOf(key);\n\n if(index<0) continue;\n\n if (\"REAL\".equalsIgnoreCase(dbType)) {\n Double d = formData.getDouble(key);\n attrs[index]=d;\n } else if (\"TEXT\".equalsIgnoreCase(dbType)) {\n String s = formData.getString(key);\n attrs[index]=s;\n } else if (\"INTEGER\".equalsIgnoreCase(dbType)) {\n\n if(\"INTEGER\".equalsIgnoreCase(formType)) {\n Integer in = formData.getInt(key);\n attrs[index]=in;\n }else {\n Boolean aBoolean = formData.getBoolean(key);\n attrs[index]=aBoolean;\n }\n } else if (\"NUMERIC\".equalsIgnoreCase(dbType)) {\n\n if(\"BOOLEAN\".equalsIgnoreCase(formType)) {\n Boolean aBoolean = formData.getBoolean(key);\n attrs[index]=aBoolean;\n }else if(\"DATE\".equalsIgnoreCase(formType)) {\n String date = formData.getString(key);\n Date dt = stringToDate(date);\n if (dt == null) {\n dt = new Date();\n }\n attrs[index]=dt;\n }else if(\"DATETIME\".equalsIgnoreCase(formType)) {\n String date = formData.getString(key);\n Date dt = stringToDate(date);\n if (dt == null) {\n dt = new Date();\n }\n attrs[index]=dt;\n }\n } else if (\"BLOB\".equalsIgnoreCase(dbType)) {\n if( !key.equals(feature.getFeatureType().getGeometryDescriptor().getName().toString())) {\n String path = formData.getString(key);\n if (path!=null && ImageUtilities.isImagePath(path)) {\n byte[] blob = ImageUtilities.getImageFromPath(path, 1);\n attrs[index]=blob;\n }else{\n attrs[index]=null;\n }\n }\n }\n }\n feature.setAttributes(attrs);\n return feature;\n }", "title": "" }, { "docid": "365545e01c2556dc7122801124cbc41b", "score": "0.5631373", "text": "@Override\r\n public EFeature eFeature() {\n // Return delegate if not a EFeature implementation \r\n //\r\n if(eObject instanceof EFeature) {\r\n return (EFeature)eObject();\r\n }\r\n return new EFeatureDelegate(eStructure, (InternalEObject)eObject, false);\r\n }", "title": "" }, { "docid": "e91d753d4731c0a44d59682a9b57f801", "score": "0.56088483", "text": "@Override\n\tpublic IAddFeature getAddFeature(IAddContext context) {\n\t\tif (context instanceof IAddConnectionContext /* && context.getNewObject() instanceof <DomainObject> */) {\n\t\t\treturn new AddConnectionFeature(this);\n\t\t} else if (context instanceof IAddContext && context.getNewObject() instanceof Assign ) {\n\t\t\treturn new AddAssignFeature(this);\n\t\t}else if(context instanceof IAddContext && context.getNewObject() instanceof Receive){\n\t\t\treturn new AddReceiveFeature(this);\n\t\t}\n\t\treturn super.getAddFeature(context);\n\t}", "title": "" }, { "docid": "8a8336aeb5196210a1aba7b971c47f42", "score": "0.5592785", "text": "public DocRef() {\n }", "title": "" }, { "docid": "d8bc395d8acc7e7821cfde0583c3c50f", "score": "0.55684423", "text": "protected ObjectRef() {}", "title": "" }, { "docid": "c7d3b73ac143c9dba53030392689db07", "score": "0.5565444", "text": "public Properties internalFeatures(Properties features) {\n return features;\n }", "title": "" }, { "docid": "ab3ca9895226a2c338a099ea7c1d389b", "score": "0.55596507", "text": "public net.opengis.gml.x32.ClothoidType.RefLocation addNewRefLocation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.ClothoidType.RefLocation target = null;\n target = (net.opengis.gml.x32.ClothoidType.RefLocation)get_store().add_element_user(REFLOCATION$0);\n return target;\n }\n }", "title": "" }, { "docid": "00ffc9b83ce35bd6c1c21ec7d54d78a9", "score": "0.5542881", "text": "public static final URIReferenceFactory create() {\n return new URIReferenceFactory();\n }", "title": "" }, { "docid": "a5ea02f21dca505cc2f81a3fdb05852e", "score": "0.5535464", "text": "public Result setFeature(Feature feature);", "title": "" }, { "docid": "4609379b6514696a5f2ed904beca2c64", "score": "0.5518675", "text": "public String getFeature() { return feature; }", "title": "" }, { "docid": "d5550521ddc7b5a255a152c68b7f40dc", "score": "0.5508096", "text": "public ColorFeature getColorFeature() {\n return colorFeature;\n }", "title": "" }, { "docid": "4581c50bb1607cede6abde6d52944fe1", "score": "0.5506601", "text": "com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder();", "title": "" }, { "docid": "3891500c91ebd87b291c6751dfdd5dc8", "score": "0.5482476", "text": "static Reference createReference(Object obj) {\n return createReference(obj, false);\n }", "title": "" }, { "docid": "b4fdffbb61f66cedeb024a8eddb1b713", "score": "0.54749775", "text": "public static FeSingleRef make(FeEdition material, FeWork workContext, FeWork originalContext, FePath pathContext) {\n\tFeEdition result;\n\tif (material == null && (workContext == null && (originalContext == null && (pathContext == null)))) {\n\t\tthrow new AboraRuntimeException(AboraRuntimeException.MUST_SUPPLY_SOME_HYPER_REF_INFORMATION);\n\t}\n\tif (originalContext != null && (((BeWork) originalContext.fetchBe()).fetchEditClub() != null)) {\n\t\tthrow new AboraRuntimeException(AboraRuntimeException.ORIGINAL_CONTEXT_MUST_BE_FROZEN);\n\t}\n\tresult = FeEdition.empty(SequenceSpace.make());\n\tif (workContext != null) {\n\t\tresult = result.with((Sequence.string(\"HyperRef:WorkContext\")), workContext);\n\t}\n\tif (originalContext != null) {\n\t\tresult = result.with((Sequence.string(\"HyperRef:OriginalContext\")), originalContext);\n\t}\n\tif (material != null) {\n\t\tresult = result.with((Sequence.string(\"HyperRef:Excerpt\")), material);\n\t}\n\tif (pathContext != null) {\n\t\tresult = result.with((Sequence.string(\"HyperRef:PathContext\")), pathContext.edition());\n\t}\n\treturn construct(result);\n/*\nudanax-top.st:24452:FeSingleRef class methodsFor: 'creation'!\n{FeSingleRef CLIENT} make: material {FeEdition | NULL}\n\twith: workContext {FeWork default: NULL}\n\twith: originalContext {FeWork default: NULL}\n\twith: pathContext {FePath default: NULL}\n\t\"Make a new SingleRef. At least one of the parameters must be non-NULL. The originalContext, if supplied, must be a frozen Work.\"\n\t\n\t| result {FeEdition} |\n\t(material == NULL and: [workContext == NULL\n\t\t\tand: [originalContext == NULL and: [pathContext == NULL]]])\n\t\tifTrue: [Heaper BLAST: #MustSupplySomeHyperRefInformation].\n\t(originalContext ~~ NULL\n\t\t\tand: [(originalContext fetchBe cast: BeWork) fetchEditClub ~~ NULL])\n\t\tifTrue: [Heaper BLAST: #OriginalContextMustBeFrozen].\n\tresult := FeEdition empty: SequenceSpace make.\n\tworkContext ~~ NULL ifTrue:\n\t\t[result := result with: (Sequence string: 'HyperRef:WorkContext')\n\t\t\twith: workContext].\n\toriginalContext ~~ NULL ifTrue:\n\t\t[result := result with: (Sequence string: 'HyperRef:OriginalContext')\n\t\t\twith: originalContext].\n\tmaterial ~~ NULL ifTrue:\n\t\t[result := result with: (Sequence string: 'HyperRef:Excerpt')\n\t\t\twith: material].\n\tpathContext ~~ NULL ifTrue:\n\t\t[result := result with: (Sequence string: 'HyperRef:PathContext')\n\t\t\twith: pathContext edition].\n\t^self construct: result!\n*/\n}", "title": "" }, { "docid": "ffdcbf21bc5d3188495b1ef9b8dd7a43", "score": "0.5471782", "text": "public String getFeatureUri() {\n return featureUri;\n }", "title": "" }, { "docid": "cf03b923c8964d41cb3aeb5ec25bd83a", "score": "0.5469757", "text": "public FeatureInfo getFeatureInfo() {\n return featureInfo;\n }", "title": "" }, { "docid": "822be4040909c13bebef70c156e11636", "score": "0.5448729", "text": "public void createReferenceClass(Object obj, String classType){\n }", "title": "" }, { "docid": "96e4cf1af09da4127d5756c14140e7ac", "score": "0.54363555", "text": "public RealFeatureAttribute asReal() {\n return null;\n }", "title": "" }, { "docid": "1947c514953ac1ab06cbb3e9bd753c95", "score": "0.5434275", "text": "public static ReferenceFactory getReferenceFactory () {\n if(instance == null) {\n synchronized(ReferenceFactory.class) {\n instance = new ReferenceFactory();\n }\n }\n \n return instance;\n }", "title": "" }, { "docid": "ff9e9c51970b8750adaf2909e96ed8cd", "score": "0.54142725", "text": "public FeatureCollection getFeatures() {\n return features;\n }", "title": "" }, { "docid": "aefccb909a05eca65043e790f9213c5d", "score": "0.5410339", "text": "private static GisFeature createGisFeature(Geometry finalPoint, String gisGeometryType, Properties properties) {\n String source = \"MERGE\";\n String destination = \"MERGE\";\n String timestamp = \"MERGE\";\n String createLat = \"MERGE\";\n String createLon = \"MERGE\";\n String geometryType = gisGeometryType;\n\n Coordinate[] coordinates = finalPoint.getCoordinates();\n List<GISCoordinate> gisCoordinates = new ArrayList<GISCoordinate>();\n for(Coordinate coordinate:coordinates) {\n gisCoordinates.add(new GISCoordinate(coordinate.x, coordinate.y, \"EPSG:4326\"));\n }\n\n return new GisFeature(source, timestamp, destination, createLat, createLon,\n geometryType, gisCoordinates, properties);\n }", "title": "" }, { "docid": "2ff65d4b4b4e201abdd9703461ee391d", "score": "0.5408693", "text": "public String getRef();", "title": "" }, { "docid": "8999dc73c27aaa88de19f257786ea8b3", "score": "0.5383391", "text": "private SyntaxFeatureFactory() { }", "title": "" }, { "docid": "c8b752a7d5ed763fbc627c0acb26bcfa", "score": "0.53671503", "text": "public static GetFeature create( String id, Element root )\n throws OGCWebServiceException {\n GetFeatureDocument doc = new GetFeatureDocument();\n doc.setRootElement( root );\n GetFeature request;\n try {\n request = doc.parse( id );\n } catch ( Exception e ) {\n LOG.logError( e.getMessage(), e );\n throw new OGCWebServiceException( \"GetFeature\", e.getMessage() );\n }\n return request;\n }", "title": "" }, { "docid": "dadc7b22878e964cb5d791b5b7127675", "score": "0.53593314", "text": "@Test\n public void testHasRef() {\n System.out.println(\"hasRef\");\n AreaAtividade a = new AreaAtividade(\"1\", \"Frontend\", \"Javascript\");\n CompetenciaTecnica c1 = new CompetenciaTecnica(\"1\", \"Javascript\", \"Desenvolvimento aplicacoes em javascript usando react.js\", a);\n CaraterCT cCT = new CaraterCT(\"Webdev\", \"1\", 1, \"1\");\n List<CaraterCT> lCT = new ArrayList<>(); \n CategoriaTarefa ct = new CategoriaTarefa(\"Webdev\", a, lCT);\n Colaborador c = new Colaborador(\"Jose\", \"918273645\", \"jose@mindera.pt\");\n String ref = \"123457\";\n Tarefa instance = new Tarefa(ref, \"Frontend development\", \"Desenvolvimento de aplicacoes web\", \"html, css, javascript\", 21, 200.0, ct, c);\n boolean expResult = true;\n boolean result = instance.hasRef(ref);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "698a81d4a6298debae0237bbc511de82", "score": "0.5353512", "text": "public FeatureDefinition(String name, String value){\r\n\t\tthis.name = name;\r\n\t\tthis.value = value;\r\n\t}", "title": "" }, { "docid": "0190ec67e74fc7c1dd0f216f363139a4", "score": "0.53390276", "text": "public Feature duplicate ()\n throws ReadOnlyException {\n uk.ac.sanger.artemis.io.Feature new_embl_feature =\n new EmblStreamFeature (getEmblFeature ());\n\n final Feature return_feature = new Feature (new_embl_feature);\n\n try {\n getEntry ().add (return_feature, false);\n } catch (EntryInformationException e) {\n throw new Error (\"internal error - unexpected exception: \" + e);\n } catch (OutOfRangeException e) {\n throw new Error (\"internal error - unexpected exception: \" + e);\n }\n\n return return_feature;\n }", "title": "" }, { "docid": "1f531cc7ac6c282fceb2cc4f1603a0dc", "score": "0.5336753", "text": "public static void createIntersectionFeatures(){\n }", "title": "" }, { "docid": "dad50aefda4c7792a52310199b985902", "score": "0.5322459", "text": "FeatureDescriptor(FeatureDescriptor x, FeatureDescriptor y) {\n expert = x.expert | y.expert;\n hidden = x.hidden | y.hidden;\n preferred = x.preferred | y.preferred;\n name = y.name;\n shortDescription = x.shortDescription;\n if (y.shortDescription != null) {\n shortDescription = y.shortDescription;\n }\n displayName = x.displayName;\n if (y.displayName != null) {\n displayName = y.displayName;\n }\n classRef = x.classRef;\n if (y.classRef != null) {\n classRef = y.classRef;\n }\n addTable(x.table);\n addTable(y.table);\n }", "title": "" }, { "docid": "c17d453e765406314214f214c9323e39", "score": "0.5322285", "text": "public static FeSingleRef construct(FeEdition edition) {\n\tspec().endorse(edition);\n\treturn (FeSingleRef) (makeWrapper(edition));\n/*\nudanax-top.st:24435:FeSingleRef class methodsFor: 'private: wrapping'!\n{FeSingleRef} construct: edition {FeEdition}\n\t\"Create a new wrapper and endorse it\"\n\t\n\tself spec endorse: edition.\n\t^(self makeWrapper: edition) cast: FeSingleRef!\n*/\n}", "title": "" }, { "docid": "1fd9e6ea5f4da72791e5b874bd0b4669", "score": "0.5316209", "text": "public FeatureVector() {\n features = new FVector();\n labels = new FVector();\n weight = 1;\n }", "title": "" }, { "docid": "4588d2ef1e96da8f727107745a74e509", "score": "0.5296462", "text": "public Object clone() {\n FeatureVector clone = new FeatureVector();\n clone.features = (FVector) features.clone();\n clone.labels = (FVector) labels.clone();\n clone.weight = weight;\n return clone;\n }", "title": "" }, { "docid": "e666a31b638c8294bf9e5f436b6335c4", "score": "0.5291838", "text": "@Fluent\npublic interface Feature extends\n Indexable,\n HasId,\n HasInnerModel<FeatureResultInner>,\n HasName {\n\n /**\n * @return the type of the feature\n */\n String type();\n\n /**\n * @return the state of the previewed feature\n */\n String state();\n\n /**\n * @return the resource provider namespace of the feature\n */\n String resourceProviderName();\n\n /**\n * @return the name of the feature\n */\n String featureName();\n}", "title": "" }, { "docid": "14d27e5b8bc49130156cd13bd992a336", "score": "0.52915317", "text": "IFeatureExtraction getFeatureExtraction();", "title": "" }, { "docid": "7ce8d965eb190bac210eb763b9679090", "score": "0.5278939", "text": "@Override\n\tpublic INativeType Ref() {\n\t\treturn new NativeReferenceType(this);\n\t}", "title": "" }, { "docid": "d418f7852782676961ce6e8be091d425", "score": "0.5267344", "text": "public static MarkRecorderRef newRef() {\n ThreadRef threadRef = ThreadRef.newRef(null);\n return new MarkRecorderRef(markRecorderAlloc.getAndIncrement(), new ThreadRefInfo(threadRef));\n }", "title": "" }, { "docid": "deedab491d98422d10e446d4a3ac3d01", "score": "0.5257893", "text": "protected ModelElement_1_0 getFeatureDef(\n String typeName,\n String featureName)\n throws ServiceException {\n return ControlObjects_2.isControlObjectType(typeName) ? null : model.getFeatureDef(\n model.getElement(typeName),\n featureName,\n false // includeSubtypes\n );\n }", "title": "" }, { "docid": "fc6d1ec6a78bba1b126da94e298b1466", "score": "0.5254026", "text": "public InteriorFeature(String interiorFeature) {\n this.interiorFeature = interiorFeature;\n }", "title": "" }, { "docid": "417272d5d3bb13b9db744cd0e37ce27e", "score": "0.5253519", "text": "public static FeSingleRef make(FeEdition material, FeWork workContext) {\n\treturn make(material, workContext, null, null);\n/*\nudanax-top.st:24510:FeSingleRef class methodsFor: 'smalltalk: defaults'!\n{FeSingleRef CLIENT} make: material {FeEdition | NULL}\n\twith: workContext {FeWork default: NULL}\n\t\"Make a new SingleRef. At least one of the parameters must be non-NULL. The originalContext, if supplied, must be a frozen Work.\"\n\t^self make: material with: workContext with: NULL with: NULL!\n*/\n}", "title": "" }, { "docid": "72931411aa7eda88dab1de25e9fd8cb9", "score": "0.5244571", "text": "public static FeSingleRef make(FeEdition material) {\n\treturn make(material, null, null, null);\n/*\nudanax-top.st:24505:FeSingleRef class methodsFor: 'smalltalk: defaults'!\n{FeSingleRef CLIENT} make: material {FeEdition | NULL}\n\t\"Make a new SingleRef. At least one of the parameters must be non-NULL. The originalContext, if supplied, must be a frozen Work.\"\n\t^self make: material with: NULL with: NULL with: NULL!\n*/\n}", "title": "" }, { "docid": "c14827264ed4731dd0e1285ef145c4b2", "score": "0.52351785", "text": "public DefaultFeatureCombinedGeometryBuilderData()\r\n {\r\n myBDList = New.linkedList();\r\n }", "title": "" }, { "docid": "2eb91deb6cd896281ffe544d9a2d5da3", "score": "0.5229884", "text": "public interface FeatureSet {\n\n /**\n * @return the name of the feature set\n */\n String name();\n\n /**\n * Parse and build lucene queries from the features in this set\n *\n * @param context the LtRQuery context on which the lucene queries are going to be build on\n * @param params additional parameters to be used in the building of the lucene queries\n * @return the list of queries build for the current feature-set and the given parameters\n */\n List<Query> toQueries(LtrQueryContext context, Map<String, Object> params);\n\n /**\n * Retrieve feature ordinal by its name.\n * If the feature does not exist the behavior of this method is\n * undefined.\n *\n * @param featureName the name of the feature to retrieve its ordinal position\n * @return the ordinal of the given feature in the current set\n */\n int featureOrdinal(String featureName);\n\n /**\n * Retrieve feature by its ordinal.\n * May produce unexpected results if called with unknown ordinal\n *\n * @param ord the ordinal place of the feature to retrieve\n * @return the feature at the given ordinal position\n */\n Feature feature(int ord);\n\n /**\n * Access a feature by its name.\n * May produce unexpected results if called with unknown feature\n *\n * @param featureName the name of the feature to retrieve\n * @return the feature found with the given name\n */\n Feature feature(String featureName);\n\n /**\n * Check if this set supports this feature\n *\n * @param featureName the name of the feature check\n * @return true if supported false otherwise\n */\n boolean hasFeature(String featureName);\n\n /**\n * @return the number of features in the set\n */\n int size();\n\n default FeatureSet optimize() {\n return this;\n }\n\n default void validate() {\n }\n}", "title": "" }, { "docid": "c0eb4b58f8a81a9b8e4c0c0818805c1a", "score": "0.5223998", "text": "public pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder getRefBuilder() {\n \n onChanged();\n return getRefFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "3a38ea7c26b15aa444de7659276ca662", "score": "0.52234054", "text": "ElementTypeReference createElementTypeReference();", "title": "" }, { "docid": "7409aaeb91fe4ff560b764a1a8884f84", "score": "0.52211106", "text": "public Obj getSDFObj() {\n/* 194 */ return Obj.__Create(this.a, this.b);\n/* */ }", "title": "" }, { "docid": "34edd8092231dcfbb4d0f4b423cf5e80", "score": "0.52193636", "text": "public Obj getSDFObj() {\n/* 488 */ return Obj.__Create(this.a, this.b);\n/* */ }", "title": "" }, { "docid": "1be2babb597eafc82a427e005ada8592", "score": "0.52130944", "text": "public String getFeature() {\n return this.interiorFeature;\n }", "title": "" }, { "docid": "94921f84c2d3570276f68518151104ab", "score": "0.52129793", "text": "public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}", "title": "" }, { "docid": "c1d1403ea05be7d783ab3afa6f0200b6", "score": "0.5211126", "text": "public interface Ref {\n}", "title": "" }, { "docid": "f372aa303788abe78e8d5d839c641d2f", "score": "0.52043205", "text": "public native Feature readFeature(java.lang.Object source, @Nullable Options opt_options);", "title": "" }, { "docid": "0a006b5783720c2bf3d9cff4a21e62a8", "score": "0.5192091", "text": "Feature feature(int ord);", "title": "" }, { "docid": "f8a7d15b8f3d28e3a358b29504cb11b9", "score": "0.51914173", "text": "public FeaturePrototypeReferenceElements getFeaturePrototypeReferenceAccess() {\n\t\treturn pFeaturePrototypeReference;\n\t}", "title": "" }, { "docid": "a28e4ec0c3198383e757e5990a5c017f", "score": "0.5172435", "text": "public ArrayList getFeatures(){\n return _features;\n }", "title": "" }, { "docid": "999a5d45572a42c453963e73d9af0c16", "score": "0.51721424", "text": "YAnnotEntity getEntityref();", "title": "" }, { "docid": "8cbaccf3a99effc094e342591c4dba76", "score": "0.5170876", "text": "protected final MethodSpec newGetRef(String varName) {\n var getter = MethodSpec.methodBuilder(\"get\" + capitalize(varName) + \"Reference\")\n .addModifiers(context.publicFinalModifiers())\n .returns(Object.class);\n getter.addStatement(\"return $L.get(this)\", varHandleName(varName));\n return getter.build();\n }", "title": "" }, { "docid": "e25c3afca0d00f27bd8f4db2fea79493", "score": "0.51682574", "text": "public static FeSingleRef make(FeEdition material, FeWork workContext, FeWork originalContext) {\n\treturn make(material, workContext, originalContext, null);\n/*\nudanax-top.st:24516:FeSingleRef class methodsFor: 'smalltalk: defaults'!\n{FeSingleRef CLIENT} make: material {FeEdition | NULL}\n\twith: workContext {FeWork default: NULL}\n\twith: originalContext {FeWork default: NULL}\n\t\"Make a new SingleRef. At least one of the parameters must be non-NULL. The originalContext, if supplied, must be a frozen Work.\"\n\t^self make: material with: workContext with: originalContext with: NULL!\n*/\n}", "title": "" }, { "docid": "3e5fb0723fb6b840926f4806887ebfa0", "score": "0.5165359", "text": "EClassifierReference getEClassifierReference(QualifiedName name);", "title": "" }, { "docid": "2595a6f19bc1da4242128a2236394f75", "score": "0.5159944", "text": "public Frog obtain() {\n return newObject();\n }", "title": "" }, { "docid": "a62b18ebc360a6ad5fd67ae3b8571072", "score": "0.5152301", "text": "JQGradientsLinearFeature getGradientFeature();", "title": "" }, { "docid": "17621dd1e5ddd5c2cd67822b473c8147", "score": "0.5138428", "text": "public Intersection(SimpleFeature intersectionFeature, AttributeGetter getter) {\n this.point = (Point) intersectionFeature.getDefaultGeometry();\n this.attGet = getter;\n this.transectId = (Integer) attGet.getValue(TRANSECT_ID_ATTR, intersectionFeature);\n this.distance = (Double) attGet.getValue(DISTANCE_ATTR, intersectionFeature);\n this.feature = intersectionFeature;\n }", "title": "" }, { "docid": "585659b51a524c151de0c93d31246dbf", "score": "0.51382923", "text": "DSL_REF createDSL_REF();", "title": "" }, { "docid": "43aeb4b926b1cad98221e1d6f3f87060", "score": "0.51222545", "text": "protected ReferenceImpl() {\n }", "title": "" }, { "docid": "4d6976049e5510d490a3da806cf33726", "score": "0.51203334", "text": "EReference getFakeRulesFeature() {\n\t\tif (fakeRulesFeature==null) {\n\t\t\tfakeRulesFeature = EcoreFactory.eINSTANCE.createEReference();\n\t\t\t((EReferenceImpl) fakeRulesFeature).setName(\"rules\");\n\t\t\t((EReferenceImpl) fakeRulesFeature).setFeatureID(FAKE_RULES_FEATURE_ID);\n\t\t\t((EReferenceImpl) fakeRulesFeature).setEType(getRule());\n\t\t\t((EReferenceImpl) fakeRulesFeature).setUpperBound(-1);\n\t\t}\n\t\treturn fakeRulesFeature;\t\t\n\t}", "title": "" }, { "docid": "25849d650a3982339a0ada6ca1bb64d5", "score": "0.5119975", "text": "public void addFeature(Feature f) {\n features.add(f);\n realCache = null;\n }", "title": "" }, { "docid": "d5124a9af81b5127b461533fbcb601ae", "score": "0.5118659", "text": "public Feature(String name, FeatureType type, boolean nillable) {\n super(name, org.geotools.feature.Feature.class, nillable);\n this.featureType = type;\n }", "title": "" }, { "docid": "e3dce35577116dc2604b77b2830bb810", "score": "0.51170987", "text": "DataTypeReference createDataTypeReference();", "title": "" }, { "docid": "0d287b960ab8b545003ed11266fc26b9", "score": "0.51154745", "text": "public ReferenceDataProvider getRefDataProvider() {\n return _refDataProvider;\n }", "title": "" }, { "docid": "36f3611d3042f8dee90d9fa9ae32f893", "score": "0.5102007", "text": "private Features() {\n // This is intentionally left empty.\n }", "title": "" }, { "docid": "f971f202782c9877e62d214a09edacb2", "score": "0.50952154", "text": "public LanguageFeature() {\n\n\t}", "title": "" }, { "docid": "b3eae36754a09489e322dd858d3864e3", "score": "0.5092512", "text": "public Content getRefContent();", "title": "" }, { "docid": "2f53c4f492d30a9daeb8afbaa189bd46", "score": "0.50681853", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> \n getRefFieldBuilder() {\n if (refBuilder_ == null) {\n refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder>(\n getRef(),\n getParentForChildren(),\n isClean());\n ref_ = null;\n }\n return refBuilder_;\n }", "title": "" }, { "docid": "274a16d4aa62333242dd7b21ee1f0fec", "score": "0.5063358", "text": "public Builder addFeature(Supplier<? extends HttpFeature> feature) {\n HttpFeature httpFeature = feature.get();\n features.add(httpFeature);\n httpFeature.setup(this);\n return this;\n }", "title": "" }, { "docid": "4711a2ef4e0137cc2d40a8d121b54d94", "score": "0.50613546", "text": "java.lang.String getRef();", "title": "" }, { "docid": "fb427703c8674ef31fd007c509558d89", "score": "0.50583416", "text": "public void setFeature(String feature) {\n this.interiorFeature = feature;\n }", "title": "" }, { "docid": "7bc3f1fb2eb825c9682584b4a4829c53", "score": "0.5057919", "text": "public ObjectifyFactory getFactory()\n\t{\n\t\treturn this.factory;\n\t}", "title": "" }, { "docid": "6a0fad7553868dd9551c79012c5bbf21", "score": "0.5056657", "text": "public static MarkRecorderRef newRef(ThreadInfo threadInfo) {\n return new MarkRecorderRef(markRecorderAlloc.getAndIncrement(), threadInfo);\n }", "title": "" } ]
646bf408500757d4ecb8828a17cbb8da
<< define FldINFASTPOutput1 39
[ { "docid": "b47e40a8156a7d49274e9c94fc4db2f1", "score": "0.6427433", "text": "public static Object $$$FldINFASTPOutput1(mContext m$) {\n return (39);\n }", "title": "" } ]
[ { "docid": "d34bbb6bb4ceff0c30d2785429262a8d", "score": "0.57444364", "text": "public static Object $$$FldINAUFPXLOutput1(mContext m$) {\n return (39);\n }", "title": "" }, { "docid": "88df6379cf763120ec203f70ff347918", "score": "0.5739907", "text": "float getOut();", "title": "" }, { "docid": "ba13894786f571f02f223bba683969cc", "score": "0.57317847", "text": "public void mo25046i() {\n this.f16571n = 0;\n }", "title": "" }, { "docid": "642bbb4f478c1fa86b1c936185bc72d0", "score": "0.57222605", "text": "public static Object $$$FldINAUFPOutput1(mContext m$) {\n return (39);\n }", "title": "" }, { "docid": "8552c4723297d556bb9ee16848b831cf", "score": "0.563607", "text": "float mo515b();", "title": "" }, { "docid": "a892011991a79f9c65d7a9473a1e0eb8", "score": "0.5631599", "text": "float next(float in)\r\n \r\n\t{\r\n\t\t//setPin13High();\r\n\t\tbuf0 = buf0+(((in - buf0)+(fb*buf0-buf1)) * f );\r\n //buf0+=fxmul(((in - buf0) + fxmul(fb, buf0-buf1)), f);\r\n\t\tbuf1 = buf1 + ((buf0-buf1) * f);\r\n //buf1+=ifxmul(buf0-buf1, f); // could overflow if input changes fast\r\n\t\t//setPin13Low();\r\n\t\treturn buf1;\r\n\t}", "title": "" }, { "docid": "065db8b752aa187d2680e950841c9da5", "score": "0.55476606", "text": "void mo24122a(@C5937f C12268f fVar);", "title": "" }, { "docid": "3ce43f4db762ec8604a820f15b6ed129", "score": "0.5531797", "text": "public void mo7977i() {\n this.f5745b = true;\n }", "title": "" }, { "docid": "59cf37445e11c50c92a5ffc361bb9298", "score": "0.54838514", "text": "public static Object $$$StrINFASTPOutput1(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INFASTP\",39));\n }", "title": "" }, { "docid": "99c8c97bbfdf271d428dc4f1b216fc24", "score": "0.54203856", "text": "public void mo19072a() {\n this.f9328f = true;\n }", "title": "" }, { "docid": "7fac69b80fbf4ff46819c1e668e75adf", "score": "0.5412919", "text": "public short getSpeed() {return spd;}", "title": "" }, { "docid": "5595da2fffb4e18b76b542d4ebe30fc9", "score": "0.5393644", "text": "public void mo25044g() {\n this.f16570m = true;\n }", "title": "" }, { "docid": "2034ff5f1c32477eef072256127946c2", "score": "0.5392372", "text": "void mo4993f(C0970h hVar);", "title": "" }, { "docid": "9046364e1509b507fe7fc6fbb0496163", "score": "0.5354011", "text": "void mo514a(C0444a c0444a, float f, float f2, float f3, float f4);", "title": "" }, { "docid": "9b7fe0f6a1ec2b7ccf9aea3d6dc55cf5", "score": "0.5352465", "text": "void mo41619b(C12820l lVar);", "title": "" }, { "docid": "a46bb9a401ae1f144c9a6d9a01aeb450", "score": "0.53498304", "text": "void mo3357a(C1892f fVar);", "title": "" }, { "docid": "bb1669324c0e139db3afaa15ecb54802", "score": "0.5341258", "text": "void mo75230F();", "title": "" }, { "docid": "510329c1c035802e61a64d541d5af499", "score": "0.5330298", "text": "C0126V mo16825ui();", "title": "" }, { "docid": "008e47df24cf90b404d9fdca38668d10", "score": "0.5325758", "text": "C7481g1 mo25070O();", "title": "" }, { "docid": "e30a53b730483586dd43f89b1408a2b0", "score": "0.5320846", "text": "public void mo3774g() {\n this.f2933b = 2;\n }", "title": "" }, { "docid": "c846dcf56bd49d79d4b4172d1ee3af6c", "score": "0.53161573", "text": "public int mo25440D() {\n return this.f15133w;\n }", "title": "" }, { "docid": "43d1a03d6cf6fa3d71f32e5a4574bed3", "score": "0.52907634", "text": "public static Object $$$FldINAUFPTOutput1(mContext m$) {\n return (39);\n }", "title": "" }, { "docid": "b2bd17c433d2b84ac92f09989137d935", "score": "0.52823", "text": "public void runFX15(){\r\n delayTimer = v[(opcode & 0xF00) >> 8];\r\n }", "title": "" }, { "docid": "e351454800750f4d7c1deee5f4718556", "score": "0.5272163", "text": "public float getAmplitude() {\n/* 70 */ return this.amplitude;\n/* */ }", "title": "" }, { "docid": "0fa7407bb90ae0807f85cee1e31c5a9f", "score": "0.52666897", "text": "public void mo117c() {\n this.f450b = true;\n }", "title": "" }, { "docid": "4717be8b9677e631db38b22ea7acdad2", "score": "0.526016", "text": "private void m3215f() {\n C4016h hVar = this.f3245o;\n if (hVar != null) {\n hVar.mo56532e().edit().putBoolean(f3236a, this.f3250t).apply();\n }\n }", "title": "" }, { "docid": "29bf051a1b6320ea1b4c1b93ad5a559b", "score": "0.52574855", "text": "public int mo25445I() {\n return this.f15086B;\n }", "title": "" }, { "docid": "22907a80b7e2042bfefcefc596b93127", "score": "0.52545476", "text": "public int mo25485l() {\n return this.f15103S;\n }", "title": "" }, { "docid": "078a6a4eafb40b05791a7a9267e15e17", "score": "0.5250562", "text": "public void mo19078b() {\n this.f9328f = false;\n }", "title": "" }, { "docid": "6d52252567d20db11e0fd4ce47ee07ca", "score": "0.5247181", "text": "private void m77823v() {\n this.f62594m = this.f62586e;\n }", "title": "" }, { "docid": "55323f2e88f5cd44f99faea877701cec", "score": "0.5247014", "text": "void mo41612a(C12820l lVar);", "title": "" }, { "docid": "544f0e0a61e30b7c91f195aa8d731a70", "score": "0.5236124", "text": "public int mo25473f() {\n return this.f15130t;\n }", "title": "" }, { "docid": "ce4df8c32c4a4717b3f159579533e051", "score": "0.52338517", "text": "C2375o8(int i) {\n this.f4167g = i;\n }", "title": "" }, { "docid": "9d52f23c6006f54fc42888c408a8d50a", "score": "0.52313834", "text": "public void mo126f() {\n this.f451a = true;\n }", "title": "" }, { "docid": "3aa94fe93516e8f545bd903219e9e1ba", "score": "0.52028257", "text": "public void mo3479a(C0853f fVar) {\n }", "title": "" }, { "docid": "70a2fbca443fabce8258d8f52c95a814", "score": "0.51921904", "text": "private void iorwf(int d, int f) \n\t{\n\t\tint w_in = ctr.getMemory().get_WREGISTER();\n\t\tint f_in = ctr.getMemory().get_Memory(f);\n\t\t\n\t\tint result = w_in | f_in;\n\n\t\tctr.checkZeroFlag(result);\n\t\t\n\t\tif(d == 0)\n\t\t{\n\t\t\tctr.getMemory().set_WREGISTER(result);\n\t\t}else if(d == 1) \n\t\t{\n\t\t\tctr.getMemory().set_SRAM(f, result);\n\t\t}\n\t\tthis.ctr.incPC();\n\t}", "title": "" }, { "docid": "81decec4946c9de7b2dd7d4cd2ee5c91", "score": "0.51855326", "text": "void mo43390a(float f);", "title": "" }, { "docid": "3b5fb4781aea65fcb31d1be75c75b2f0", "score": "0.5183697", "text": "public void mo28365i() {\n this.f10984g = -1;\n }", "title": "" }, { "docid": "834b4561959b9e441fd34c6a11a44937", "score": "0.51819164", "text": "public void runFX1E(){\r\n i = (v[(opcode & 0xF00) >> 8] + i) & 0xFFF;\r\n }", "title": "" }, { "docid": "9a7182d7e40ed93c1e4172d913734224", "score": "0.5173365", "text": "public abstract void mo10a(C0116f fVar, T t);", "title": "" }, { "docid": "ef2ce51895f922f3b0588fa2a5d416e6", "score": "0.51731247", "text": "public void runFX29(){\r\n i = v[(opcode & 0xf00) >> 8] * 5;\r\n }", "title": "" }, { "docid": "0c1377f1121d0ec11e54bf68c7c54d94", "score": "0.5168355", "text": "C0126V mo16824io();", "title": "" }, { "docid": "731e19d5e76aec3aa5ef9e59acd73069", "score": "0.51666176", "text": "public int mo3784b() {\n return this.f4346b;\n }", "title": "" }, { "docid": "6a081045bd0b283cb345ab7acc26ae64", "score": "0.5157577", "text": "void mo12913f();", "title": "" }, { "docid": "1d8605db219d3c37bdc4a4762b31fd42", "score": "0.51553065", "text": "public int mo25042f() {\n return 2;\n }", "title": "" }, { "docid": "4d85034441e82eebba119d10b95db726", "score": "0.51455003", "text": "private void movwf(int f) \n\t{\n\t\tint in = ctr.getMemory().get_WREGISTER();\n\t\tctr.getMemory().set_SRAM(f, in);\n\t\tthis.ctr.incPC();\n\t}", "title": "" }, { "docid": "11ed71becb4c6bd71fe12840591cff71", "score": "0.5142895", "text": "public void mo8281x2() {\n this.f1635W4.o();\n }", "title": "" }, { "docid": "c2e17cf9f1354915af7e161182dbd357", "score": "0.5137959", "text": "public long mo9117b() {\n return this.f1217i;\n }", "title": "" }, { "docid": "46b3a5394e44499b16b51b22db97d244", "score": "0.5130196", "text": "public static Object $$$FldINFASTPItemLevelParameter(mContext m$) {\n return (20);\n }", "title": "" }, { "docid": "1bb9caa7fed9e7f29ffb50cf493f9edc", "score": "0.5128966", "text": "public void setSpeed(short spd) {this.spd = spd;}", "title": "" }, { "docid": "a3ee8d8219b5263f445bc1433bd9f21b", "score": "0.51199234", "text": "private USI_MOVD() {}", "title": "" }, { "docid": "44f45c5f7a6977e3091d2179482fbbdb", "score": "0.51183784", "text": "public int mo3498c() {\n return this.f2738C;\n }", "title": "" }, { "docid": "77d825ee480cf635787053a49da77be1", "score": "0.51079816", "text": "public Looper mo13122g() {\n return this.f9478f;\n }", "title": "" }, { "docid": "e5c2b5b0b705bcc86d0f4f3a1783b927", "score": "0.5106953", "text": "public interface UConst extends processing.core.PConstants {\n public static final int NOCOPY=1,NODUPL=2;\n \n /**\n * Version identifier for this release of the Modelbuilder library\n */\n public static final String CREDIT=\"Marius Watz - http://workshop.evolutionzone.com/\";\n public static final String TIMESTR=\"%2d:%2d:%2d\";\n public final static String VERSION = \"ModelbuilderMk2-0002c\";\n public final static String FSTRXYZ=\"<%s,%s,%s>\";\n public final static String FSTRXY=\"<%s,%s>\";\n \n public static final float EPSILON=0.0001f;\n public static final float UNAN=Float.MIN_VALUE+1;\n \n public static final int KB=1024,MB=KB*KB;\n public static final int XY=0,XZ=1,YZ=2;\n public static final int SECONDMSEC=1000;\n public static final int MINUTEMSEC=60*SECONDMSEC;\n public static final int HOURMSEC=60*MINUTEMSEC;\n public static final int DAYMSEC=24*HOURMSEC;\n \n public static final int XYZ=0,XZY=1;\n public static final int YZX=2, YXZ=3,ZXY=5, ZYX=6;\n\n public static final char TAB='\\t',COMMA=',',SPACE=' ',ZERO='0';\n public static final char DIRCHAR='/',DIRCHARDOS='\\\\',NEWLN='\\n'; \n public static final String DIRSTR=\"/\",DIRSTRDOS=\"\\\\\",NULLSTR=\"null\",DOTSTR=\".\"; \n public static final String ENCLSQ=\"[]\",ENCLTAG=\"<>\";\n public static final String LOGDIVIDER=\"------\";\n public static final String LOGDIVIDERNEWNL=\"------------------\";\n \n public static final String UGEO=\"UGEO\",UVERTEXLIST=\"UVL\",UVERTEX=\"UV\",UFACE=\"UF\";\n public static final int SMOOTHSTEP=0;\n \n public static final float PTCM=72f/2.54f,PTMM=72f/25.4f,PTINCH=72f;\n \n public static final int VID4KW=3840,VID4H=2160;\n public static final int VID1080PW=1920,VID1080PH=1080;\n public static final int VID720PW=1280,VID720PH=720;\n public static final int VIDWQXGAW=2560,VIDWQXGAH=1600;\n \n public static final int COLORVERTEX=8,COLORFACE=4;\n public static final int SMOOTHMESH=16;\n\n public static final int SUBDIVCENTROID=0,SUBDIVMIDEDGES=1;\n \n //////////////////////////////////////////////////\n // Import constants from java.awt.event.KeyEvent\n \n public static int KEY_ENTER = java.awt.event.KeyEvent.VK_ENTER;\n public static int KEY_BACK_SPACE = java.awt.event.KeyEvent.VK_BACK_SPACE;\n public static int KEY_TAB = java.awt.event.KeyEvent.VK_TAB;\n public static int KEY_CANCEL = java.awt.event.KeyEvent.VK_CANCEL;\n public static int KEY_CLEAR = java.awt.event.KeyEvent.VK_CLEAR;\n public static int KEY_SHIFT = java.awt.event.KeyEvent.VK_SHIFT;\n public static int KEY_CONTROL = java.awt.event.KeyEvent.VK_CONTROL;\n public static int KEY_ALT = java.awt.event.KeyEvent.VK_ALT;\n public static int KEY_PAUSE = java.awt.event.KeyEvent.VK_PAUSE;\n public static int KEY_CAPS_LOCK = java.awt.event.KeyEvent.VK_CAPS_LOCK;\n public static int KEY_ESCAPE = java.awt.event.KeyEvent.VK_ESCAPE;\n public static int KEY_SPACE = java.awt.event.KeyEvent.VK_SPACE;\n public static int KEY_PAGE_UP = java.awt.event.KeyEvent.VK_PAGE_UP;\n public static int KEY_PAGE_DOWN = java.awt.event.KeyEvent.VK_PAGE_DOWN;\n public static int KEY_END = java.awt.event.KeyEvent.VK_END;\n public static int KEY_HOME = java.awt.event.KeyEvent.VK_HOME;\n public static int KEY_LEFT = java.awt.event.KeyEvent.VK_LEFT;\n public static int KEY_UP = java.awt.event.KeyEvent.VK_UP;\n public static int KEY_RIGHT = java.awt.event.KeyEvent.VK_RIGHT;\n public static int KEY_DOWN = java.awt.event.KeyEvent.VK_DOWN;\n public static int KEY_COMMA = java.awt.event.KeyEvent.VK_COMMA;\n public static int KEY_MINUS = java.awt.event.KeyEvent.VK_MINUS;\n public static int KEY_PERIOD = java.awt.event.KeyEvent.VK_PERIOD;\n public static int KEY_SLASH = java.awt.event.KeyEvent.VK_SLASH;\n public static int KEY_0 = java.awt.event.KeyEvent.VK_0;\n public static int KEY_1 = java.awt.event.KeyEvent.VK_1;\n public static int KEY_2 = java.awt.event.KeyEvent.VK_2;\n public static int KEY_3 = java.awt.event.KeyEvent.VK_3;\n public static int KEY_4 = java.awt.event.KeyEvent.VK_4;\n public static int KEY_5 = java.awt.event.KeyEvent.VK_5;\n public static int KEY_6 = java.awt.event.KeyEvent.VK_6;\n public static int KEY_7 = java.awt.event.KeyEvent.VK_7;\n public static int KEY_8 = java.awt.event.KeyEvent.VK_8;\n public static int KEY_9 = java.awt.event.KeyEvent.VK_9;\n public static int KEY_SEMICOLON = java.awt.event.KeyEvent.VK_SEMICOLON;\n public static int KEY_EQUALS = java.awt.event.KeyEvent.VK_EQUALS;\n public static int KEY_A = java.awt.event.KeyEvent.VK_A;\n public static int KEY_B = java.awt.event.KeyEvent.VK_B;\n public static int KEY_C = java.awt.event.KeyEvent.VK_C;\n public static int KEY_D = java.awt.event.KeyEvent.VK_D;\n public static int KEY_E = java.awt.event.KeyEvent.VK_E;\n public static int KEY_F = java.awt.event.KeyEvent.VK_F;\n public static int KEY_G = java.awt.event.KeyEvent.VK_G;\n public static int KEY_H = java.awt.event.KeyEvent.VK_H;\n public static int KEY_I = java.awt.event.KeyEvent.VK_I;\n public static int KEY_J = java.awt.event.KeyEvent.VK_J;\n public static int KEY_K = java.awt.event.KeyEvent.VK_K;\n public static int KEY_L = java.awt.event.KeyEvent.VK_L;\n public static int KEY_M = java.awt.event.KeyEvent.VK_M;\n public static int KEY_N = java.awt.event.KeyEvent.VK_N;\n public static int KEY_O = java.awt.event.KeyEvent.VK_O;\n public static int KEY_P = java.awt.event.KeyEvent.VK_P;\n public static int KEY_Q = java.awt.event.KeyEvent.VK_Q;\n public static int KEY_R = java.awt.event.KeyEvent.VK_R;\n public static int KEY_S = java.awt.event.KeyEvent.VK_S;\n public static int KEY_T = java.awt.event.KeyEvent.VK_T;\n public static int KEY_U = java.awt.event.KeyEvent.VK_U;\n public static int KEY_V = java.awt.event.KeyEvent.VK_V;\n public static int KEY_W = java.awt.event.KeyEvent.VK_W;\n public static int KEY_X = java.awt.event.KeyEvent.VK_X;\n public static int KEY_Y = java.awt.event.KeyEvent.VK_Y;\n public static int KEY_Z = java.awt.event.KeyEvent.VK_Z;\n public static int KEY_OPEN_BRACKET = java.awt.event.KeyEvent.VK_OPEN_BRACKET;\n public static int KEY_BACK_SLASH = java.awt.event.KeyEvent.VK_BACK_SLASH;\n public static int KEY_CLOSE_BRACKET = java.awt.event.KeyEvent.VK_CLOSE_BRACKET;\n public static int KEY_NUMPAD0 = java.awt.event.KeyEvent.VK_NUMPAD0;\n public static int KEY_NUMPAD1 = java.awt.event.KeyEvent.VK_NUMPAD1;\n public static int KEY_NUMPAD2 = java.awt.event.KeyEvent.VK_NUMPAD2;\n public static int KEY_NUMPAD3 = java.awt.event.KeyEvent.VK_NUMPAD3;\n public static int KEY_NUMPAD4 = java.awt.event.KeyEvent.VK_NUMPAD4;\n public static int KEY_NUMPAD5 = java.awt.event.KeyEvent.VK_NUMPAD5;\n public static int KEY_NUMPAD6 = java.awt.event.KeyEvent.VK_NUMPAD6;\n public static int KEY_NUMPAD7 = java.awt.event.KeyEvent.VK_NUMPAD7;\n public static int KEY_NUMPAD8 = java.awt.event.KeyEvent.VK_NUMPAD8;\n public static int KEY_NUMPAD9 = java.awt.event.KeyEvent.VK_NUMPAD9;\n public static int KEY_MULTIPLY = java.awt.event.KeyEvent.VK_MULTIPLY;\n public static int KEY_ADD = java.awt.event.KeyEvent.VK_ADD;\n public static int KEY_SEPARATER = java.awt.event.KeyEvent.VK_SEPARATER;\n public static int KEY_SEPARATOR = java.awt.event.KeyEvent.VK_SEPARATOR;\n public static int KEY_SUBTRACT = java.awt.event.KeyEvent.VK_SUBTRACT;\n public static int KEY_DECIMAL = java.awt.event.KeyEvent.VK_DECIMAL;\n public static int KEY_DIVIDE = java.awt.event.KeyEvent.VK_DIVIDE;\n public static int KEY_DELETE = java.awt.event.KeyEvent.VK_DELETE;\n public static int KEY_NUM_LOCK = java.awt.event.KeyEvent.VK_NUM_LOCK;\n public static int KEY_SCROLL_LOCK = java.awt.event.KeyEvent.VK_SCROLL_LOCK;\n public static int KEY_F1 = java.awt.event.KeyEvent.VK_F1;\n public static int KEY_F2 = java.awt.event.KeyEvent.VK_F2;\n public static int KEY_F3 = java.awt.event.KeyEvent.VK_F3;\n public static int KEY_F4 = java.awt.event.KeyEvent.VK_F4;\n public static int KEY_F5 = java.awt.event.KeyEvent.VK_F5;\n public static int KEY_F6 = java.awt.event.KeyEvent.VK_F6;\n public static int KEY_F7 = java.awt.event.KeyEvent.VK_F7;\n public static int KEY_F8 = java.awt.event.KeyEvent.VK_F8;\n public static int KEY_F9 = java.awt.event.KeyEvent.VK_F9;\n public static int KEY_F10 = java.awt.event.KeyEvent.VK_F10;\n public static int KEY_F11 = java.awt.event.KeyEvent.VK_F11;\n public static int KEY_F12 = java.awt.event.KeyEvent.VK_F12;\n public static int KEY_F13 = java.awt.event.KeyEvent.VK_F13;\n public static int KEY_F14 = java.awt.event.KeyEvent.VK_F14;\n public static int KEY_F15 = java.awt.event.KeyEvent.VK_F15;\n public static int KEY_F16 = java.awt.event.KeyEvent.VK_F16;\n public static int KEY_F17 = java.awt.event.KeyEvent.VK_F17;\n public static int KEY_F18 = java.awt.event.KeyEvent.VK_F18;\n public static int KEY_F19 = java.awt.event.KeyEvent.VK_F19;\n public static int KEY_F20 = java.awt.event.KeyEvent.VK_F20;\n public static int KEY_F21 = java.awt.event.KeyEvent.VK_F21;\n public static int KEY_F22 = java.awt.event.KeyEvent.VK_F22;\n public static int KEY_F23 = java.awt.event.KeyEvent.VK_F23;\n public static int KEY_F24 = java.awt.event.KeyEvent.VK_F24;\n public static int KEY_PRINTSCREEN = java.awt.event.KeyEvent.VK_PRINTSCREEN;\n public static int KEY_INSERT = java.awt.event.KeyEvent.VK_INSERT;\n public static int KEY_HELP = java.awt.event.KeyEvent.VK_HELP;\n public static int KEY_META = java.awt.event.KeyEvent.VK_META;\n public static int KEY_BACK_QUOTE = java.awt.event.KeyEvent.VK_BACK_QUOTE;\n public static int KEY_QUOTE = java.awt.event.KeyEvent.VK_QUOTE;\n public static int KEY_KP_UP = java.awt.event.KeyEvent.VK_KP_UP;\n public static int KEY_KP_DOWN = java.awt.event.KeyEvent.VK_KP_DOWN;\n public static int KEY_KP_LEFT = java.awt.event.KeyEvent.VK_KP_LEFT;\n public static int KEY_KP_RIGHT = java.awt.event.KeyEvent.VK_KP_RIGHT;\n public static int KEY_DEAD_GRAVE = java.awt.event.KeyEvent.VK_DEAD_GRAVE;\n public static int KEY_DEAD_ACUTE = java.awt.event.KeyEvent.VK_DEAD_ACUTE;\n public static int KEY_DEAD_CIRCUMFLEX = java.awt.event.KeyEvent.VK_DEAD_CIRCUMFLEX;\n public static int KEY_DEAD_TILDE = java.awt.event.KeyEvent.VK_DEAD_TILDE;\n public static int KEY_DEAD_MACRON = java.awt.event.KeyEvent.VK_DEAD_MACRON;\n public static int KEY_DEAD_BREVE = java.awt.event.KeyEvent.VK_DEAD_BREVE;\n public static int KEY_DEAD_ABOVEDOT = java.awt.event.KeyEvent.VK_DEAD_ABOVEDOT;\n public static int KEY_DEAD_DIAERESIS = java.awt.event.KeyEvent.VK_DEAD_DIAERESIS;\n public static int KEY_DEAD_ABOVERING = java.awt.event.KeyEvent.VK_DEAD_ABOVERING;\n public static int KEY_DEAD_DOUBLEACUTE = java.awt.event.KeyEvent.VK_DEAD_DOUBLEACUTE;\n public static int KEY_DEAD_CARON = java.awt.event.KeyEvent.VK_DEAD_CARON;\n public static int KEY_DEAD_CEDILLA = java.awt.event.KeyEvent.VK_DEAD_CEDILLA;\n public static int KEY_DEAD_OGONEK = java.awt.event.KeyEvent.VK_DEAD_OGONEK;\n public static int KEY_DEAD_IOTA = java.awt.event.KeyEvent.VK_DEAD_IOTA;\n public static int KEY_DEAD_VOICED_SOUND = java.awt.event.KeyEvent.VK_DEAD_VOICED_SOUND;\n public static int KEY_DEAD_SEMIVOICED_SOUND = java.awt.event.KeyEvent.VK_DEAD_SEMIVOICED_SOUND;\n public static int KEY_AMPERSAND = java.awt.event.KeyEvent.VK_AMPERSAND;\n public static int KEY_ASTERISK = java.awt.event.KeyEvent.VK_ASTERISK;\n public static int KEY_QUOTEDBL = java.awt.event.KeyEvent.VK_QUOTEDBL;\n public static int KEY_LESS = java.awt.event.KeyEvent.VK_LESS;\n public static int KEY_GREATER = java.awt.event.KeyEvent.VK_GREATER;\n public static int KEY_BRACELEFT = java.awt.event.KeyEvent.VK_BRACELEFT;\n public static int KEY_BRACERIGHT = java.awt.event.KeyEvent.VK_BRACERIGHT;\n public static int KEY_AT = java.awt.event.KeyEvent.VK_AT;\n public static int KEY_COLON = java.awt.event.KeyEvent.VK_COLON;\n public static int KEY_CIRCUMFLEX = java.awt.event.KeyEvent.VK_CIRCUMFLEX;\n public static int KEY_DOLLAR = java.awt.event.KeyEvent.VK_DOLLAR;\n public static int KEY_EURO_SIGN = java.awt.event.KeyEvent.VK_EURO_SIGN;\n public static int KEY_EXCLAMATION_MARK = java.awt.event.KeyEvent.VK_EXCLAMATION_MARK;\n public static int KEY_INVERTED_EXCLAMATION_MARK = java.awt.event.KeyEvent.VK_INVERTED_EXCLAMATION_MARK;\n public static int KEY_LEFT_PARENTHESIS = java.awt.event.KeyEvent.VK_LEFT_PARENTHESIS;\n public static int KEY_NUMBER_SIGN = java.awt.event.KeyEvent.VK_NUMBER_SIGN;\n public static int KEY_PLUS = java.awt.event.KeyEvent.VK_PLUS;\n public static int KEY_RIGHT_PARENTHESIS = java.awt.event.KeyEvent.VK_RIGHT_PARENTHESIS;\n public static int KEY_UNDERSCORE = java.awt.event.KeyEvent.VK_UNDERSCORE;\n public static int KEY_WINDOWS = java.awt.event.KeyEvent.VK_WINDOWS;\n public static int KEY_CONTEXT_MENU = java.awt.event.KeyEvent.VK_CONTEXT_MENU;\n public static int KEY_FINAL = java.awt.event.KeyEvent.VK_FINAL;\n public static int KEY_CONVERT = java.awt.event.KeyEvent.VK_CONVERT;\n public static int KEY_NONCONVERT = java.awt.event.KeyEvent.VK_NONCONVERT;\n public static int KEY_ACCEPT = java.awt.event.KeyEvent.VK_ACCEPT;\n public static int KEY_MODECHANGE = java.awt.event.KeyEvent.VK_MODECHANGE;\n public static int KEY_KANA = java.awt.event.KeyEvent.VK_KANA;\n public static int KEY_KANJI = java.awt.event.KeyEvent.VK_KANJI;\n public static int KEY_ALPHANUMERIC = java.awt.event.KeyEvent.VK_ALPHANUMERIC;\n public static int KEY_KATAKANA = java.awt.event.KeyEvent.VK_KATAKANA;\n public static int KEY_HIRAGANA = java.awt.event.KeyEvent.VK_HIRAGANA;\n public static int KEY_FULL_WIDTH = java.awt.event.KeyEvent.VK_FULL_WIDTH;\n public static int KEY_HALF_WIDTH = java.awt.event.KeyEvent.VK_HALF_WIDTH;\n public static int KEY_ROMAN_CHARACTERS = java.awt.event.KeyEvent.VK_ROMAN_CHARACTERS;\n public static int KEY_ALL_CANDIDATES = java.awt.event.KeyEvent.VK_ALL_CANDIDATES;\n public static int KEY_PREVIOUS_CANDIDATE = java.awt.event.KeyEvent.VK_PREVIOUS_CANDIDATE;\n public static int KEY_CODE_INPUT = java.awt.event.KeyEvent.VK_CODE_INPUT;\n public static int KEY_JAPANESE_KATAKANA = java.awt.event.KeyEvent.VK_JAPANESE_KATAKANA;\n public static int KEY_JAPANESE_HIRAGANA = java.awt.event.KeyEvent.VK_JAPANESE_HIRAGANA;\n public static int KEY_JAPANESE_ROMAN = java.awt.event.KeyEvent.VK_JAPANESE_ROMAN;\n public static int KEY_KANA_LOCK = java.awt.event.KeyEvent.VK_KANA_LOCK;\n public static int KEY_INPUT_METHOD_ON_OFF = java.awt.event.KeyEvent.VK_INPUT_METHOD_ON_OFF;\n public static int KEY_CUT = java.awt.event.KeyEvent.VK_CUT;\n public static int KEY_COPY = java.awt.event.KeyEvent.VK_COPY;\n public static int KEY_PASTE = java.awt.event.KeyEvent.VK_PASTE;\n public static int KEY_UNDO = java.awt.event.KeyEvent.VK_UNDO;\n public static int KEY_AGAIN = java.awt.event.KeyEvent.VK_AGAIN;\n public static int KEY_FIND = java.awt.event.KeyEvent.VK_FIND;\n public static int KEY_PROPS = java.awt.event.KeyEvent.VK_PROPS;\n public static int KEY_STOP = java.awt.event.KeyEvent.VK_STOP;\n public static int KEY_COMPOSE = java.awt.event.KeyEvent.VK_COMPOSE;\n public static int KEY_ALT_GRAPH = java.awt.event.KeyEvent.VK_ALT_GRAPH;\n public static int KEY_BEGIN = java.awt.event.KeyEvent.VK_BEGIN;\n public static int KEY_UNDEFINED = java.awt.event.KeyEvent.VK_UNDEFINED;\n \n //////////////////////////////////////////////////\n\n \n}", "title": "" }, { "docid": "073176b378aeb15b419601d173301d2f", "score": "0.5103106", "text": "public void mo2551d() {\n super.mo2551d();\n this.f11965b = false;\n }", "title": "" }, { "docid": "ce2bc0d9879b8068fc171b3de0629945", "score": "0.5099671", "text": "public int mo25040d() {\n return this.f16561d;\n }", "title": "" }, { "docid": "187c35c5ddbdb113e334e20611357789", "score": "0.5098482", "text": "public static Object $$$FldINFASTPSurface(mContext m$) {\n return (59);\n }", "title": "" }, { "docid": "151ef1b1110565f7155a6c99c315a773", "score": "0.5088824", "text": "public abstract void setOutputField(int i);", "title": "" }, { "docid": "e4fde72fe5d5bfb398f5bb8e5f9548ae", "score": "0.5087554", "text": "public void mo59350d(int i) {\n this.f4600b = i;\n }", "title": "" }, { "docid": "007fa7e5ac6a4acffeb48d7dde96e505", "score": "0.5085957", "text": "float mo519f();", "title": "" }, { "docid": "589b7b8e5970b0282419bca5cf02bf47", "score": "0.5082", "text": "public static Object $$$FldINANGPXLOutput1(mContext m$) {\n return (39);\n }", "title": "" }, { "docid": "0abc56ceb1a8f63246ea5e76ca9c7a28", "score": "0.50779945", "text": "public static Object $$$FldINFASTPQualityControl(mContext m$) {\n return (174);\n }", "title": "" }, { "docid": "66261d0f833e76d9b46ac586550276c0", "score": "0.50679404", "text": "public void mo2549b() {\n super.mo2549b();\n this.f11965b = true;\n }", "title": "" }, { "docid": "19401935de12cc2e45336871b5c1a721", "score": "0.50658834", "text": "public void mo37801a(float f) {\n }", "title": "" }, { "docid": "c858b790779991365a3f44be7daf57bb", "score": "0.5063382", "text": "public int mo14595b() {\n return this.f10278e;\n }", "title": "" }, { "docid": "32db050ff5077b633d9c7a7d74104ea3", "score": "0.5062126", "text": "public int mo25041e() {\n return this.f16562e;\n }", "title": "" }, { "docid": "64972790118cb1706b4069243c8afa7d", "score": "0.5061941", "text": "public void runFX18(){\r\n soundTimer = v[(opcode & 0xF00) >> 8];\r\n }", "title": "" }, { "docid": "1971f505769e36c678068a62780bebd7", "score": "0.50583583", "text": "public static Object $$$FldINCALLInputtime(mContext m$) {\n return (2);\n }", "title": "" }, { "docid": "0f1de79f9a5558d47147ff411bd56be1", "score": "0.5052525", "text": "public TStruct mo9432f() {\n return f1446f;\n }", "title": "" }, { "docid": "d882492cd22e6d2fd94d8dafacbe2aff", "score": "0.5051404", "text": "public static float simulateTpf() {\n return 0.016f;\n }", "title": "" }, { "docid": "21d2bc43cb340d66f387a23f039c58cd", "score": "0.50471747", "text": "long getVout();", "title": "" }, { "docid": "d437cba56ebdfc971bf0abd065c659e1", "score": "0.5042545", "text": "float mo513a();", "title": "" }, { "docid": "3f55598c9a8819dee227e91530ea275f", "score": "0.5041811", "text": "public final void mo17634V(float f, float f2) {\n AppMethodBeat.m2504i(55159);\n if (C12597b.this.oxL == null) {\n AppMethodBeat.m2505o(55159);\n return;\n }\n int d = C12597b.this.oBB;\n C12597b.this.oBC = Math.round(((float) d) * f);\n C12597b.this.oBD = Math.round(((float) d) * f2);\n if (C12597b.this.oBD <= 0) {\n C12597b.this.oBD = 1000;\n }\n C12597b.this.oxL.mo27356d((double) C12597b.this.oBC, true);\n C4990ab.m7417i(\"MicroMsg.MMSightVideoEditor\", \"onUp, start: %s, end: %s %s %s\", Integer.valueOf(C12597b.this.oBC), Integer.valueOf(C12597b.this.oBD), Float.valueOf(f), Float.valueOf(f2));\n AppMethodBeat.m2505o(55159);\n }", "title": "" }, { "docid": "fe0153628dcb1a20748bd27678fae9a6", "score": "0.5041724", "text": "public static Object $$$FldINFASTPMaterial(mContext m$) {\n return (37);\n }", "title": "" }, { "docid": "fb83c77fa288401620e7019cb3613c32", "score": "0.5029367", "text": "public void mo37803b(float f) {\n }", "title": "" }, { "docid": "7f724067a76517bc130b67c0582f77c5", "score": "0.502608", "text": "float mo517d();", "title": "" }, { "docid": "27e2830ec855a32032aeb2b902e66877", "score": "0.5017806", "text": "public void mo56918f() {\n this.f39416a = 1;\n setText(String.format(this.f39427l.getString(R.string.da1), Integer.valueOf(this.f39419d)));\n }", "title": "" }, { "docid": "19b34033f419d2f9f2ea199e8cc043da", "score": "0.50165594", "text": "public void setAmplitude(float amplitude) {\n/* 79 */ this.amplitude = amplitude;\n/* */ }", "title": "" }, { "docid": "e90f34b26d431efdf919f427b51a5da3", "score": "0.5009525", "text": "public static Object $$$INFASTPOutput1(mContext m$, Object ... _p) {\n mVar p$obj = m$.varRef(\"p$obj\",(((_p!=null)&&(_p.length>=1))?_p[0]:null));\n return (m$.Fnc.$piece(p$obj.get(),\"~\",39));\n }", "title": "" }, { "docid": "d928988e489b3a8491376423ae91a138", "score": "0.5006077", "text": "private void mo60198b() {\n AppMethodBeat.m2504i(67299);\n if (!this.f17847v) {\n C17778b.m27745a(this.f17838m, this.f17839n, 2003, \"渲染首个视频数据包(IDR)\");\n setStatusValue(6001, Long.valueOf(TXCTimeUtil.getTimeTick()));\n this.f17847v = true;\n }\n C17810a c17810a = this.f17849x;\n c17810a.f4271c++;\n if (this.f17849x.f4269a == 0) {\n this.f17849x.f4269a = TXCTimeUtil.getTimeTick();\n } else {\n long timeTick = TXCTimeUtil.getTimeTick() - this.f17849x.f4269a;\n if (timeTick >= 1000) {\n setStatusValue(6002, Double.valueOf((((double) (this.f17849x.f4271c - this.f17849x.f4270b)) * 1000.0d) / ((double) timeTick)));\n this.f17849x.f4270b = this.f17849x.f4271c;\n C17810a c17810a2 = this.f17849x;\n c17810a2.f4269a = timeTick + c17810a2.f4269a;\n }\n }\n if (this.f17849x.f4272d != 0) {\n this.f17849x.f4277i = m82875a(this.f17849x.f4272d);\n if (this.f17849x.f4277i > 500) {\n c17810a = this.f17849x;\n c17810a.f4273e++;\n setStatusValue(6003, Long.valueOf(this.f17849x.f4273e));\n if (this.f17849x.f4277i > this.f17849x.f4276h) {\n this.f17849x.f4276h = this.f17849x.f4277i;\n setStatusValue(6005, Long.valueOf(this.f17849x.f4276h));\n }\n c17810a = this.f17849x;\n c17810a.f4275g += this.f17849x.f4277i;\n setStatusValue(6006, Long.valueOf(this.f17849x.f4275g));\n TXCLog.m15679w(\"TXCVideoRender\", \"render frame count:\" + this.f17849x.f4271c + \" block time:\" + this.f17849x.f4277i + \"> 500\");\n }\n if (this.f17849x.f4277i > ((long) this.f17840o)) {\n TXCLog.m15679w(\"TXCVideoRender\", \"render frame count:\" + this.f17849x.f4271c + \" block time:\" + this.f17849x.f4277i + \"> \" + this.f17840o);\n }\n if (this.f17849x.f4277i > 1000) {\n c17810a = this.f17849x;\n c17810a.f4274f++;\n setStatusValue(6004, Long.valueOf(this.f17849x.f4274f));\n TXCLog.m15679w(\"TXCVideoRender\", \"render frame count:\" + this.f17849x.f4271c + \" block time:\" + this.f17849x.f4277i + \"> 1000\");\n C17778b.m27745a(this.f17838m, this.f17839n, (int) TXLiveConstants.PLAY_WARNING_VIDEO_PLAY_LAG, \"当前视频播放出现卡顿\" + this.f17849x.f4277i + \"ms\");\n }\n }\n this.f17849x.f4272d = TXCTimeUtil.getTimeTick();\n this.f17849x.f4279k = this.f17833h;\n this.f17849x.f4278j = this.f17832g;\n AppMethodBeat.m2505o(67299);\n }", "title": "" }, { "docid": "fbed77885ac31d4f923b03f51d29349a", "score": "0.50052726", "text": "public void runFX33(){\r\n short vX = v[(opcode & 0xF00) >> 8];\r\n memory.setMemory(i, (short) (vX / 100));\r\n memory.setMemory(i + 1, (short) ((vX - memory.getValueAt(i) * 100) / 10));\r\n memory.setMemory(i + 2, (short) (vX - memory.getValueAt(i)*100 - memory.getValueAt(i+1) * 10));\r\n }", "title": "" }, { "docid": "2200a440f8748b4833a77cc6904b7f0f", "score": "0.50022346", "text": "public void mo90027i() {\n this.f66067g.mo89376d();\n }", "title": "" }, { "docid": "13a2774200c96ffa3038399f61a92539", "score": "0.50011855", "text": "public void runFX07(){\r\n v[(opcode & 0xF00) >> 8] = delayTimer;\r\n }", "title": "" }, { "docid": "6339e49239316cc30e5f42fe48fd7fa7", "score": "0.5000997", "text": "public int m8864f() {\r\n return this.f5872b;\r\n }", "title": "" }, { "docid": "61e6006289ebb7352c44be32ca1f38af", "score": "0.49909055", "text": "private void incfsz(int d, int f) \n\t{\n\t\tint in = ctr.getMemory().get_Memory(f);\n\t\tif(in == 255) \n\t\t{\n\t\t\tin = 0;\n\t\t\tthis.ctr.incPC();\n\t\t\tctr.setNopCycle(true);\n\t\t}else {\n\t\t\tin++;\n\t\t}\n\t\tif(d == 0) \n\t\t{\n\t\t\tctr.getMemory().set_WREGISTER(in);\n\t\t}else if(d == 1) \n\t\t{\n\t\t\tctr.getMemory().set_SRAM(f, in);\n\t\t}\n\t\tthis.ctr.incPC();\n\t}", "title": "" }, { "docid": "e00dd0cb41abb85fa70bd1a1435bed3c", "score": "0.49908334", "text": "public int mo9045c() {\n return this.f1133c;\n }", "title": "" }, { "docid": "7c775204becbc3975f52803a7e83bde0", "score": "0.49878544", "text": "public void mo2378b() {\n this.f1786Y = false;\n this.f1783V = true;\n this.f1784W = true;\n if (this.width == -2 && this.f1780S) {\n this.f1783V = false;\n if (this.f1769H == 0) {\n this.f1769H = 1;\n }\n }\n if (this.height == -2 && this.f1781T) {\n this.f1784W = false;\n if (this.f1770I == 0) {\n this.f1770I = 1;\n }\n }\n if (this.width == 0 || this.width == -1) {\n this.f1783V = false;\n if (this.width == 0 && this.f1769H == 1) {\n this.width = -2;\n this.f1780S = true;\n }\n }\n if (this.height == 0 || this.height == -1) {\n this.f1784W = false;\n if (this.height == 0 && this.f1770I == 1) {\n this.height = -2;\n this.f1781T = true;\n }\n }\n if (this.f1792c != -1.0f || this.f1788a != -1 || this.f1790b != -1) {\n this.f1786Y = true;\n this.f1783V = true;\n this.f1784W = true;\n if (!(this.f1813m0 instanceof C3980j)) {\n this.f1813m0 = new C3980j();\n }\n ((C3980j) this.f1813m0).mo14459B(this.f1779R);\n }\n }", "title": "" }, { "docid": "d0c067e3ac5f1b1a87f35c8b7428111a", "score": "0.49775037", "text": "public abstract void mo22752a(C7154f fVar);", "title": "" }, { "docid": "daa1cb3c101a4817a24931f032031cd6", "score": "0.4972944", "text": "public long mo22301b() {\n return this.f12600b;\n }", "title": "" }, { "docid": "9b90bbe235f7db670790e8bf8e0febf9", "score": "0.49682334", "text": "public void mo24177r() {\n this.f15553n = false;\n }", "title": "" }, { "docid": "59ee074d6d4f547a797905641308c26f", "score": "0.4966965", "text": "public static Object $$$FldINFASTPReferenceCalculated(mContext m$) {\n return (140);\n }", "title": "" }, { "docid": "b7e156552e1c2fcb0a780e30a81afaf7", "score": "0.49598703", "text": "public String mo46f() {\n Float[] k = m114k();\n try {\n Thread.sleep(1);\n } catch (Exception unused) {\n }\n Float[] k2 = m114k();\n if (k == null || k2 == null) {\n return \"\";\n }\n float floatValue = k[0].floatValue();\n float floatValue2 = k[1].floatValue();\n float floatValue3 = k2[0].floatValue();\n float floatValue4 = k2[1].floatValue();\n C0070g.m376a(\"cpu_used1:\" + floatValue);\n C0070g.m376a(\"cpu_idel1:\" + floatValue2);\n C0070g.m376a(\"cpu_used2:\" + floatValue3);\n C0070g.m376a(\"cpu_idle2:\" + floatValue4);\n if (floatValue <= 0.0f || floatValue2 <= 0.0f || floatValue3 <= 0.0f || floatValue4 <= 0.0f) {\n return \"\";\n }\n float f = floatValue3 - floatValue;\n int round = Math.round(((f - (floatValue4 - floatValue2)) / f) * 100.0f);\n if (round < 0) {\n round = 0;\n } else if (round > 100) {\n round = 100;\n }\n return String.format(\"%d %%\", Integer.valueOf(round));\n }", "title": "" }, { "docid": "99c0e80b5256da7cc6a841497c665a95", "score": "0.4959364", "text": "public float getFrameRate()\r\n/* 36: */ {\r\n/* 37:31 */ return 0.0F;\r\n/* 38: */ }", "title": "" }, { "docid": "95fc251f97a6d97c1da44340e1e01421", "score": "0.4941453", "text": "public int mo59305b() {\n return this.f4600b;\n }", "title": "" }, { "docid": "99ec6bdc237f4eed362bd78d99b173eb", "score": "0.49379164", "text": "public void a(IBlockAccess paramard, BlockPosition paramdt)\r\n/* 52: */ {\r\n/* 53: 73 */ float f1 = 0.0625F;\r\n/* 54: */ \r\n/* 55: 75 */ float f2 = 1.0F;\r\n/* 56: 76 */ float f3 = 1.0F;\r\n/* 57: 77 */ float f4 = 1.0F;\r\n/* 58: 78 */ float f5 = 0.0F;\r\n/* 59: 79 */ float f6 = 0.0F;\r\n/* 60: 80 */ float f7 = 0.0F;\r\n/* 61: 81 */ int i = 0;\r\n/* 62: 83 */ if (((Boolean)paramard.getBlock(paramdt).getData(O)).booleanValue())\r\n/* 63: */ {\r\n/* 64: 84 */ f5 = Math.max(f5, 0.0625F);\r\n/* 65: 85 */ f2 = 0.0F;\r\n/* 66: 86 */ f3 = 0.0F;\r\n/* 67: 87 */ f6 = 1.0F;\r\n/* 68: 88 */ f4 = 0.0F;\r\n/* 69: 89 */ f7 = 1.0F;\r\n/* 70: 90 */ i = 1;\r\n/* 71: */ }\r\n/* 72: 92 */ if (((Boolean)paramard.getBlock(paramdt).getData(M)).booleanValue())\r\n/* 73: */ {\r\n/* 74: 93 */ f2 = Math.min(f2, 0.9375F);\r\n/* 75: 94 */ f5 = 1.0F;\r\n/* 76: 95 */ f3 = 0.0F;\r\n/* 77: 96 */ f6 = 1.0F;\r\n/* 78: 97 */ f4 = 0.0F;\r\n/* 79: 98 */ f7 = 1.0F;\r\n/* 80: 99 */ i = 1;\r\n/* 81: */ }\r\n/* 82:101 */ if (((Boolean)paramard.getBlock(paramdt).getData(b)).booleanValue())\r\n/* 83: */ {\r\n/* 84:102 */ f7 = Math.max(f7, 0.0625F);\r\n/* 85:103 */ f4 = 0.0F;\r\n/* 86:104 */ f2 = 0.0F;\r\n/* 87:105 */ f5 = 1.0F;\r\n/* 88:106 */ f3 = 0.0F;\r\n/* 89:107 */ f6 = 1.0F;\r\n/* 90:108 */ i = 1;\r\n/* 91: */ }\r\n/* 92:110 */ if (((Boolean)paramard.getBlock(paramdt).getData(N)).booleanValue())\r\n/* 93: */ {\r\n/* 94:111 */ f4 = Math.min(f4, 0.9375F);\r\n/* 95:112 */ f7 = 1.0F;\r\n/* 96:113 */ f2 = 0.0F;\r\n/* 97:114 */ f5 = 1.0F;\r\n/* 98:115 */ f3 = 0.0F;\r\n/* 99:116 */ f6 = 1.0F;\r\n/* 100:117 */ i = 1;\r\n/* 101: */ }\r\n/* 102:119 */ if ((i == 0) && (c(paramard.getBlock(paramdt.up()).getType())))\r\n/* 103: */ {\r\n/* 104:120 */ f3 = Math.min(f3, 0.9375F);\r\n/* 105:121 */ f6 = 1.0F;\r\n/* 106:122 */ f2 = 0.0F;\r\n/* 107:123 */ f5 = 1.0F;\r\n/* 108:124 */ f4 = 0.0F;\r\n/* 109:125 */ f7 = 1.0F;\r\n/* 110: */ }\r\n/* 111:127 */ a(f2, f3, f4, f5, f6, f7);\r\n/* 112: */ }", "title": "" }, { "docid": "61bf86778e740115c1a11c032e99422c", "score": "0.49363825", "text": "public synchronized void mo40139a() {\n this.f28256f++;\n }", "title": "" }, { "docid": "626e7d998a419288cde69fa3141bc471", "score": "0.49360126", "text": "float mo3991R();", "title": "" }, { "docid": "d3b9a474ae713459a661336fae1e39a5", "score": "0.49358115", "text": "public int mo8604f() {\n return 10;\n }", "title": "" }, { "docid": "447c4ccedf3b44695d855b689cfcd513", "score": "0.49349624", "text": "public void mo27427b() {\n int i = this.f24969U;\n if (i > this.f24972c) {\n this.f24969U = i - 1;\n this.f24970V = (C10535a) this.f24970V.get();\n }\n }", "title": "" }, { "docid": "01a3ad7199a85b56c9695e78ac3a50df", "score": "0.49344927", "text": "void mo19063a(C3363x0 x0Var);", "title": "" } ]
a234aba63c6b18a84040df687b2ba7ae
decremente le nombre de vies de notre joueur.
[ { "docid": "663dbaa944172e8c294621f465fe4b8a", "score": "0.54001325", "text": "public void loseLife() {\n lives--;\n }", "title": "" } ]
[ { "docid": "ad6c3e5b87c5626f4782b8636dea0284", "score": "0.69330066", "text": "public void decrement() {\r\n n--;\r\n campo.setText(Integer.toString(n));\r\n if (n == 0) {\r\n Alert finestra = new Alert(AlertType.INFORMATION);\r\n finestra.setContentText(\"Hai Perso\");\r\n finestra.showAndWait();\r\n }\r\n }", "title": "" }, { "docid": "aa22e9e0ecef6118a873426f00e493a0", "score": "0.6909574", "text": "public void DecrementaP(){\n Puntos --;\n Vidas --;\n Marcador.setText(\"Points: \" + Puntos);\n TotalVidas.setText(\"Lives: \" + Vidas);\n }", "title": "" }, { "docid": "f4bc0a2284b6640cac3242526e25b250", "score": "0.6878361", "text": "public void decrementaVidas()\n {\n if(contadorVidas.getValue() != -1)\n {\n contadorVidas.add(-1);\n }\n }", "title": "" }, { "docid": "4fed0e6ca74cbe4be8ec8e4c61dc4e09", "score": "0.6803201", "text": "public void restarVacuna(){\n vacunasTotales--;\n \n }", "title": "" }, { "docid": "6ed7bbbe117468a644fa682466dac69f", "score": "0.6539416", "text": "public void seQuedaQuieta(){\n\t\tthis.pasosQuieta--;\n\t}", "title": "" }, { "docid": "cf2451b6ebb1502060817ef3ab826ab7", "score": "0.65385705", "text": "public void decrement() {\r\n\t\tcount--;\r\n\t}", "title": "" }, { "docid": "5431d1158d13b0be2ea833a5faae3294", "score": "0.6499657", "text": "protected void decrementLive() {\n \tlives--;\t\t\t\t\t\t// Leben -1\n }", "title": "" }, { "docid": "d9a182ab9fe558b3d1a91b07a7eb4638", "score": "0.6484772", "text": "public void decrement() {\n\t\tcount--;\n\t}", "title": "" }, { "docid": "2b260672a90fc168d87e45aca8acd36c", "score": "0.64313376", "text": "@Override\r\n\tpublic void minusOne() {\n\t\tnumber--;\r\n\t}", "title": "" }, { "docid": "5b7164db9d3099bb634a8f260e9f4c51", "score": "0.6371149", "text": "public void reduceNr() {\n\t\t\tnumber--;\n\t\t}", "title": "" }, { "docid": "c6f70184a5478649edf1b12ee37b2f6e", "score": "0.63623446", "text": "public void subirVelocidad() {\r\n if (this.velocidad > 0) {\r\n this.velocidad--;\r\n }\r\n }", "title": "" }, { "docid": "be795186c7b99798e06e4bd4644dd49d", "score": "0.63422257", "text": "public void quitarDocEnPrestamo(){\r\n this.docEnPrestamo--;\r\n }", "title": "" }, { "docid": "0a5d02818b16c1da221bfb6501ef4f3a", "score": "0.6329405", "text": "@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcont--;\r\n\t\t\ttiempo=cont +\"\";\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "26c5671b3cfc20e55106ab3bd179efa4", "score": "0.63017297", "text": "public void decrement() {\n int amount = Integer.parseInt(String.valueOf(editQuantity.getText())) - 1;\n if(amount > -1)\n editQuantity.setText(String.valueOf(amount));\n }", "title": "" }, { "docid": "68fbc4c9c74ce9588ebdda7f8f4c3673", "score": "0.62542105", "text": "public void retroceder(){\n valor--;\n if(valor < 0){\n valor = tope-1;\n }\n }", "title": "" }, { "docid": "268f7718ea9e32212649bf2d6ffd5af8", "score": "0.62073195", "text": "public void restarVida(){\n this.vidasRestantes -= 1;\n }", "title": "" }, { "docid": "309c9eac7aad22f6ae61b6c793710a46", "score": "0.61743444", "text": "public void destocker() {\n nbPieces--;\n }", "title": "" }, { "docid": "0b7af2c52f19b36c1378715ec618bf5d", "score": "0.61668515", "text": "public void decrementQuantity() {\n quantity--;\n }", "title": "" }, { "docid": "c932f41a508a2dc88b38bf32432fb3d0", "score": "0.61306226", "text": "public void seMueve(){\n\t\tthis.pasosQuieta = 1;\n\t\tthis.pasosReprod--;\n\t}", "title": "" }, { "docid": "29d88ec421cc3480e0a036cb92c591c5", "score": "0.6109518", "text": "public void Decrement() {\n btnDec.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n quantity--;\n displayNumOfCofee(quantity);\n }\n });\n }", "title": "" }, { "docid": "5af0b4a0a024847901d18b4e6fb8240e", "score": "0.61029947", "text": "public int moduler(int nombre) {\n\t\tif(nombre < 0) {\n\t\t\treturn -nombre;\n\t\t}\n\t\telse {\n\t\t\treturn nombre;\n\t\t}\n\t}", "title": "" }, { "docid": "c82f893899eec5a3c19c559e4a7eef37", "score": "0.6056128", "text": "public int decrementLives() {\n lives--;\n return lives;\n }", "title": "" }, { "docid": "57b324f23eaec3e71f120ed464727d22", "score": "0.6040421", "text": "@Override\n\tpublic void Desacolar() {\n\t\tindice--;\n\n\t}", "title": "" }, { "docid": "1403febd7d7855a140c18cf6c9a4d2bc", "score": "0.59809154", "text": "public void decrement(View v) {\n if (quantity == 1) {\n //Show an error message\n Toast.makeText(this, \"You cannot order less than 1 cup\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity - 1;\n\n displayQuantity(quantity);\n displayQuantity2(quantity);\n displayQuantity3(quantity);\n displayQuantity4(quantity);\n\n }", "title": "" }, { "docid": "903a31f068248b854c0002df14a7818f", "score": "0.5914581", "text": "public void decreaseEnemy() {\n this.numberOfEnemy--;\n }", "title": "" }, { "docid": "8655f06318bd83bcfc17653684d4a115", "score": "0.59014595", "text": "private void decrease() {\n if (orderAmountCount > 1) {\n orderAmountCount--;\n orderAmount.setText(String.valueOf(orderAmountCount));\n }\n }", "title": "" }, { "docid": "020513d994e84eb026ba7d7fddfc1f8a", "score": "0.5891831", "text": "public int inverser(int nombre){\n\t\treturn -nombre;\n\t}", "title": "" }, { "docid": "fa89e4b5efdae2c4bd3f8b45121a0551", "score": "0.58827806", "text": "private void decNumElements() {\n this.numElements--;\n }", "title": "" }, { "docid": "b9aa2e170007bb94948488cc1fdfb6ea", "score": "0.58826035", "text": "public void decrement(View view) {\n if (quantity == 1){\n Toast.makeText(this,\"You cannot order less than 1 coffee ;)\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n quantity = quantity - 1;\n displayQuantity(quantity);\n }\n }", "title": "" }, { "docid": "edd7b4d39a451110ed3f0c56d380ddbc", "score": "0.5879164", "text": "public void dec() {\r\n this.livecounter = this.livecounter - 1;\r\n\r\n if (this.livecounter < 0) {\r\n this.livecounter = 0;\r\n }\r\n }", "title": "" }, { "docid": "12c8aa74df67ae0606addb07213b736d", "score": "0.58707994", "text": "public void minusLives(){\n removeLive();\n lives--;\n\n }", "title": "" }, { "docid": "508997dcae4216264afa9548343d851c", "score": "0.5864981", "text": "public void decrement() {\n\t\tcounter.decrementAndGet();\n\t}", "title": "" }, { "docid": "053079bf71a73d7424725f761ee5d699", "score": "0.58580667", "text": "public void decrease(int number) {\r\n this.num -= number;\r\n }", "title": "" }, { "docid": "36cc72258607f0fcc9ebc631909428e9", "score": "0.5834248", "text": "public void decrementarPared(){\r\n\t\tparedesDest--;\r\n\t\tif(paredesDest==0){\r\n\t\t\tn.ganar();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5086c6ad460ae295c6e94345a501659b", "score": "0.58261657", "text": "@Override\r\n\tpublic void jouerUnCoup(int caseJouee, GameManagerAwale gameManagerAwale) {\n\t\tint CaseActuelle = caseJouee;\r\n\t\tint nbrGrainesADeplacer = gameManagerAwale.Partie.getPlateau()[caseJouee];\r\n\t\tgameManagerAwale.Partie.setPlateau( 0, caseJouee );\r\n\t\t\r\n\t\twhile(nbrGrainesADeplacer>0) {\r\n\t\t\tSystem.out.println(\"nbr graine a deplacer : \" + nbrGrainesADeplacer );\r\n\t\t\tSystem.out.println(\" gameManagerAwale.Partie.getPlateau()[\"+ CaseActuelle +\"] = \" + gameManagerAwale.Partie.getPlateau()[CaseActuelle] );\r\n\t\t\t\r\n\t\t\tif(caseJouee==0 && CaseActuelle==11) CaseActuelle = 1;\r\n\t\t\telse if(CaseActuelle == caseJouee-1) {\r\n\t\t\t\tif(CaseActuelle == 10)\tCaseActuelle = 0;\r\n\t\t\t\telse\tCaseActuelle += 2;\r\n\t\t\t}\r\n\t\t\telse if (CaseActuelle == 11) CaseActuelle = 0;\r\n\t\t\telse CaseActuelle++;\r\n\t\t\t\r\n\t\t\tgameManagerAwale.Partie.setPlateau( gameManagerAwale.Partie.getPlateau()[CaseActuelle] + 1 , CaseActuelle);\r\n\t\t\t\r\n\t\t\tnbrGrainesADeplacer--;\t\t\t\r\n\t\t}\r\n\t\t//enlever les graines = 2 ou =3\r\n\t\t// diminuer le nbr de graines du plateau\r\n\t\tprendreGraines(CaseActuelle, gameManagerAwale);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a911fc8b3dad2044cc279bbaf193dbd3", "score": "0.5817042", "text": "public void decreasePandaNum(int i) {\n\t\t\n\t\tpandaNum -= i;\n\t\t\n\t\t// Later\n\t\t/*\n\t\tif (pandaNum <= 0) {\n\t\t\t endGame();\n\t\t}\n\t\t*/\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "a254b2b2911da3e198a038c8af90b095", "score": "0.5800774", "text": "public static void ReduceeNum() {\r\n\t\teNum--;\r\n\t}", "title": "" }, { "docid": "4b82355fcd0dc1a6efbd651edd54511b", "score": "0.57886446", "text": "private void decreaseQuantity() {\n\n //check quantity\n if (qty == 0) {\n //show toast message\n Toast.makeText(this, \"Quantity is already 0\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //update quantity and textView\n b.qty.setText(--qty + \"\");\n }", "title": "" }, { "docid": "11ff22934e42f6eed02810f782cba227", "score": "0.57708925", "text": "public void vaccantMinus(View v)\n {\n if(counter == 1) {\n System.out.println(\"aaaValue & fix\" + value + \" \" + fixValue);\n //if (value == (fixValue - 1)) {\n value = value + 1;\n String countString = Integer.toString(value);\n countValueTextView.setText(countString);\n //}\n counter--;\n }\n }", "title": "" }, { "docid": "f2a7ad44c26df8158d280712d78df410", "score": "0.57590073", "text": "public void decrement(View view){\n\n //This code checks if the value is not zero, before to update the global value quantity\n if(!(quantity == QTY_START)){\n quantity -= 1;\n displayQuantity(quantity);\n }\n }", "title": "" }, { "docid": "6e27f2c0d7feed8d3ab6a795348f1faf", "score": "0.57483095", "text": "public void decrement() {\n\n\t\tcounter++;\n\n\t\tSystem.out.println(counter + \")\");\n\n\t\tSystem.out.println(\"............\");\n\n\t\tfor (int i = 0; i <= 3; i++) {\n\t\t\tspaces = \"\";\n\t\t\tstars = \"*\";\n\n\t\t\tfor (int numSpaces = 0; numSpaces <= i + 1; numSpaces++) {\n\t\t\t\tspaces = spaces + \" \";\n\t\t\t}\n\n\t\t\tfor (int numSpaces = 3; numSpaces > i; numSpaces--) {\n\t\t\t\tstars = stars + \"**\";\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(spaces);\n\t\t\tSystem.out.println(stars);\n\n\t\t}\n\t}", "title": "" }, { "docid": "b1ef54eae6d0a42cedd7adda37963750", "score": "0.5736595", "text": "public void decrement(View view) {\n quantity--;\n display(quantity);\n }", "title": "" }, { "docid": "de5b7e005e78fb078017d25dcb7395a7", "score": "0.5736088", "text": "public void remover(){\r\n\t if (! estaVazia() ){\r\n\t primeiro = primeiro.getProximo();\r\n\t qtdeElementos--;\r\n\t } else {\r\n\t \tSystem.out.println(\"Não foi possível remover, a Fila está vazia!\");\r\n\r\n\t }\r\n\t }", "title": "" }, { "docid": "3975daae54c01d504f2993db160d946d", "score": "0.57305956", "text": "public void divoLifeDecrease() {\r\n divoLife--;\r\n }", "title": "" }, { "docid": "f2e42b08e8764c4e7d39ccdd08dc6f30", "score": "0.572742", "text": "public void decrement(View view) {\n if (quantity <=0) {\n quantity = 0;\n // Show an error message as a toast\n Toast.makeText(this,getString(R.string.decrement), Toast.LENGTH_SHORT).show();\n // Exit this method early because there's nothing left to do\n return;\n }\n\n quantity = quantity - 1;\n display(quantity);\n }", "title": "" }, { "docid": "4d8d7d884b5b8bd09aafcd61160c73d5", "score": "0.57090175", "text": "public void augmenteTour() {\r\n this.setNoTour(this.getNoTour()+1);\r\n }", "title": "" }, { "docid": "45461cc97153522b89e8fcbc0803e220", "score": "0.57042485", "text": "public void bajarVelocidad() {\r\n if (this.velocidad < 9) {\r\n this.velocidad++;\r\n }\r\n }", "title": "" }, { "docid": "c12270db319738fda1016667741a47ed", "score": "0.5693616", "text": "@Override\n\tpublic int Tirer(Joueur joueur) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b19d5a4fee94d902bceeae4b50f4a8b3", "score": "0.56701314", "text": "void decrementClickCount();", "title": "" }, { "docid": "a0f84ce0fe1104c2ad85848a0e1d5714", "score": "0.5650393", "text": "public void deleteCar() {\n nbVoitures--;\n }", "title": "" }, { "docid": "5eb8ce0a8e11b760d9672242d04e4ed6", "score": "0.5646159", "text": "private void minusButtonClicked(TextView tvCount, String souceName) {\n int valueCount = Integer.parseInt(tvCount.getText().toString());\n\n if (valueCount <= 0) {\n return;\n } else {\n valueCount--;\n if (extraSouce.get(souceName) != null) {\n extraSouce.put(souceName, valueCount);\n }\n }\n pizzaDAO.setPizzaPrice(pizzaDAO.getPizzaPrice() - 3);\n String newPrice = pizzaDAO.getPizzaPrice() + \" lei\";\n pizzaTotalPrice.setText(newPrice);\n tvCount.setText(String.valueOf(valueCount));\n }", "title": "" }, { "docid": "00ef1395d9a6ce78e63445de8feda88e", "score": "0.5639762", "text": "public void decrementTotalCards() {\n iTotalCards--;\n }", "title": "" }, { "docid": "937cadb8020be7802a0d02e7e95acd62", "score": "0.56388366", "text": "public void decrementShotsRemaining(){\r\n shotsRemaining--;\r\n }", "title": "" }, { "docid": "48d1cd867d82d3cba080528780ba17c0", "score": "0.5635763", "text": "public void decrementScore() {\n setScore(getScore() - 1);\n }", "title": "" }, { "docid": "7af5bfdca0a7ebe67003d209792f2d4a", "score": "0.56023437", "text": "private void resetJugador() {\r\n\t\tjugador.setScore(0);\r\n\t\tjugador.setHoja(0);\r\n\t\tjugador.setMochila(0);\r\n\t\tjugador.setFase1(0);\r\n\t\tjugador.setFase2(0);\r\n\t\tjugador.setFase3(0);\r\n\t\tjugador.setFase4(0);\r\n\t\tmDbHelper.updateRow(\"'\" + jugador.getNombre() + \"'\",\r\n\t\t\t\tjugador.getScore(), jugador.getHoja(), jugador.mochilaToInt(),\r\n\t\t\t\tjugador.getFase1(), jugador.getFase2(), jugador.getFase3(),\r\n\t\t\t\tjugador.getFase4());\r\n\t}", "title": "" }, { "docid": "fbff305b17e5b2cd940a2332e2d7662b", "score": "0.55941", "text": "public void decrement(View view) {\n if (quantity == 1) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have less than 1 coffee\", Toast.LENGTH_SHORT).show();\n // Exit this method early because there's nothing left to do\n return;\n }\n quantity = quantity - 1;\n displayQuantity(quantity);\n }", "title": "" }, { "docid": "947db870ac5b21783459a5c1fb9d3d65", "score": "0.55934745", "text": "public void decreaseLife() {\r\n\t\tthis.life = life <= 0 ? life : life - 1;\r\n\t}", "title": "" }, { "docid": "b5dc31e21b4690a0ce1abfbc93bcb337", "score": "0.5590989", "text": "public void eatenGum()\r\n {\r\n this._nbGums--;\r\n }", "title": "" }, { "docid": "31b3723faf773b786beec6d60139aa2e", "score": "0.55732065", "text": "void decrementPheromones(double value);", "title": "" }, { "docid": "60492f736f5f88def5a102aaa27952ff", "score": "0.5565105", "text": "public T desencolar(){\n //COMPLETAR\n if(talla == 0) return null;\n else {\n T aux = elArray[primero];\n primero = incrementar(primero);\n talla--;\n return aux;\n } \n }", "title": "" }, { "docid": "c67425b22a5ccddc6f7f31233d8e77c1", "score": "0.556474", "text": "public void decrement(View view) {\n if (quantity == 1 || quantity == 0) {\n // Show an error message as a toast\n Toast.makeText(this, getString(R.string.too_less_coffees), Toast.LENGTH_SHORT).show();\n // Exit this method early because there's nothing left to do\n return;\n }\n quantity = quantity - 1;\n display(quantity);\n }", "title": "" }, { "docid": "a337bce5b5b3183ab331332cebeb55f8", "score": "0.5563483", "text": "public int removeOneKorgool(){\n this.numberOfKorgools -= 1;\n return 1;\n }", "title": "" }, { "docid": "1b0525d8e319d57708fd47483fa591cb", "score": "0.5563364", "text": "public Nod elimina() {\n this.contor--;\n Nod result = this.varf;\n this.varf = this.varf.urm;\n return result;\n }", "title": "" }, { "docid": "b0ce34f111e629059ae9619c6b803660", "score": "0.55615145", "text": "public void removePlayer(){\n \tnumPlayers--;\n }", "title": "" }, { "docid": "998a5b5a3edd8954ed63641d69eb4fa1", "score": "0.5554346", "text": "public final void subtractFromPilot(ActionEvent actionEvent) {\n if (Integer.parseInt(remainingSkillPoints.getCharacters().toString()) < MAX_SKILLS &&\n Integer.parseInt(pilotPointsInput.getCharacters().toString()) != 0) {\n pilotPointsInput.setText(Integer.parseInt(pilotPointsInput.getCharacters().toString()) - 1 + \"\");\n int current = Integer.parseInt(remainingSkillPoints.getCharacters().toString());\n current++;\n remainingSkillPoints.setText(Integer.valueOf(current).toString());\n }\n }", "title": "" }, { "docid": "efcc47bd7e59c1c3d8dac723d745e4a3", "score": "0.5549478", "text": "public void decrement() {\n\t\tthis.coordx = this.coordx - 1.0;\n\t\tthis.coordy = this.coordy - 1.0;\t\n\t}", "title": "" }, { "docid": "c4550620084d1ea7f86cc5f4a992e461", "score": "0.55440956", "text": "public void onClickMinusCounterButton(View arg1) {\n\t\tif (count > 0)\n\t\t\tcount -= 1;\n\t\ttvCurrentCount.setText(\"Current Count = \" + count);\n\t}", "title": "" }, { "docid": "b521b2e1873a5e9027275cdebf0670c7", "score": "0.55406994", "text": "@Override\n public void onClick(View v) {\n int count = 0;\n if(et_verif.length()==0){\n count = 0;\n } else {\n count = Integer.parseInt(et_verif.getText().toString());\n }\n if (count > 0) {\n count--;\n et_verif.setText(String.valueOf(count));\n helper.update_qty_detail(et_verif.getText().toString(), posisi + 1);\n }\n }", "title": "" }, { "docid": "1a9199b65247dad63ceaaf1ec6fccca3", "score": "0.5530397", "text": "public int quitar() {\n int aux = inicio.dato;\r\n inicio = inicio.sg;\r\n tamano--;\r\n return aux; // se retorna el auxiliar\r\n\r\n }", "title": "" }, { "docid": "ec4f810101a185064c7775f2f96c0ff7", "score": "0.5529252", "text": "public void decreaseUsers() {\n synchronized (this) {\n number_of_users--;\n }\n }", "title": "" }, { "docid": "fe8da1adb3a71581b874c69861fc8056", "score": "0.55263", "text": "public abstract void decrement(int k);", "title": "" }, { "docid": "271a41633e353d60701eb95bb3e985ee", "score": "0.5521392", "text": "public void decrementNumNotifictions() {\n numNotifications--;\n }", "title": "" }, { "docid": "fce2613a72dbf1e49d37c44bf8bddf3f", "score": "0.5509126", "text": "public void incrNiveau(){\n\t\tif(type != Type.VIDE) niveau ++;\n\t}", "title": "" }, { "docid": "95d141c23dc58753549ca5e85d383f7e", "score": "0.550831", "text": "public int decrementNumberOfResidents() {\n if (getNumberOfResidents() > 0) {\n increment(\"numberOfResidents\", -1);\n }\n\n return getNumberOfResidents();\n }", "title": "" }, { "docid": "4cfacf9d243aba1b7379a6a0ca5f9edd", "score": "0.55055684", "text": "public synchronized long decreaseContactNum(){\n contactsNum = contactsNum - 1;\n return contactsNum;\n }", "title": "" }, { "docid": "3540d9f4d1e6d21bcf2a0db04a564705", "score": "0.5487182", "text": "public void sacrifier(int numJ){\n\t\tJoueur j = null; //j is the player choosen\n\t\tSystem.out.println(numJ);\n\t\tfor (int i =0; i<Partie.getJoueurs().size(); i++)\n\t\t{\n\t\t\tif (Partie.getJoueurs().get(i).getNumJoueur()==numJ)\n\t\t\t{\n\t\t\t\tj=Partie.getJoueurs().get(i);\n\t\t\t}\n\t\t}\n\t\tthis.getJoueurQuiJoueLaCarte().setPointActionJour(this.getJoueurQuiJoueLaCarte().getPointActionJour()+2);\n\t\tthis.getJoueurQuiJoueLaCarte().mettreAJourGraphique();\n\n\t}", "title": "" }, { "docid": "e5770124575bd7c64caaea5cfcc97e4a", "score": "0.54839253", "text": "public void actualizar() {\n\t\tif (valor==9) {\n\t\t\tvalor=0;\n\t\t}\n\t\telse valor++;\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3d433d0a394bcc2f68833961fdf44a98", "score": "0.5480341", "text": "public void decreaseX(int i) {\n \tthis.pos[0][i]--;\n }", "title": "" }, { "docid": "c3561e751574e6f80f9ce9b6d4aa31fb", "score": "0.5471606", "text": "public void getOut(){\n numberOfPeopleInCar --;\r\n }", "title": "" }, { "docid": "d479c25fcb751274eb98bfbdbb283662", "score": "0.54709244", "text": "public void eliminar() {\n talla--;\n if(ant.siguiente==ult){ult=ant;}\n ant.siguiente = ant.siguiente.siguiente;\n }", "title": "" }, { "docid": "e5bf7ec319369a45a33995ba18175d65", "score": "0.5470007", "text": "public void incrementaPuntosDeVida(int nuevaVida){\n puntosDeVida += nuevaVida;\n }", "title": "" }, { "docid": "7379faf763646f7aae7b8c494ba84cde", "score": "0.5464477", "text": "public Builder decrease() {\n mBadgeCount =\n mBadgeTextView == null ?\n INVALID_NUMBER\n :\n Integer.parseInt(mBadgeTextView.getText().toString()) - 1;\n return this;\n }", "title": "" }, { "docid": "e7385f82f68922306ef35392d89de060", "score": "0.54609364", "text": "void decreaseAge() {\n this.age -= 1;\n this.food -= 1;\n }", "title": "" }, { "docid": "174770e031425c8a66857a9f517b1084", "score": "0.5454367", "text": "public final void subtractFromEngineer(ActionEvent actionEvent) {\n if ((Integer.parseInt(remainingSkillPoints.getCharacters().toString()) < MAX_SKILLS) &&\n (Integer.parseInt(engineeringPointsInput.getCharacters().toString()) != 0)) {\n engineeringPointsInput.setText(Integer.parseInt(engineeringPointsInput.getCharacters().toString()) - 1 + \"\");\n int current = Integer.parseInt(remainingSkillPoints.getCharacters().toString());\n current++;\n remainingSkillPoints.setText(Integer.valueOf(current).toString());\n }\n }", "title": "" }, { "docid": "7a8ca1b64fbe95ccb0aa8eb593fd2d94", "score": "0.54519176", "text": "public int removePrato() {\n\t\tif(this.ehVazioPilha()) {\n\t\t\tSystem.out.println(\"A pilha de pratos esta vazia! Favor repor os pratos\");\n\t\t\treturn (0);\n\t\t} else {\n\t\t\tint aux = p_pratos[this.primPrato];\n\t\t\tthis.primPrato = ((this.primPrato + 1) % this.p_pratos.length);\n\t\t\tthis.quantPratos--;\n\t\t\treturn aux;\n\t\t}\n\t}", "title": "" }, { "docid": "5786e14c4188227a3ed1b3707ef6af95", "score": "0.54479295", "text": "public void decrementInstances() {numInstances--;}", "title": "" }, { "docid": "09241471c0a04e9cfa8befb26470712a", "score": "0.54465526", "text": "public void decrement(View view){\r\n if (quantity>=2) {\r\n quantity = quantity -1;\r\n displayQuantity(quantity);\r\n return;\r\n } else {\r\n Context mycontext = getApplicationContext();\r\n CharSequence mytext = getText(R.string.min_order);\r\n int myduration = Toast.LENGTH_SHORT;\r\n Toast toast = Toast.makeText(mycontext, mytext, myduration);\r\n toast.show();\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "eb5962ffaec7045d205f03ba22e6c810", "score": "0.54374754", "text": "public void decrement() {\n synchronized (countLock) {\n count--;\n if (count == 0) {\n countLock.notifyAll();\n }\n }\n }", "title": "" }, { "docid": "e7f71be452b6d56165e143cba16f7050", "score": "0.54314834", "text": "@Override\n\t\t\t\t\tpublic void onMinus() {\n\t\t\t\t\t\tif(collection.num>1){\n\t\t\t\t\t\t\tcollection.setNum(collection.num-1);\n\t\t\t\t\t\t\tnotifyDataSetChanged();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tToast.makeText(CollectionActivity.this, \"数量至少是1\", 0).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "ea8fe573b7dff4fab6d18abcb18935a4", "score": "0.5426065", "text": "public void decalerListedesJoueurs() {\r\n\t\tJoueur j = llJoueur.getFirst();\r\n\t\tllJoueur.remove();\r\n\t\tllJoueur.addLast(j);\r\n\t}", "title": "" }, { "docid": "9c427242d3c477ba3d36421cefc569a9", "score": "0.54196876", "text": "@Override\n public void onPlatoComidaRestarCantidadClick(View view, int position) {\n\n\n if(Integer.parseInt((String) holder.txtCantidad.getText())>0){\n int contador = Integer.parseInt((String) holder.txtCantidad.getText()) - 1;\n\n holder.txtCantidad.setText(\"\"+contador);\n }\n\n\n\n\n\n\n }", "title": "" }, { "docid": "2b3d6f67a0be27f558820bcc668d70ad", "score": "0.54170525", "text": "public void avanzar() {\n valor++;\n if (valor == tope) {\n valor = 0;\n }\n }", "title": "" }, { "docid": "1cbbd1519cb7f7bde73f341de50cbc9c", "score": "0.5410556", "text": "protected void remove_greater(Alice primerforevery){\n Iterator<Alice> iterator = linkedalices.iterator();\n Comparator<Alice> comparator = Comparator.naturalOrder();\n int count = 0;\n while(iterator.hasNext()){\n Alice element = iterator.next();\n if(comparator.compare(primerforevery,element)<0) {\n iterator.remove();\n count++;\n }\n }\n System.out.println(\"===\\nКоличество удалённых алис: \"+count+\"\\n===\");\n }", "title": "" }, { "docid": "5bcb8d5ac09475396fb65a3f177255d8", "score": "0.540394", "text": "public void decrease(int number) {\n this.value -= number;\n }", "title": "" }, { "docid": "728b983c6051e30219a3082a0c882b44", "score": "0.54012376", "text": "public int choisirNombreJoueur() {\r\n\t\tSystem.out.println(\"Veuillez saisir le nombre de joueurs virtuels\");\r\n\t\t/*Scanner reader = new Scanner(System.in);\r\n\t\tint choise = reader.nextInt();\r\n\t\treturn choise;*/\r\n\t\treturn this.bol.lireInt();\r\n\t}", "title": "" }, { "docid": "3c5efde4d0c85cc1bb030dd5df26acdf", "score": "0.5387696", "text": "public void decrement(){\n \t\tif (minute > 0) {\n minute--;\n }else if (minute == 0 && hour == 0) {\n minute = 59;\n hour = 23;\n }else {\n minute = 59;\n hour--;\n } \n }", "title": "" }, { "docid": "023493e9c98298c9f541a3a64f375c8a", "score": "0.5381304", "text": "public void decrementUses() {\n useCounter--;\n }", "title": "" }, { "docid": "f9ad7cc0ce21dda7cefd83eed66f3ad3", "score": "0.53691113", "text": "public void remove()\n {\n front++;\n n--;\n }", "title": "" }, { "docid": "22ae1081a017f225ac4a904bd89011f4", "score": "0.53628325", "text": "public void ordenar() {\n ListIterator<String> itU = taulaUsuaris.listIterator(taulaUsuaris.size()-1);\n ListIterator<String> itP = taulaUsuaris.listIterator(taulaUsuaris.size()-1);\n int index = taulaUsuaris.size() - 1;\n \n while (itU.hasPrevious() && itP.hasPrevious()) {\n itU.previous(); //retrocedim el index 1 posicio\n itP.previous();\n \n int punts1 = taulaPuntuacions.get(index);\n int ind1 = index;\n --index;\n int punts2 = taulaPuntuacions.get(index);\n int ind2 = index;\n \n if (punts1 < punts2 || \"DUMMY\".equals(taulaUsuaris.get(index))) {\n Collections.swap(taulaPuntuacions, ind1, ind2);\n Collections.swap(taulaUsuaris, ind1, ind2);\n }\n }\n }", "title": "" }, { "docid": "4a97a82000bc9c3a0f5aaba6f3cc3fb4", "score": "0.53386265", "text": "private void limpiarTabla() {\n int cantidadFilas = tabModel.getRowCount();\n\n if (cantidadFilas != 0) {\n for (int i = cantidadFilas - 1; i >= 0; i--) {\n tabModel.removeRow(i);\n }\n }\n }", "title": "" } ]